xref: /freebsd/contrib/libpcap/configure (revision d1e8733132ce92d068898e4b3fe25ce17d634590)
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_CAN
705CAN_SRC
706INSTALL_PROGRAM
707INSTALL_SCRIPT
708INSTALL_DATA
709LTLIBOBJS'
710ac_subst_files=''
711      ac_precious_vars='build_alias
712host_alias
713target_alias
714CC
715CFLAGS
716LDFLAGS
717LIBS
718CPPFLAGS
719CPP'
720
721
722# Initialize some variables set by options.
723ac_init_help=
724ac_init_version=false
725# The variables have the same names as the options, with
726# dashes changed to underlines.
727cache_file=/dev/null
728exec_prefix=NONE
729no_create=
730no_recursion=
731prefix=NONE
732program_prefix=NONE
733program_suffix=NONE
734program_transform_name=s,x,x,
735silent=
736site=
737srcdir=
738verbose=
739x_includes=NONE
740x_libraries=NONE
741
742# Installation directory options.
743# These are left unexpanded so users can "make install exec_prefix=/foo"
744# and all the variables that are supposed to be based on exec_prefix
745# by default will actually change.
746# Use braces instead of parens because sh, perl, etc. also accept them.
747# (The list follows the same order as the GNU Coding Standards.)
748bindir='${exec_prefix}/bin'
749sbindir='${exec_prefix}/sbin'
750libexecdir='${exec_prefix}/libexec'
751datarootdir='${prefix}/share'
752datadir='${datarootdir}'
753sysconfdir='${prefix}/etc'
754sharedstatedir='${prefix}/com'
755localstatedir='${prefix}/var'
756includedir='${prefix}/include'
757oldincludedir='/usr/include'
758docdir='${datarootdir}/doc/${PACKAGE}'
759infodir='${datarootdir}/info'
760htmldir='${docdir}'
761dvidir='${docdir}'
762pdfdir='${docdir}'
763psdir='${docdir}'
764libdir='${exec_prefix}/lib'
765localedir='${datarootdir}/locale'
766mandir='${datarootdir}/man'
767
768ac_prev=
769ac_dashdash=
770for ac_option
771do
772  # If the previous option needs an argument, assign it.
773  if test -n "$ac_prev"; then
774    eval $ac_prev=\$ac_option
775    ac_prev=
776    continue
777  fi
778
779  case $ac_option in
780  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781  *)	ac_optarg=yes ;;
782  esac
783
784  # Accept the important Cygnus configure options, so we can diagnose typos.
785
786  case $ac_dashdash$ac_option in
787  --)
788    ac_dashdash=yes ;;
789
790  -bindir | --bindir | --bindi | --bind | --bin | --bi)
791    ac_prev=bindir ;;
792  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793    bindir=$ac_optarg ;;
794
795  -build | --build | --buil | --bui | --bu)
796    ac_prev=build_alias ;;
797  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798    build_alias=$ac_optarg ;;
799
800  -cache-file | --cache-file | --cache-fil | --cache-fi \
801  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802    ac_prev=cache_file ;;
803  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805    cache_file=$ac_optarg ;;
806
807  --config-cache | -C)
808    cache_file=config.cache ;;
809
810  -datadir | --datadir | --datadi | --datad)
811    ac_prev=datadir ;;
812  -datadir=* | --datadir=* | --datadi=* | --datad=*)
813    datadir=$ac_optarg ;;
814
815  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816  | --dataroo | --dataro | --datar)
817    ac_prev=datarootdir ;;
818  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820    datarootdir=$ac_optarg ;;
821
822  -disable-* | --disable-*)
823    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824    # Reject names that are not valid shell variable names.
825    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
826      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
827   { (exit 1); exit 1; }; }
828    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
829    eval enable_$ac_feature=no ;;
830
831  -docdir | --docdir | --docdi | --doc | --do)
832    ac_prev=docdir ;;
833  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834    docdir=$ac_optarg ;;
835
836  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837    ac_prev=dvidir ;;
838  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839    dvidir=$ac_optarg ;;
840
841  -enable-* | --enable-*)
842    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843    # Reject names that are not valid shell variable names.
844    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846   { (exit 1); exit 1; }; }
847    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848    eval enable_$ac_feature=\$ac_optarg ;;
849
850  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852  | --exec | --exe | --ex)
853    ac_prev=exec_prefix ;;
854  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856  | --exec=* | --exe=* | --ex=*)
857    exec_prefix=$ac_optarg ;;
858
859  -gas | --gas | --ga | --g)
860    # Obsolete; use --with-gas.
861    with_gas=yes ;;
862
863  -help | --help | --hel | --he | -h)
864    ac_init_help=long ;;
865  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866    ac_init_help=recursive ;;
867  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868    ac_init_help=short ;;
869
870  -host | --host | --hos | --ho)
871    ac_prev=host_alias ;;
872  -host=* | --host=* | --hos=* | --ho=*)
873    host_alias=$ac_optarg ;;
874
875  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876    ac_prev=htmldir ;;
877  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878  | --ht=*)
879    htmldir=$ac_optarg ;;
880
881  -includedir | --includedir | --includedi | --included | --include \
882  | --includ | --inclu | --incl | --inc)
883    ac_prev=includedir ;;
884  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885  | --includ=* | --inclu=* | --incl=* | --inc=*)
886    includedir=$ac_optarg ;;
887
888  -infodir | --infodir | --infodi | --infod | --info | --inf)
889    ac_prev=infodir ;;
890  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891    infodir=$ac_optarg ;;
892
893  -libdir | --libdir | --libdi | --libd)
894    ac_prev=libdir ;;
895  -libdir=* | --libdir=* | --libdi=* | --libd=*)
896    libdir=$ac_optarg ;;
897
898  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899  | --libexe | --libex | --libe)
900    ac_prev=libexecdir ;;
901  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902  | --libexe=* | --libex=* | --libe=*)
903    libexecdir=$ac_optarg ;;
904
905  -localedir | --localedir | --localedi | --localed | --locale)
906    ac_prev=localedir ;;
907  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908    localedir=$ac_optarg ;;
909
910  -localstatedir | --localstatedir | --localstatedi | --localstated \
911  | --localstate | --localstat | --localsta | --localst | --locals)
912    ac_prev=localstatedir ;;
913  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915    localstatedir=$ac_optarg ;;
916
917  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918    ac_prev=mandir ;;
919  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920    mandir=$ac_optarg ;;
921
922  -nfp | --nfp | --nf)
923    # Obsolete; use --without-fp.
924    with_fp=no ;;
925
926  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927  | --no-cr | --no-c | -n)
928    no_create=yes ;;
929
930  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932    no_recursion=yes ;;
933
934  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936  | --oldin | --oldi | --old | --ol | --o)
937    ac_prev=oldincludedir ;;
938  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941    oldincludedir=$ac_optarg ;;
942
943  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944    ac_prev=prefix ;;
945  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946    prefix=$ac_optarg ;;
947
948  -program-prefix | --program-prefix | --program-prefi | --program-pref \
949  | --program-pre | --program-pr | --program-p)
950    ac_prev=program_prefix ;;
951  -program-prefix=* | --program-prefix=* | --program-prefi=* \
952  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953    program_prefix=$ac_optarg ;;
954
955  -program-suffix | --program-suffix | --program-suffi | --program-suff \
956  | --program-suf | --program-su | --program-s)
957    ac_prev=program_suffix ;;
958  -program-suffix=* | --program-suffix=* | --program-suffi=* \
959  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960    program_suffix=$ac_optarg ;;
961
962  -program-transform-name | --program-transform-name \
963  | --program-transform-nam | --program-transform-na \
964  | --program-transform-n | --program-transform- \
965  | --program-transform | --program-transfor \
966  | --program-transfo | --program-transf \
967  | --program-trans | --program-tran \
968  | --progr-tra | --program-tr | --program-t)
969    ac_prev=program_transform_name ;;
970  -program-transform-name=* | --program-transform-name=* \
971  | --program-transform-nam=* | --program-transform-na=* \
972  | --program-transform-n=* | --program-transform-=* \
973  | --program-transform=* | --program-transfor=* \
974  | --program-transfo=* | --program-transf=* \
975  | --program-trans=* | --program-tran=* \
976  | --progr-tra=* | --program-tr=* | --program-t=*)
977    program_transform_name=$ac_optarg ;;
978
979  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980    ac_prev=pdfdir ;;
981  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982    pdfdir=$ac_optarg ;;
983
984  -psdir | --psdir | --psdi | --psd | --ps)
985    ac_prev=psdir ;;
986  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987    psdir=$ac_optarg ;;
988
989  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990  | -silent | --silent | --silen | --sile | --sil)
991    silent=yes ;;
992
993  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
994    ac_prev=sbindir ;;
995  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
996  | --sbi=* | --sb=*)
997    sbindir=$ac_optarg ;;
998
999  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001  | --sharedst | --shareds | --shared | --share | --shar \
1002  | --sha | --sh)
1003    ac_prev=sharedstatedir ;;
1004  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1007  | --sha=* | --sh=*)
1008    sharedstatedir=$ac_optarg ;;
1009
1010  -site | --site | --sit)
1011    ac_prev=site ;;
1012  -site=* | --site=* | --sit=*)
1013    site=$ac_optarg ;;
1014
1015  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1016    ac_prev=srcdir ;;
1017  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018    srcdir=$ac_optarg ;;
1019
1020  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021  | --syscon | --sysco | --sysc | --sys | --sy)
1022    ac_prev=sysconfdir ;;
1023  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025    sysconfdir=$ac_optarg ;;
1026
1027  -target | --target | --targe | --targ | --tar | --ta | --t)
1028    ac_prev=target_alias ;;
1029  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030    target_alias=$ac_optarg ;;
1031
1032  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1033    verbose=yes ;;
1034
1035  -version | --version | --versio | --versi | --vers | -V)
1036    ac_init_version=: ;;
1037
1038  -with-* | --with-*)
1039    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040    # Reject names that are not valid shell variable names.
1041    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042      { echo "$as_me: error: invalid package name: $ac_package" >&2
1043   { (exit 1); exit 1; }; }
1044    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045    eval with_$ac_package=\$ac_optarg ;;
1046
1047  -without-* | --without-*)
1048    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049    # Reject names that are not valid shell variable names.
1050    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051      { echo "$as_me: error: invalid package name: $ac_package" >&2
1052   { (exit 1); exit 1; }; }
1053    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054    eval with_$ac_package=no ;;
1055
1056  --x)
1057    # Obsolete; use --with-x.
1058    with_x=yes ;;
1059
1060  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061  | --x-incl | --x-inc | --x-in | --x-i)
1062    ac_prev=x_includes ;;
1063  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065    x_includes=$ac_optarg ;;
1066
1067  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069    ac_prev=x_libraries ;;
1070  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072    x_libraries=$ac_optarg ;;
1073
1074  -*) { echo "$as_me: error: unrecognized option: $ac_option
1075Try \`$0 --help' for more information." >&2
1076   { (exit 1); exit 1; }; }
1077    ;;
1078
1079  *=*)
1080    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081    # Reject names that are not valid shell variable names.
1082    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1083      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1084   { (exit 1); exit 1; }; }
1085    eval $ac_envvar=\$ac_optarg
1086    export $ac_envvar ;;
1087
1088  *)
1089    # FIXME: should be removed in autoconf 3.0.
1090    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094    ;;
1095
1096  esac
1097done
1098
1099if test -n "$ac_prev"; then
1100  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101  { echo "$as_me: error: missing argument to $ac_option" >&2
1102   { (exit 1); exit 1; }; }
1103fi
1104
1105# Be sure to have absolute directory names.
1106for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107		datadir sysconfdir sharedstatedir localstatedir includedir \
1108		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109		libdir localedir mandir
1110do
1111  eval ac_val=\$$ac_var
1112  case $ac_val in
1113    [\\/$]* | ?:[\\/]* )  continue;;
1114    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115  esac
1116  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1117   { (exit 1); exit 1; }; }
1118done
1119
1120# There might be people who depend on the old broken behavior: `$host'
1121# used to hold the argument of --host etc.
1122# FIXME: To remove some day.
1123build=$build_alias
1124host=$host_alias
1125target=$target_alias
1126
1127# FIXME: To remove some day.
1128if test "x$host_alias" != x; then
1129  if test "x$build_alias" = x; then
1130    cross_compiling=maybe
1131    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1132    If a cross compiler is detected then cross compile mode will be used." >&2
1133  elif test "x$build_alias" != "x$host_alias"; then
1134    cross_compiling=yes
1135  fi
1136fi
1137
1138ac_tool_prefix=
1139test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140
1141test "$silent" = yes && exec 6>/dev/null
1142
1143
1144ac_pwd=`pwd` && test -n "$ac_pwd" &&
1145ac_ls_di=`ls -di .` &&
1146ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1147  { echo "$as_me: error: Working directory cannot be determined" >&2
1148   { (exit 1); exit 1; }; }
1149test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1150  { echo "$as_me: error: pwd does not report name of working directory" >&2
1151   { (exit 1); exit 1; }; }
1152
1153
1154# Find the source files, if location was not specified.
1155if test -z "$srcdir"; then
1156  ac_srcdir_defaulted=yes
1157  # Try the directory containing this script, then the parent directory.
1158  ac_confdir=`$as_dirname -- "$0" ||
1159$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160	 X"$0" : 'X\(//\)[^/]' \| \
1161	 X"$0" : 'X\(//\)$' \| \
1162	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1163echo X"$0" |
1164    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165	    s//\1/
1166	    q
1167	  }
1168	  /^X\(\/\/\)[^/].*/{
1169	    s//\1/
1170	    q
1171	  }
1172	  /^X\(\/\/\)$/{
1173	    s//\1/
1174	    q
1175	  }
1176	  /^X\(\/\).*/{
1177	    s//\1/
1178	    q
1179	  }
1180	  s/.*/./; q'`
1181  srcdir=$ac_confdir
1182  if test ! -r "$srcdir/$ac_unique_file"; then
1183    srcdir=..
1184  fi
1185else
1186  ac_srcdir_defaulted=no
1187fi
1188if test ! -r "$srcdir/$ac_unique_file"; then
1189  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1191   { (exit 1); exit 1; }; }
1192fi
1193ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194ac_abs_confdir=`(
1195	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1196   { (exit 1); exit 1; }; }
1197	pwd)`
1198# When building in place, set srcdir=.
1199if test "$ac_abs_confdir" = "$ac_pwd"; then
1200  srcdir=.
1201fi
1202# Remove unnecessary trailing slashes from srcdir.
1203# Double slashes in file names in object file debugging info
1204# mess up M-x gdb in Emacs.
1205case $srcdir in
1206*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207esac
1208for ac_var in $ac_precious_vars; do
1209  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1210  eval ac_env_${ac_var}_value=\$${ac_var}
1211  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1212  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1213done
1214
1215#
1216# Report the --help message.
1217#
1218if test "$ac_init_help" = "long"; then
1219  # Omit some internal or obsolete options to make the list less imposing.
1220  # This message is too long to be a string in the A/UX 3.1 sh.
1221  cat <<_ACEOF
1222\`configure' configures this package to adapt to many kinds of systems.
1223
1224Usage: $0 [OPTION]... [VAR=VALUE]...
1225
1226To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227VAR=VALUE.  See below for descriptions of some of the useful variables.
1228
1229Defaults for the options are specified in brackets.
1230
1231Configuration:
1232  -h, --help              display this help and exit
1233      --help=short        display options specific to this package
1234      --help=recursive    display the short help of all the included packages
1235  -V, --version           display version information and exit
1236  -q, --quiet, --silent   do not print \`checking...' messages
1237      --cache-file=FILE   cache test results in FILE [disabled]
1238  -C, --config-cache      alias for \`--cache-file=config.cache'
1239  -n, --no-create         do not create output files
1240      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1241
1242Installation directories:
1243  --prefix=PREFIX         install architecture-independent files in PREFIX
1244			  [$ac_default_prefix]
1245  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1246			  [PREFIX]
1247
1248By default, \`make install' will install all the files in
1249\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1250an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251for instance \`--prefix=\$HOME'.
1252
1253For better control, use the options below.
1254
1255Fine tuning of the installation directories:
1256  --bindir=DIR           user executables [EPREFIX/bin]
1257  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1258  --libexecdir=DIR       program executables [EPREFIX/libexec]
1259  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1260  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1261  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1262  --libdir=DIR           object code libraries [EPREFIX/lib]
1263  --includedir=DIR       C header files [PREFIX/include]
1264  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1265  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1266  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1267  --infodir=DIR          info documentation [DATAROOTDIR/info]
1268  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1269  --mandir=DIR           man documentation [DATAROOTDIR/man]
1270  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1271  --htmldir=DIR          html documentation [DOCDIR]
1272  --dvidir=DIR           dvi documentation [DOCDIR]
1273  --pdfdir=DIR           pdf documentation [DOCDIR]
1274  --psdir=DIR            ps documentation [DOCDIR]
1275_ACEOF
1276
1277  cat <<\_ACEOF
1278
1279System types:
1280  --build=BUILD     configure for building on BUILD [guessed]
1281  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1282  --target=TARGET   configure for building compilers for TARGET [HOST]
1283_ACEOF
1284fi
1285
1286if test -n "$ac_init_help"; then
1287
1288  cat <<\_ACEOF
1289
1290Optional Features:
1291  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1292  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1293  --disable-largefile     omit support for large files
1294  --disable-protochain    disable \"protochain\" insn
1295  --enable-ipv6           build IPv6-capable version [default=yes, if
1296                          getaddrinfo available]
1297  --enable-optimizer-dbg  build optimizer debugging code
1298  --enable-yydebug        build parser debugging code
1299  --disable-universal     don't build universal on OS X
1300  --enable-bluetooth      enable Bluetooth support [default=yes, if support
1301                          available]
1302  --enable-can            enable CAN support [default=yes, if support
1303                          available]
1304
1305Optional Packages:
1306  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1307  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1308  --without-gcc           don't use gcc
1309  --with-sita             include SITA support
1310  --with-pcap=TYPE        use packet capture TYPE
1311  --without-libnl         disable libnl support [default=yes, on Linux, if
1312                          present]
1313  --with-dag[=DIR]        include Endace DAG support ["yes", "no" or DIR;
1314                          default="yes" on BSD and Linux if present]
1315  --with-dag-includes=DIR Endace DAG include directory
1316  --with-dag-libraries=DIR
1317                          Endace DAG library directory
1318  --with-septel[=DIR]     include Septel support (located in directory DIR, if
1319                          supplied). [default=yes, on Linux, if present]
1320  --with-snf[=DIR]        include Myricom SNF support ["yes", "no" or DIR;
1321                          default="yes" on BSD and Linux if present]
1322  --with-snf-includes=DIR Myricom SNF include directory
1323  --with-snf-libraries=DIR
1324                          Myricom SNF library directory
1325  --without-flex          don't use flex
1326  --without-bison         don't use bison
1327
1328Some influential environment variables:
1329  CC          C compiler command
1330  CFLAGS      C compiler flags
1331  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1332              nonstandard directory <lib dir>
1333  LIBS        libraries to pass to the linker, e.g. -l<library>
1334  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1335              you have headers in a nonstandard directory <include dir>
1336  CPP         C preprocessor
1337
1338Use these variables to override the choices made by `configure' or to help
1339it to find libraries and programs with nonstandard names/locations.
1340
1341_ACEOF
1342ac_status=$?
1343fi
1344
1345if test "$ac_init_help" = "recursive"; then
1346  # If there are subdirs, report their specific --help.
1347  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348    test -d "$ac_dir" || continue
1349    ac_builddir=.
1350
1351case "$ac_dir" in
1352.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353*)
1354  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1355  # A ".." for each directory in $ac_dir_suffix.
1356  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1357  case $ac_top_builddir_sub in
1358  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360  esac ;;
1361esac
1362ac_abs_top_builddir=$ac_pwd
1363ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364# for backward compatibility:
1365ac_top_builddir=$ac_top_build_prefix
1366
1367case $srcdir in
1368  .)  # We are building in place.
1369    ac_srcdir=.
1370    ac_top_srcdir=$ac_top_builddir_sub
1371    ac_abs_top_srcdir=$ac_pwd ;;
1372  [\\/]* | ?:[\\/]* )  # Absolute name.
1373    ac_srcdir=$srcdir$ac_dir_suffix;
1374    ac_top_srcdir=$srcdir
1375    ac_abs_top_srcdir=$srcdir ;;
1376  *) # Relative name.
1377    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378    ac_top_srcdir=$ac_top_build_prefix$srcdir
1379    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380esac
1381ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383    cd "$ac_dir" || { ac_status=$?; continue; }
1384    # Check for guested configure.
1385    if test -f "$ac_srcdir/configure.gnu"; then
1386      echo &&
1387      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388    elif test -f "$ac_srcdir/configure"; then
1389      echo &&
1390      $SHELL "$ac_srcdir/configure" --help=recursive
1391    else
1392      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393    fi || ac_status=$?
1394    cd "$ac_pwd" || { ac_status=$?; break; }
1395  done
1396fi
1397
1398test -n "$ac_init_help" && exit $ac_status
1399if $ac_init_version; then
1400  cat <<\_ACEOF
1401configure
1402generated by GNU Autoconf 2.61
1403
1404Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14052002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1406This configure script is free software; the Free Software Foundation
1407gives unlimited permission to copy, distribute and modify it.
1408_ACEOF
1409  exit
1410fi
1411cat >config.log <<_ACEOF
1412This file contains any messages produced by compilers while
1413running configure, to aid debugging if configure makes a mistake.
1414
1415It was created by $as_me, which was
1416generated by GNU Autoconf 2.61.  Invocation command line was
1417
1418  $ $0 $@
1419
1420_ACEOF
1421exec 5>>config.log
1422{
1423cat <<_ASUNAME
1424## --------- ##
1425## Platform. ##
1426## --------- ##
1427
1428hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1429uname -m = `(uname -m) 2>/dev/null || echo unknown`
1430uname -r = `(uname -r) 2>/dev/null || echo unknown`
1431uname -s = `(uname -s) 2>/dev/null || echo unknown`
1432uname -v = `(uname -v) 2>/dev/null || echo unknown`
1433
1434/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1435/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1436
1437/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1438/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1439/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1440/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1441/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1442/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1443/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1444
1445_ASUNAME
1446
1447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448for as_dir in $PATH
1449do
1450  IFS=$as_save_IFS
1451  test -z "$as_dir" && as_dir=.
1452  echo "PATH: $as_dir"
1453done
1454IFS=$as_save_IFS
1455
1456} >&5
1457
1458cat >&5 <<_ACEOF
1459
1460
1461## ----------- ##
1462## Core tests. ##
1463## ----------- ##
1464
1465_ACEOF
1466
1467
1468# Keep a trace of the command line.
1469# Strip out --no-create and --no-recursion so they do not pile up.
1470# Strip out --silent because we don't want to record it for future runs.
1471# Also quote any args containing shell meta-characters.
1472# Make two passes to allow for proper duplicate-argument suppression.
1473ac_configure_args=
1474ac_configure_args0=
1475ac_configure_args1=
1476ac_must_keep_next=false
1477for ac_pass in 1 2
1478do
1479  for ac_arg
1480  do
1481    case $ac_arg in
1482    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1483    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484    | -silent | --silent | --silen | --sile | --sil)
1485      continue ;;
1486    *\'*)
1487      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1488    esac
1489    case $ac_pass in
1490    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1491    2)
1492      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1493      if test $ac_must_keep_next = true; then
1494	ac_must_keep_next=false # Got value, back to normal.
1495      else
1496	case $ac_arg in
1497	  *=* | --config-cache | -C | -disable-* | --disable-* \
1498	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1499	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1500	  | -with-* | --with-* | -without-* | --without-* | --x)
1501	    case "$ac_configure_args0 " in
1502	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503	    esac
1504	    ;;
1505	  -* ) ac_must_keep_next=true ;;
1506	esac
1507      fi
1508      ac_configure_args="$ac_configure_args '$ac_arg'"
1509      ;;
1510    esac
1511  done
1512done
1513$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1514$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1515
1516# When interrupted or exit'd, cleanup temporary files, and complete
1517# config.log.  We remove comments because anyway the quotes in there
1518# would cause problems or look ugly.
1519# WARNING: Use '\'' to represent an apostrophe within the trap.
1520# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1521trap 'exit_status=$?
1522  # Save into config.log some information that might help in debugging.
1523  {
1524    echo
1525
1526    cat <<\_ASBOX
1527## ---------------- ##
1528## Cache variables. ##
1529## ---------------- ##
1530_ASBOX
1531    echo
1532    # The following way of writing the cache mishandles newlines in values,
1533(
1534  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1535    eval ac_val=\$$ac_var
1536    case $ac_val in #(
1537    *${as_nl}*)
1538      case $ac_var in #(
1539      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1540echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541      esac
1542      case $ac_var in #(
1543      _ | IFS | as_nl) ;; #(
1544      *) $as_unset $ac_var ;;
1545      esac ;;
1546    esac
1547  done
1548  (set) 2>&1 |
1549    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1550    *${as_nl}ac_space=\ *)
1551      sed -n \
1552	"s/'\''/'\''\\\\'\'''\''/g;
1553	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554      ;; #(
1555    *)
1556      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1557      ;;
1558    esac |
1559    sort
1560)
1561    echo
1562
1563    cat <<\_ASBOX
1564## ----------------- ##
1565## Output variables. ##
1566## ----------------- ##
1567_ASBOX
1568    echo
1569    for ac_var in $ac_subst_vars
1570    do
1571      eval ac_val=\$$ac_var
1572      case $ac_val in
1573      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574      esac
1575      echo "$ac_var='\''$ac_val'\''"
1576    done | sort
1577    echo
1578
1579    if test -n "$ac_subst_files"; then
1580      cat <<\_ASBOX
1581## ------------------- ##
1582## File substitutions. ##
1583## ------------------- ##
1584_ASBOX
1585      echo
1586      for ac_var in $ac_subst_files
1587      do
1588	eval ac_val=\$$ac_var
1589	case $ac_val in
1590	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1591	esac
1592	echo "$ac_var='\''$ac_val'\''"
1593      done | sort
1594      echo
1595    fi
1596
1597    if test -s confdefs.h; then
1598      cat <<\_ASBOX
1599## ----------- ##
1600## confdefs.h. ##
1601## ----------- ##
1602_ASBOX
1603      echo
1604      cat confdefs.h
1605      echo
1606    fi
1607    test "$ac_signal" != 0 &&
1608      echo "$as_me: caught signal $ac_signal"
1609    echo "$as_me: exit $exit_status"
1610  } >&5
1611  rm -f core *.core core.conftest.* &&
1612    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613    exit $exit_status
1614' 0
1615for ac_signal in 1 2 13 15; do
1616  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1617done
1618ac_signal=0
1619
1620# confdefs.h avoids OS command line length limits that DEFS can exceed.
1621rm -f -r conftest* confdefs.h
1622
1623# Predefined preprocessor variables.
1624
1625cat >>confdefs.h <<_ACEOF
1626#define PACKAGE_NAME "$PACKAGE_NAME"
1627_ACEOF
1628
1629
1630cat >>confdefs.h <<_ACEOF
1631#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1632_ACEOF
1633
1634
1635cat >>confdefs.h <<_ACEOF
1636#define PACKAGE_VERSION "$PACKAGE_VERSION"
1637_ACEOF
1638
1639
1640cat >>confdefs.h <<_ACEOF
1641#define PACKAGE_STRING "$PACKAGE_STRING"
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1647_ACEOF
1648
1649
1650# Let the site file select an alternate cache file if it wants to.
1651# Prefer explicitly selected file to automatically selected ones.
1652if test -n "$CONFIG_SITE"; then
1653  set x "$CONFIG_SITE"
1654elif test "x$prefix" != xNONE; then
1655  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1656else
1657  set x "$ac_default_prefix/share/config.site" \
1658	"$ac_default_prefix/etc/config.site"
1659fi
1660shift
1661for ac_site_file
1662do
1663  if test -r "$ac_site_file"; then
1664    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1665echo "$as_me: loading site script $ac_site_file" >&6;}
1666    sed 's/^/| /' "$ac_site_file" >&5
1667    . "$ac_site_file"
1668  fi
1669done
1670
1671if test -r "$cache_file"; then
1672  # Some versions of bash will fail to source /dev/null (special
1673  # files actually), so we avoid doing that.
1674  if test -f "$cache_file"; then
1675    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1676echo "$as_me: loading cache $cache_file" >&6;}
1677    case $cache_file in
1678      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1679      *)                      . "./$cache_file";;
1680    esac
1681  fi
1682else
1683  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1684echo "$as_me: creating cache $cache_file" >&6;}
1685  >$cache_file
1686fi
1687
1688# Check that the precious variables saved in the cache have kept the same
1689# value.
1690ac_cache_corrupted=false
1691for ac_var in $ac_precious_vars; do
1692  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1693  eval ac_new_set=\$ac_env_${ac_var}_set
1694  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1695  eval ac_new_val=\$ac_env_${ac_var}_value
1696  case $ac_old_set,$ac_new_set in
1697    set,)
1698      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1699echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1700      ac_cache_corrupted=: ;;
1701    ,set)
1702      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1703echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1704      ac_cache_corrupted=: ;;
1705    ,);;
1706    *)
1707      if test "x$ac_old_val" != "x$ac_new_val"; then
1708	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1709echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1710	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1711echo "$as_me:   former value:  $ac_old_val" >&2;}
1712	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1713echo "$as_me:   current value: $ac_new_val" >&2;}
1714	ac_cache_corrupted=:
1715      fi;;
1716  esac
1717  # Pass precious variables to config.status.
1718  if test "$ac_new_set" = set; then
1719    case $ac_new_val in
1720    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1721    *) ac_arg=$ac_var=$ac_new_val ;;
1722    esac
1723    case " $ac_configure_args " in
1724      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1725      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1726    esac
1727  fi
1728done
1729if $ac_cache_corrupted; then
1730  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1731echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1732  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1733echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1734   { (exit 1); exit 1; }; }
1735fi
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753ac_ext=c
1754ac_cpp='$CPP $CPPFLAGS'
1755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758
1759
1760
1761ac_aux_dir=
1762for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1763  if test -f "$ac_dir/install-sh"; then
1764    ac_aux_dir=$ac_dir
1765    ac_install_sh="$ac_aux_dir/install-sh -c"
1766    break
1767  elif test -f "$ac_dir/install.sh"; then
1768    ac_aux_dir=$ac_dir
1769    ac_install_sh="$ac_aux_dir/install.sh -c"
1770    break
1771  elif test -f "$ac_dir/shtool"; then
1772    ac_aux_dir=$ac_dir
1773    ac_install_sh="$ac_aux_dir/shtool install -c"
1774    break
1775  fi
1776done
1777if test -z "$ac_aux_dir"; then
1778  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1779echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1780   { (exit 1); exit 1; }; }
1781fi
1782
1783# These three variables are undocumented and unsupported,
1784# and are intended to be withdrawn in a future Autoconf release.
1785# They can cause serious problems if a builder's source tree is in a directory
1786# whose full name contains unusual characters.
1787ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1788ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1789ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1790
1791
1792# Make sure we can run config.sub.
1793$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1794  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1795echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1796   { (exit 1); exit 1; }; }
1797
1798{ echo "$as_me:$LINENO: checking build system type" >&5
1799echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1800if test "${ac_cv_build+set}" = set; then
1801  echo $ECHO_N "(cached) $ECHO_C" >&6
1802else
1803  ac_build_alias=$build_alias
1804test "x$ac_build_alias" = x &&
1805  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1806test "x$ac_build_alias" = x &&
1807  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1808echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1809   { (exit 1); exit 1; }; }
1810ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1811  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1812echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1813   { (exit 1); exit 1; }; }
1814
1815fi
1816{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1817echo "${ECHO_T}$ac_cv_build" >&6; }
1818case $ac_cv_build in
1819*-*-*) ;;
1820*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1821echo "$as_me: error: invalid value of canonical build" >&2;}
1822   { (exit 1); exit 1; }; };;
1823esac
1824build=$ac_cv_build
1825ac_save_IFS=$IFS; IFS='-'
1826set x $ac_cv_build
1827shift
1828build_cpu=$1
1829build_vendor=$2
1830shift; shift
1831# Remember, the first character of IFS is used to create $*,
1832# except with old shells:
1833build_os=$*
1834IFS=$ac_save_IFS
1835case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1836
1837
1838{ echo "$as_me:$LINENO: checking host system type" >&5
1839echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1840if test "${ac_cv_host+set}" = set; then
1841  echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843  if test "x$host_alias" = x; then
1844  ac_cv_host=$ac_cv_build
1845else
1846  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1847    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1848echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1849   { (exit 1); exit 1; }; }
1850fi
1851
1852fi
1853{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1854echo "${ECHO_T}$ac_cv_host" >&6; }
1855case $ac_cv_host in
1856*-*-*) ;;
1857*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1858echo "$as_me: error: invalid value of canonical host" >&2;}
1859   { (exit 1); exit 1; }; };;
1860esac
1861host=$ac_cv_host
1862ac_save_IFS=$IFS; IFS='-'
1863set x $ac_cv_host
1864shift
1865host_cpu=$1
1866host_vendor=$2
1867shift; shift
1868# Remember, the first character of IFS is used to create $*,
1869# except with old shells:
1870host_os=$*
1871IFS=$ac_save_IFS
1872case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1873
1874
1875{ echo "$as_me:$LINENO: checking target system type" >&5
1876echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1877if test "${ac_cv_target+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  if test "x$target_alias" = x; then
1881  ac_cv_target=$ac_cv_host
1882else
1883  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1884    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1885echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1886   { (exit 1); exit 1; }; }
1887fi
1888
1889fi
1890{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1891echo "${ECHO_T}$ac_cv_target" >&6; }
1892case $ac_cv_target in
1893*-*-*) ;;
1894*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1895echo "$as_me: error: invalid value of canonical target" >&2;}
1896   { (exit 1); exit 1; }; };;
1897esac
1898target=$ac_cv_target
1899ac_save_IFS=$IFS; IFS='-'
1900set x $ac_cv_target
1901shift
1902target_cpu=$1
1903target_vendor=$2
1904shift; shift
1905# Remember, the first character of IFS is used to create $*,
1906# except with old shells:
1907target_os=$*
1908IFS=$ac_save_IFS
1909case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1910
1911
1912# The aliases save the names the user supplied, while $host etc.
1913# will get canonicalized.
1914test -n "$target_alias" &&
1915  test "$program_prefix$program_suffix$program_transform_name" = \
1916    NONENONEs,x,x, &&
1917  program_prefix=${target_alias}-
1918
1919
1920
1921
1922
1923
1924
1925# Check whether --with-gcc was given.
1926if test "${with_gcc+set}" = set; then
1927  withval=$with_gcc;
1928fi
1929
1930    V_CCOPT="-O"
1931    V_INCLS=""
1932    if test "${srcdir}" != "." ; then
1933	    V_INCLS="-I\$(srcdir)"
1934    fi
1935    if test "${CFLAGS+set}" = set; then
1936	    LBL_CFLAGS="$CFLAGS"
1937    fi
1938    if test -z "$CC" ; then
1939	    case "$host_os" in
1940
1941	    bsdi*)
1942		    # Extract the first word of "shlicc2", so it can be a program name with args.
1943set dummy shlicc2; ac_word=$2
1944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1946if test "${ac_cv_prog_SHLICC2+set}" = set; then
1947  echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949  if test -n "$SHLICC2"; then
1950  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1951else
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  test -z "$as_dir" && as_dir=.
1957  for ac_exec_ext in '' $ac_executable_extensions; do
1958  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1959    ac_cv_prog_SHLICC2="yes"
1960    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961    break 2
1962  fi
1963done
1964done
1965IFS=$as_save_IFS
1966
1967  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1968fi
1969fi
1970SHLICC2=$ac_cv_prog_SHLICC2
1971if test -n "$SHLICC2"; then
1972  { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1973echo "${ECHO_T}$SHLICC2" >&6; }
1974else
1975  { echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6; }
1977fi
1978
1979
1980		    if test $SHLICC2 = yes ; then
1981			    CC=shlicc2
1982			    export CC
1983		    fi
1984		    ;;
1985	    esac
1986    fi
1987    if test -z "$CC" -a "$with_gcc" = no ; then
1988	    CC=cc
1989	    export CC
1990    fi
1991
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997if test -n "$ac_tool_prefix"; then
1998  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002if test "${ac_cv_prog_CC+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  if test -n "$CC"; then
2006  ac_cv_prog_CC="$CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013  for ac_exec_ext in '' $ac_executable_extensions; do
2014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017    break 2
2018  fi
2019done
2020done
2021IFS=$as_save_IFS
2022
2023fi
2024fi
2025CC=$ac_cv_prog_CC
2026if test -n "$CC"; then
2027  { echo "$as_me:$LINENO: result: $CC" >&5
2028echo "${ECHO_T}$CC" >&6; }
2029else
2030  { echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6; }
2032fi
2033
2034
2035fi
2036if test -z "$ac_cv_prog_CC"; then
2037  ac_ct_CC=$CC
2038  # Extract the first word of "gcc", so it can be a program name with args.
2039set dummy gcc; ac_word=$2
2040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043  echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
2045  if test -n "$ac_ct_CC"; then
2046  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047else
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051  IFS=$as_save_IFS
2052  test -z "$as_dir" && as_dir=.
2053  for ac_exec_ext in '' $ac_executable_extensions; do
2054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055    ac_cv_prog_ac_ct_CC="gcc"
2056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057    break 2
2058  fi
2059done
2060done
2061IFS=$as_save_IFS
2062
2063fi
2064fi
2065ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066if test -n "$ac_ct_CC"; then
2067  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068echo "${ECHO_T}$ac_ct_CC" >&6; }
2069else
2070  { echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6; }
2072fi
2073
2074  if test "x$ac_ct_CC" = x; then
2075    CC=""
2076  else
2077    case $cross_compiling:$ac_tool_warned in
2078yes:)
2079{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2080whose name does not start with the host triplet.  If you think this
2081configuration is useful to you, please write to autoconf@gnu.org." >&5
2082echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2083whose name does not start with the host triplet.  If you think this
2084configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2085ac_tool_warned=yes ;;
2086esac
2087    CC=$ac_ct_CC
2088  fi
2089else
2090  CC="$ac_cv_prog_CC"
2091fi
2092
2093if test -z "$CC"; then
2094          if test -n "$ac_tool_prefix"; then
2095    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2096set dummy ${ac_tool_prefix}cc; ac_word=$2
2097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099if test "${ac_cv_prog_CC+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  if test -n "$CC"; then
2103  ac_cv_prog_CC="$CC" # Let the user override the test.
2104else
2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108  IFS=$as_save_IFS
2109  test -z "$as_dir" && as_dir=.
2110  for ac_exec_ext in '' $ac_executable_extensions; do
2111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112    ac_cv_prog_CC="${ac_tool_prefix}cc"
2113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114    break 2
2115  fi
2116done
2117done
2118IFS=$as_save_IFS
2119
2120fi
2121fi
2122CC=$ac_cv_prog_CC
2123if test -n "$CC"; then
2124  { echo "$as_me:$LINENO: result: $CC" >&5
2125echo "${ECHO_T}$CC" >&6; }
2126else
2127  { echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6; }
2129fi
2130
2131
2132  fi
2133fi
2134if test -z "$CC"; then
2135  # Extract the first word of "cc", so it can be a program name with args.
2136set dummy cc; ac_word=$2
2137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139if test "${ac_cv_prog_CC+set}" = set; then
2140  echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142  if test -n "$CC"; then
2143  ac_cv_prog_CC="$CC" # Let the user override the test.
2144else
2145  ac_prog_rejected=no
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149  IFS=$as_save_IFS
2150  test -z "$as_dir" && as_dir=.
2151  for ac_exec_ext in '' $ac_executable_extensions; do
2152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2154       ac_prog_rejected=yes
2155       continue
2156     fi
2157    ac_cv_prog_CC="cc"
2158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159    break 2
2160  fi
2161done
2162done
2163IFS=$as_save_IFS
2164
2165if test $ac_prog_rejected = yes; then
2166  # We found a bogon in the path, so make sure we never use it.
2167  set dummy $ac_cv_prog_CC
2168  shift
2169  if test $# != 0; then
2170    # We chose a different compiler from the bogus one.
2171    # However, it has the same basename, so the bogon will be chosen
2172    # first if we set CC to just the basename; use the full file name.
2173    shift
2174    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2175  fi
2176fi
2177fi
2178fi
2179CC=$ac_cv_prog_CC
2180if test -n "$CC"; then
2181  { echo "$as_me:$LINENO: result: $CC" >&5
2182echo "${ECHO_T}$CC" >&6; }
2183else
2184  { echo "$as_me:$LINENO: result: no" >&5
2185echo "${ECHO_T}no" >&6; }
2186fi
2187
2188
2189fi
2190if test -z "$CC"; then
2191  if test -n "$ac_tool_prefix"; then
2192  for ac_prog in cl.exe
2193  do
2194    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198if test "${ac_cv_prog_CC+set}" = set; then
2199  echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201  if test -n "$CC"; then
2202  ac_cv_prog_CC="$CC" # Let the user override the test.
2203else
2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205for as_dir in $PATH
2206do
2207  IFS=$as_save_IFS
2208  test -z "$as_dir" && as_dir=.
2209  for ac_exec_ext in '' $ac_executable_extensions; do
2210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213    break 2
2214  fi
2215done
2216done
2217IFS=$as_save_IFS
2218
2219fi
2220fi
2221CC=$ac_cv_prog_CC
2222if test -n "$CC"; then
2223  { echo "$as_me:$LINENO: result: $CC" >&5
2224echo "${ECHO_T}$CC" >&6; }
2225else
2226  { echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6; }
2228fi
2229
2230
2231    test -n "$CC" && break
2232  done
2233fi
2234if test -z "$CC"; then
2235  ac_ct_CC=$CC
2236  for ac_prog in cl.exe
2237do
2238  # Extract the first word of "$ac_prog", so it can be a program name with args.
2239set dummy $ac_prog; ac_word=$2
2240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2243  echo $ECHO_N "(cached) $ECHO_C" >&6
2244else
2245  if test -n "$ac_ct_CC"; then
2246  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2247else
2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249for as_dir in $PATH
2250do
2251  IFS=$as_save_IFS
2252  test -z "$as_dir" && as_dir=.
2253  for ac_exec_ext in '' $ac_executable_extensions; do
2254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255    ac_cv_prog_ac_ct_CC="$ac_prog"
2256    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257    break 2
2258  fi
2259done
2260done
2261IFS=$as_save_IFS
2262
2263fi
2264fi
2265ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266if test -n "$ac_ct_CC"; then
2267  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268echo "${ECHO_T}$ac_ct_CC" >&6; }
2269else
2270  { echo "$as_me:$LINENO: result: no" >&5
2271echo "${ECHO_T}no" >&6; }
2272fi
2273
2274
2275  test -n "$ac_ct_CC" && break
2276done
2277
2278  if test "x$ac_ct_CC" = x; then
2279    CC=""
2280  else
2281    case $cross_compiling:$ac_tool_warned in
2282yes:)
2283{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2284whose name does not start with the host triplet.  If you think this
2285configuration is useful to you, please write to autoconf@gnu.org." >&5
2286echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2287whose name does not start with the host triplet.  If you think this
2288configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2289ac_tool_warned=yes ;;
2290esac
2291    CC=$ac_ct_CC
2292  fi
2293fi
2294
2295fi
2296
2297
2298test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: no acceptable C compiler found in \$PATH
2301See \`config.log' for more details." >&2;}
2302   { (exit 1); exit 1; }; }
2303
2304# Provide some information about the compiler.
2305echo "$as_me:$LINENO: checking for C compiler version" >&5
2306ac_compiler=`set X $ac_compile; echo $2`
2307{ (ac_try="$ac_compiler --version >&5"
2308case "(($ac_try" in
2309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310  *) ac_try_echo=$ac_try;;
2311esac
2312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313  (eval "$ac_compiler --version >&5") 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }
2317{ (ac_try="$ac_compiler -v >&5"
2318case "(($ac_try" in
2319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320  *) ac_try_echo=$ac_try;;
2321esac
2322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323  (eval "$ac_compiler -v >&5") 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }
2327{ (ac_try="$ac_compiler -V >&5"
2328case "(($ac_try" in
2329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330  *) ac_try_echo=$ac_try;;
2331esac
2332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333  (eval "$ac_compiler -V >&5") 2>&5
2334  ac_status=$?
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); }
2337
2338cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h.  */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h.  */
2344
2345int
2346main ()
2347{
2348
2349  ;
2350  return 0;
2351}
2352_ACEOF
2353ac_clean_files_save=$ac_clean_files
2354ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355# Try to create an executable without -o first, disregard a.out.
2356# It will help us diagnose broken compilers, and finding out an intuition
2357# of exeext.
2358{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2360ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361#
2362# List of possible output files, starting from the most likely.
2363# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2364# only as a last resort.  b.out is created by i960 compilers.
2365ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2366#
2367# The IRIX 6 linker writes into existing files which may not be
2368# executable, retaining their permissions.  Remove them first so a
2369# subsequent execution test works.
2370ac_rmfiles=
2371for ac_file in $ac_files
2372do
2373  case $ac_file in
2374    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2375    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2376  esac
2377done
2378rm -f $ac_rmfiles
2379
2380if { (ac_try="$ac_link_default"
2381case "(($ac_try" in
2382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383  *) ac_try_echo=$ac_try;;
2384esac
2385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386  (eval "$ac_link_default") 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; then
2390  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2391# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2392# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2393# so that the user can short-circuit this test for compilers unknown to
2394# Autoconf.
2395for ac_file in $ac_files ''
2396do
2397  test -f "$ac_file" || continue
2398  case $ac_file in
2399    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2400	;;
2401    [ab].out )
2402	# We found the default executable, but exeext='' is most
2403	# certainly right.
2404	break;;
2405    *.* )
2406        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2407	then :; else
2408	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409	fi
2410	# We set ac_cv_exeext here because the later test for it is not
2411	# safe: cross compilers may not add the suffix if given an `-o'
2412	# argument, so we may need to know it at that point already.
2413	# Even if this section looks crufty: it has the advantage of
2414	# actually working.
2415	break;;
2416    * )
2417	break;;
2418  esac
2419done
2420test "$ac_cv_exeext" = no && ac_cv_exeext=
2421
2422else
2423  ac_file=''
2424fi
2425
2426{ echo "$as_me:$LINENO: result: $ac_file" >&5
2427echo "${ECHO_T}$ac_file" >&6; }
2428if test -z "$ac_file"; then
2429  echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: C compiler cannot create executables
2435See \`config.log' for more details." >&2;}
2436   { (exit 77); exit 77; }; }
2437fi
2438
2439ac_exeext=$ac_cv_exeext
2440
2441# Check that the compiler produces executables we can run.  If not, either
2442# the compiler is broken, or we cross compile.
2443{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2444echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2445# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2446# If not cross compiling, check that we can run a simple program.
2447if test "$cross_compiling" != yes; then
2448  if { ac_try='./$ac_file'
2449  { (case "(($ac_try" in
2450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451  *) ac_try_echo=$ac_try;;
2452esac
2453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454  (eval "$ac_try") 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; }; then
2458    cross_compiling=no
2459  else
2460    if test "$cross_compiling" = maybe; then
2461	cross_compiling=yes
2462    else
2463	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464If you meant to cross compile, use \`--host'.
2465See \`config.log' for more details." >&5
2466echo "$as_me: error: cannot run C compiled programs.
2467If you meant to cross compile, use \`--host'.
2468See \`config.log' for more details." >&2;}
2469   { (exit 1); exit 1; }; }
2470    fi
2471  fi
2472fi
2473{ echo "$as_me:$LINENO: result: yes" >&5
2474echo "${ECHO_T}yes" >&6; }
2475
2476rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477ac_clean_files=$ac_clean_files_save
2478# Check that the compiler produces executables we can run.  If not, either
2479# the compiler is broken, or we cross compile.
2480{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2482{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483echo "${ECHO_T}$cross_compiling" >&6; }
2484
2485{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2487if { (ac_try="$ac_link"
2488case "(($ac_try" in
2489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490  *) ac_try_echo=$ac_try;;
2491esac
2492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493  (eval "$ac_link") 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; then
2497  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2498# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2499# work properly (i.e., refer to `conftest.exe'), while it won't with
2500# `rm'.
2501for ac_file in conftest.exe conftest conftest.*; do
2502  test -f "$ac_file" || continue
2503  case $ac_file in
2504    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2505    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506	  break;;
2507    * ) break;;
2508  esac
2509done
2510else
2511  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2512See \`config.log' for more details." >&5
2513echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2514See \`config.log' for more details." >&2;}
2515   { (exit 1); exit 1; }; }
2516fi
2517
2518rm -f conftest$ac_cv_exeext
2519{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2520echo "${ECHO_T}$ac_cv_exeext" >&6; }
2521
2522rm -f conftest.$ac_ext
2523EXEEXT=$ac_cv_exeext
2524ac_exeext=$EXEEXT
2525{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2526echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2527if test "${ac_cv_objext+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h.  */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h.  */
2536
2537int
2538main ()
2539{
2540
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545rm -f conftest.o conftest.obj
2546if { (ac_try="$ac_compile"
2547case "(($ac_try" in
2548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549  *) ac_try_echo=$ac_try;;
2550esac
2551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552  (eval "$ac_compile") 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; then
2556  for ac_file in conftest.o conftest.obj conftest.*; do
2557  test -f "$ac_file" || continue;
2558  case $ac_file in
2559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2560    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2561       break;;
2562  esac
2563done
2564else
2565  echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: cannot compute suffix of object files: cannot compile
2571See \`config.log' for more details." >&2;}
2572   { (exit 1); exit 1; }; }
2573fi
2574
2575rm -f conftest.$ac_cv_objext conftest.$ac_ext
2576fi
2577{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2578echo "${ECHO_T}$ac_cv_objext" >&6; }
2579OBJEXT=$ac_cv_objext
2580ac_objext=$OBJEXT
2581{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2582echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2583if test "${ac_cv_c_compiler_gnu+set}" = set; then
2584  echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
2586  cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h.  */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h.  */
2592
2593int
2594main ()
2595{
2596#ifndef __GNUC__
2597       choke me
2598#endif
2599
2600  ;
2601  return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (ac_try="$ac_compile"
2606case "(($ac_try" in
2607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608  *) ac_try_echo=$ac_try;;
2609esac
2610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611  (eval "$ac_compile") 2>conftest.er1
2612  ac_status=$?
2613  grep -v '^ *+' conftest.er1 >conftest.err
2614  rm -f conftest.er1
2615  cat conftest.err >&5
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); } && {
2618	 test -z "$ac_c_werror_flag" ||
2619	 test ! -s conftest.err
2620       } && test -s conftest.$ac_objext; then
2621  ac_compiler_gnu=yes
2622else
2623  echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626	ac_compiler_gnu=no
2627fi
2628
2629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630ac_cv_c_compiler_gnu=$ac_compiler_gnu
2631
2632fi
2633{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2634echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2635GCC=`test $ac_compiler_gnu = yes && echo yes`
2636ac_test_CFLAGS=${CFLAGS+set}
2637ac_save_CFLAGS=$CFLAGS
2638{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2639echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2640if test "${ac_cv_prog_cc_g+set}" = set; then
2641  echo $ECHO_N "(cached) $ECHO_C" >&6
2642else
2643  ac_save_c_werror_flag=$ac_c_werror_flag
2644   ac_c_werror_flag=yes
2645   ac_cv_prog_cc_g=no
2646   CFLAGS="-g"
2647   cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h.  */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h.  */
2653
2654int
2655main ()
2656{
2657
2658  ;
2659  return 0;
2660}
2661_ACEOF
2662rm -f conftest.$ac_objext
2663if { (ac_try="$ac_compile"
2664case "(($ac_try" in
2665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666  *) ac_try_echo=$ac_try;;
2667esac
2668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669  (eval "$ac_compile") 2>conftest.er1
2670  ac_status=$?
2671  grep -v '^ *+' conftest.er1 >conftest.err
2672  rm -f conftest.er1
2673  cat conftest.err >&5
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); } && {
2676	 test -z "$ac_c_werror_flag" ||
2677	 test ! -s conftest.err
2678       } && test -s conftest.$ac_objext; then
2679  ac_cv_prog_cc_g=yes
2680else
2681  echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684	CFLAGS=""
2685      cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691
2692int
2693main ()
2694{
2695
2696  ;
2697  return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (ac_try="$ac_compile"
2702case "(($ac_try" in
2703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704  *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707  (eval "$ac_compile") 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } && {
2714	 test -z "$ac_c_werror_flag" ||
2715	 test ! -s conftest.err
2716       } && test -s conftest.$ac_objext; then
2717  :
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722	ac_c_werror_flag=$ac_save_c_werror_flag
2723	 CFLAGS="-g"
2724	 cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h.  */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h.  */
2730
2731int
2732main ()
2733{
2734
2735  ;
2736  return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext
2740if { (ac_try="$ac_compile"
2741case "(($ac_try" in
2742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743  *) ac_try_echo=$ac_try;;
2744esac
2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746  (eval "$ac_compile") 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } && {
2753	 test -z "$ac_c_werror_flag" ||
2754	 test ! -s conftest.err
2755       } && test -s conftest.$ac_objext; then
2756  ac_cv_prog_cc_g=yes
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761
2762fi
2763
2764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765fi
2766
2767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768fi
2769
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771   ac_c_werror_flag=$ac_save_c_werror_flag
2772fi
2773{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2774echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2775if test "$ac_test_CFLAGS" = set; then
2776  CFLAGS=$ac_save_CFLAGS
2777elif test $ac_cv_prog_cc_g = yes; then
2778  if test "$GCC" = yes; then
2779    CFLAGS="-g -O2"
2780  else
2781    CFLAGS="-g"
2782  fi
2783else
2784  if test "$GCC" = yes; then
2785    CFLAGS="-O2"
2786  else
2787    CFLAGS=
2788  fi
2789fi
2790{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2791echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2792if test "${ac_cv_prog_cc_c89+set}" = set; then
2793  echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795  ac_cv_prog_cc_c89=no
2796ac_save_CC=$CC
2797cat >conftest.$ac_ext <<_ACEOF
2798/* confdefs.h.  */
2799_ACEOF
2800cat confdefs.h >>conftest.$ac_ext
2801cat >>conftest.$ac_ext <<_ACEOF
2802/* end confdefs.h.  */
2803#include <stdarg.h>
2804#include <stdio.h>
2805#include <sys/types.h>
2806#include <sys/stat.h>
2807/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2808struct buf { int x; };
2809FILE * (*rcsopen) (struct buf *, struct stat *, int);
2810static char *e (p, i)
2811     char **p;
2812     int i;
2813{
2814  return p[i];
2815}
2816static char *f (char * (*g) (char **, int), char **p, ...)
2817{
2818  char *s;
2819  va_list v;
2820  va_start (v,p);
2821  s = g (p, va_arg (v,int));
2822  va_end (v);
2823  return s;
2824}
2825
2826/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2827   function prototypes and stuff, but not '\xHH' hex character constants.
2828   These don't provoke an error unfortunately, instead are silently treated
2829   as 'x'.  The following induces an error, until -std is added to get
2830   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2831   array size at least.  It's necessary to write '\x00'==0 to get something
2832   that's true only with -std.  */
2833int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2834
2835/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2836   inside strings and character constants.  */
2837#define FOO(x) 'x'
2838int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2839
2840int test (int i, double x);
2841struct s1 {int (*f) (int a);};
2842struct s2 {int (*f) (double a);};
2843int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2844int argc;
2845char **argv;
2846int
2847main ()
2848{
2849return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2850  ;
2851  return 0;
2852}
2853_ACEOF
2854for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2855	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856do
2857  CC="$ac_save_CC $ac_arg"
2858  rm -f conftest.$ac_objext
2859if { (ac_try="$ac_compile"
2860case "(($ac_try" in
2861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862  *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865  (eval "$ac_compile") 2>conftest.er1
2866  ac_status=$?
2867  grep -v '^ *+' conftest.er1 >conftest.err
2868  rm -f conftest.er1
2869  cat conftest.err >&5
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); } && {
2872	 test -z "$ac_c_werror_flag" ||
2873	 test ! -s conftest.err
2874       } && test -s conftest.$ac_objext; then
2875  ac_cv_prog_cc_c89=$ac_arg
2876else
2877  echo "$as_me: failed program was:" >&5
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
2880
2881fi
2882
2883rm -f core conftest.err conftest.$ac_objext
2884  test "x$ac_cv_prog_cc_c89" != "xno" && break
2885done
2886rm -f conftest.$ac_ext
2887CC=$ac_save_CC
2888
2889fi
2890# AC_CACHE_VAL
2891case "x$ac_cv_prog_cc_c89" in
2892  x)
2893    { echo "$as_me:$LINENO: result: none needed" >&5
2894echo "${ECHO_T}none needed" >&6; } ;;
2895  xno)
2896    { echo "$as_me:$LINENO: result: unsupported" >&5
2897echo "${ECHO_T}unsupported" >&6; } ;;
2898  *)
2899    CC="$CC $ac_cv_prog_cc_c89"
2900    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2901echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2902esac
2903
2904
2905ac_ext=c
2906ac_cpp='$CPP $CPPFLAGS'
2907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913
2914
2915    if test "$GCC" = yes ; then
2916	    if test "$SHLICC2" = yes ; then
2917		    ac_cv_lbl_gcc_vers=2
2918		    V_CCOPT="-O2"
2919	    else
2920		    { echo "$as_me:$LINENO: checking gcc version" >&5
2921echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2922		    if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2923  echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2926			    sed -e '/^gcc version /!d' \
2927				-e 's/^gcc version //' \
2928				-e 's/ .*//' -e 's/^[^0-9]*//' \
2929				-e 's/\..*//'`
2930fi
2931
2932		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2933echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2934		    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2935			    V_CCOPT="-O2"
2936		    fi
2937	    fi
2938    else
2939	    { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2940echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2941	    if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2942  echo $ECHO_N "(cached) $ECHO_C" >&6
2943else
2944
2945cat >conftest.$ac_ext <<_ACEOF
2946/* confdefs.h.  */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h.  */
2951#include <sys/types.h>
2952int
2953main ()
2954{
2955int frob(int, char *)
2956  ;
2957  return 0;
2958}
2959_ACEOF
2960rm -f conftest.$ac_objext
2961if { (ac_try="$ac_compile"
2962case "(($ac_try" in
2963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964  *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967  (eval "$ac_compile") 2>conftest.er1
2968  ac_status=$?
2969  grep -v '^ *+' conftest.er1 >conftest.err
2970  rm -f conftest.er1
2971  cat conftest.err >&5
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); } && {
2974	 test -z "$ac_c_werror_flag" ||
2975	 test ! -s conftest.err
2976       } && test -s conftest.$ac_objext; then
2977  ac_cv_lbl_cc_ansi_prototypes=yes
2978else
2979  echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982	ac_cv_lbl_cc_ansi_prototypes=no
2983fi
2984
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986fi
2987
2988	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2989echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2990	    if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2991		    case "$host_os" in
2992
2993		    hpux*)
2994			    { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2995echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2996			    savedcflags="$CFLAGS"
2997			    CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2998			    if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2999  echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001  cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h.  */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h.  */
3007#include <sys/types.h>
3008int
3009main ()
3010{
3011int frob(int, char *)
3012  ;
3013  return 0;
3014}
3015_ACEOF
3016rm -f conftest.$ac_objext
3017if { (ac_try="$ac_compile"
3018case "(($ac_try" in
3019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020  *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023  (eval "$ac_compile") 2>conftest.er1
3024  ac_status=$?
3025  grep -v '^ *+' conftest.er1 >conftest.err
3026  rm -f conftest.er1
3027  cat conftest.err >&5
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); } && {
3030	 test -z "$ac_c_werror_flag" ||
3031	 test ! -s conftest.err
3032       } && test -s conftest.$ac_objext; then
3033  ac_cv_lbl_cc_hpux_cc_aa=yes
3034else
3035  echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038	ac_cv_lbl_cc_hpux_cc_aa=no
3039fi
3040
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042fi
3043
3044			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3045echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3046			    if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3047				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3048echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3049   { (exit 1); exit 1; }; }
3050			    fi
3051			    CFLAGS="$savedcflags"
3052			    V_CCOPT="-Aa $V_CCOPT"
3053
3054cat >>confdefs.h <<\_ACEOF
3055#define _HPUX_SOURCE 1
3056_ACEOF
3057
3058			    ;;
3059
3060		    osf*)
3061			    { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3062echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3063			    savedcflags="$CFLAGS"
3064			    CFLAGS="-std1"
3065			    if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3066  echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068  cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h.  */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h.  */
3074#include <sys/types.h>
3075int
3076main ()
3077{
3078int frob(int, char *)
3079  ;
3080  return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090  (eval "$ac_compile") 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } && {
3097	 test -z "$ac_c_werror_flag" ||
3098	 test ! -s conftest.err
3099       } && test -s conftest.$ac_objext; then
3100  ac_cv_lbl_cc_osf1_cc_std1=yes
3101else
3102  echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105	ac_cv_lbl_cc_osf1_cc_std1=no
3106fi
3107
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109fi
3110
3111			    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3112echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3113			    if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3114				    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3115echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3116   { (exit 1); exit 1; }; }
3117			    fi
3118			    CFLAGS="$savedcflags"
3119			    V_CCOPT="-std1 $V_CCOPT"
3120			    ;;
3121
3122		    *)
3123			    { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3124echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3125   { (exit 1); exit 1; }; }
3126			    ;;
3127		    esac
3128	    fi
3129	    V_INCLS="$V_INCLS -I/usr/local/include"
3130	    LDFLAGS="$LDFLAGS -L/usr/local/lib"
3131
3132	    case "$host_os" in
3133
3134	    irix*)
3135		    V_CCOPT="$V_CCOPT -xansi -signed -g3"
3136		    ;;
3137
3138	    osf*)
3139	    	    #
3140		    # Presumed to be DEC OSF/1, Digital UNIX, or
3141		    # Tru64 UNIX.
3142		    #
3143		    V_CCOPT="$V_CCOPT -g3"
3144		    ;;
3145
3146	    ultrix*)
3147		    { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3148echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3149		    if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158#include <sys/types.h>
3159int
3160main ()
3161{
3162struct a { int b; };
3163			    void c(const struct a *)
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175  (eval "$ac_compile") 2>conftest.er1
3176  ac_status=$?
3177  grep -v '^ *+' conftest.er1 >conftest.err
3178  rm -f conftest.er1
3179  cat conftest.err >&5
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); } && {
3182	 test -z "$ac_c_werror_flag" ||
3183	 test ! -s conftest.err
3184       } && test -s conftest.$ac_objext; then
3185  ac_cv_lbl_cc_const_proto=yes
3186else
3187  echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190	ac_cv_lbl_cc_const_proto=no
3191fi
3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
3195
3196		    { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3197echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3198		    if test $ac_cv_lbl_cc_const_proto = no ; then
3199
3200cat >>confdefs.h <<\_ACEOF
3201#define const
3202_ACEOF
3203
3204		    fi
3205		    ;;
3206	    esac
3207    fi
3208
3209
3210    if test "$GCC" = yes ; then
3211	    #
3212	    # On platforms where we build a shared library:
3213	    #
3214	    #	add options to generate position-independent code,
3215	    #	if necessary (it's the default in AIX and Darwin/OS X);
3216	    #
3217	    #	define option to set the soname of the shared library,
3218	    #	if the OS supports that;
3219	    #
3220	    #	add options to specify, at link time, a directory to
3221	    #	add to the run-time search path, if that's necessary.
3222	    #
3223	    V_SHLIB_CMD="\$(CC)"
3224	    V_SHLIB_OPT="-shared"
3225	    case "$host_os" in
3226
3227	    aix*)
3228		    ;;
3229
3230	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3231	    	    #
3232		    # Platforms where the linker is the GNU linker
3233		    # or accepts command-line arguments like
3234		    # those the GNU linker accepts.
3235		    #
3236		    # Some instruction sets require -fPIC on some
3237		    # operating systems.  Check for them.  If you
3238		    # have a combination that requires it, add it
3239		    # here.
3240		    #
3241		    PIC_OPT=-fpic
3242		    case "$host_cpu" in
3243
3244		    sparc64*)
3245			case "$host_os" in
3246
3247			freebsd*)
3248			    PIC_OPT=-fPIC
3249			    ;;
3250			esac
3251			;;
3252		    esac
3253		    V_CCOPT="$V_CCOPT $PIC_OPT"
3254		    V_SONAME_OPT="-Wl,-soname,"
3255		    V_RPATH_OPT="-Wl,-rpath,"
3256		    ;;
3257
3258	    hpux*)
3259		    V_CCOPT="$V_CCOPT -fpic"
3260	    	    #
3261		    # XXX - this assumes GCC is using the HP linker,
3262		    # rather than the GNU linker, and that the "+h"
3263		    # option is used on all HP-UX platforms, both .sl
3264		    # and .so.
3265		    #
3266		    V_SONAME_OPT="-Wl,+h,"
3267		    #
3268		    # By default, directories specifed with -L
3269		    # are added to the run-time search path, so
3270		    # we don't add them in pcap-config.
3271		    #
3272		    ;;
3273
3274	    solaris*)
3275		    V_CCOPT="$V_CCOPT -fpic"
3276		    #
3277		    # XXX - this assumes GCC is using the Sun linker,
3278		    # rather than the GNU linker.
3279		    #
3280		    V_SONAME_OPT="-Wl,-h,"
3281		    V_RPATH_OPT="-Wl,-R,"
3282		    ;;
3283	    esac
3284    else
3285	    #
3286	    # Set the appropriate compiler flags and, on platforms
3287	    # where we build a shared library:
3288	    #
3289	    #	add options to generate position-independent code,
3290	    #	if necessary (it's the default in Darwin/OS X);
3291	    #
3292	    #	if we generate ".so" shared libraries, define the
3293	    #	appropriate options for building the shared library;
3294	    #
3295	    #	add options to specify, at link time, a directory to
3296	    #	add to the run-time search path, if that's necessary.
3297	    #
3298	    # Note: spaces after V_SONAME_OPT are significant; on
3299	    # some platforms the soname is passed with a GCC-like
3300	    # "-Wl,-soname,{soname}" option, with the soname part
3301	    # of the option, while on other platforms the C compiler
3302	    # driver takes it as a regular option with the soname
3303	    # following the option.  The same applies to V_RPATH_OPT.
3304	    #
3305	    case "$host_os" in
3306
3307	    aix*)
3308		    V_SHLIB_CMD="\$(CC)"
3309		    V_SHLIB_OPT="-G -bnoentry -bexpall"
3310		    ;;
3311
3312	    freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3313		    #
3314		    # "cc" is GCC.
3315		    #
3316		    V_CCOPT="$V_CCOPT -fpic"
3317		    V_SHLIB_CMD="\$(CC)"
3318		    V_SHLIB_OPT="-shared"
3319		    V_SONAME_OPT="-Wl,-soname,"
3320		    V_RPATH_OPT="-Wl,-rpath,"
3321		    ;;
3322
3323	    hpux*)
3324		    V_CCOPT="$V_CCOPT +z"
3325		    V_SHLIB_CMD="\$(LD)"
3326		    V_SHLIB_OPT="-b"
3327		    V_SONAME_OPT="+h "
3328		    #
3329		    # By default, directories specifed with -L
3330		    # are added to the run-time search path, so
3331		    # we don't add them in pcap-config.
3332		    #
3333		    ;;
3334
3335	    osf*)
3336	    	    #
3337		    # Presumed to be DEC OSF/1, Digital UNIX, or
3338		    # Tru64 UNIX.
3339		    #
3340		    V_SHLIB_CMD="\$(CC)"
3341		    V_SHLIB_OPT="-shared"
3342		    V_SONAME_OPT="-soname "
3343		    V_RPATH_OPT="-rpath "
3344		    ;;
3345
3346	    solaris*)
3347		    V_CCOPT="$V_CCOPT -Kpic"
3348		    V_SHLIB_CMD="\$(CC)"
3349		    V_SHLIB_OPT="-G"
3350		    V_SONAME_OPT="-h "
3351		    V_RPATH_OPT="-R"
3352		    ;;
3353	    esac
3354    fi
3355
3356{ echo "$as_me:$LINENO: checking for inline" >&5
3357echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3358    save_CFLAGS="$CFLAGS"
3359    CFLAGS="$V_CCOPT"
3360    if test "${ac_cv_lbl_inline+set}" = set; then
3361  echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363
3364	ac_cv_lbl_inline=""
3365	ac_lbl_cc_inline=no
3366	for ac_lbl_inline in inline __inline__ __inline
3367	do
3368	    cat >conftest.$ac_ext <<_ACEOF
3369/* confdefs.h.  */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h.  */
3374#define inline $ac_lbl_inline
3375		static inline struct iltest *foo(void);
3376		struct iltest {
3377		    int iltest1;
3378		    int iltest2;
3379		};
3380
3381		static inline struct iltest *
3382		foo()
3383		{
3384		    static struct iltest xxx;
3385
3386		    return &xxx;
3387		}
3388int
3389main ()
3390{
3391
3392  ;
3393  return 0;
3394}
3395_ACEOF
3396rm -f conftest.$ac_objext
3397if { (ac_try="$ac_compile"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403  (eval "$ac_compile") 2>conftest.er1
3404  ac_status=$?
3405  grep -v '^ *+' conftest.er1 >conftest.err
3406  rm -f conftest.er1
3407  cat conftest.err >&5
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); } && {
3410	 test -z "$ac_c_werror_flag" ||
3411	 test ! -s conftest.err
3412       } && test -s conftest.$ac_objext; then
3413  ac_lbl_cc_inline=yes
3414else
3415  echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418
3419fi
3420
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422	    if test "$ac_lbl_cc_inline" = yes ; then
3423		break;
3424	    fi
3425	done
3426	if test "$ac_lbl_cc_inline" = yes ; then
3427	    ac_cv_lbl_inline=$ac_lbl_inline
3428	fi
3429fi
3430
3431    CFLAGS="$save_CFLAGS"
3432    if test ! -z "$ac_cv_lbl_inline" ; then
3433	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3434echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3435    else
3436	{ echo "$as_me:$LINENO: result: no" >&5
3437echo "${ECHO_T}no" >&6; }
3438    fi
3439
3440cat >>confdefs.h <<_ACEOF
3441#define inline $ac_cv_lbl_inline
3442_ACEOF
3443
3444
3445{ echo "$as_me:$LINENO: checking for __attribute__" >&5
3446echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3447if test "${ac_cv___attribute__+set}" = set; then
3448  echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450
3451cat >conftest.$ac_ext <<_ACEOF
3452/* confdefs.h.  */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
3456/* end confdefs.h.  */
3457
3458#include <stdlib.h>
3459
3460static void foo(void) __attribute__ ((noreturn));
3461
3462static void
3463foo(void)
3464{
3465  exit(1);
3466}
3467
3468int
3469main(int argc, char **argv)
3470{
3471  foo();
3472}
3473
3474_ACEOF
3475rm -f conftest.$ac_objext
3476if { (ac_try="$ac_compile"
3477case "(($ac_try" in
3478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479  *) ac_try_echo=$ac_try;;
3480esac
3481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482  (eval "$ac_compile") 2>conftest.er1
3483  ac_status=$?
3484  grep -v '^ *+' conftest.er1 >conftest.err
3485  rm -f conftest.er1
3486  cat conftest.err >&5
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); } && {
3489	 test -z "$ac_c_werror_flag" ||
3490	 test ! -s conftest.err
3491       } && test -s conftest.$ac_objext; then
3492  ac_cv___attribute__=yes
3493else
3494  echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
3497	ac_cv___attribute__=no
3498fi
3499
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501fi
3502
3503if test "$ac_cv___attribute__" = "yes"; then
3504
3505cat >>confdefs.h <<\_ACEOF
3506#define HAVE___ATTRIBUTE__ 1
3507_ACEOF
3508
3509  V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3510else
3511  V_DEFS="$V_DEFS -D_U_=\"\""
3512fi
3513{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3514echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3515
3516
3517ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3523echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3524# On Suns, sometimes $CPP names a directory.
3525if test -n "$CPP" && test -d "$CPP"; then
3526  CPP=
3527fi
3528if test -z "$CPP"; then
3529  if test "${ac_cv_prog_CPP+set}" = set; then
3530  echo $ECHO_N "(cached) $ECHO_C" >&6
3531else
3532      # Double quotes because CPP needs to be expanded
3533    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3534    do
3535      ac_preproc_ok=false
3536for ac_c_preproc_warn_flag in '' yes
3537do
3538  # Use a header file that comes with gcc, so configuring glibc
3539  # with a fresh cross-compiler works.
3540  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541  # <limits.h> exists even on freestanding compilers.
3542  # On the NeXT, cc -E runs the code through the compiler's parser,
3543  # not just through cpp. "Syntax error" is here to catch this case.
3544  cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h.  */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h.  */
3550#ifdef __STDC__
3551# include <limits.h>
3552#else
3553# include <assert.h>
3554#endif
3555		     Syntax error
3556_ACEOF
3557if { (ac_try="$ac_cpp conftest.$ac_ext"
3558case "(($ac_try" in
3559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560  *) ac_try_echo=$ac_try;;
3561esac
3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564  ac_status=$?
3565  grep -v '^ *+' conftest.er1 >conftest.err
3566  rm -f conftest.er1
3567  cat conftest.err >&5
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); } >/dev/null && {
3570	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571	 test ! -s conftest.err
3572       }; then
3573  :
3574else
3575  echo "$as_me: failed program was:" >&5
3576sed 's/^/| /' conftest.$ac_ext >&5
3577
3578  # Broken: fails on valid input.
3579continue
3580fi
3581
3582rm -f conftest.err conftest.$ac_ext
3583
3584  # OK, works on sane cases.  Now check whether nonexistent headers
3585  # can be detected and how.
3586  cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592#include <ac_nonexistent.h>
3593_ACEOF
3594if { (ac_try="$ac_cpp conftest.$ac_ext"
3595case "(($ac_try" in
3596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597  *) ac_try_echo=$ac_try;;
3598esac
3599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601  ac_status=$?
3602  grep -v '^ *+' conftest.er1 >conftest.err
3603  rm -f conftest.er1
3604  cat conftest.err >&5
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); } >/dev/null && {
3607	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608	 test ! -s conftest.err
3609       }; then
3610  # Broken: success on invalid input.
3611continue
3612else
3613  echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616  # Passes both tests.
3617ac_preproc_ok=:
3618break
3619fi
3620
3621rm -f conftest.err conftest.$ac_ext
3622
3623done
3624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3625rm -f conftest.err conftest.$ac_ext
3626if $ac_preproc_ok; then
3627  break
3628fi
3629
3630    done
3631    ac_cv_prog_CPP=$CPP
3632
3633fi
3634  CPP=$ac_cv_prog_CPP
3635else
3636  ac_cv_prog_CPP=$CPP
3637fi
3638{ echo "$as_me:$LINENO: result: $CPP" >&5
3639echo "${ECHO_T}$CPP" >&6; }
3640ac_preproc_ok=false
3641for ac_c_preproc_warn_flag in '' yes
3642do
3643  # Use a header file that comes with gcc, so configuring glibc
3644  # with a fresh cross-compiler works.
3645  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646  # <limits.h> exists even on freestanding compilers.
3647  # On the NeXT, cc -E runs the code through the compiler's parser,
3648  # not just through cpp. "Syntax error" is here to catch this case.
3649  cat >conftest.$ac_ext <<_ACEOF
3650/* confdefs.h.  */
3651_ACEOF
3652cat confdefs.h >>conftest.$ac_ext
3653cat >>conftest.$ac_ext <<_ACEOF
3654/* end confdefs.h.  */
3655#ifdef __STDC__
3656# include <limits.h>
3657#else
3658# include <assert.h>
3659#endif
3660		     Syntax error
3661_ACEOF
3662if { (ac_try="$ac_cpp conftest.$ac_ext"
3663case "(($ac_try" in
3664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665  *) ac_try_echo=$ac_try;;
3666esac
3667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3669  ac_status=$?
3670  grep -v '^ *+' conftest.er1 >conftest.err
3671  rm -f conftest.er1
3672  cat conftest.err >&5
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); } >/dev/null && {
3675	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3676	 test ! -s conftest.err
3677       }; then
3678  :
3679else
3680  echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683  # Broken: fails on valid input.
3684continue
3685fi
3686
3687rm -f conftest.err conftest.$ac_ext
3688
3689  # OK, works on sane cases.  Now check whether nonexistent headers
3690  # can be detected and how.
3691  cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h.  */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h.  */
3697#include <ac_nonexistent.h>
3698_ACEOF
3699if { (ac_try="$ac_cpp conftest.$ac_ext"
3700case "(($ac_try" in
3701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702  *) ac_try_echo=$ac_try;;
3703esac
3704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } >/dev/null && {
3712	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3713	 test ! -s conftest.err
3714       }; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725
3726rm -f conftest.err conftest.$ac_ext
3727
3728done
3729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730rm -f conftest.err conftest.$ac_ext
3731if $ac_preproc_ok; then
3732  :
3733else
3734  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735See \`config.log' for more details." >&5
3736echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737See \`config.log' for more details." >&2;}
3738   { (exit 1); exit 1; }; }
3739fi
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750if test "${ac_cv_path_GREP+set}" = set; then
3751  echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753  # Extract the first word of "grep ggrep" to use in msg output
3754if test -z "$GREP"; then
3755set dummy grep ggrep; ac_prog_name=$2
3756if test "${ac_cv_path_GREP+set}" = set; then
3757  echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759  ac_path_GREP_found=false
3760# Loop through the user's path and test for each of PROGNAME-LIST
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763do
3764  IFS=$as_save_IFS
3765  test -z "$as_dir" && as_dir=.
3766  for ac_prog in grep ggrep; do
3767  for ac_exec_ext in '' $ac_executable_extensions; do
3768    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3769    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3770    # Check for GNU ac_path_GREP and select it if it is found.
3771  # Check for GNU $ac_path_GREP
3772case `"$ac_path_GREP" --version 2>&1` in
3773*GNU*)
3774  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3775*)
3776  ac_count=0
3777  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778  while :
3779  do
3780    cat "conftest.in" "conftest.in" >"conftest.tmp"
3781    mv "conftest.tmp" "conftest.in"
3782    cp "conftest.in" "conftest.nl"
3783    echo 'GREP' >> "conftest.nl"
3784    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786    ac_count=`expr $ac_count + 1`
3787    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788      # Best one so far, save it but keep looking for a better one
3789      ac_cv_path_GREP="$ac_path_GREP"
3790      ac_path_GREP_max=$ac_count
3791    fi
3792    # 10*(2^10) chars as input seems more than enough
3793    test $ac_count -gt 10 && break
3794  done
3795  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796esac
3797
3798
3799    $ac_path_GREP_found && break 3
3800  done
3801done
3802
3803done
3804IFS=$as_save_IFS
3805
3806
3807fi
3808
3809GREP="$ac_cv_path_GREP"
3810if test -z "$GREP"; then
3811  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813   { (exit 1); exit 1; }; }
3814fi
3815
3816else
3817  ac_cv_path_GREP=$GREP
3818fi
3819
3820
3821fi
3822{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824 GREP="$ac_cv_path_GREP"
3825
3826
3827{ echo "$as_me:$LINENO: checking for egrep" >&5
3828echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829if test "${ac_cv_path_EGREP+set}" = set; then
3830  echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833   then ac_cv_path_EGREP="$GREP -E"
3834   else
3835     # Extract the first word of "egrep" to use in msg output
3836if test -z "$EGREP"; then
3837set dummy egrep; ac_prog_name=$2
3838if test "${ac_cv_path_EGREP+set}" = set; then
3839  echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841  ac_path_EGREP_found=false
3842# Loop through the user's path and test for each of PROGNAME-LIST
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845do
3846  IFS=$as_save_IFS
3847  test -z "$as_dir" && as_dir=.
3848  for ac_prog in egrep; do
3849  for ac_exec_ext in '' $ac_executable_extensions; do
3850    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3852    # Check for GNU ac_path_EGREP and select it if it is found.
3853  # Check for GNU $ac_path_EGREP
3854case `"$ac_path_EGREP" --version 2>&1` in
3855*GNU*)
3856  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3857*)
3858  ac_count=0
3859  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860  while :
3861  do
3862    cat "conftest.in" "conftest.in" >"conftest.tmp"
3863    mv "conftest.tmp" "conftest.in"
3864    cp "conftest.in" "conftest.nl"
3865    echo 'EGREP' >> "conftest.nl"
3866    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868    ac_count=`expr $ac_count + 1`
3869    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870      # Best one so far, save it but keep looking for a better one
3871      ac_cv_path_EGREP="$ac_path_EGREP"
3872      ac_path_EGREP_max=$ac_count
3873    fi
3874    # 10*(2^10) chars as input seems more than enough
3875    test $ac_count -gt 10 && break
3876  done
3877  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878esac
3879
3880
3881    $ac_path_EGREP_found && break 3
3882  done
3883done
3884
3885done
3886IFS=$as_save_IFS
3887
3888
3889fi
3890
3891EGREP="$ac_cv_path_EGREP"
3892if test -z "$EGREP"; then
3893  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895   { (exit 1); exit 1; }; }
3896fi
3897
3898else
3899  ac_cv_path_EGREP=$EGREP
3900fi
3901
3902
3903   fi
3904fi
3905{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3908
3909
3910{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912if test "${ac_cv_header_stdc+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h.  */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h.  */
3921#include <stdlib.h>
3922#include <stdarg.h>
3923#include <string.h>
3924#include <float.h>
3925
3926int
3927main ()
3928{
3929
3930  ;
3931  return 0;
3932}
3933_ACEOF
3934rm -f conftest.$ac_objext
3935if { (ac_try="$ac_compile"
3936case "(($ac_try" in
3937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938  *) ac_try_echo=$ac_try;;
3939esac
3940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941  (eval "$ac_compile") 2>conftest.er1
3942  ac_status=$?
3943  grep -v '^ *+' conftest.er1 >conftest.err
3944  rm -f conftest.er1
3945  cat conftest.err >&5
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); } && {
3948	 test -z "$ac_c_werror_flag" ||
3949	 test ! -s conftest.err
3950       } && test -s conftest.$ac_objext; then
3951  ac_cv_header_stdc=yes
3952else
3953  echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956	ac_cv_header_stdc=no
3957fi
3958
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961if test $ac_cv_header_stdc = yes; then
3962  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963  cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h.  */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h.  */
3969#include <string.h>
3970
3971_ACEOF
3972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973  $EGREP "memchr" >/dev/null 2>&1; then
3974  :
3975else
3976  ac_cv_header_stdc=no
3977fi
3978rm -f -r conftest*
3979
3980fi
3981
3982if test $ac_cv_header_stdc = yes; then
3983  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3984  cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h.  */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h.  */
3990#include <stdlib.h>
3991
3992_ACEOF
3993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994  $EGREP "free" >/dev/null 2>&1; then
3995  :
3996else
3997  ac_cv_header_stdc=no
3998fi
3999rm -f -r conftest*
4000
4001fi
4002
4003if test $ac_cv_header_stdc = yes; then
4004  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4005  if test "$cross_compiling" = yes; then
4006  :
4007else
4008  cat >conftest.$ac_ext <<_ACEOF
4009/* confdefs.h.  */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h.  */
4014#include <ctype.h>
4015#include <stdlib.h>
4016#if ((' ' & 0x0FF) == 0x020)
4017# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4018# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4019#else
4020# define ISLOWER(c) \
4021		   (('a' <= (c) && (c) <= 'i') \
4022		     || ('j' <= (c) && (c) <= 'r') \
4023		     || ('s' <= (c) && (c) <= 'z'))
4024# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4025#endif
4026
4027#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4028int
4029main ()
4030{
4031  int i;
4032  for (i = 0; i < 256; i++)
4033    if (XOR (islower (i), ISLOWER (i))
4034	|| toupper (i) != TOUPPER (i))
4035      return 2;
4036  return 0;
4037}
4038_ACEOF
4039rm -f conftest$ac_exeext
4040if { (ac_try="$ac_link"
4041case "(($ac_try" in
4042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043  *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046  (eval "$ac_link") 2>&5
4047  ac_status=$?
4048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4050  { (case "(($ac_try" in
4051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052  *) ac_try_echo=$ac_try;;
4053esac
4054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055  (eval "$ac_try") 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; }; then
4059  :
4060else
4061  echo "$as_me: program exited with status $ac_status" >&5
4062echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065( exit $ac_status )
4066ac_cv_header_stdc=no
4067fi
4068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069fi
4070
4071
4072fi
4073fi
4074{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4075echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4076if test $ac_cv_header_stdc = yes; then
4077
4078cat >>confdefs.h <<\_ACEOF
4079#define STDC_HEADERS 1
4080_ACEOF
4081
4082fi
4083
4084# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095		  inttypes.h stdint.h unistd.h
4096do
4097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103  cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h.  */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h.  */
4109$ac_includes_default
4110
4111#include <$ac_header>
4112_ACEOF
4113rm -f conftest.$ac_objext
4114if { (ac_try="$ac_compile"
4115case "(($ac_try" in
4116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117  *) ac_try_echo=$ac_try;;
4118esac
4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120  (eval "$ac_compile") 2>conftest.er1
4121  ac_status=$?
4122  grep -v '^ *+' conftest.er1 >conftest.err
4123  rm -f conftest.er1
4124  cat conftest.err >&5
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); } && {
4127	 test -z "$ac_c_werror_flag" ||
4128	 test ! -s conftest.err
4129       } && test -s conftest.$ac_objext; then
4130  eval "$as_ac_Header=yes"
4131else
4132  echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135	eval "$as_ac_Header=no"
4136fi
4137
4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139fi
4140ac_res=`eval echo '${'$as_ac_Header'}'`
4141	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4142echo "${ECHO_T}$ac_res" >&6; }
4143if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144  cat >>confdefs.h <<_ACEOF
4145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146_ACEOF
4147
4148fi
4149
4150done
4151
4152
4153
4154for ac_header in sys/bitypes.h
4155do
4156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4158  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162fi
4163ac_res=`eval echo '${'$as_ac_Header'}'`
4164	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4165echo "${ECHO_T}$ac_res" >&6; }
4166else
4167  # Is the header compilable?
4168{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4170cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h.  */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h.  */
4176$ac_includes_default
4177#include <$ac_header>
4178_ACEOF
4179rm -f conftest.$ac_objext
4180if { (ac_try="$ac_compile"
4181case "(($ac_try" in
4182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183  *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186  (eval "$ac_compile") 2>conftest.er1
4187  ac_status=$?
4188  grep -v '^ *+' conftest.er1 >conftest.err
4189  rm -f conftest.er1
4190  cat conftest.err >&5
4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192  (exit $ac_status); } && {
4193	 test -z "$ac_c_werror_flag" ||
4194	 test ! -s conftest.err
4195       } && test -s conftest.$ac_objext; then
4196  ac_header_compiler=yes
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201	ac_header_compiler=no
4202fi
4203
4204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4206echo "${ECHO_T}$ac_header_compiler" >&6; }
4207
4208# Is the header present?
4209{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4211cat >conftest.$ac_ext <<_ACEOF
4212/* confdefs.h.  */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h.  */
4217#include <$ac_header>
4218_ACEOF
4219if { (ac_try="$ac_cpp conftest.$ac_ext"
4220case "(($ac_try" in
4221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222  *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226  ac_status=$?
4227  grep -v '^ *+' conftest.er1 >conftest.err
4228  rm -f conftest.er1
4229  cat conftest.err >&5
4230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231  (exit $ac_status); } >/dev/null && {
4232	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233	 test ! -s conftest.err
4234       }; then
4235  ac_header_preproc=yes
4236else
4237  echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240  ac_header_preproc=no
4241fi
4242
4243rm -f conftest.err conftest.$ac_ext
4244{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4245echo "${ECHO_T}$ac_header_preproc" >&6; }
4246
4247# So?  What about this header?
4248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4249  yes:no: )
4250    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4252    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4254    ac_header_preproc=yes
4255    ;;
4256  no:yes:* )
4257    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4259    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4260echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4261    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4263    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4264echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4265    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4267    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4269
4270    ;;
4271esac
4272{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4275  echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277  eval "$as_ac_Header=\$ac_header_preproc"
4278fi
4279ac_res=`eval echo '${'$as_ac_Header'}'`
4280	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4281echo "${ECHO_T}$ac_res" >&6; }
4282
4283fi
4284if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285  cat >>confdefs.h <<_ACEOF
4286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287_ACEOF
4288
4289fi
4290
4291done
4292
4293
4294{ echo "$as_me:$LINENO: checking for int8_t" >&5
4295echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4296if test "${ac_cv_type_int8_t+set}" = set; then
4297  echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299  cat >conftest.$ac_ext <<_ACEOF
4300/* confdefs.h.  */
4301_ACEOF
4302cat confdefs.h >>conftest.$ac_ext
4303cat >>conftest.$ac_ext <<_ACEOF
4304/* end confdefs.h.  */
4305$ac_includes_default
4306#ifdef HAVE_SYS_BITYPES_H
4307#include <sys/bitypes.h>
4308#endif
4309
4310typedef int8_t ac__type_new_;
4311int
4312main ()
4313{
4314if ((ac__type_new_ *) 0)
4315  return 0;
4316if (sizeof (ac__type_new_))
4317  return 0;
4318  ;
4319  return 0;
4320}
4321_ACEOF
4322rm -f conftest.$ac_objext
4323if { (ac_try="$ac_compile"
4324case "(($ac_try" in
4325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326  *) ac_try_echo=$ac_try;;
4327esac
4328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329  (eval "$ac_compile") 2>conftest.er1
4330  ac_status=$?
4331  grep -v '^ *+' conftest.er1 >conftest.err
4332  rm -f conftest.er1
4333  cat conftest.err >&5
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); } && {
4336	 test -z "$ac_c_werror_flag" ||
4337	 test ! -s conftest.err
4338       } && test -s conftest.$ac_objext; then
4339  ac_cv_type_int8_t=yes
4340else
4341  echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344	ac_cv_type_int8_t=no
4345fi
4346
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
4349{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4350echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4351if test $ac_cv_type_int8_t = yes; then
4352  :
4353else
4354
4355cat >>confdefs.h <<\_ACEOF
4356#define int8_t signed char
4357_ACEOF
4358
4359fi
4360
4361{ echo "$as_me:$LINENO: checking for u_int8_t" >&5
4362echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4363if test "${ac_cv_type_u_int8_t+set}" = set; then
4364  echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366  cat >conftest.$ac_ext <<_ACEOF
4367/* confdefs.h.  */
4368_ACEOF
4369cat confdefs.h >>conftest.$ac_ext
4370cat >>conftest.$ac_ext <<_ACEOF
4371/* end confdefs.h.  */
4372$ac_includes_default
4373#ifdef HAVE_SYS_BITYPES_H
4374#include <sys/bitypes.h>
4375#endif
4376
4377typedef u_int8_t ac__type_new_;
4378int
4379main ()
4380{
4381if ((ac__type_new_ *) 0)
4382  return 0;
4383if (sizeof (ac__type_new_))
4384  return 0;
4385  ;
4386  return 0;
4387}
4388_ACEOF
4389rm -f conftest.$ac_objext
4390if { (ac_try="$ac_compile"
4391case "(($ac_try" in
4392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393  *) ac_try_echo=$ac_try;;
4394esac
4395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396  (eval "$ac_compile") 2>conftest.er1
4397  ac_status=$?
4398  grep -v '^ *+' conftest.er1 >conftest.err
4399  rm -f conftest.er1
4400  cat conftest.err >&5
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); } && {
4403	 test -z "$ac_c_werror_flag" ||
4404	 test ! -s conftest.err
4405       } && test -s conftest.$ac_objext; then
4406  ac_cv_type_u_int8_t=yes
4407else
4408  echo "$as_me: failed program was:" >&5
4409sed 's/^/| /' conftest.$ac_ext >&5
4410
4411	ac_cv_type_u_int8_t=no
4412fi
4413
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415fi
4416{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4417echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4418if test $ac_cv_type_u_int8_t = yes; then
4419  :
4420else
4421
4422cat >>confdefs.h <<\_ACEOF
4423#define u_int8_t unsigned char
4424_ACEOF
4425
4426fi
4427
4428{ echo "$as_me:$LINENO: checking for int16_t" >&5
4429echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4430if test "${ac_cv_type_int16_t+set}" = set; then
4431  echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433  cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h.  */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h.  */
4439$ac_includes_default
4440typedef int16_t ac__type_new_;
4441int
4442main ()
4443{
4444if ((ac__type_new_ *) 0)
4445  return 0;
4446if (sizeof (ac__type_new_))
4447  return 0;
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452rm -f conftest.$ac_objext
4453if { (ac_try="$ac_compile"
4454case "(($ac_try" in
4455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456  *) ac_try_echo=$ac_try;;
4457esac
4458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459  (eval "$ac_compile") 2>conftest.er1
4460  ac_status=$?
4461  grep -v '^ *+' conftest.er1 >conftest.err
4462  rm -f conftest.er1
4463  cat conftest.err >&5
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); } && {
4466	 test -z "$ac_c_werror_flag" ||
4467	 test ! -s conftest.err
4468       } && test -s conftest.$ac_objext; then
4469  ac_cv_type_int16_t=yes
4470else
4471  echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474	ac_cv_type_int16_t=no
4475fi
4476
4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478fi
4479{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4480echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4481if test $ac_cv_type_int16_t = yes; then
4482  :
4483else
4484
4485cat >>confdefs.h <<\_ACEOF
4486#define int16_t short
4487_ACEOF
4488
4489	$ac_includes_default
4490#ifdef HAVE_SYS_BITYPES_H
4491#include <sys/bitypes.h>
4492#endif
4493fi
4494
4495{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
4496echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4497if test "${ac_cv_type_u_int16_t+set}" = set; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500  cat >conftest.$ac_ext <<_ACEOF
4501/* confdefs.h.  */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h.  */
4506$ac_includes_default
4507#ifdef HAVE_SYS_BITYPES_H
4508#include <sys/bitypes.h>
4509#endif
4510
4511typedef u_int16_t ac__type_new_;
4512int
4513main ()
4514{
4515if ((ac__type_new_ *) 0)
4516  return 0;
4517if (sizeof (ac__type_new_))
4518  return 0;
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523rm -f conftest.$ac_objext
4524if { (ac_try="$ac_compile"
4525case "(($ac_try" in
4526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527  *) ac_try_echo=$ac_try;;
4528esac
4529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530  (eval "$ac_compile") 2>conftest.er1
4531  ac_status=$?
4532  grep -v '^ *+' conftest.er1 >conftest.err
4533  rm -f conftest.er1
4534  cat conftest.err >&5
4535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); } && {
4537	 test -z "$ac_c_werror_flag" ||
4538	 test ! -s conftest.err
4539       } && test -s conftest.$ac_objext; then
4540  ac_cv_type_u_int16_t=yes
4541else
4542  echo "$as_me: failed program was:" >&5
4543sed 's/^/| /' conftest.$ac_ext >&5
4544
4545	ac_cv_type_u_int16_t=no
4546fi
4547
4548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549fi
4550{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4551echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4552if test $ac_cv_type_u_int16_t = yes; then
4553  :
4554else
4555
4556cat >>confdefs.h <<\_ACEOF
4557#define u_int16_t unsigned short
4558_ACEOF
4559
4560fi
4561
4562{ echo "$as_me:$LINENO: checking for int32_t" >&5
4563echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4564if test "${ac_cv_type_int32_t+set}" = set; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567  cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h.  */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h.  */
4573$ac_includes_default
4574#ifdef HAVE_SYS_BITYPES_H
4575#include <sys/bitypes.h>
4576#endif
4577
4578typedef int32_t ac__type_new_;
4579int
4580main ()
4581{
4582if ((ac__type_new_ *) 0)
4583  return 0;
4584if (sizeof (ac__type_new_))
4585  return 0;
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (ac_try="$ac_compile"
4592case "(($ac_try" in
4593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594  *) ac_try_echo=$ac_try;;
4595esac
4596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597  (eval "$ac_compile") 2>conftest.er1
4598  ac_status=$?
4599  grep -v '^ *+' conftest.er1 >conftest.err
4600  rm -f conftest.er1
4601  cat conftest.err >&5
4602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603  (exit $ac_status); } && {
4604	 test -z "$ac_c_werror_flag" ||
4605	 test ! -s conftest.err
4606       } && test -s conftest.$ac_objext; then
4607  ac_cv_type_int32_t=yes
4608else
4609  echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612	ac_cv_type_int32_t=no
4613fi
4614
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616fi
4617{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4618echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4619if test $ac_cv_type_int32_t = yes; then
4620  :
4621else
4622
4623cat >>confdefs.h <<\_ACEOF
4624#define int32_t int
4625_ACEOF
4626
4627fi
4628
4629{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
4630echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4631if test "${ac_cv_type_u_int32_t+set}" = set; then
4632  echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634  cat >conftest.$ac_ext <<_ACEOF
4635/* confdefs.h.  */
4636_ACEOF
4637cat confdefs.h >>conftest.$ac_ext
4638cat >>conftest.$ac_ext <<_ACEOF
4639/* end confdefs.h.  */
4640$ac_includes_default
4641#ifdef HAVE_SYS_BITYPES_H
4642#include <sys/bitypes.h>
4643#endif
4644
4645typedef u_int32_t ac__type_new_;
4646int
4647main ()
4648{
4649if ((ac__type_new_ *) 0)
4650  return 0;
4651if (sizeof (ac__type_new_))
4652  return 0;
4653  ;
4654  return 0;
4655}
4656_ACEOF
4657rm -f conftest.$ac_objext
4658if { (ac_try="$ac_compile"
4659case "(($ac_try" in
4660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661  *) ac_try_echo=$ac_try;;
4662esac
4663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664  (eval "$ac_compile") 2>conftest.er1
4665  ac_status=$?
4666  grep -v '^ *+' conftest.er1 >conftest.err
4667  rm -f conftest.er1
4668  cat conftest.err >&5
4669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670  (exit $ac_status); } && {
4671	 test -z "$ac_c_werror_flag" ||
4672	 test ! -s conftest.err
4673       } && test -s conftest.$ac_objext; then
4674  ac_cv_type_u_int32_t=yes
4675else
4676  echo "$as_me: failed program was:" >&5
4677sed 's/^/| /' conftest.$ac_ext >&5
4678
4679	ac_cv_type_u_int32_t=no
4680fi
4681
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683fi
4684{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4685echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4686if test $ac_cv_type_u_int32_t = yes; then
4687  :
4688else
4689
4690cat >>confdefs.h <<\_ACEOF
4691#define u_int32_t unsigned int
4692_ACEOF
4693
4694fi
4695
4696{ echo "$as_me:$LINENO: checking for int64_t" >&5
4697echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4698if test "${ac_cv_type_int64_t+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h.  */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h.  */
4707$ac_includes_default
4708#ifdef HAVE_SYS_BITYPES_H
4709#include <sys/bitypes.h>
4710#endif
4711
4712typedef int64_t ac__type_new_;
4713int
4714main ()
4715{
4716if ((ac__type_new_ *) 0)
4717  return 0;
4718if (sizeof (ac__type_new_))
4719  return 0;
4720  ;
4721  return 0;
4722}
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (ac_try="$ac_compile"
4726case "(($ac_try" in
4727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728  *) ac_try_echo=$ac_try;;
4729esac
4730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731  (eval "$ac_compile") 2>conftest.er1
4732  ac_status=$?
4733  grep -v '^ *+' conftest.er1 >conftest.err
4734  rm -f conftest.er1
4735  cat conftest.err >&5
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); } && {
4738	 test -z "$ac_c_werror_flag" ||
4739	 test ! -s conftest.err
4740       } && test -s conftest.$ac_objext; then
4741  ac_cv_type_int64_t=yes
4742else
4743  echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746	ac_cv_type_int64_t=no
4747fi
4748
4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750fi
4751{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4752echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4753if test $ac_cv_type_int64_t = yes; then
4754  :
4755else
4756
4757cat >>confdefs.h <<\_ACEOF
4758#define int64_t long long
4759_ACEOF
4760
4761fi
4762
4763{ echo "$as_me:$LINENO: checking for u_int64_t" >&5
4764echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4765if test "${ac_cv_type_u_int64_t+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774$ac_includes_default
4775#ifdef HAVE_SYS_BITYPES_H
4776#include <sys/bitypes.h>
4777#endif
4778
4779typedef u_int64_t ac__type_new_;
4780int
4781main ()
4782{
4783if ((ac__type_new_ *) 0)
4784  return 0;
4785if (sizeof (ac__type_new_))
4786  return 0;
4787  ;
4788  return 0;
4789}
4790_ACEOF
4791rm -f conftest.$ac_objext
4792if { (ac_try="$ac_compile"
4793case "(($ac_try" in
4794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795  *) ac_try_echo=$ac_try;;
4796esac
4797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798  (eval "$ac_compile") 2>conftest.er1
4799  ac_status=$?
4800  grep -v '^ *+' conftest.er1 >conftest.err
4801  rm -f conftest.er1
4802  cat conftest.err >&5
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); } && {
4805	 test -z "$ac_c_werror_flag" ||
4806	 test ! -s conftest.err
4807       } && test -s conftest.$ac_objext; then
4808  ac_cv_type_u_int64_t=yes
4809else
4810  echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813	ac_cv_type_u_int64_t=no
4814fi
4815
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4819echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4820if test $ac_cv_type_u_int64_t = yes; then
4821  :
4822else
4823
4824cat >>confdefs.h <<\_ACEOF
4825#define u_int64_t unsigned long long
4826_ACEOF
4827
4828fi
4829
4830
4831#
4832# Try to arrange for large file support.
4833#
4834# Check whether --enable-largefile was given.
4835if test "${enable_largefile+set}" = set; then
4836  enableval=$enable_largefile;
4837fi
4838
4839if test "$enable_largefile" != no; then
4840
4841  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4842echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4843if test "${ac_cv_sys_largefile_CC+set}" = set; then
4844  echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846  ac_cv_sys_largefile_CC=no
4847     if test "$GCC" != yes; then
4848       ac_save_CC=$CC
4849       while :; do
4850	 # IRIX 6.2 and later do not support large files by default,
4851	 # so use the C compiler's -n32 option if that helps.
4852	 cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858#include <sys/types.h>
4859 /* Check that off_t can represent 2**63 - 1 correctly.
4860    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861    since some C++ compilers masquerading as C compilers
4862    incorrectly reject 9223372036854775807.  */
4863#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4864  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865		       && LARGE_OFF_T % 2147483647 == 1)
4866		      ? 1 : -1];
4867int
4868main ()
4869{
4870
4871  ;
4872  return 0;
4873}
4874_ACEOF
4875	 rm -f conftest.$ac_objext
4876if { (ac_try="$ac_compile"
4877case "(($ac_try" in
4878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879  *) ac_try_echo=$ac_try;;
4880esac
4881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882  (eval "$ac_compile") 2>conftest.er1
4883  ac_status=$?
4884  grep -v '^ *+' conftest.er1 >conftest.err
4885  rm -f conftest.er1
4886  cat conftest.err >&5
4887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888  (exit $ac_status); } && {
4889	 test -z "$ac_c_werror_flag" ||
4890	 test ! -s conftest.err
4891       } && test -s conftest.$ac_objext; then
4892  break
4893else
4894  echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897
4898fi
4899
4900rm -f core conftest.err conftest.$ac_objext
4901	 CC="$CC -n32"
4902	 rm -f conftest.$ac_objext
4903if { (ac_try="$ac_compile"
4904case "(($ac_try" in
4905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906  *) ac_try_echo=$ac_try;;
4907esac
4908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909  (eval "$ac_compile") 2>conftest.er1
4910  ac_status=$?
4911  grep -v '^ *+' conftest.er1 >conftest.err
4912  rm -f conftest.er1
4913  cat conftest.err >&5
4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915  (exit $ac_status); } && {
4916	 test -z "$ac_c_werror_flag" ||
4917	 test ! -s conftest.err
4918       } && test -s conftest.$ac_objext; then
4919  ac_cv_sys_largefile_CC=' -n32'; break
4920else
4921  echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924
4925fi
4926
4927rm -f core conftest.err conftest.$ac_objext
4928	 break
4929       done
4930       CC=$ac_save_CC
4931       rm -f conftest.$ac_ext
4932    fi
4933fi
4934{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4935echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4936  if test "$ac_cv_sys_largefile_CC" != no; then
4937    CC=$CC$ac_cv_sys_largefile_CC
4938  fi
4939
4940  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4941echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4942if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4943  echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
4945  while :; do
4946  cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h.  */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h.  */
4952#include <sys/types.h>
4953 /* Check that off_t can represent 2**63 - 1 correctly.
4954    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4955    since some C++ compilers masquerading as C compilers
4956    incorrectly reject 9223372036854775807.  */
4957#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4958  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4959		       && LARGE_OFF_T % 2147483647 == 1)
4960		      ? 1 : -1];
4961int
4962main ()
4963{
4964
4965  ;
4966  return 0;
4967}
4968_ACEOF
4969rm -f conftest.$ac_objext
4970if { (ac_try="$ac_compile"
4971case "(($ac_try" in
4972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973  *) ac_try_echo=$ac_try;;
4974esac
4975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976  (eval "$ac_compile") 2>conftest.er1
4977  ac_status=$?
4978  grep -v '^ *+' conftest.er1 >conftest.err
4979  rm -f conftest.er1
4980  cat conftest.err >&5
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } && {
4983	 test -z "$ac_c_werror_flag" ||
4984	 test ! -s conftest.err
4985       } && test -s conftest.$ac_objext; then
4986  ac_cv_sys_file_offset_bits=no; break
4987else
4988  echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991
4992fi
4993
4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995  cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h.  */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h.  */
5001#define _FILE_OFFSET_BITS 64
5002#include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005    since some C++ compilers masquerading as C compilers
5006    incorrectly reject 9223372036854775807.  */
5007#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009		       && LARGE_OFF_T % 2147483647 == 1)
5010		      ? 1 : -1];
5011int
5012main ()
5013{
5014
5015  ;
5016  return 0;
5017}
5018_ACEOF
5019rm -f conftest.$ac_objext
5020if { (ac_try="$ac_compile"
5021case "(($ac_try" in
5022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023  *) ac_try_echo=$ac_try;;
5024esac
5025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026  (eval "$ac_compile") 2>conftest.er1
5027  ac_status=$?
5028  grep -v '^ *+' conftest.er1 >conftest.err
5029  rm -f conftest.er1
5030  cat conftest.err >&5
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); } && {
5033	 test -z "$ac_c_werror_flag" ||
5034	 test ! -s conftest.err
5035       } && test -s conftest.$ac_objext; then
5036  ac_cv_sys_file_offset_bits=64; break
5037else
5038  echo "$as_me: failed program was:" >&5
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
5041
5042fi
5043
5044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045  ac_cv_sys_file_offset_bits=unknown
5046  break
5047done
5048fi
5049{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5050echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5051case $ac_cv_sys_file_offset_bits in #(
5052  no | unknown) ;;
5053  *)
5054cat >>confdefs.h <<_ACEOF
5055#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5056_ACEOF
5057;;
5058esac
5059rm -f -r conftest*
5060  if test $ac_cv_sys_file_offset_bits = unknown; then
5061    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5062echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5063if test "${ac_cv_sys_large_files+set}" = set; then
5064  echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066  while :; do
5067  cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h.  */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h.  */
5073#include <sys/types.h>
5074 /* Check that off_t can represent 2**63 - 1 correctly.
5075    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5076    since some C++ compilers masquerading as C compilers
5077    incorrectly reject 9223372036854775807.  */
5078#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5079  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5080		       && LARGE_OFF_T % 2147483647 == 1)
5081		      ? 1 : -1];
5082int
5083main ()
5084{
5085
5086  ;
5087  return 0;
5088}
5089_ACEOF
5090rm -f conftest.$ac_objext
5091if { (ac_try="$ac_compile"
5092case "(($ac_try" in
5093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094  *) ac_try_echo=$ac_try;;
5095esac
5096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097  (eval "$ac_compile") 2>conftest.er1
5098  ac_status=$?
5099  grep -v '^ *+' conftest.er1 >conftest.err
5100  rm -f conftest.er1
5101  cat conftest.err >&5
5102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103  (exit $ac_status); } && {
5104	 test -z "$ac_c_werror_flag" ||
5105	 test ! -s conftest.err
5106       } && test -s conftest.$ac_objext; then
5107  ac_cv_sys_large_files=no; break
5108else
5109  echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112
5113fi
5114
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116  cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h.  */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h.  */
5122#define _LARGE_FILES 1
5123#include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126    since some C++ compilers masquerading as C compilers
5127    incorrectly reject 9223372036854775807.  */
5128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130		       && LARGE_OFF_T % 2147483647 == 1)
5131		      ? 1 : -1];
5132int
5133main ()
5134{
5135
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140rm -f conftest.$ac_objext
5141if { (ac_try="$ac_compile"
5142case "(($ac_try" in
5143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144  *) ac_try_echo=$ac_try;;
5145esac
5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147  (eval "$ac_compile") 2>conftest.er1
5148  ac_status=$?
5149  grep -v '^ *+' conftest.er1 >conftest.err
5150  rm -f conftest.er1
5151  cat conftest.err >&5
5152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } && {
5154	 test -z "$ac_c_werror_flag" ||
5155	 test ! -s conftest.err
5156       } && test -s conftest.$ac_objext; then
5157  ac_cv_sys_large_files=1; break
5158else
5159  echo "$as_me: failed program was:" >&5
5160sed 's/^/| /' conftest.$ac_ext >&5
5161
5162
5163fi
5164
5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166  ac_cv_sys_large_files=unknown
5167  break
5168done
5169fi
5170{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5171echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5172case $ac_cv_sys_large_files in #(
5173  no | unknown) ;;
5174  *)
5175cat >>confdefs.h <<_ACEOF
5176#define _LARGE_FILES $ac_cv_sys_large_files
5177_ACEOF
5178;;
5179esac
5180rm -f -r conftest*
5181  fi
5182fi
5183
5184{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5185echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5186if test "${ac_cv_sys_largefile_source+set}" = set; then
5187  echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189  while :; do
5190  cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h.  */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h.  */
5196#include <stdio.h>
5197int
5198main ()
5199{
5200return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205rm -f conftest.$ac_objext conftest$ac_exeext
5206if { (ac_try="$ac_link"
5207case "(($ac_try" in
5208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209  *) ac_try_echo=$ac_try;;
5210esac
5211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212  (eval "$ac_link") 2>conftest.er1
5213  ac_status=$?
5214  grep -v '^ *+' conftest.er1 >conftest.err
5215  rm -f conftest.er1
5216  cat conftest.err >&5
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); } && {
5219	 test -z "$ac_c_werror_flag" ||
5220	 test ! -s conftest.err
5221       } && test -s conftest$ac_exeext &&
5222       $as_test_x conftest$ac_exeext; then
5223  ac_cv_sys_largefile_source=no; break
5224else
5225  echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228
5229fi
5230
5231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5232      conftest$ac_exeext conftest.$ac_ext
5233  cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h.  */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h.  */
5239#define _LARGEFILE_SOURCE 1
5240#include <stdio.h>
5241int
5242main ()
5243{
5244return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5245  ;
5246  return 0;
5247}
5248_ACEOF
5249rm -f conftest.$ac_objext conftest$ac_exeext
5250if { (ac_try="$ac_link"
5251case "(($ac_try" in
5252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253  *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256  (eval "$ac_link") 2>conftest.er1
5257  ac_status=$?
5258  grep -v '^ *+' conftest.er1 >conftest.err
5259  rm -f conftest.er1
5260  cat conftest.err >&5
5261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262  (exit $ac_status); } && {
5263	 test -z "$ac_c_werror_flag" ||
5264	 test ! -s conftest.err
5265       } && test -s conftest$ac_exeext &&
5266       $as_test_x conftest$ac_exeext; then
5267  ac_cv_sys_largefile_source=1; break
5268else
5269  echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
5272
5273fi
5274
5275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5276      conftest$ac_exeext conftest.$ac_ext
5277  ac_cv_sys_largefile_source=unknown
5278  break
5279done
5280fi
5281{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5282echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5283case $ac_cv_sys_largefile_source in #(
5284  no | unknown) ;;
5285  *)
5286cat >>confdefs.h <<_ACEOF
5287#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5288_ACEOF
5289;;
5290esac
5291rm -f -r conftest*
5292
5293# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5294# in glibc 2.1.3, but that breaks too many other things.
5295# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5296if test $ac_cv_sys_largefile_source != unknown; then
5297
5298cat >>confdefs.h <<\_ACEOF
5299#define HAVE_FSEEKO 1
5300_ACEOF
5301
5302fi
5303
5304
5305
5306
5307
5308
5309for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5310do
5311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5316  echo $ECHO_N "(cached) $ECHO_C" >&6
5317fi
5318ac_res=`eval echo '${'$as_ac_Header'}'`
5319	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5320echo "${ECHO_T}$ac_res" >&6; }
5321else
5322  # Is the header compilable?
5323{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5325cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h.  */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h.  */
5331$ac_includes_default
5332#include <$ac_header>
5333_ACEOF
5334rm -f conftest.$ac_objext
5335if { (ac_try="$ac_compile"
5336case "(($ac_try" in
5337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338  *) ac_try_echo=$ac_try;;
5339esac
5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341  (eval "$ac_compile") 2>conftest.er1
5342  ac_status=$?
5343  grep -v '^ *+' conftest.er1 >conftest.err
5344  rm -f conftest.er1
5345  cat conftest.err >&5
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); } && {
5348	 test -z "$ac_c_werror_flag" ||
5349	 test ! -s conftest.err
5350       } && test -s conftest.$ac_objext; then
5351  ac_header_compiler=yes
5352else
5353  echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356	ac_header_compiler=no
5357fi
5358
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5361echo "${ECHO_T}$ac_header_compiler" >&6; }
5362
5363# Is the header present?
5364{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5366cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h.  */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h.  */
5372#include <$ac_header>
5373_ACEOF
5374if { (ac_try="$ac_cpp conftest.$ac_ext"
5375case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381  ac_status=$?
5382  grep -v '^ *+' conftest.er1 >conftest.err
5383  rm -f conftest.er1
5384  cat conftest.err >&5
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); } >/dev/null && {
5387	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388	 test ! -s conftest.err
5389       }; then
5390  ac_header_preproc=yes
5391else
5392  echo "$as_me: failed program was:" >&5
5393sed 's/^/| /' conftest.$ac_ext >&5
5394
5395  ac_header_preproc=no
5396fi
5397
5398rm -f conftest.err conftest.$ac_ext
5399{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5400echo "${ECHO_T}$ac_header_preproc" >&6; }
5401
5402# So?  What about this header?
5403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5404  yes:no: )
5405    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5409    ac_header_preproc=yes
5410    ;;
5411  no:yes:* )
5412    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5414    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5415echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5416    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5418    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5419echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5424
5425    ;;
5426esac
5427{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430  echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432  eval "$as_ac_Header=\$ac_header_preproc"
5433fi
5434ac_res=`eval echo '${'$as_ac_Header'}'`
5435	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5436echo "${ECHO_T}$ac_res" >&6; }
5437
5438fi
5439if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440  cat >>confdefs.h <<_ACEOF
5441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442_ACEOF
5443
5444fi
5445
5446done
5447
5448
5449for ac_header in linux/types.h
5450do
5451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5456  echo $ECHO_N "(cached) $ECHO_C" >&6
5457fi
5458ac_res=`eval echo '${'$as_ac_Header'}'`
5459	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5460echo "${ECHO_T}$ac_res" >&6; }
5461else
5462  # Is the header compilable?
5463{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5465cat >conftest.$ac_ext <<_ACEOF
5466/* confdefs.h.  */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h.  */
5471$ac_includes_default
5472#include <$ac_header>
5473_ACEOF
5474rm -f conftest.$ac_objext
5475if { (ac_try="$ac_compile"
5476case "(($ac_try" in
5477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478  *) ac_try_echo=$ac_try;;
5479esac
5480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481  (eval "$ac_compile") 2>conftest.er1
5482  ac_status=$?
5483  grep -v '^ *+' conftest.er1 >conftest.err
5484  rm -f conftest.er1
5485  cat conftest.err >&5
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); } && {
5488	 test -z "$ac_c_werror_flag" ||
5489	 test ! -s conftest.err
5490       } && test -s conftest.$ac_objext; then
5491  ac_header_compiler=yes
5492else
5493  echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496	ac_header_compiler=no
5497fi
5498
5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501echo "${ECHO_T}$ac_header_compiler" >&6; }
5502
5503# Is the header present?
5504{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5506cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h.  */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h.  */
5512#include <$ac_header>
5513_ACEOF
5514if { (ac_try="$ac_cpp conftest.$ac_ext"
5515case "(($ac_try" in
5516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517  *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5521  ac_status=$?
5522  grep -v '^ *+' conftest.er1 >conftest.err
5523  rm -f conftest.er1
5524  cat conftest.err >&5
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); } >/dev/null && {
5527	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5528	 test ! -s conftest.err
5529       }; then
5530  ac_header_preproc=yes
5531else
5532  echo "$as_me: failed program was:" >&5
5533sed 's/^/| /' conftest.$ac_ext >&5
5534
5535  ac_header_preproc=no
5536fi
5537
5538rm -f conftest.err conftest.$ac_ext
5539{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540echo "${ECHO_T}$ac_header_preproc" >&6; }
5541
5542# So?  What about this header?
5543case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5544  yes:no: )
5545    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5546echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5548echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5549    ac_header_preproc=yes
5550    ;;
5551  no:yes:* )
5552    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5553echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5554    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5555echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5556    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5557echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5558    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5559echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5560    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5562    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5563echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5564
5565    ;;
5566esac
5567{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570  echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572  eval "$as_ac_Header=\$ac_header_preproc"
5573fi
5574ac_res=`eval echo '${'$as_ac_Header'}'`
5575	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5576echo "${ECHO_T}$ac_res" >&6; }
5577
5578fi
5579if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580  cat >>confdefs.h <<_ACEOF
5581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582_ACEOF
5583
5584fi
5585
5586done
5587
5588
5589
5590
5591for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
5592do
5593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5595  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598  echo $ECHO_N "(cached) $ECHO_C" >&6
5599fi
5600ac_res=`eval echo '${'$as_ac_Header'}'`
5601	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5602echo "${ECHO_T}$ac_res" >&6; }
5603else
5604  # Is the header compilable?
5605{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5607cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h.  */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h.  */
5613$ac_includes_default
5614#include <$ac_header>
5615_ACEOF
5616rm -f conftest.$ac_objext
5617if { (ac_try="$ac_compile"
5618case "(($ac_try" in
5619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620  *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623  (eval "$ac_compile") 2>conftest.er1
5624  ac_status=$?
5625  grep -v '^ *+' conftest.er1 >conftest.err
5626  rm -f conftest.er1
5627  cat conftest.err >&5
5628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629  (exit $ac_status); } && {
5630	 test -z "$ac_c_werror_flag" ||
5631	 test ! -s conftest.err
5632       } && test -s conftest.$ac_objext; then
5633  ac_header_compiler=yes
5634else
5635  echo "$as_me: failed program was:" >&5
5636sed 's/^/| /' conftest.$ac_ext >&5
5637
5638	ac_header_compiler=no
5639fi
5640
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5643echo "${ECHO_T}$ac_header_compiler" >&6; }
5644
5645# Is the header present?
5646{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5648cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h.  */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h.  */
5654#include <$ac_header>
5655_ACEOF
5656if { (ac_try="$ac_cpp conftest.$ac_ext"
5657case "(($ac_try" in
5658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659  *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5663  ac_status=$?
5664  grep -v '^ *+' conftest.er1 >conftest.err
5665  rm -f conftest.er1
5666  cat conftest.err >&5
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } >/dev/null && {
5669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5670	 test ! -s conftest.err
5671       }; then
5672  ac_header_preproc=yes
5673else
5674  echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
5677  ac_header_preproc=no
5678fi
5679
5680rm -f conftest.err conftest.$ac_ext
5681{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5682echo "${ECHO_T}$ac_header_preproc" >&6; }
5683
5684# So?  What about this header?
5685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5686  yes:no: )
5687    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5689    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5691    ac_header_preproc=yes
5692    ;;
5693  no:yes:* )
5694    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5696    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5697echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5698    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5700    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5701echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5702    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5704    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5706
5707    ;;
5708esac
5709{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5712  echo $ECHO_N "(cached) $ECHO_C" >&6
5713else
5714  eval "$as_ac_Header=\$ac_header_preproc"
5715fi
5716ac_res=`eval echo '${'$as_ac_Header'}'`
5717	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5718echo "${ECHO_T}$ac_res" >&6; }
5719
5720fi
5721if test `eval echo '${'$as_ac_Header'}'` = yes; then
5722  cat >>confdefs.h <<_ACEOF
5723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724_ACEOF
5725
5726fi
5727
5728done
5729
5730
5731for ac_header in net/pfvar.h
5732do
5733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737  echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739  cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h.  */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h.  */
5745#include <sys/types.h>
5746#include <sys/socket.h>
5747#include <net/if.h>
5748
5749#include <$ac_header>
5750_ACEOF
5751rm -f conftest.$ac_objext
5752if { (ac_try="$ac_compile"
5753case "(($ac_try" in
5754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755  *) ac_try_echo=$ac_try;;
5756esac
5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758  (eval "$ac_compile") 2>conftest.er1
5759  ac_status=$?
5760  grep -v '^ *+' conftest.er1 >conftest.err
5761  rm -f conftest.er1
5762  cat conftest.err >&5
5763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764  (exit $ac_status); } && {
5765	 test -z "$ac_c_werror_flag" ||
5766	 test ! -s conftest.err
5767       } && test -s conftest.$ac_objext; then
5768  eval "$as_ac_Header=yes"
5769else
5770  echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773	eval "$as_ac_Header=no"
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778ac_res=`eval echo '${'$as_ac_Header'}'`
5779	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5780echo "${ECHO_T}$ac_res" >&6; }
5781if test `eval echo '${'$as_ac_Header'}'` = yes; then
5782  cat >>confdefs.h <<_ACEOF
5783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5784_ACEOF
5785
5786fi
5787
5788done
5789
5790if test "$ac_cv_header_net_pfvar_h" = yes; then
5791	#
5792	# Check for various PF actions.
5793	#
5794	{ echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5795echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5796	cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h.  */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h.  */
5802#include <sys/types.h>
5803	    #include <sys/socket.h>
5804	    #include <net/if.h>
5805	    #include <net/pfvar.h>
5806int
5807main ()
5808{
5809return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5810  ;
5811  return 0;
5812}
5813_ACEOF
5814rm -f conftest.$ac_objext
5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818  *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821  (eval "$ac_compile") 2>conftest.er1
5822  ac_status=$?
5823  grep -v '^ *+' conftest.er1 >conftest.err
5824  rm -f conftest.er1
5825  cat conftest.err >&5
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); } && {
5828	 test -z "$ac_c_werror_flag" ||
5829	 test ! -s conftest.err
5830       } && test -s conftest.$ac_objext; then
5831
5832		{ echo "$as_me:$LINENO: result: yes" >&5
5833echo "${ECHO_T}yes" >&6; }
5834
5835cat >>confdefs.h <<\_ACEOF
5836#define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5837_ACEOF
5838
5839
5840else
5841  echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844	{ echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6; }
5846fi
5847
5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849fi
5850
5851for ac_header in netinet/if_ether.h
5852do
5853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5857  echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859  cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h.  */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h.  */
5865#include <sys/types.h>
5866#include <sys/socket.h>
5867
5868#include <$ac_header>
5869_ACEOF
5870rm -f conftest.$ac_objext
5871if { (ac_try="$ac_compile"
5872case "(($ac_try" in
5873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874  *) ac_try_echo=$ac_try;;
5875esac
5876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877  (eval "$ac_compile") 2>conftest.er1
5878  ac_status=$?
5879  grep -v '^ *+' conftest.er1 >conftest.err
5880  rm -f conftest.er1
5881  cat conftest.err >&5
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); } && {
5884	 test -z "$ac_c_werror_flag" ||
5885	 test ! -s conftest.err
5886       } && test -s conftest.$ac_objext; then
5887  eval "$as_ac_Header=yes"
5888else
5889  echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892	eval "$as_ac_Header=no"
5893fi
5894
5895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896fi
5897ac_res=`eval echo '${'$as_ac_Header'}'`
5898	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5899echo "${ECHO_T}$ac_res" >&6; }
5900if test `eval echo '${'$as_ac_Header'}'` = yes; then
5901  cat >>confdefs.h <<_ACEOF
5902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903_ACEOF
5904
5905fi
5906
5907done
5908
5909if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5910	#
5911	# The simple test didn't work.
5912	# Do we need to include <net/if.h> first?
5913	# Unset ac_cv_header_netinet_if_ether_h so we don't
5914	# treat the previous failure as a cached value and
5915	# suppress the next test.
5916	#
5917	{ echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5918echo "$as_me: Rechecking with some additional includes" >&6;}
5919	unset ac_cv_header_netinet_if_ether_h
5920
5921for ac_header in netinet/if_ether.h
5922do
5923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5924{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5927  echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929  cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h.  */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
5934/* end confdefs.h.  */
5935#include <sys/types.h>
5936#include <sys/socket.h>
5937#include <netinet/in.h>
5938struct mbuf;
5939struct rtentry;
5940#include <net/if.h>
5941
5942#include <$ac_header>
5943_ACEOF
5944rm -f conftest.$ac_objext
5945if { (ac_try="$ac_compile"
5946case "(($ac_try" in
5947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948  *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951  (eval "$ac_compile") 2>conftest.er1
5952  ac_status=$?
5953  grep -v '^ *+' conftest.er1 >conftest.err
5954  rm -f conftest.er1
5955  cat conftest.err >&5
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); } && {
5958	 test -z "$ac_c_werror_flag" ||
5959	 test ! -s conftest.err
5960       } && test -s conftest.$ac_objext; then
5961  eval "$as_ac_Header=yes"
5962else
5963  echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966	eval "$as_ac_Header=no"
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971ac_res=`eval echo '${'$as_ac_Header'}'`
5972	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5973echo "${ECHO_T}$ac_res" >&6; }
5974if test `eval echo '${'$as_ac_Header'}'` = yes; then
5975  cat >>confdefs.h <<_ACEOF
5976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5977_ACEOF
5978
5979fi
5980
5981done
5982
5983fi
5984
5985if test "$GCC" = yes ; then
5986	    { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5987echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5988	    if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h.  */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h.  */
5997/*
5998		     * This generates a "duplicate case value" when fixincludes
5999		     * has not be run.
6000		     */
6001#		include <sys/types.h>
6002#		include <sys/time.h>
6003#		include <sys/ioctl.h>
6004#		ifdef HAVE_SYS_IOCCOM_H
6005#		include <sys/ioccom.h>
6006#		endif
6007int
6008main ()
6009{
6010switch (0) {
6011		    case _IO('A', 1):;
6012		    case _IO('B', 1):;
6013		    }
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext
6019if { (ac_try="$ac_compile"
6020case "(($ac_try" in
6021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022  *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025  (eval "$ac_compile") 2>conftest.er1
6026  ac_status=$?
6027  grep -v '^ *+' conftest.er1 >conftest.err
6028  rm -f conftest.er1
6029  cat conftest.err >&5
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); } && {
6032	 test -z "$ac_c_werror_flag" ||
6033	 test ! -s conftest.err
6034       } && test -s conftest.$ac_objext; then
6035  ac_cv_lbl_gcc_fixincludes=yes
6036else
6037  echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040	ac_cv_lbl_gcc_fixincludes=no
6041fi
6042
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045
6046	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
6047echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
6048	    if test $ac_cv_lbl_gcc_fixincludes = no ; then
6049		    # Don't cache failure
6050		    unset ac_cv_lbl_gcc_fixincludes
6051		    { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
6052echo "$as_me: error: see the INSTALL for more info" >&2;}
6053   { (exit 1); exit 1; }; }
6054	    fi
6055    fi
6056
6057
6058
6059for ac_func in strerror strlcpy
6060do
6061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6062{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067  cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h.  */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h.  */
6073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6074   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6075#define $ac_func innocuous_$ac_func
6076
6077/* System header to define __stub macros and hopefully few prototypes,
6078    which can conflict with char $ac_func (); below.
6079    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080    <limits.h> exists even on freestanding compilers.  */
6081
6082#ifdef __STDC__
6083# include <limits.h>
6084#else
6085# include <assert.h>
6086#endif
6087
6088#undef $ac_func
6089
6090/* Override any GCC internal prototype to avoid an error.
6091   Use char because int might match the return type of a GCC
6092   builtin and then its argument prototype would still apply.  */
6093#ifdef __cplusplus
6094extern "C"
6095#endif
6096char $ac_func ();
6097/* The GNU C library defines this for functions which it implements
6098    to always fail with ENOSYS.  Some functions are actually named
6099    something starting with __ and the normal name is an alias.  */
6100#if defined __stub_$ac_func || defined __stub___$ac_func
6101choke me
6102#endif
6103
6104int
6105main ()
6106{
6107return $ac_func ();
6108  ;
6109  return 0;
6110}
6111_ACEOF
6112rm -f conftest.$ac_objext conftest$ac_exeext
6113if { (ac_try="$ac_link"
6114case "(($ac_try" in
6115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116  *) ac_try_echo=$ac_try;;
6117esac
6118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119  (eval "$ac_link") 2>conftest.er1
6120  ac_status=$?
6121  grep -v '^ *+' conftest.er1 >conftest.err
6122  rm -f conftest.er1
6123  cat conftest.err >&5
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); } && {
6126	 test -z "$ac_c_werror_flag" ||
6127	 test ! -s conftest.err
6128       } && test -s conftest$ac_exeext &&
6129       $as_test_x conftest$ac_exeext; then
6130  eval "$as_ac_var=yes"
6131else
6132  echo "$as_me: failed program was:" >&5
6133sed 's/^/| /' conftest.$ac_ext >&5
6134
6135	eval "$as_ac_var=no"
6136fi
6137
6138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6139      conftest$ac_exeext conftest.$ac_ext
6140fi
6141ac_res=`eval echo '${'$as_ac_var'}'`
6142	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6143echo "${ECHO_T}$ac_res" >&6; }
6144if test `eval echo '${'$as_ac_var'}'` = yes; then
6145  cat >>confdefs.h <<_ACEOF
6146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6147_ACEOF
6148
6149fi
6150done
6151
6152
6153needsnprintf=no
6154
6155
6156for ac_func in vsnprintf snprintf
6157do
6158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6159{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6161if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164  cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h.  */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h.  */
6170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6171   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6172#define $ac_func innocuous_$ac_func
6173
6174/* System header to define __stub macros and hopefully few prototypes,
6175    which can conflict with char $ac_func (); below.
6176    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6177    <limits.h> exists even on freestanding compilers.  */
6178
6179#ifdef __STDC__
6180# include <limits.h>
6181#else
6182# include <assert.h>
6183#endif
6184
6185#undef $ac_func
6186
6187/* Override any GCC internal prototype to avoid an error.
6188   Use char because int might match the return type of a GCC
6189   builtin and then its argument prototype would still apply.  */
6190#ifdef __cplusplus
6191extern "C"
6192#endif
6193char $ac_func ();
6194/* The GNU C library defines this for functions which it implements
6195    to always fail with ENOSYS.  Some functions are actually named
6196    something starting with __ and the normal name is an alias.  */
6197#if defined __stub_$ac_func || defined __stub___$ac_func
6198choke me
6199#endif
6200
6201int
6202main ()
6203{
6204return $ac_func ();
6205  ;
6206  return 0;
6207}
6208_ACEOF
6209rm -f conftest.$ac_objext conftest$ac_exeext
6210if { (ac_try="$ac_link"
6211case "(($ac_try" in
6212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213  *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216  (eval "$ac_link") 2>conftest.er1
6217  ac_status=$?
6218  grep -v '^ *+' conftest.er1 >conftest.err
6219  rm -f conftest.er1
6220  cat conftest.err >&5
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); } && {
6223	 test -z "$ac_c_werror_flag" ||
6224	 test ! -s conftest.err
6225       } && test -s conftest$ac_exeext &&
6226       $as_test_x conftest$ac_exeext; then
6227  eval "$as_ac_var=yes"
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232	eval "$as_ac_var=no"
6233fi
6234
6235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6236      conftest$ac_exeext conftest.$ac_ext
6237fi
6238ac_res=`eval echo '${'$as_ac_var'}'`
6239	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6240echo "${ECHO_T}$ac_res" >&6; }
6241if test `eval echo '${'$as_ac_var'}'` = yes; then
6242  cat >>confdefs.h <<_ACEOF
6243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6244_ACEOF
6245
6246else
6247  needsnprintf=yes
6248fi
6249done
6250
6251if test $needsnprintf = yes; then
6252	case " $LIBOBJS " in
6253  *" snprintf.$ac_objext "* ) ;;
6254  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6255 ;;
6256esac
6257
6258fi
6259
6260#
6261# Do this before checking for ether_hostton(), as it's a
6262# "gethostbyname() -ish function".
6263#
6264
6265    # Most operating systems have gethostbyname() in the default searched
6266    # libraries (i.e. libc):
6267    # Some OSes (eg. Solaris) place it in libnsl
6268    # Some strange OSes (SINIX) have it in libsocket:
6269    { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6270echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6271if test "${ac_cv_search_gethostbyname+set}" = set; then
6272  echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274  ac_func_search_save_LIBS=$LIBS
6275cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h.  */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h.  */
6281
6282/* Override any GCC internal prototype to avoid an error.
6283   Use char because int might match the return type of a GCC
6284   builtin and then its argument prototype would still apply.  */
6285#ifdef __cplusplus
6286extern "C"
6287#endif
6288char gethostbyname ();
6289int
6290main ()
6291{
6292return gethostbyname ();
6293  ;
6294  return 0;
6295}
6296_ACEOF
6297for ac_lib in '' nsl socket resolv; do
6298  if test -z "$ac_lib"; then
6299    ac_res="none required"
6300  else
6301    ac_res=-l$ac_lib
6302    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6303  fi
6304  rm -f conftest.$ac_objext conftest$ac_exeext
6305if { (ac_try="$ac_link"
6306case "(($ac_try" in
6307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308  *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311  (eval "$ac_link") 2>conftest.er1
6312  ac_status=$?
6313  grep -v '^ *+' conftest.er1 >conftest.err
6314  rm -f conftest.er1
6315  cat conftest.err >&5
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); } && {
6318	 test -z "$ac_c_werror_flag" ||
6319	 test ! -s conftest.err
6320       } && test -s conftest$ac_exeext &&
6321       $as_test_x conftest$ac_exeext; then
6322  ac_cv_search_gethostbyname=$ac_res
6323else
6324  echo "$as_me: failed program was:" >&5
6325sed 's/^/| /' conftest.$ac_ext >&5
6326
6327
6328fi
6329
6330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6331      conftest$ac_exeext
6332  if test "${ac_cv_search_gethostbyname+set}" = set; then
6333  break
6334fi
6335done
6336if test "${ac_cv_search_gethostbyname+set}" = set; then
6337  :
6338else
6339  ac_cv_search_gethostbyname=no
6340fi
6341rm conftest.$ac_ext
6342LIBS=$ac_func_search_save_LIBS
6343fi
6344{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6345echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6346ac_res=$ac_cv_search_gethostbyname
6347if test "$ac_res" != no; then
6348  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6349
6350fi
6351
6352    # Unfortunately libsocket sometimes depends on libnsl and
6353    # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6354    if test "$ac_cv_search_gethostbyname" = "no"
6355    then
6356	{ echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6357echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6358if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6359  echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361  ac_check_lib_save_LIBS=$LIBS
6362LIBS="-lsocket -lnsl $LIBS"
6363cat >conftest.$ac_ext <<_ACEOF
6364/* confdefs.h.  */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h.  */
6369
6370/* Override any GCC internal prototype to avoid an error.
6371   Use char because int might match the return type of a GCC
6372   builtin and then its argument prototype would still apply.  */
6373#ifdef __cplusplus
6374extern "C"
6375#endif
6376char gethostbyname ();
6377int
6378main ()
6379{
6380return gethostbyname ();
6381  ;
6382  return 0;
6383}
6384_ACEOF
6385rm -f conftest.$ac_objext conftest$ac_exeext
6386if { (ac_try="$ac_link"
6387case "(($ac_try" in
6388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389  *) ac_try_echo=$ac_try;;
6390esac
6391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392  (eval "$ac_link") 2>conftest.er1
6393  ac_status=$?
6394  grep -v '^ *+' conftest.er1 >conftest.err
6395  rm -f conftest.er1
6396  cat conftest.err >&5
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); } && {
6399	 test -z "$ac_c_werror_flag" ||
6400	 test ! -s conftest.err
6401       } && test -s conftest$ac_exeext &&
6402       $as_test_x conftest$ac_exeext; then
6403  ac_cv_lib_socket_gethostbyname=yes
6404else
6405  echo "$as_me: failed program was:" >&5
6406sed 's/^/| /' conftest.$ac_ext >&5
6407
6408	ac_cv_lib_socket_gethostbyname=no
6409fi
6410
6411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6412      conftest$ac_exeext conftest.$ac_ext
6413LIBS=$ac_check_lib_save_LIBS
6414fi
6415{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6416echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6417if test $ac_cv_lib_socket_gethostbyname = yes; then
6418  LIBS="-lsocket -lnsl $LIBS"
6419fi
6420
6421    fi
6422    { echo "$as_me:$LINENO: checking for library containing socket" >&5
6423echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6424if test "${ac_cv_search_socket+set}" = set; then
6425  echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427  ac_func_search_save_LIBS=$LIBS
6428cat >conftest.$ac_ext <<_ACEOF
6429/* confdefs.h.  */
6430_ACEOF
6431cat confdefs.h >>conftest.$ac_ext
6432cat >>conftest.$ac_ext <<_ACEOF
6433/* end confdefs.h.  */
6434
6435/* Override any GCC internal prototype to avoid an error.
6436   Use char because int might match the return type of a GCC
6437   builtin and then its argument prototype would still apply.  */
6438#ifdef __cplusplus
6439extern "C"
6440#endif
6441char socket ();
6442int
6443main ()
6444{
6445return socket ();
6446  ;
6447  return 0;
6448}
6449_ACEOF
6450for ac_lib in '' socket; do
6451  if test -z "$ac_lib"; then
6452    ac_res="none required"
6453  else
6454    ac_res=-l$ac_lib
6455    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6456  fi
6457  rm -f conftest.$ac_objext conftest$ac_exeext
6458if { (ac_try="$ac_link"
6459case "(($ac_try" in
6460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461  *) ac_try_echo=$ac_try;;
6462esac
6463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464  (eval "$ac_link") 2>conftest.er1
6465  ac_status=$?
6466  grep -v '^ *+' conftest.er1 >conftest.err
6467  rm -f conftest.er1
6468  cat conftest.err >&5
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); } && {
6471	 test -z "$ac_c_werror_flag" ||
6472	 test ! -s conftest.err
6473       } && test -s conftest$ac_exeext &&
6474       $as_test_x conftest$ac_exeext; then
6475  ac_cv_search_socket=$ac_res
6476else
6477  echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480
6481fi
6482
6483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6484      conftest$ac_exeext
6485  if test "${ac_cv_search_socket+set}" = set; then
6486  break
6487fi
6488done
6489if test "${ac_cv_search_socket+set}" = set; then
6490  :
6491else
6492  ac_cv_search_socket=no
6493fi
6494rm conftest.$ac_ext
6495LIBS=$ac_func_search_save_LIBS
6496fi
6497{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6498echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6499ac_res=$ac_cv_search_socket
6500if test "$ac_res" != no; then
6501  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6502
6503else
6504  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6505echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6506if test "${ac_cv_lib_socket_socket+set}" = set; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  ac_check_lib_save_LIBS=$LIBS
6510LIBS="-lsocket -lnsl $LIBS"
6511cat >conftest.$ac_ext <<_ACEOF
6512/* confdefs.h.  */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h.  */
6517
6518/* Override any GCC internal prototype to avoid an error.
6519   Use char because int might match the return type of a GCC
6520   builtin and then its argument prototype would still apply.  */
6521#ifdef __cplusplus
6522extern "C"
6523#endif
6524char socket ();
6525int
6526main ()
6527{
6528return socket ();
6529  ;
6530  return 0;
6531}
6532_ACEOF
6533rm -f conftest.$ac_objext conftest$ac_exeext
6534if { (ac_try="$ac_link"
6535case "(($ac_try" in
6536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537  *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540  (eval "$ac_link") 2>conftest.er1
6541  ac_status=$?
6542  grep -v '^ *+' conftest.er1 >conftest.err
6543  rm -f conftest.er1
6544  cat conftest.err >&5
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); } && {
6547	 test -z "$ac_c_werror_flag" ||
6548	 test ! -s conftest.err
6549       } && test -s conftest$ac_exeext &&
6550       $as_test_x conftest$ac_exeext; then
6551  ac_cv_lib_socket_socket=yes
6552else
6553  echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556	ac_cv_lib_socket_socket=no
6557fi
6558
6559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6560      conftest$ac_exeext conftest.$ac_ext
6561LIBS=$ac_check_lib_save_LIBS
6562fi
6563{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6564echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6565if test $ac_cv_lib_socket_socket = yes; then
6566  LIBS="-lsocket -lnsl $LIBS"
6567fi
6568
6569fi
6570
6571    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6572    { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6573echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6574if test "${ac_cv_search_putmsg+set}" = set; then
6575  echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577  ac_func_search_save_LIBS=$LIBS
6578cat >conftest.$ac_ext <<_ACEOF
6579/* confdefs.h.  */
6580_ACEOF
6581cat confdefs.h >>conftest.$ac_ext
6582cat >>conftest.$ac_ext <<_ACEOF
6583/* end confdefs.h.  */
6584
6585/* Override any GCC internal prototype to avoid an error.
6586   Use char because int might match the return type of a GCC
6587   builtin and then its argument prototype would still apply.  */
6588#ifdef __cplusplus
6589extern "C"
6590#endif
6591char putmsg ();
6592int
6593main ()
6594{
6595return putmsg ();
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600for ac_lib in '' str; do
6601  if test -z "$ac_lib"; then
6602    ac_res="none required"
6603  else
6604    ac_res=-l$ac_lib
6605    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6606  fi
6607  rm -f conftest.$ac_objext conftest$ac_exeext
6608if { (ac_try="$ac_link"
6609case "(($ac_try" in
6610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611  *) ac_try_echo=$ac_try;;
6612esac
6613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614  (eval "$ac_link") 2>conftest.er1
6615  ac_status=$?
6616  grep -v '^ *+' conftest.er1 >conftest.err
6617  rm -f conftest.er1
6618  cat conftest.err >&5
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); } && {
6621	 test -z "$ac_c_werror_flag" ||
6622	 test ! -s conftest.err
6623       } && test -s conftest$ac_exeext &&
6624       $as_test_x conftest$ac_exeext; then
6625  ac_cv_search_putmsg=$ac_res
6626else
6627  echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
6629
6630
6631fi
6632
6633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634      conftest$ac_exeext
6635  if test "${ac_cv_search_putmsg+set}" = set; then
6636  break
6637fi
6638done
6639if test "${ac_cv_search_putmsg+set}" = set; then
6640  :
6641else
6642  ac_cv_search_putmsg=no
6643fi
6644rm conftest.$ac_ext
6645LIBS=$ac_func_search_save_LIBS
6646fi
6647{ echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6648echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6649ac_res=$ac_cv_search_putmsg
6650if test "$ac_res" != no; then
6651  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6652
6653fi
6654
6655
6656
6657#
6658# You are in a twisty little maze of UN*Xes, all different.
6659# Some might not have ether_hostton().
6660# Some might have it, but not declare it in any header file.
6661# Some might have it, but declare it in <netinet/if_ether.h>.
6662# Some might have it, but declare it in <netinet/ether.h>
6663# (And some might have it but document it as something declared in
6664# <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6665#
6666# Before you is a C compiler.
6667#
6668
6669for ac_func in ether_hostton
6670do
6671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6675  echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677  cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h.  */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h.  */
6683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6684   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6685#define $ac_func innocuous_$ac_func
6686
6687/* System header to define __stub macros and hopefully few prototypes,
6688    which can conflict with char $ac_func (); below.
6689    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6690    <limits.h> exists even on freestanding compilers.  */
6691
6692#ifdef __STDC__
6693# include <limits.h>
6694#else
6695# include <assert.h>
6696#endif
6697
6698#undef $ac_func
6699
6700/* Override any GCC internal prototype to avoid an error.
6701   Use char because int might match the return type of a GCC
6702   builtin and then its argument prototype would still apply.  */
6703#ifdef __cplusplus
6704extern "C"
6705#endif
6706char $ac_func ();
6707/* The GNU C library defines this for functions which it implements
6708    to always fail with ENOSYS.  Some functions are actually named
6709    something starting with __ and the normal name is an alias.  */
6710#if defined __stub_$ac_func || defined __stub___$ac_func
6711choke me
6712#endif
6713
6714int
6715main ()
6716{
6717return $ac_func ();
6718  ;
6719  return 0;
6720}
6721_ACEOF
6722rm -f conftest.$ac_objext conftest$ac_exeext
6723if { (ac_try="$ac_link"
6724case "(($ac_try" in
6725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726  *) ac_try_echo=$ac_try;;
6727esac
6728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729  (eval "$ac_link") 2>conftest.er1
6730  ac_status=$?
6731  grep -v '^ *+' conftest.er1 >conftest.err
6732  rm -f conftest.er1
6733  cat conftest.err >&5
6734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735  (exit $ac_status); } && {
6736	 test -z "$ac_c_werror_flag" ||
6737	 test ! -s conftest.err
6738       } && test -s conftest$ac_exeext &&
6739       $as_test_x conftest$ac_exeext; then
6740  eval "$as_ac_var=yes"
6741else
6742  echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
6745	eval "$as_ac_var=no"
6746fi
6747
6748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749      conftest$ac_exeext conftest.$ac_ext
6750fi
6751ac_res=`eval echo '${'$as_ac_var'}'`
6752	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6753echo "${ECHO_T}$ac_res" >&6; }
6754if test `eval echo '${'$as_ac_var'}'` = yes; then
6755  cat >>confdefs.h <<_ACEOF
6756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6757_ACEOF
6758
6759fi
6760done
6761
6762if test "$ac_cv_func_ether_hostton" = yes; then
6763	#
6764	# OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
6765	#
6766	if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6767		#
6768		# Yes.  Does it declare ether_hostton()?
6769		#
6770		{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6771echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6772if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775  cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h.  */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h.  */
6781
6782#include <sys/types.h>
6783#include <sys/socket.h>
6784#include <netinet/in.h>
6785#include <arpa/inet.h>
6786struct mbuf;
6787struct rtentry;
6788#include <net/if.h>
6789#include <netinet/if_ether.h>
6790
6791
6792int
6793main ()
6794{
6795#ifndef ether_hostton
6796  (void) ether_hostton;
6797#endif
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803rm -f conftest.$ac_objext
6804if { (ac_try="$ac_compile"
6805case "(($ac_try" in
6806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807  *) ac_try_echo=$ac_try;;
6808esac
6809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810  (eval "$ac_compile") 2>conftest.er1
6811  ac_status=$?
6812  grep -v '^ *+' conftest.er1 >conftest.err
6813  rm -f conftest.er1
6814  cat conftest.err >&5
6815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816  (exit $ac_status); } && {
6817	 test -z "$ac_c_werror_flag" ||
6818	 test ! -s conftest.err
6819       } && test -s conftest.$ac_objext; then
6820  ac_cv_have_decl_ether_hostton=yes
6821else
6822  echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825	ac_cv_have_decl_ether_hostton=no
6826fi
6827
6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829fi
6830{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6831echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6832if test $ac_cv_have_decl_ether_hostton = yes; then
6833
6834
6835cat >>confdefs.h <<\_ACEOF
6836#define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6837_ACEOF
6838
6839
6840fi
6841
6842	fi
6843	#
6844	# Did that succeed?
6845	#
6846	if test "$ac_cv_have_decl_ether_hostton" != yes; then
6847		#
6848		# No, how about <netinet/ether.h>, as on Linux?
6849		#
6850
6851for ac_header in netinet/ether.h
6852do
6853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6855  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858  echo $ECHO_N "(cached) $ECHO_C" >&6
6859fi
6860ac_res=`eval echo '${'$as_ac_Header'}'`
6861	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6862echo "${ECHO_T}$ac_res" >&6; }
6863else
6864  # Is the header compilable?
6865{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6867cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h.  */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h.  */
6873$ac_includes_default
6874#include <$ac_header>
6875_ACEOF
6876rm -f conftest.$ac_objext
6877if { (ac_try="$ac_compile"
6878case "(($ac_try" in
6879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880  *) ac_try_echo=$ac_try;;
6881esac
6882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883  (eval "$ac_compile") 2>conftest.er1
6884  ac_status=$?
6885  grep -v '^ *+' conftest.er1 >conftest.err
6886  rm -f conftest.er1
6887  cat conftest.err >&5
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } && {
6890	 test -z "$ac_c_werror_flag" ||
6891	 test ! -s conftest.err
6892       } && test -s conftest.$ac_objext; then
6893  ac_header_compiler=yes
6894else
6895  echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898	ac_header_compiler=no
6899fi
6900
6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6903echo "${ECHO_T}$ac_header_compiler" >&6; }
6904
6905# Is the header present?
6906{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6908cat >conftest.$ac_ext <<_ACEOF
6909/* confdefs.h.  */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h.  */
6914#include <$ac_header>
6915_ACEOF
6916if { (ac_try="$ac_cpp conftest.$ac_ext"
6917case "(($ac_try" in
6918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919  *) ac_try_echo=$ac_try;;
6920esac
6921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6923  ac_status=$?
6924  grep -v '^ *+' conftest.er1 >conftest.err
6925  rm -f conftest.er1
6926  cat conftest.err >&5
6927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928  (exit $ac_status); } >/dev/null && {
6929	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930	 test ! -s conftest.err
6931       }; then
6932  ac_header_preproc=yes
6933else
6934  echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937  ac_header_preproc=no
6938fi
6939
6940rm -f conftest.err conftest.$ac_ext
6941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6942echo "${ECHO_T}$ac_header_preproc" >&6; }
6943
6944# So?  What about this header?
6945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6946  yes:no: )
6947    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6949    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6951    ac_header_preproc=yes
6952    ;;
6953  no:yes:* )
6954    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6956    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6957echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6958    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6960    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6961echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6962    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6964    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6966
6967    ;;
6968esac
6969{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972  echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974  eval "$as_ac_Header=\$ac_header_preproc"
6975fi
6976ac_res=`eval echo '${'$as_ac_Header'}'`
6977	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6978echo "${ECHO_T}$ac_res" >&6; }
6979
6980fi
6981if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982  cat >>confdefs.h <<_ACEOF
6983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984_ACEOF
6985
6986fi
6987
6988done
6989
6990		if test "$ac_cv_header_netinet_ether_h" = yes; then
6991			#
6992			# We have it - does it declare ether_hostton()?
6993			# Unset ac_cv_have_decl_ether_hostton so we don't
6994			# treat the previous failure as a cached value and
6995			# suppress the next test.
6996			#
6997			unset ac_cv_have_decl_ether_hostton
6998			{ echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6999echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
7000if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003  cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h.  */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h.  */
7009
7010#include <netinet/ether.h>
7011
7012
7013int
7014main ()
7015{
7016#ifndef ether_hostton
7017  (void) ether_hostton;
7018#endif
7019
7020  ;
7021  return 0;
7022}
7023_ACEOF
7024rm -f conftest.$ac_objext
7025if { (ac_try="$ac_compile"
7026case "(($ac_try" in
7027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028  *) ac_try_echo=$ac_try;;
7029esac
7030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031  (eval "$ac_compile") 2>conftest.er1
7032  ac_status=$?
7033  grep -v '^ *+' conftest.er1 >conftest.err
7034  rm -f conftest.er1
7035  cat conftest.err >&5
7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); } && {
7038	 test -z "$ac_c_werror_flag" ||
7039	 test ! -s conftest.err
7040       } && test -s conftest.$ac_objext; then
7041  ac_cv_have_decl_ether_hostton=yes
7042else
7043  echo "$as_me: failed program was:" >&5
7044sed 's/^/| /' conftest.$ac_ext >&5
7045
7046	ac_cv_have_decl_ether_hostton=no
7047fi
7048
7049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050fi
7051{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
7052echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
7053if test $ac_cv_have_decl_ether_hostton = yes; then
7054
7055
7056cat >>confdefs.h <<\_ACEOF
7057#define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
7058_ACEOF
7059
7060
7061fi
7062
7063		fi
7064	fi
7065	#
7066	# Is ether_hostton() declared?
7067	#
7068	if test "$ac_cv_have_decl_ether_hostton" != yes; then
7069		#
7070		# No, we'll have to declare it ourselves.
7071		# Do we have "struct ether_addr"?
7072		#
7073		{ echo "$as_me:$LINENO: checking for struct ether_addr" >&5
7074echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
7075if test "${ac_cv_type_struct_ether_addr+set}" = set; then
7076  echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078  cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h.  */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h.  */
7084
7085#include <sys/types.h>
7086#include <sys/socket.h>
7087#include <netinet/in.h>
7088#include <arpa/inet.h>
7089struct mbuf;
7090struct rtentry;
7091#include <net/if.h>
7092#include <netinet/if_ether.h>
7093
7094
7095typedef struct ether_addr ac__type_new_;
7096int
7097main ()
7098{
7099if ((ac__type_new_ *) 0)
7100  return 0;
7101if (sizeof (ac__type_new_))
7102  return 0;
7103  ;
7104  return 0;
7105}
7106_ACEOF
7107rm -f conftest.$ac_objext
7108if { (ac_try="$ac_compile"
7109case "(($ac_try" in
7110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111  *) ac_try_echo=$ac_try;;
7112esac
7113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114  (eval "$ac_compile") 2>conftest.er1
7115  ac_status=$?
7116  grep -v '^ *+' conftest.er1 >conftest.err
7117  rm -f conftest.er1
7118  cat conftest.err >&5
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); } && {
7121	 test -z "$ac_c_werror_flag" ||
7122	 test ! -s conftest.err
7123       } && test -s conftest.$ac_objext; then
7124  ac_cv_type_struct_ether_addr=yes
7125else
7126  echo "$as_me: failed program was:" >&5
7127sed 's/^/| /' conftest.$ac_ext >&5
7128
7129	ac_cv_type_struct_ether_addr=no
7130fi
7131
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133fi
7134{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
7135echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
7136if test $ac_cv_type_struct_ether_addr = yes; then
7137
7138cat >>confdefs.h <<_ACEOF
7139#define HAVE_STRUCT_ETHER_ADDR 1
7140_ACEOF
7141
7142
7143fi
7144
7145
7146cat >>confdefs.h <<\_ACEOF
7147#define HAVE_DECL_ETHER_HOSTTON 0
7148_ACEOF
7149
7150	else
7151
7152cat >>confdefs.h <<\_ACEOF
7153#define HAVE_DECL_ETHER_HOSTTON 1
7154_ACEOF
7155
7156	fi
7157fi
7158
7159{ echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
7160echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
7161# Check whether --enable-protochain was given.
7162if test "${enable_protochain+set}" = set; then
7163  enableval=$enable_protochain;
7164fi
7165
7166case "x$enable_protochain" in
7167xyes)	enable_protochain=enabled	;;
7168xno)	enable_protochain=disabled	;;
7169x)	enable_protochain=enabled	;;
7170esac
7171
7172if test "$enable_protochain" = "disabled"; then
7173
7174cat >>confdefs.h <<\_ACEOF
7175#define NO_PROTOCHAIN 1
7176_ACEOF
7177
7178fi
7179{ echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
7180echo "${ECHO_T}${enable_protochain}" >&6; }
7181
7182#
7183# SITA support is mutually exclusive with native capture support;
7184# "--with-sita" selects SITA support.
7185#
7186
7187# Check whether --with-sita was given.
7188if test "${with_sita+set}" = set; then
7189  withval=$with_sita;
7190	if test ! "x$withval" = "xno" ; then
7191
7192cat >>confdefs.h <<\_ACEOF
7193#define SITA 1
7194_ACEOF
7195
7196		{ echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
7197echo "$as_me: Enabling SITA ACN support" >&6;}
7198		V_PCAP=sita
7199		V_FINDALLDEVS=sita
7200	fi
7201
7202else
7203
7204if test -z "$with_pcap" && test "$cross_compiling" = yes; then
7205	{ { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
7206echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
7207   { (exit 1); exit 1; }; }
7208fi
7209
7210# Check whether --with-pcap was given.
7211if test "${with_pcap+set}" = set; then
7212  withval=$with_pcap;
7213fi
7214
7215{ echo "$as_me:$LINENO: checking packet capture type" >&5
7216echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
7217if test ! -z "$with_pcap" ; then
7218	V_PCAP="$withval"
7219elif test -r /dev/bpf -o -h /dev/bpf ; then
7220	#
7221	# Cloning BPF device.
7222	#
7223	V_PCAP=bpf
7224
7225cat >>confdefs.h <<\_ACEOF
7226#define HAVE_CLONING_BPF 1
7227_ACEOF
7228
7229elif test -r /dev/bpf0 ; then
7230	V_PCAP=bpf
7231elif test -r /usr/include/net/pfilt.h ; then
7232	V_PCAP=pf
7233elif test -r /dev/enet ; then
7234	V_PCAP=enet
7235elif test -r /dev/nit ; then
7236	V_PCAP=snit
7237elif test -r /usr/include/sys/net/nit.h ; then
7238	V_PCAP=nit
7239elif test -r /usr/include/linux/socket.h ; then
7240	V_PCAP=linux
7241elif test -r /usr/include/net/raw.h ; then
7242	V_PCAP=snoop
7243elif test -r /usr/include/odmi.h ; then
7244	#
7245	# On AIX, the BPF devices might not yet be present - they're
7246	# created the first time libpcap runs after booting.
7247	# We check for odmi.h instead.
7248	#
7249	V_PCAP=bpf
7250elif test -c /dev/bpf0 ; then		# check again in case not readable
7251	V_PCAP=bpf
7252elif test -r /usr/include/sys/dlpi.h ; then
7253	V_PCAP=dlpi
7254elif test -c /dev/enet ; then		# check again in case not readable
7255	V_PCAP=enet
7256elif test -c /dev/nit ; then		# check again in case not readable
7257	V_PCAP=snit
7258else
7259	V_PCAP=null
7260fi
7261{ echo "$as_me:$LINENO: result: $V_PCAP" >&5
7262echo "${ECHO_T}$V_PCAP" >&6; }
7263
7264#
7265# Do capture-mechanism-dependent tests.
7266#
7267case "$V_PCAP" in
7268dlpi)
7269	#
7270	# Checks to see if Solaris has the public libdlpi(3LIB) library.
7271	# Note: The existence of /usr/include/libdlpi.h does not mean it is the
7272	# public libdlpi(3LIB) version. Before libdlpi was made public, a
7273	# private version also existed, which did not have the same APIs.
7274	# Due to a gcc bug, the default search path for 32-bit libraries does
7275	# not include /lib, we add it explicitly here.
7276	# [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
7277	# Also, due to the bug above applications that link to libpcap with
7278	# libdlpi will have to add "-L/lib" option to "configure".
7279	#
7280	saved_ldflags=$LDFLAGS
7281	LDFLAGS="$LIBS -L/lib"
7282	{ echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
7283echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7284if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7285  echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287  ac_check_lib_save_LIBS=$LIBS
7288LIBS="-ldlpi  $LIBS"
7289cat >conftest.$ac_ext <<_ACEOF
7290/* confdefs.h.  */
7291_ACEOF
7292cat confdefs.h >>conftest.$ac_ext
7293cat >>conftest.$ac_ext <<_ACEOF
7294/* end confdefs.h.  */
7295
7296/* Override any GCC internal prototype to avoid an error.
7297   Use char because int might match the return type of a GCC
7298   builtin and then its argument prototype would still apply.  */
7299#ifdef __cplusplus
7300extern "C"
7301#endif
7302char dlpi_walk ();
7303int
7304main ()
7305{
7306return dlpi_walk ();
7307  ;
7308  return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext conftest$ac_exeext
7312if { (ac_try="$ac_link"
7313case "(($ac_try" in
7314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315  *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318  (eval "$ac_link") 2>conftest.er1
7319  ac_status=$?
7320  grep -v '^ *+' conftest.er1 >conftest.err
7321  rm -f conftest.er1
7322  cat conftest.err >&5
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); } && {
7325	 test -z "$ac_c_werror_flag" ||
7326	 test ! -s conftest.err
7327       } && test -s conftest$ac_exeext &&
7328       $as_test_x conftest$ac_exeext; then
7329  ac_cv_lib_dlpi_dlpi_walk=yes
7330else
7331  echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
7334	ac_cv_lib_dlpi_dlpi_walk=no
7335fi
7336
7337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7338      conftest$ac_exeext conftest.$ac_ext
7339LIBS=$ac_check_lib_save_LIBS
7340fi
7341{ echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7342echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7343if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7344  LIBS="-ldlpi $LIBS"
7345		V_PCAP=libdlpi
7346
7347cat >>confdefs.h <<\_ACEOF
7348#define HAVE_LIBDLPI 1
7349_ACEOF
7350
7351else
7352  V_PCAP=dlpi
7353fi
7354
7355	LDFLAGS=$saved_ldflags
7356
7357	#
7358	# Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7359	# versions of DLPI.
7360	#
7361	{ echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7362echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7363	if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366  cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h.  */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h.  */
7372
7373			#include <sys/types.h>
7374			#include <sys/time.h>
7375			#include <sys/dlpi.h>
7376
7377int
7378main ()
7379{
7380int i = DL_PROMISC_PHYS;
7381  ;
7382  return 0;
7383}
7384_ACEOF
7385rm -f conftest.$ac_objext
7386if { (ac_try="$ac_compile"
7387case "(($ac_try" in
7388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389  *) ac_try_echo=$ac_try;;
7390esac
7391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392  (eval "$ac_compile") 2>conftest.er1
7393  ac_status=$?
7394  grep -v '^ *+' conftest.er1 >conftest.err
7395  rm -f conftest.er1
7396  cat conftest.err >&5
7397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398  (exit $ac_status); } && {
7399	 test -z "$ac_c_werror_flag" ||
7400	 test ! -s conftest.err
7401       } && test -s conftest.$ac_objext; then
7402  ac_cv_sys_dlpi_usable=yes
7403else
7404  echo "$as_me: failed program was:" >&5
7405sed 's/^/| /' conftest.$ac_ext >&5
7406
7407	ac_cv_sys_dlpi_usable=no
7408fi
7409
7410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411fi
7412
7413	{ echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7414echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7415	if test $ac_cv_sys_dlpi_usable = no ; then
7416		{ { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7417echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7418   { (exit 1); exit 1; }; }
7419	fi
7420
7421	#
7422	# Check whether we have a /dev/dlpi device or have multiple devices.
7423	#
7424	{ echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7425echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7426	if test -c /dev/dlpi ; then
7427		{ echo "$as_me:$LINENO: result: yes" >&5
7428echo "${ECHO_T}yes" >&6; }
7429
7430cat >>confdefs.h <<\_ACEOF
7431#define HAVE_DEV_DLPI 1
7432_ACEOF
7433
7434	else
7435		{ echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6; }
7437		dir="/dev/dlpi"
7438		{ echo "$as_me:$LINENO: checking for $dir directory" >&5
7439echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7440		if test -d $dir ; then
7441			{ echo "$as_me:$LINENO: result: yes" >&5
7442echo "${ECHO_T}yes" >&6; }
7443
7444cat >>confdefs.h <<_ACEOF
7445#define PCAP_DEV_PREFIX "$dir"
7446_ACEOF
7447
7448		else
7449			{ echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6; }
7451		fi
7452	fi
7453
7454	#
7455	# This check is for Solaris with DLPI support for passive modes.
7456	# See dlpi(7P) for more details.
7457	#
7458	{ echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7459echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7460       if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7461  echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463  cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h.  */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h.  */
7469
7470#       include <sys/types.h>
7471#       include <sys/dlpi.h>
7472int
7473main ()
7474{
7475u_int i = sizeof(dl_passive_req_t)
7476  ;
7477  return 0;
7478}
7479_ACEOF
7480rm -f conftest.$ac_objext
7481if { (ac_try="$ac_compile"
7482case "(($ac_try" in
7483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484  *) ac_try_echo=$ac_try;;
7485esac
7486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487  (eval "$ac_compile") 2>conftest.er1
7488  ac_status=$?
7489  grep -v '^ *+' conftest.er1 >conftest.err
7490  rm -f conftest.er1
7491  cat conftest.err >&5
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); } && {
7494	 test -z "$ac_c_werror_flag" ||
7495	 test ! -s conftest.err
7496       } && test -s conftest.$ac_objext; then
7497  ac_cv_lbl_has_dl_passive_req_t=yes
7498else
7499  echo "$as_me: failed program was:" >&5
7500sed 's/^/| /' conftest.$ac_ext >&5
7501
7502	ac_cv_lbl_has_dl_passive_req_t=no
7503fi
7504
7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506fi
7507
7508    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7509echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7510    if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7511
7512cat >>confdefs.h <<\_ACEOF
7513#define HAVE_DLPI_PASSIVE 1
7514_ACEOF
7515
7516    fi
7517	;;
7518
7519linux)
7520	#
7521	# Do we have the wireless extensions?
7522	#
7523
7524for ac_header in linux/wireless.h
7525do
7526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7530  echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532  cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h.  */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h.  */
7538
7539#include <sys/socket.h>
7540#include <linux/if.h>
7541#include <linux/types.h>
7542
7543
7544#include <$ac_header>
7545_ACEOF
7546rm -f conftest.$ac_objext
7547if { (ac_try="$ac_compile"
7548case "(($ac_try" in
7549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550  *) ac_try_echo=$ac_try;;
7551esac
7552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553  (eval "$ac_compile") 2>conftest.er1
7554  ac_status=$?
7555  grep -v '^ *+' conftest.er1 >conftest.err
7556  rm -f conftest.er1
7557  cat conftest.err >&5
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } && {
7560	 test -z "$ac_c_werror_flag" ||
7561	 test ! -s conftest.err
7562       } && test -s conftest.$ac_objext; then
7563  eval "$as_ac_Header=yes"
7564else
7565  echo "$as_me: failed program was:" >&5
7566sed 's/^/| /' conftest.$ac_ext >&5
7567
7568	eval "$as_ac_Header=no"
7569fi
7570
7571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572fi
7573ac_res=`eval echo '${'$as_ac_Header'}'`
7574	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7575echo "${ECHO_T}$ac_res" >&6; }
7576if test `eval echo '${'$as_ac_Header'}'` = yes; then
7577  cat >>confdefs.h <<_ACEOF
7578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7579_ACEOF
7580
7581fi
7582
7583done
7584
7585
7586	#
7587	# Do we have libnl?
7588	#
7589
7590# Check whether --with-libnl was given.
7591if test "${with_libnl+set}" = set; then
7592  withval=$with_libnl; with_libnl=$withval
7593fi
7594
7595
7596	if test x$with_libnl != xno ; then
7597		#
7598		# Try libnl 2.x first.
7599		#
7600		{ echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7601echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7602if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7603  echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605  ac_check_lib_save_LIBS=$LIBS
7606LIBS="-lnl  $LIBS"
7607cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h.  */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h.  */
7613
7614/* Override any GCC internal prototype to avoid an error.
7615   Use char because int might match the return type of a GCC
7616   builtin and then its argument prototype would still apply.  */
7617#ifdef __cplusplus
7618extern "C"
7619#endif
7620char nl_socket_alloc ();
7621int
7622main ()
7623{
7624return nl_socket_alloc ();
7625  ;
7626  return 0;
7627}
7628_ACEOF
7629rm -f conftest.$ac_objext conftest$ac_exeext
7630if { (ac_try="$ac_link"
7631case "(($ac_try" in
7632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633  *) ac_try_echo=$ac_try;;
7634esac
7635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636  (eval "$ac_link") 2>conftest.er1
7637  ac_status=$?
7638  grep -v '^ *+' conftest.er1 >conftest.err
7639  rm -f conftest.er1
7640  cat conftest.err >&5
7641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642  (exit $ac_status); } && {
7643	 test -z "$ac_c_werror_flag" ||
7644	 test ! -s conftest.err
7645       } && test -s conftest$ac_exeext &&
7646       $as_test_x conftest$ac_exeext; then
7647  ac_cv_lib_nl_nl_socket_alloc=yes
7648else
7649  echo "$as_me: failed program was:" >&5
7650sed 's/^/| /' conftest.$ac_ext >&5
7651
7652	ac_cv_lib_nl_nl_socket_alloc=no
7653fi
7654
7655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7656      conftest$ac_exeext conftest.$ac_ext
7657LIBS=$ac_check_lib_save_LIBS
7658fi
7659{ echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7660echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7661if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7662
7663			#
7664			# Yes, we have libnl 2.x.
7665			#
7666			LIBS="-lnl-genl -lnl $LIBS"
7667
7668cat >>confdefs.h <<\_ACEOF
7669#define HAVE_LIBNL 1
7670_ACEOF
7671
7672
7673cat >>confdefs.h <<\_ACEOF
7674#define HAVE_LIBNL_2_x 1
7675_ACEOF
7676
7677
7678else
7679
7680			#
7681			# No, we don't; do we have libnl 1.x?
7682			#
7683			{ echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7684echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7685if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7686  echo $ECHO_N "(cached) $ECHO_C" >&6
7687else
7688  ac_check_lib_save_LIBS=$LIBS
7689LIBS="-lnl  $LIBS"
7690cat >conftest.$ac_ext <<_ACEOF
7691/* confdefs.h.  */
7692_ACEOF
7693cat confdefs.h >>conftest.$ac_ext
7694cat >>conftest.$ac_ext <<_ACEOF
7695/* end confdefs.h.  */
7696
7697/* Override any GCC internal prototype to avoid an error.
7698   Use char because int might match the return type of a GCC
7699   builtin and then its argument prototype would still apply.  */
7700#ifdef __cplusplus
7701extern "C"
7702#endif
7703char nl_handle_alloc ();
7704int
7705main ()
7706{
7707return nl_handle_alloc ();
7708  ;
7709  return 0;
7710}
7711_ACEOF
7712rm -f conftest.$ac_objext conftest$ac_exeext
7713if { (ac_try="$ac_link"
7714case "(($ac_try" in
7715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716  *) ac_try_echo=$ac_try;;
7717esac
7718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719  (eval "$ac_link") 2>conftest.er1
7720  ac_status=$?
7721  grep -v '^ *+' conftest.er1 >conftest.err
7722  rm -f conftest.er1
7723  cat conftest.err >&5
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); } && {
7726	 test -z "$ac_c_werror_flag" ||
7727	 test ! -s conftest.err
7728       } && test -s conftest$ac_exeext &&
7729       $as_test_x conftest$ac_exeext; then
7730  ac_cv_lib_nl_nl_handle_alloc=yes
7731else
7732  echo "$as_me: failed program was:" >&5
7733sed 's/^/| /' conftest.$ac_ext >&5
7734
7735	ac_cv_lib_nl_nl_handle_alloc=no
7736fi
7737
7738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7739      conftest$ac_exeext conftest.$ac_ext
7740LIBS=$ac_check_lib_save_LIBS
7741fi
7742{ echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7743echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7744if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7745
7746				#
7747				# Yes.
7748				#
7749				LIBS="-lnl $LIBS"
7750
7751cat >>confdefs.h <<\_ACEOF
7752#define HAVE_LIBNL 1
7753_ACEOF
7754
7755
7756else
7757
7758				#
7759				# No, we don't have libnl at all.
7760				#
7761				if test x$with_libnl = xyes ; then
7762					{ { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7763echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7764   { (exit 1); exit 1; }; }
7765				fi
7766
7767fi
7768
7769
7770fi
7771
7772	fi
7773
7774
7775for ac_header in linux/ethtool.h
7776do
7777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7778{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781  echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783  cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h.  */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h.  */
7789
7790$ac_includes_default
7791#include <linux/types.h>
7792
7793
7794#include <$ac_header>
7795_ACEOF
7796rm -f conftest.$ac_objext
7797if { (ac_try="$ac_compile"
7798case "(($ac_try" in
7799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800  *) ac_try_echo=$ac_try;;
7801esac
7802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803  (eval "$ac_compile") 2>conftest.er1
7804  ac_status=$?
7805  grep -v '^ *+' conftest.er1 >conftest.err
7806  rm -f conftest.er1
7807  cat conftest.err >&5
7808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809  (exit $ac_status); } && {
7810	 test -z "$ac_c_werror_flag" ||
7811	 test ! -s conftest.err
7812       } && test -s conftest.$ac_objext; then
7813  eval "$as_ac_Header=yes"
7814else
7815  echo "$as_me: failed program was:" >&5
7816sed 's/^/| /' conftest.$ac_ext >&5
7817
7818	eval "$as_ac_Header=no"
7819fi
7820
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822fi
7823ac_res=`eval echo '${'$as_ac_Header'}'`
7824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7825echo "${ECHO_T}$ac_res" >&6; }
7826if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827  cat >>confdefs.h <<_ACEOF
7828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7829_ACEOF
7830
7831fi
7832
7833done
7834
7835	{ echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7836echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7837   if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h.  */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h.  */
7846
7847#  include <linux/if_packet.h>
7848int
7849main ()
7850{
7851struct tpacket_stats stats
7852  ;
7853  return 0;
7854}
7855_ACEOF
7856rm -f conftest.$ac_objext
7857if { (ac_try="$ac_compile"
7858case "(($ac_try" in
7859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860  *) ac_try_echo=$ac_try;;
7861esac
7862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863  (eval "$ac_compile") 2>conftest.er1
7864  ac_status=$?
7865  grep -v '^ *+' conftest.er1 >conftest.err
7866  rm -f conftest.er1
7867  cat conftest.err >&5
7868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869  (exit $ac_status); } && {
7870	 test -z "$ac_c_werror_flag" ||
7871	 test ! -s conftest.err
7872       } && test -s conftest.$ac_objext; then
7873  ac_cv_lbl_tpacket_stats=yes
7874else
7875  echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878	ac_cv_lbl_tpacket_stats=no
7879fi
7880
7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882fi
7883
7884   { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7885echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7886   if test $ac_cv_lbl_tpacket_stats = yes; then
7887
7888cat >>confdefs.h <<\_ACEOF
7889#define HAVE_TPACKET_STATS 1
7890_ACEOF
7891
7892   fi
7893	{ echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7894echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7895    if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
7896  echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898  cat >conftest.$ac_ext <<_ACEOF
7899/* confdefs.h.  */
7900_ACEOF
7901cat confdefs.h >>conftest.$ac_ext
7902cat >>conftest.$ac_ext <<_ACEOF
7903/* end confdefs.h.  */
7904
7905#	include <sys/types.h>
7906#	include <linux/if_packet.h>
7907int
7908main ()
7909{
7910u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7911  ;
7912  return 0;
7913}
7914_ACEOF
7915rm -f conftest.$ac_objext
7916if { (ac_try="$ac_compile"
7917case "(($ac_try" in
7918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919  *) ac_try_echo=$ac_try;;
7920esac
7921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922  (eval "$ac_compile") 2>conftest.er1
7923  ac_status=$?
7924  grep -v '^ *+' conftest.er1 >conftest.err
7925  rm -f conftest.er1
7926  cat conftest.err >&5
7927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928  (exit $ac_status); } && {
7929	 test -z "$ac_c_werror_flag" ||
7930	 test ! -s conftest.err
7931       } && test -s conftest.$ac_objext; then
7932  ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7933else
7934  echo "$as_me: failed program was:" >&5
7935sed 's/^/| /' conftest.$ac_ext >&5
7936
7937	ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7938fi
7939
7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941fi
7942
7943    { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7944echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7945    if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7946	    HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7947
7948
7949cat >>confdefs.h <<\_ACEOF
7950#define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7951_ACEOF
7952
7953    fi
7954	;;
7955
7956bpf)
7957	#
7958	# Check whether we have the *BSD-style ioctls.
7959	#
7960
7961for ac_header in net/if_media.h
7962do
7963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7965  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7968  echo $ECHO_N "(cached) $ECHO_C" >&6
7969fi
7970ac_res=`eval echo '${'$as_ac_Header'}'`
7971	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7972echo "${ECHO_T}$ac_res" >&6; }
7973else
7974  # Is the header compilable?
7975{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7977cat >conftest.$ac_ext <<_ACEOF
7978/* confdefs.h.  */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h.  */
7983$ac_includes_default
7984#include <$ac_header>
7985_ACEOF
7986rm -f conftest.$ac_objext
7987if { (ac_try="$ac_compile"
7988case "(($ac_try" in
7989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990  *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993  (eval "$ac_compile") 2>conftest.er1
7994  ac_status=$?
7995  grep -v '^ *+' conftest.er1 >conftest.err
7996  rm -f conftest.er1
7997  cat conftest.err >&5
7998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999  (exit $ac_status); } && {
8000	 test -z "$ac_c_werror_flag" ||
8001	 test ! -s conftest.err
8002       } && test -s conftest.$ac_objext; then
8003  ac_header_compiler=yes
8004else
8005  echo "$as_me: failed program was:" >&5
8006sed 's/^/| /' conftest.$ac_ext >&5
8007
8008	ac_header_compiler=no
8009fi
8010
8011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8013echo "${ECHO_T}$ac_header_compiler" >&6; }
8014
8015# Is the header present?
8016{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8018cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h.  */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h.  */
8024#include <$ac_header>
8025_ACEOF
8026if { (ac_try="$ac_cpp conftest.$ac_ext"
8027case "(($ac_try" in
8028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029  *) ac_try_echo=$ac_try;;
8030esac
8031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8033  ac_status=$?
8034  grep -v '^ *+' conftest.er1 >conftest.err
8035  rm -f conftest.er1
8036  cat conftest.err >&5
8037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038  (exit $ac_status); } >/dev/null && {
8039	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8040	 test ! -s conftest.err
8041       }; then
8042  ac_header_preproc=yes
8043else
8044  echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047  ac_header_preproc=no
8048fi
8049
8050rm -f conftest.err conftest.$ac_ext
8051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8052echo "${ECHO_T}$ac_header_preproc" >&6; }
8053
8054# So?  What about this header?
8055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8056  yes:no: )
8057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8061    ac_header_preproc=yes
8062    ;;
8063  no:yes:* )
8064    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8066    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8067echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8068    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8070    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8071echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8074    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8076
8077    ;;
8078esac
8079{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8082  echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084  eval "$as_ac_Header=\$ac_header_preproc"
8085fi
8086ac_res=`eval echo '${'$as_ac_Header'}'`
8087	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8088echo "${ECHO_T}$ac_res" >&6; }
8089
8090fi
8091if test `eval echo '${'$as_ac_Header'}'` = yes; then
8092  cat >>confdefs.h <<_ACEOF
8093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8094_ACEOF
8095
8096fi
8097
8098done
8099
8100
8101	{ echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
8102echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
8103	cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h.  */
8105_ACEOF
8106cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h.  */
8109#include <sys/socket.h>
8110	    #include <sys/ioctl.h>
8111	    #include <net/if.h>
8112	    #include <net/bpf.h>
8113int
8114main ()
8115{
8116return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8117  ;
8118  return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext
8122if { (ac_try="$ac_compile"
8123case "(($ac_try" in
8124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125  *) ac_try_echo=$ac_try;;
8126esac
8127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128  (eval "$ac_compile") 2>conftest.er1
8129  ac_status=$?
8130  grep -v '^ *+' conftest.er1 >conftest.err
8131  rm -f conftest.er1
8132  cat conftest.err >&5
8133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134  (exit $ac_status); } && {
8135	 test -z "$ac_c_werror_flag" ||
8136	 test ! -s conftest.err
8137       } && test -s conftest.$ac_objext; then
8138
8139		{ echo "$as_me:$LINENO: result: yes" >&5
8140echo "${ECHO_T}yes" >&6; }
8141
8142cat >>confdefs.h <<\_ACEOF
8143#define HAVE_ZEROCOPY_BPF 1
8144_ACEOF
8145
8146
8147else
8148  echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
8151	{ echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6; }
8153fi
8154
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156
8157	    #
8158	    # Check whether we have struct BPF_TIMEVAL.
8159	    #
8160	    { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
8161echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
8162if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8163  echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165  cat >conftest.$ac_ext <<_ACEOF
8166/* confdefs.h.  */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h.  */
8171
8172#include <sys/types.h>
8173#include <sys/ioctl.h>
8174#ifdef HAVE_SYS_IOCCOM_H
8175#include <sys/ioccom.h>
8176#endif
8177#include <net/bpf.h>
8178
8179
8180typedef struct BPF_TIMEVAL ac__type_new_;
8181int
8182main ()
8183{
8184if ((ac__type_new_ *) 0)
8185  return 0;
8186if (sizeof (ac__type_new_))
8187  return 0;
8188  ;
8189  return 0;
8190}
8191_ACEOF
8192rm -f conftest.$ac_objext
8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196  *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199  (eval "$ac_compile") 2>conftest.er1
8200  ac_status=$?
8201  grep -v '^ *+' conftest.er1 >conftest.err
8202  rm -f conftest.er1
8203  cat conftest.err >&5
8204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205  (exit $ac_status); } && {
8206	 test -z "$ac_c_werror_flag" ||
8207	 test ! -s conftest.err
8208       } && test -s conftest.$ac_objext; then
8209  ac_cv_type_struct_BPF_TIMEVAL=yes
8210else
8211  echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
8214	ac_cv_type_struct_BPF_TIMEVAL=no
8215fi
8216
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8220echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8221if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8222
8223cat >>confdefs.h <<_ACEOF
8224#define HAVE_STRUCT_BPF_TIMEVAL 1
8225_ACEOF
8226
8227
8228fi
8229
8230	;;
8231
8232dag)
8233	V_DEFS="$V_DEFS -DDAG_ONLY"
8234	;;
8235
8236septel)
8237	V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8238	;;
8239
8240snf)
8241	V_DEFS="$V_DEFS -DSNF_ONLY"
8242	;;
8243
8244null)
8245	{ echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8246echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8247	{ echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8248echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8249	;;
8250esac
8251
8252if test "$V_PCAP" = null
8253then
8254	#
8255	# We can't capture, so we can't open any capture
8256	# devices, so we won't return any interfaces.
8257	#
8258	V_FINDALLDEVS=null
8259else
8260	{ echo "$as_me:$LINENO: checking for getifaddrs" >&5
8261echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8262if test "${ac_cv_func_getifaddrs+set}" = set; then
8263  echo $ECHO_N "(cached) $ECHO_C" >&6
8264else
8265  cat >conftest.$ac_ext <<_ACEOF
8266/* confdefs.h.  */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h.  */
8271/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8272   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8273#define getifaddrs innocuous_getifaddrs
8274
8275/* System header to define __stub macros and hopefully few prototypes,
8276    which can conflict with char getifaddrs (); below.
8277    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8278    <limits.h> exists even on freestanding compilers.  */
8279
8280#ifdef __STDC__
8281# include <limits.h>
8282#else
8283# include <assert.h>
8284#endif
8285
8286#undef getifaddrs
8287
8288/* Override any GCC internal prototype to avoid an error.
8289   Use char because int might match the return type of a GCC
8290   builtin and then its argument prototype would still apply.  */
8291#ifdef __cplusplus
8292extern "C"
8293#endif
8294char getifaddrs ();
8295/* The GNU C library defines this for functions which it implements
8296    to always fail with ENOSYS.  Some functions are actually named
8297    something starting with __ and the normal name is an alias.  */
8298#if defined __stub_getifaddrs || defined __stub___getifaddrs
8299choke me
8300#endif
8301
8302int
8303main ()
8304{
8305return getifaddrs ();
8306  ;
8307  return 0;
8308}
8309_ACEOF
8310rm -f conftest.$ac_objext conftest$ac_exeext
8311if { (ac_try="$ac_link"
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_link") 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_exeext &&
8327       $as_test_x conftest$ac_exeext; then
8328  ac_cv_func_getifaddrs=yes
8329else
8330  echo "$as_me: failed program was:" >&5
8331sed 's/^/| /' conftest.$ac_ext >&5
8332
8333	ac_cv_func_getifaddrs=no
8334fi
8335
8336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8337      conftest$ac_exeext conftest.$ac_ext
8338fi
8339{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8340echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8341if test $ac_cv_func_getifaddrs = yes; then
8342
8343		#
8344		# We have "getifaddrs()"; make sure we have <ifaddrs.h>
8345		# as well, just in case some platform is really weird.
8346		#
8347		if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8348  { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8349echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8350if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8351  echo $ECHO_N "(cached) $ECHO_C" >&6
8352fi
8353{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8354echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8355else
8356  # Is the header compilable?
8357{ echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8358echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8359cat >conftest.$ac_ext <<_ACEOF
8360/* confdefs.h.  */
8361_ACEOF
8362cat confdefs.h >>conftest.$ac_ext
8363cat >>conftest.$ac_ext <<_ACEOF
8364/* end confdefs.h.  */
8365$ac_includes_default
8366#include <ifaddrs.h>
8367_ACEOF
8368rm -f conftest.$ac_objext
8369if { (ac_try="$ac_compile"
8370case "(($ac_try" in
8371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372  *) ac_try_echo=$ac_try;;
8373esac
8374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375  (eval "$ac_compile") 2>conftest.er1
8376  ac_status=$?
8377  grep -v '^ *+' conftest.er1 >conftest.err
8378  rm -f conftest.er1
8379  cat conftest.err >&5
8380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381  (exit $ac_status); } && {
8382	 test -z "$ac_c_werror_flag" ||
8383	 test ! -s conftest.err
8384       } && test -s conftest.$ac_objext; then
8385  ac_header_compiler=yes
8386else
8387  echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390	ac_header_compiler=no
8391fi
8392
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8395echo "${ECHO_T}$ac_header_compiler" >&6; }
8396
8397# Is the header present?
8398{ echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8399echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8400cat >conftest.$ac_ext <<_ACEOF
8401/* confdefs.h.  */
8402_ACEOF
8403cat confdefs.h >>conftest.$ac_ext
8404cat >>conftest.$ac_ext <<_ACEOF
8405/* end confdefs.h.  */
8406#include <ifaddrs.h>
8407_ACEOF
8408if { (ac_try="$ac_cpp conftest.$ac_ext"
8409case "(($ac_try" in
8410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411  *) ac_try_echo=$ac_try;;
8412esac
8413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8415  ac_status=$?
8416  grep -v '^ *+' conftest.er1 >conftest.err
8417  rm -f conftest.er1
8418  cat conftest.err >&5
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); } >/dev/null && {
8421	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8422	 test ! -s conftest.err
8423       }; then
8424  ac_header_preproc=yes
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429  ac_header_preproc=no
8430fi
8431
8432rm -f conftest.err conftest.$ac_ext
8433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434echo "${ECHO_T}$ac_header_preproc" >&6; }
8435
8436# So?  What about this header?
8437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438  yes:no: )
8439    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8440echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8442echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8443    ac_header_preproc=yes
8444    ;;
8445  no:yes:* )
8446    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8447echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8448    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
8449echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
8450    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8451echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8452    { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
8453echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8454    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8455echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8456    { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8457echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8458
8459    ;;
8460esac
8461{ echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8462echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8463if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8464  echo $ECHO_N "(cached) $ECHO_C" >&6
8465else
8466  ac_cv_header_ifaddrs_h=$ac_header_preproc
8467fi
8468{ echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8469echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8470
8471fi
8472if test $ac_cv_header_ifaddrs_h = yes; then
8473
8474		    #
8475		    # We have the header, so we use "getifaddrs()" to
8476		    # get the list of interfaces.
8477		    #
8478		    V_FINDALLDEVS=getad
8479
8480else
8481
8482		    #
8483		    # We don't have the header - give up.
8484		    # XXX - we could also fall back on some other
8485		    # mechanism, but, for now, this'll catch this
8486		    # problem so that we can at least try to figure
8487		    # out something to do on systems with "getifaddrs()"
8488		    # but without "ifaddrs.h", if there is something
8489		    # we can do on those systems.
8490		    #
8491		    { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8492echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8493   { (exit 1); exit 1; }; }
8494
8495fi
8496
8497
8498
8499else
8500
8501		#
8502		# Well, we don't have "getifaddrs()", so we have to use
8503		# some other mechanism; determine what that mechanism is.
8504		#
8505		# The first thing we use is the type of capture mechanism,
8506		# which is somewhat of a proxy for the OS we're using.
8507		#
8508		case "$V_PCAP" in
8509
8510		dlpi|libdlpi)
8511
8512
8513for ac_header in sys/bufmod.h sys/dlpi_ext.h
8514do
8515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517  { echo "$as_me:$LINENO: checking for $ac_header" >&5
8518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520  echo $ECHO_N "(cached) $ECHO_C" >&6
8521fi
8522ac_res=`eval echo '${'$as_ac_Header'}'`
8523	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8524echo "${ECHO_T}$ac_res" >&6; }
8525else
8526  # Is the header compilable?
8527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8529cat >conftest.$ac_ext <<_ACEOF
8530/* confdefs.h.  */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h.  */
8535$ac_includes_default
8536#include <$ac_header>
8537_ACEOF
8538rm -f conftest.$ac_objext
8539if { (ac_try="$ac_compile"
8540case "(($ac_try" in
8541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542  *) ac_try_echo=$ac_try;;
8543esac
8544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545  (eval "$ac_compile") 2>conftest.er1
8546  ac_status=$?
8547  grep -v '^ *+' conftest.er1 >conftest.err
8548  rm -f conftest.er1
8549  cat conftest.err >&5
8550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551  (exit $ac_status); } && {
8552	 test -z "$ac_c_werror_flag" ||
8553	 test ! -s conftest.err
8554       } && test -s conftest.$ac_objext; then
8555  ac_header_compiler=yes
8556else
8557  echo "$as_me: failed program was:" >&5
8558sed 's/^/| /' conftest.$ac_ext >&5
8559
8560	ac_header_compiler=no
8561fi
8562
8563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8565echo "${ECHO_T}$ac_header_compiler" >&6; }
8566
8567# Is the header present?
8568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8570cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h.  */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h.  */
8576#include <$ac_header>
8577_ACEOF
8578if { (ac_try="$ac_cpp conftest.$ac_ext"
8579case "(($ac_try" in
8580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581  *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8585  ac_status=$?
8586  grep -v '^ *+' conftest.er1 >conftest.err
8587  rm -f conftest.er1
8588  cat conftest.err >&5
8589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590  (exit $ac_status); } >/dev/null && {
8591	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8592	 test ! -s conftest.err
8593       }; then
8594  ac_header_preproc=yes
8595else
8596  echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599  ac_header_preproc=no
8600fi
8601
8602rm -f conftest.err conftest.$ac_ext
8603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8604echo "${ECHO_T}$ac_header_preproc" >&6; }
8605
8606# So?  What about this header?
8607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8608  yes:no: )
8609    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8613    ac_header_preproc=yes
8614    ;;
8615  no:yes:* )
8616    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8618    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8619echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8620    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8622    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8623echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8626    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8628
8629    ;;
8630esac
8631{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8634  echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636  eval "$as_ac_Header=\$ac_header_preproc"
8637fi
8638ac_res=`eval echo '${'$as_ac_Header'}'`
8639	       { echo "$as_me:$LINENO: result: $ac_res" >&5
8640echo "${ECHO_T}$ac_res" >&6; }
8641
8642fi
8643if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644  cat >>confdefs.h <<_ACEOF
8645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8646_ACEOF
8647
8648fi
8649
8650done
8651
8652			#
8653			# This might be Solaris 8 or later, with
8654			# SIOCGLIFCONF, or it might be some other OS
8655			# or some older version of Solaris, with
8656			# just SIOCGIFCONF.
8657			#
8658			{ echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8659echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8660			if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8661  echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8663  cat >conftest.$ac_ext <<_ACEOF
8664/* confdefs.h.  */
8665_ACEOF
8666cat confdefs.h >>conftest.$ac_ext
8667cat >>conftest.$ac_ext <<_ACEOF
8668/* end confdefs.h.  */
8669#include <sys/param.h>
8670				#include <sys/file.h>
8671				#include <sys/ioctl.h>
8672				#include <sys/socket.h>
8673				#include <sys/sockio.h>
8674int
8675main ()
8676{
8677ioctl(0, SIOCGLIFCONF, (char *)0);
8678  ;
8679  return 0;
8680}
8681_ACEOF
8682rm -f conftest.$ac_objext
8683if { (ac_try="$ac_compile"
8684case "(($ac_try" in
8685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686  *) ac_try_echo=$ac_try;;
8687esac
8688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689  (eval "$ac_compile") 2>conftest.er1
8690  ac_status=$?
8691  grep -v '^ *+' conftest.er1 >conftest.err
8692  rm -f conftest.er1
8693  cat conftest.err >&5
8694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695  (exit $ac_status); } && {
8696	 test -z "$ac_c_werror_flag" ||
8697	 test ! -s conftest.err
8698       } && test -s conftest.$ac_objext; then
8699  ac_cv_lbl_have_siocglifconf=yes
8700else
8701  echo "$as_me: failed program was:" >&5
8702sed 's/^/| /' conftest.$ac_ext >&5
8703
8704	ac_cv_lbl_have_siocglifconf=no
8705fi
8706
8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708fi
8709
8710			{ echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8711echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8712			if test $ac_cv_lbl_have_siocglifconf = yes ; then
8713				V_FINDALLDEVS=glifc
8714			else
8715				V_FINDALLDEVS=gifc
8716			fi
8717			#
8718			# Needed for common functions used by pcap-[dlpi,libdlpi].c
8719			#
8720		 	SSRC="dlpisubs.c"
8721			;;
8722
8723		*)
8724			#
8725			# Assume we just have SIOCGIFCONF.
8726			# (XXX - on at least later Linux kernels, there's
8727			# another mechanism, and we should be using that
8728			# instead.)
8729			#
8730			V_FINDALLDEVS=gifc
8731			;;
8732		esac
8733fi
8734
8735fi
8736
8737fi
8738
8739
8740{ echo "$as_me:$LINENO: checking for socklen_t" >&5
8741echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8742cat >conftest.$ac_ext <<_ACEOF
8743/* confdefs.h.  */
8744_ACEOF
8745cat confdefs.h >>conftest.$ac_ext
8746cat >>conftest.$ac_ext <<_ACEOF
8747/* end confdefs.h.  */
8748
8749	#include <sys/types.h>
8750	#include <sys/socket.h>
8751
8752int
8753main ()
8754{
8755 socklen_t x;
8756  ;
8757  return 0;
8758}
8759_ACEOF
8760rm -f conftest.$ac_objext
8761if { (ac_try="$ac_compile"
8762case "(($ac_try" in
8763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764  *) ac_try_echo=$ac_try;;
8765esac
8766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767  (eval "$ac_compile") 2>conftest.er1
8768  ac_status=$?
8769  grep -v '^ *+' conftest.er1 >conftest.err
8770  rm -f conftest.er1
8771  cat conftest.err >&5
8772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); } && {
8774	 test -z "$ac_c_werror_flag" ||
8775	 test ! -s conftest.err
8776       } && test -s conftest.$ac_objext; then
8777  have_socklen_t=yes
8778else
8779  echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782	have_socklen_t=no
8783fi
8784
8785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786if test "x$have_socklen_t" = "xyes"; then
8787
8788cat >>confdefs.h <<\_ACEOF
8789#define HAVE_SOCKLEN_T 1
8790_ACEOF
8791
8792fi
8793{ echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8794echo "${ECHO_T}$have_socklen_t" >&6; }
8795
8796# Check whether --enable-ipv6 was given.
8797if test "${enable_ipv6+set}" = set; then
8798  enableval=$enable_ipv6;
8799else
8800  enable_ipv6=ifavailable
8801fi
8802
8803if test "$enable_ipv6" != "no"; then
8804	{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8805echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8806if test "${ac_cv_func_getaddrinfo+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h.  */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h.  */
8815/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8816   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8817#define getaddrinfo innocuous_getaddrinfo
8818
8819/* System header to define __stub macros and hopefully few prototypes,
8820    which can conflict with char getaddrinfo (); below.
8821    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8822    <limits.h> exists even on freestanding compilers.  */
8823
8824#ifdef __STDC__
8825# include <limits.h>
8826#else
8827# include <assert.h>
8828#endif
8829
8830#undef getaddrinfo
8831
8832/* Override any GCC internal prototype to avoid an error.
8833   Use char because int might match the return type of a GCC
8834   builtin and then its argument prototype would still apply.  */
8835#ifdef __cplusplus
8836extern "C"
8837#endif
8838char getaddrinfo ();
8839/* The GNU C library defines this for functions which it implements
8840    to always fail with ENOSYS.  Some functions are actually named
8841    something starting with __ and the normal name is an alias.  */
8842#if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8843choke me
8844#endif
8845
8846int
8847main ()
8848{
8849return getaddrinfo ();
8850  ;
8851  return 0;
8852}
8853_ACEOF
8854rm -f conftest.$ac_objext conftest$ac_exeext
8855if { (ac_try="$ac_link"
8856case "(($ac_try" in
8857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858  *) ac_try_echo=$ac_try;;
8859esac
8860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861  (eval "$ac_link") 2>conftest.er1
8862  ac_status=$?
8863  grep -v '^ *+' conftest.er1 >conftest.err
8864  rm -f conftest.er1
8865  cat conftest.err >&5
8866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867  (exit $ac_status); } && {
8868	 test -z "$ac_c_werror_flag" ||
8869	 test ! -s conftest.err
8870       } && test -s conftest$ac_exeext &&
8871       $as_test_x conftest$ac_exeext; then
8872  ac_cv_func_getaddrinfo=yes
8873else
8874  echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877	ac_cv_func_getaddrinfo=no
8878fi
8879
8880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8881      conftest$ac_exeext conftest.$ac_ext
8882fi
8883{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8884echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8885if test $ac_cv_func_getaddrinfo = yes; then
8886
8887
8888cat >>confdefs.h <<\_ACEOF
8889#define INET6 1
8890_ACEOF
8891
8892
8893else
8894
8895		if test "$enable_ipv6" != "ifavailable"; then
8896			{ { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8897See \`config.log' for more details." >&5
8898echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8899See \`config.log' for more details." >&2;}
8900   { (exit 1); exit 1; }; }
8901		fi
8902
8903fi
8904
8905fi
8906
8907{ echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8908echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8909# Check whether --enable-optimizer-dbg was given.
8910if test "${enable_optimizer_dbg+set}" = set; then
8911  enableval=$enable_optimizer_dbg;
8912fi
8913
8914if test "$enable_optimizer_dbg" = "yes"; then
8915
8916cat >>confdefs.h <<\_ACEOF
8917#define BDEBUG 1
8918_ACEOF
8919
8920fi
8921{ echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8922echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8923
8924{ echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8925echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8926# Check whether --enable-yydebug was given.
8927if test "${enable_yydebug+set}" = set; then
8928  enableval=$enable_yydebug;
8929fi
8930
8931if test "$enable_yydebug" = "yes"; then
8932
8933cat >>confdefs.h <<\_ACEOF
8934#define YYDEBUG 1
8935_ACEOF
8936
8937fi
8938{ echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8939echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8940
8941# Check for Endace DAG card support.
8942
8943# Check whether --with-dag was given.
8944if test "${with_dag+set}" = set; then
8945  withval=$with_dag;
8946	if test "$withval" = no
8947	then
8948		# User doesn't want DAG support.
8949		want_dag=no
8950	elif test "$withval" = yes
8951	then
8952		# User wants DAG support but hasn't specified a directory.
8953		want_dag=yes
8954	else
8955		# User wants DAG support and has specified a directory, so use the provided value.
8956		want_dag=yes
8957		dag_root=$withval
8958	fi
8959
8960else
8961
8962	#
8963	# Use DAG API if present, otherwise don't
8964	#
8965	want_dag=ifpresent
8966
8967fi
8968
8969
8970
8971# Check whether --with-dag-includes was given.
8972if test "${with_dag_includes+set}" = set; then
8973  withval=$with_dag_includes;
8974	# User wants DAG support and has specified a header directory, so use the provided value.
8975	want_dag=yes
8976	dag_include_dir=$withval
8977
8978fi
8979
8980
8981
8982# Check whether --with-dag-libraries was given.
8983if test "${with_dag_libraries+set}" = set; then
8984  withval=$with_dag_libraries;
8985	# User wants DAG support and has specified a library directory, so use the provided value.
8986	want_dag=yes
8987	dag_lib_dir=$withval
8988
8989fi
8990
8991
8992case "$V_PCAP" in
8993linux|bpf|dag)
8994	#
8995	# We support the DAG API if we're on Linux or BSD, or if we're
8996	# building a DAG-only libpcap.
8997	#
8998	;;
8999*)
9000	#
9001	# If the user explicitly requested DAG, tell them it's not
9002	# supported.
9003	#
9004	# If they expressed no preference, don't include it.
9005	#
9006	if test $want_dag = yes; then
9007		{ { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
9008echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
9009   { (exit 1); exit 1; }; }
9010	elif test $want_dag = yes; then
9011		want_dag=no
9012	fi
9013	;;
9014esac
9015
9016ac_cv_lbl_dag_api=no
9017if test "$want_dag" != no; then
9018
9019	{ echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
9020echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
9021
9022	# If necessary, set default paths for DAG API headers and libraries.
9023	if test -z "$dag_root"; then
9024	    dag_root=/usr/local
9025	fi
9026
9027	if test -z "$dag_include_dir"; then
9028		dag_include_dir="$dag_root/include"
9029	fi
9030
9031	if test -z "$dag_lib_dir"; then
9032	    dag_lib_dir="$dag_root/lib"
9033	fi
9034
9035	if test -z "$dag_tools_dir"; then
9036	    dag_tools_dir="$dag_root/tools"
9037	fi
9038
9039	if test -r $dag_include_dir/dagapi.h; then
9040		ac_cv_lbl_dag_api=yes
9041	fi
9042	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9043echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9044fi
9045
9046if test $ac_cv_lbl_dag_api = yes; then
9047	V_INCLS="$V_INCLS -I$dag_include_dir"
9048
9049	if test $V_PCAP != dag ; then
9050		 SSRC="pcap-dag.c"
9051	fi
9052
9053	# See if we can find a general version string.
9054	# Don't need to save and restore LIBS to prevent -ldag being
9055	# included if there's a found-action (arg 3).
9056	saved_ldflags=$LDFLAGS
9057	LDFLAGS="-L$dag_lib_dir"
9058	{ echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
9059echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
9060if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9061  echo $ECHO_N "(cached) $ECHO_C" >&6
9062else
9063  ac_check_lib_save_LIBS=$LIBS
9064LIBS="-ldag  $LIBS"
9065cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h.  */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h.  */
9071
9072/* Override any GCC internal prototype to avoid an error.
9073   Use char because int might match the return type of a GCC
9074   builtin and then its argument prototype would still apply.  */
9075#ifdef __cplusplus
9076extern "C"
9077#endif
9078char dag_attach_stream ();
9079int
9080main ()
9081{
9082return dag_attach_stream ();
9083  ;
9084  return 0;
9085}
9086_ACEOF
9087rm -f conftest.$ac_objext conftest$ac_exeext
9088if { (ac_try="$ac_link"
9089case "(($ac_try" in
9090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091  *) ac_try_echo=$ac_try;;
9092esac
9093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094  (eval "$ac_link") 2>conftest.er1
9095  ac_status=$?
9096  grep -v '^ *+' conftest.er1 >conftest.err
9097  rm -f conftest.er1
9098  cat conftest.err >&5
9099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100  (exit $ac_status); } && {
9101	 test -z "$ac_c_werror_flag" ||
9102	 test ! -s conftest.err
9103       } && test -s conftest$ac_exeext &&
9104       $as_test_x conftest$ac_exeext; then
9105  ac_cv_lib_dag_dag_attach_stream=yes
9106else
9107  echo "$as_me: failed program was:" >&5
9108sed 's/^/| /' conftest.$ac_ext >&5
9109
9110	ac_cv_lib_dag_dag_attach_stream=no
9111fi
9112
9113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9114      conftest$ac_exeext conftest.$ac_ext
9115LIBS=$ac_check_lib_save_LIBS
9116fi
9117{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
9118echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9119if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9120  dag_streams="1"
9121else
9122  dag_streams="0"
9123fi
9124
9125	{ echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
9126echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
9127if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9128  echo $ECHO_N "(cached) $ECHO_C" >&6
9129else
9130  ac_check_lib_save_LIBS=$LIBS
9131LIBS="-ldag  $LIBS"
9132cat >conftest.$ac_ext <<_ACEOF
9133/* confdefs.h.  */
9134_ACEOF
9135cat confdefs.h >>conftest.$ac_ext
9136cat >>conftest.$ac_ext <<_ACEOF
9137/* end confdefs.h.  */
9138
9139/* Override any GCC internal prototype to avoid an error.
9140   Use char because int might match the return type of a GCC
9141   builtin and then its argument prototype would still apply.  */
9142#ifdef __cplusplus
9143extern "C"
9144#endif
9145char dag_get_erf_types ();
9146int
9147main ()
9148{
9149return dag_get_erf_types ();
9150  ;
9151  return 0;
9152}
9153_ACEOF
9154rm -f conftest.$ac_objext conftest$ac_exeext
9155if { (ac_try="$ac_link"
9156case "(($ac_try" in
9157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158  *) ac_try_echo=$ac_try;;
9159esac
9160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161  (eval "$ac_link") 2>conftest.er1
9162  ac_status=$?
9163  grep -v '^ *+' conftest.er1 >conftest.err
9164  rm -f conftest.er1
9165  cat conftest.err >&5
9166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167  (exit $ac_status); } && {
9168	 test -z "$ac_c_werror_flag" ||
9169	 test ! -s conftest.err
9170       } && test -s conftest$ac_exeext &&
9171       $as_test_x conftest$ac_exeext; then
9172  ac_cv_lib_dag_dag_get_erf_types=yes
9173else
9174  echo "$as_me: failed program was:" >&5
9175sed 's/^/| /' conftest.$ac_ext >&5
9176
9177	ac_cv_lib_dag_dag_get_erf_types=no
9178fi
9179
9180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9181      conftest$ac_exeext conftest.$ac_ext
9182LIBS=$ac_check_lib_save_LIBS
9183fi
9184{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
9185echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9186if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9187
9188
9189cat >>confdefs.h <<\_ACEOF
9190#define HAVE_DAG_GET_ERF_TYPES 1
9191_ACEOF
9192
9193fi
9194
9195	{ echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
9196echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
9197if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9198  echo $ECHO_N "(cached) $ECHO_C" >&6
9199else
9200  ac_check_lib_save_LIBS=$LIBS
9201LIBS="-ldag  $LIBS"
9202cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h.  */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h.  */
9208
9209/* Override any GCC internal prototype to avoid an error.
9210   Use char because int might match the return type of a GCC
9211   builtin and then its argument prototype would still apply.  */
9212#ifdef __cplusplus
9213extern "C"
9214#endif
9215char dag_get_stream_erf_types ();
9216int
9217main ()
9218{
9219return dag_get_stream_erf_types ();
9220  ;
9221  return 0;
9222}
9223_ACEOF
9224rm -f conftest.$ac_objext conftest$ac_exeext
9225if { (ac_try="$ac_link"
9226case "(($ac_try" in
9227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228  *) ac_try_echo=$ac_try;;
9229esac
9230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231  (eval "$ac_link") 2>conftest.er1
9232  ac_status=$?
9233  grep -v '^ *+' conftest.er1 >conftest.err
9234  rm -f conftest.er1
9235  cat conftest.err >&5
9236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237  (exit $ac_status); } && {
9238	 test -z "$ac_c_werror_flag" ||
9239	 test ! -s conftest.err
9240       } && test -s conftest$ac_exeext &&
9241       $as_test_x conftest$ac_exeext; then
9242  ac_cv_lib_dag_dag_get_stream_erf_types=yes
9243else
9244  echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
9246
9247	ac_cv_lib_dag_dag_get_stream_erf_types=no
9248fi
9249
9250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251      conftest$ac_exeext conftest.$ac_ext
9252LIBS=$ac_check_lib_save_LIBS
9253fi
9254{ echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9255echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9256if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9257
9258
9259cat >>confdefs.h <<\_ACEOF
9260#define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9261_ACEOF
9262
9263fi
9264
9265
9266	LDFLAGS=$saved_ldflags
9267
9268	if test "$dag_streams" = 1; then
9269
9270cat >>confdefs.h <<\_ACEOF
9271#define HAVE_DAG_STREAMS_API 1
9272_ACEOF
9273
9274		LIBS="$LIBS -ldag"
9275		LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9276
9277		{ echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9278echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9279if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9280  echo $ECHO_N "(cached) $ECHO_C" >&6
9281else
9282  ac_check_lib_save_LIBS=$LIBS
9283LIBS="-lvdag  $LIBS"
9284cat >conftest.$ac_ext <<_ACEOF
9285/* confdefs.h.  */
9286_ACEOF
9287cat confdefs.h >>conftest.$ac_ext
9288cat >>conftest.$ac_ext <<_ACEOF
9289/* end confdefs.h.  */
9290
9291/* Override any GCC internal prototype to avoid an error.
9292   Use char because int might match the return type of a GCC
9293   builtin and then its argument prototype would still apply.  */
9294#ifdef __cplusplus
9295extern "C"
9296#endif
9297char vdag_set_device_info ();
9298int
9299main ()
9300{
9301return vdag_set_device_info ();
9302  ;
9303  return 0;
9304}
9305_ACEOF
9306rm -f conftest.$ac_objext conftest$ac_exeext
9307if { (ac_try="$ac_link"
9308case "(($ac_try" in
9309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310  *) ac_try_echo=$ac_try;;
9311esac
9312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313  (eval "$ac_link") 2>conftest.er1
9314  ac_status=$?
9315  grep -v '^ *+' conftest.er1 >conftest.err
9316  rm -f conftest.er1
9317  cat conftest.err >&5
9318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319  (exit $ac_status); } && {
9320	 test -z "$ac_c_werror_flag" ||
9321	 test ! -s conftest.err
9322       } && test -s conftest$ac_exeext &&
9323       $as_test_x conftest$ac_exeext; then
9324  ac_cv_lib_vdag_vdag_set_device_info=yes
9325else
9326  echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329	ac_cv_lib_vdag_vdag_set_device_info=no
9330fi
9331
9332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333      conftest$ac_exeext conftest.$ac_ext
9334LIBS=$ac_check_lib_save_LIBS
9335fi
9336{ echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9337echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9338if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9339  ac_dag_have_vdag="1"
9340else
9341  ac_dag_have_vdag="0"
9342fi
9343
9344		if test "$ac_dag_have_vdag" = 1; then
9345
9346cat >>confdefs.h <<\_ACEOF
9347#define HAVE_DAG_VDAG 1
9348_ACEOF
9349
9350			LIBS="$LIBS -lpthread"
9351		fi
9352	fi
9353
9354
9355cat >>confdefs.h <<\_ACEOF
9356#define HAVE_DAG_API 1
9357_ACEOF
9358
9359fi
9360
9361{ echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9362echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9363
9364if test $ac_cv_lbl_dag_api = no; then
9365	{ echo "$as_me:$LINENO: result: no" >&5
9366echo "${ECHO_T}no" >&6; }
9367	if test "$want_dag" = yes; then
9368        	# User wanted DAG support but we couldn't find it.
9369		{ { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9370echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9371   { (exit 1); exit 1; }; }
9372	fi
9373
9374	if test "$V_PCAP" = dag; then
9375		# User requested "dag" capture type but the DAG API wasn't
9376		# found.
9377		{ { 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
9378echo "$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;}
9379   { (exit 1); exit 1; }; }
9380	fi
9381else
9382	{ echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6; }
9384fi
9385
9386
9387# Check whether --with-septel was given.
9388if test "${with_septel+set}" = set; then
9389  withval=$with_septel;
9390	if test "$withval" = no
9391	then
9392		want_septel=no
9393	elif test "$withval" = yes
9394	then
9395		want_septel=yes
9396		septel_root=
9397	else
9398		want_septel=yes
9399		septel_root=$withval
9400	fi
9401
9402else
9403
9404	#
9405	# Use Septel API if present, otherwise don't
9406	#
9407	want_septel=ifpresent
9408	septel_root=./../septel
9409
9410fi
9411
9412ac_cv_lbl_septel_api=no
9413case "$V_PCAP" in
9414linux|septel)
9415	#
9416	# We support the Septel API if we're on Linux, or if we're building
9417	# a Septel-only libpcap.
9418	#
9419	;;
9420*)
9421	#
9422	# If the user explicitly requested Septel, tell them it's not
9423	# supported.
9424	#
9425	# If they expressed no preference, don't include it.
9426	#
9427	if test $want_septel = yes; then
9428		{ { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9429echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9430   { (exit 1); exit 1; }; }
9431	elif test $want_septel = yes; then
9432		want_septel=no
9433	fi
9434	;;
9435esac
9436
9437if test "$with_septel" != no; then
9438	{ echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9439echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9440
9441	if test -z "$septel_root"; then
9442		septel_root=$srcdir/../septel
9443	fi
9444
9445	septel_tools_dir="$septel_root"
9446	septel_include_dir="$septel_root/INC"
9447
9448	ac_cv_lbl_septel_api=no
9449	if test -r "$septel_include_dir/msg.h"; then
9450		V_INCLS="$V_INCLS -I$septel_include_dir"
9451		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"
9452		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"
9453
9454		if test "$V_PCAP" != septel ; then
9455			 SSRC="pcap-septel.c"
9456		fi
9457		ac_cv_lbl_septel_api=yes
9458	fi
9459
9460	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9461echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9462	if test $ac_cv_lbl_septel_api = no; then
9463		if test "$want_septel" = yes; then
9464			{ { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9465echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9466   { (exit 1); exit 1; }; }
9467		fi
9468	else
9469
9470cat >>confdefs.h <<\_ACEOF
9471#define HAVE_SEPTEL_API 1
9472_ACEOF
9473
9474	fi
9475fi
9476
9477if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9478	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9479echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9480   { (exit 1); exit 1; }; }
9481fi
9482
9483# Check for Myricom SNF support.
9484
9485# Check whether --with-snf was given.
9486if test "${with_snf+set}" = set; then
9487  withval=$with_snf;
9488	if test "$withval" = no
9489	then
9490		# User explicitly doesn't want SNF
9491		want_snf=no
9492	elif test "$withval" = yes
9493	then
9494		# User wants SNF support but hasn't specific a directory.
9495		want_snf=yes
9496	else
9497		# User wants SNF support with a specified directory.
9498		want_snf=yes
9499		snf_root=$withval
9500	fi
9501
9502else
9503
9504	#
9505	# Use Sniffer API if present, otherwise don't
9506	#
9507	want_snf=ifpresent
9508
9509fi
9510
9511
9512
9513# Check whether --with-snf-includes was given.
9514if test "${with_snf_includes+set}" = set; then
9515  withval=$with_snf_includes;
9516	# User wants SNF with specific header directory
9517	want_snf=yes
9518	snf_include_dir=$withval
9519
9520fi
9521
9522
9523
9524# Check whether --with-snf-libraries was given.
9525if test "${with_snf_libraries+set}" = set; then
9526  withval=$with_snf_libraries;
9527	# User wants SNF with specific lib directory
9528	want_snf=yes
9529	snf_lib_dir=$withval
9530
9531fi
9532
9533
9534case "$V_PCAP" in
9535bpf|linux|snf)
9536	#
9537	# We support the Sniffer API if we're on BSD, Linux, or if we're
9538	# building a Sniffer-only libpcap.
9539	#
9540	;;
9541*)
9542	#
9543	# If the user explicitly requested Sniffer, tell them it's not
9544	# supported.
9545	#
9546	# If they expressed no preference, don't include it.
9547	#
9548	if test $want_snf = yes; then
9549		{ { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9550echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9551   { (exit 1); exit 1; }; }
9552	elif test $want_snf = yes; then
9553		want_snf=no
9554	fi
9555	;;
9556esac
9557
9558ac_cv_lbl_snf_api=no
9559if test "$with_snf" != no; then
9560
9561	{ echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9562echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9563
9564	if test -z "$snf_root"; then
9565		snf_root=/opt/snf
9566	fi
9567
9568	if test -z "$snf_include_dir"; then
9569		snf_include_dir="$snf_root/include"
9570	fi
9571
9572	if test -z "$snf_lib_dir"; then
9573		snf_lib_dir="$snf_root/lib"
9574	fi
9575
9576	if test -f "$snf_include_dir/snf.h"; then
9577		ac_cv_lbl_snf_api=yes
9578	fi
9579	{ echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9580echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9581
9582	if test $ac_cv_lbl_snf_api = no; then
9583		if test "$want_snf" = yes; then
9584			{ { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9585echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9586   { (exit 1); exit 1; }; }
9587		fi
9588	else
9589		saved_ldflags=$LDFLAGS
9590		LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9591		{ echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9592echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9593if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9594  echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596  ac_check_lib_save_LIBS=$LIBS
9597LIBS="-lsnf  $LIBS"
9598cat >conftest.$ac_ext <<_ACEOF
9599/* confdefs.h.  */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h.  */
9604
9605/* Override any GCC internal prototype to avoid an error.
9606   Use char because int might match the return type of a GCC
9607   builtin and then its argument prototype would still apply.  */
9608#ifdef __cplusplus
9609extern "C"
9610#endif
9611char snf_init ();
9612int
9613main ()
9614{
9615return snf_init ();
9616  ;
9617  return 0;
9618}
9619_ACEOF
9620rm -f conftest.$ac_objext conftest$ac_exeext
9621if { (ac_try="$ac_link"
9622case "(($ac_try" in
9623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624  *) ac_try_echo=$ac_try;;
9625esac
9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627  (eval "$ac_link") 2>conftest.er1
9628  ac_status=$?
9629  grep -v '^ *+' conftest.er1 >conftest.err
9630  rm -f conftest.er1
9631  cat conftest.err >&5
9632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633  (exit $ac_status); } && {
9634	 test -z "$ac_c_werror_flag" ||
9635	 test ! -s conftest.err
9636       } && test -s conftest$ac_exeext &&
9637       $as_test_x conftest$ac_exeext; then
9638  ac_cv_lib_snf_snf_init=yes
9639else
9640  echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
9643	ac_cv_lib_snf_snf_init=no
9644fi
9645
9646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647      conftest$ac_exeext conftest.$ac_ext
9648LIBS=$ac_check_lib_save_LIBS
9649fi
9650{ echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9651echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9652if test $ac_cv_lib_snf_snf_init = yes; then
9653  ac_cv_lbl_snf_api="yes"
9654else
9655  ac_cv_lbl_snf_api="no"
9656fi
9657
9658		LDFLAGS="$saved_ldflags"
9659
9660		if test $ac_cv_lbl_snf_api = no; then
9661			if test "$want_snf" = yes; then
9662				{ { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9663echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9664   { (exit 1); exit 1; }; }
9665			fi
9666		else
9667			V_INCLS="$V_INCLS -I$snf_include_dir"
9668			LIBS="$LIBS -lsnf"
9669			LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9670			if test "$V_PCAP" != snf ; then
9671				SSRC="pcap-snf.c"
9672			fi
9673
9674cat >>confdefs.h <<\_ACEOF
9675#define HAVE_SNF_API 1
9676_ACEOF
9677
9678		fi
9679	fi
9680fi
9681
9682if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9683	{ { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9684echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9685   { (exit 1); exit 1; }; }
9686fi
9687
9688
9689# Check whether --with-flex was given.
9690if test "${with_flex+set}" = set; then
9691  withval=$with_flex;
9692fi
9693
9694
9695# Check whether --with-bison was given.
9696if test "${with_bison+set}" = set; then
9697  withval=$with_bison;
9698fi
9699
9700    if test "$with_flex" = no ; then
9701	    V_LEX=lex
9702    else
9703	    for ac_prog in flex
9704do
9705  # Extract the first word of "$ac_prog", so it can be a program name with args.
9706set dummy $ac_prog; ac_word=$2
9707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9709if test "${ac_cv_prog_V_LEX+set}" = set; then
9710  echo $ECHO_N "(cached) $ECHO_C" >&6
9711else
9712  if test -n "$V_LEX"; then
9713  ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9714else
9715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716for as_dir in $PATH
9717do
9718  IFS=$as_save_IFS
9719  test -z "$as_dir" && as_dir=.
9720  for ac_exec_ext in '' $ac_executable_extensions; do
9721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9722    ac_cv_prog_V_LEX="$ac_prog"
9723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9724    break 2
9725  fi
9726done
9727done
9728IFS=$as_save_IFS
9729
9730fi
9731fi
9732V_LEX=$ac_cv_prog_V_LEX
9733if test -n "$V_LEX"; then
9734  { echo "$as_me:$LINENO: result: $V_LEX" >&5
9735echo "${ECHO_T}$V_LEX" >&6; }
9736else
9737  { echo "$as_me:$LINENO: result: no" >&5
9738echo "${ECHO_T}no" >&6; }
9739fi
9740
9741
9742  test -n "$V_LEX" && break
9743done
9744test -n "$V_LEX" || V_LEX="lex"
9745
9746    fi
9747    if test "$V_LEX" = flex ; then
9748	    # The -V flag was added in 2.4
9749	    { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9750echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9751	    if test "${ac_cv_lbl_flex_v24+set}" = set; then
9752  echo $ECHO_N "(cached) $ECHO_C" >&6
9753else
9754  if flex -V >/dev/null 2>&1; then
9755			ac_cv_lbl_flex_v24=yes
9756		else
9757			ac_cv_lbl_flex_v24=no
9758		fi
9759fi
9760
9761	    { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9762echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9763	    if test $ac_cv_lbl_flex_v24 = no ; then
9764		    s="2.4 or higher required"
9765		    { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9766echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9767		    V_LEX=lex
9768	    fi
9769    fi
9770    if test "$with_bison" = no ; then
9771	    V_YACC=yacc
9772    else
9773	    for ac_prog in bison
9774do
9775  # Extract the first word of "$ac_prog", so it can be a program name with args.
9776set dummy $ac_prog; ac_word=$2
9777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9779if test "${ac_cv_prog_V_YACC+set}" = set; then
9780  echo $ECHO_N "(cached) $ECHO_C" >&6
9781else
9782  if test -n "$V_YACC"; then
9783  ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9784else
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788  IFS=$as_save_IFS
9789  test -z "$as_dir" && as_dir=.
9790  for ac_exec_ext in '' $ac_executable_extensions; do
9791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792    ac_cv_prog_V_YACC="$ac_prog"
9793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9794    break 2
9795  fi
9796done
9797done
9798IFS=$as_save_IFS
9799
9800fi
9801fi
9802V_YACC=$ac_cv_prog_V_YACC
9803if test -n "$V_YACC"; then
9804  { echo "$as_me:$LINENO: result: $V_YACC" >&5
9805echo "${ECHO_T}$V_YACC" >&6; }
9806else
9807  { echo "$as_me:$LINENO: result: no" >&5
9808echo "${ECHO_T}no" >&6; }
9809fi
9810
9811
9812  test -n "$V_YACC" && break
9813done
9814test -n "$V_YACC" || V_YACC="yacc"
9815
9816    fi
9817    if test "$V_YACC" = bison ; then
9818	    V_YACC="$V_YACC -y"
9819    fi
9820    if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9821	    { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9822echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9823	    V_LEX=lex
9824	    V_YACC=yacc
9825    fi
9826    if test "$V_LEX" = flex -a -n "pcap_" ; then
9827	    V_LEX="$V_LEX -Ppcap_"
9828	    V_YACC="$V_YACC -p pcap_"
9829    fi
9830if test "$V_LEX" = lex ; then
9831# Some versions of lex can't handle the definitions section of scanner.l .
9832# Try lexing it and complain if it can't deal.
9833	{ echo "$as_me:$LINENO: checking for capable lex" >&5
9834echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9835if test "${tcpdump_cv_capable_lex+set}" = set; then
9836  echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838  if lex -t scanner.l > /dev/null 2>&1; then
9839			tcpdump_cv_capable_lex=yes
9840		else
9841			tcpdump_cv_capable_lex=insufficient
9842		fi
9843fi
9844{ echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9845echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9846	if test $tcpdump_cv_capable_lex = insufficient ; then
9847		{ { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9848 libpcap.  flex is a lex replacement that has many advantages, including
9849 being able to compile libpcap.  For more information, see
9850 http://www.gnu.org/software/flex/flex.html ." >&5
9851echo "$as_me: error: Your operating system's lex is insufficient to compile
9852 libpcap.  flex is a lex replacement that has many advantages, including
9853 being able to compile libpcap.  For more information, see
9854 http://www.gnu.org/software/flex/flex.html ." >&2;}
9855   { (exit 1); exit 1; }; }
9856	fi
9857fi
9858
9859#
9860# Assume, by default, no support for shared libraries and V7/BSD convention
9861# for man pages (file formats in section 5, miscellaneous info in section 7).
9862# Individual cases can override this.
9863#
9864DYEXT="none"
9865MAN_FILE_FORMATS=5
9866MAN_MISC_INFO=7
9867case "$host_os" in
9868
9869aix*)
9870
9871cat >>confdefs.h <<\_ACEOF
9872#define _SUN 1
9873_ACEOF
9874
9875
9876	#
9877	# AIX makes it fun to build shared and static libraries,
9878	# because they're *both* ".a" archive libraries.  We
9879	# build the static library for the benefit of the traditional
9880	# scheme of building libpcap and tcpdump in subdirectories of
9881	# the same directory, with tcpdump statically linked with the
9882	# libpcap in question, but we also build a shared library as
9883	# "libpcap.shareda" and install *it*, rather than the static
9884	# library, as "libpcap.a".
9885	#
9886	DYEXT="shareda"
9887
9888	case "$V_PCAP" in
9889
9890	dlpi)
9891		#
9892		# If we're using DLPI, applications will need to
9893		# use /lib/pse.exp if present, as we use the
9894		# STREAMS routines.
9895		#
9896		pseexe="/lib/pse.exp"
9897		{ echo "$as_me:$LINENO: checking for $pseexe" >&5
9898echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9899		if test -f $pseexe ; then
9900			{ echo "$as_me:$LINENO: result: yes" >&5
9901echo "${ECHO_T}yes" >&6; }
9902			LIBS="-I:$pseexe"
9903		fi
9904		;;
9905
9906	bpf)
9907		#
9908		# If we're using BPF, we need "-lodm" and "-lcfg", as
9909		# we use them to load the BPF module.
9910		#
9911		LIBS="-lodm -lcfg"
9912		;;
9913	esac
9914	;;
9915
9916darwin*)
9917	DYEXT="dylib"
9918	V_CCOPT="$V_CCOPT -fno-common"
9919	# Check whether --enable-universal was given.
9920if test "${enable_universal+set}" = set; then
9921  enableval=$enable_universal;
9922fi
9923
9924	if test "$enable_universal" != "no"; then
9925		case "$host_os" in
9926
9927		darwin9.*)
9928			#
9929			# Leopard.  Build for 32-bit PowerPC, 64-bit
9930			# PowerPC, x86, and x86-64, with 32-bit PowerPC
9931			# first.  (That's what Apple does.)
9932			#
9933			V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9934			LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9935			;;
9936
9937		darwin10.*)
9938			#
9939			# Snow Leopard.  Build for x86-64, x86, and
9940			# 32-bit PowerPC, with x86-64 first.  (That's
9941			# what Apple does, even though Snow Leopard
9942			# doesn't run on PPC, so PPC libpcap runs under
9943			# Rosetta, and Rosetta doesn't support BPF
9944			# ioctls, so PPC programs can't do live
9945			# captures.)
9946			#
9947			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
9948			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
9949			;;
9950
9951		darwin11.*)
9952			#
9953			# Lion.  Build for x86-64 and x86, with x86-64
9954			# first.  (That's probably what Apple does,
9955			# given that Rosetta is gone.)
9956			#
9957			V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
9958			LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
9959			;;
9960		esac
9961	fi
9962	;;
9963
9964hpux9*)
9965
9966cat >>confdefs.h <<\_ACEOF
9967#define HAVE_HPUX9 1
9968_ACEOF
9969
9970
9971	#
9972	# Use System V conventions for man pages.
9973	#
9974	MAN_FILE_FORMATS=4
9975	MAN_MISC_INFO=5
9976	;;
9977
9978hpux10.0*)
9979
9980	#
9981	# Use System V conventions for man pages.
9982	#
9983	MAN_FILE_FORMATS=4
9984	MAN_MISC_INFO=5
9985	;;
9986
9987hpux10.1*)
9988
9989	#
9990	# Use System V conventions for man pages.
9991	#
9992	MAN_FILE_FORMATS=4
9993	MAN_MISC_INFO=5
9994	;;
9995
9996hpux*)
9997
9998cat >>confdefs.h <<\_ACEOF
9999#define HAVE_HPUX10_20_OR_LATER 1
10000_ACEOF
10001
10002	if test "`uname -m`" = "ia64"; then
10003		DYEXT="so"
10004	else
10005		DYEXT="sl"
10006	fi
10007
10008	#
10009	# "-b" builds a shared library; "+h" sets the soname.
10010	#
10011	SHLIB_OPT="-b"
10012	SONAME_OPT="+h"
10013
10014	#
10015	# Use System V conventions for man pages.
10016	#
10017	MAN_FILE_FORMATS=4
10018	MAN_MISC_INFO=5
10019	;;
10020
10021irix*)
10022	#
10023	# Use System V conventions for man pages.
10024	#
10025	MAN_FILE_FORMATS=4
10026	MAN_MISC_INFO=5
10027	;;
10028
10029linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
10030	DYEXT="so"
10031
10032	#
10033	# Compiler assumed to be GCC; run-time linker may require a -R
10034	# flag.
10035	#
10036	if test "$libdir" != "/usr/lib"; then
10037		V_RFLAGS=-Wl,-R$libdir
10038	fi
10039	;;
10040
10041osf*)
10042	DYEXT="so"
10043
10044	#
10045	# Use System V conventions for man pages.
10046	#
10047	MAN_FILE_FORMATS=4
10048	MAN_MISC_INFO=5
10049	;;
10050
10051sinix*)
10052	{ echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
10053echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
10054	if test "${ac_cv_cc_sinix_defined+set}" = set; then
10055  echo $ECHO_N "(cached) $ECHO_C" >&6
10056else
10057  cat >conftest.$ac_ext <<_ACEOF
10058/* confdefs.h.  */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h.  */
10063
10064int
10065main ()
10066{
10067int i = sinix;
10068  ;
10069  return 0;
10070}
10071_ACEOF
10072rm -f conftest.$ac_objext
10073if { (ac_try="$ac_compile"
10074case "(($ac_try" in
10075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076  *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079  (eval "$ac_compile") 2>conftest.er1
10080  ac_status=$?
10081  grep -v '^ *+' conftest.er1 >conftest.err
10082  rm -f conftest.er1
10083  cat conftest.err >&5
10084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085  (exit $ac_status); } && {
10086	 test -z "$ac_c_werror_flag" ||
10087	 test ! -s conftest.err
10088       } && test -s conftest.$ac_objext; then
10089  ac_cv_cc_sinix_defined=yes
10090else
10091  echo "$as_me: failed program was:" >&5
10092sed 's/^/| /' conftest.$ac_ext >&5
10093
10094	ac_cv_cc_sinix_defined=no
10095fi
10096
10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098fi
10099
10100	    { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
10101echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10102	    if test $ac_cv_cc_sinix_defined = no ; then
10103
10104cat >>confdefs.h <<\_ACEOF
10105#define sinix 1
10106_ACEOF
10107
10108	    fi
10109	;;
10110
10111solaris*)
10112
10113cat >>confdefs.h <<\_ACEOF
10114#define HAVE_SOLARIS 1
10115_ACEOF
10116
10117
10118	DYEXT="so"
10119	#
10120	# Use System V conventions for man pages.
10121	#
10122	MAN_FILE_FORMATS=4
10123	MAN_MISC_INFO=5
10124	;;
10125esac
10126
10127if test -n "$ac_tool_prefix"; then
10128  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10129set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10132if test "${ac_cv_prog_RANLIB+set}" = set; then
10133  echo $ECHO_N "(cached) $ECHO_C" >&6
10134else
10135  if test -n "$RANLIB"; then
10136  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10137else
10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $PATH
10140do
10141  IFS=$as_save_IFS
10142  test -z "$as_dir" && as_dir=.
10143  for ac_exec_ext in '' $ac_executable_extensions; do
10144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10145    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147    break 2
10148  fi
10149done
10150done
10151IFS=$as_save_IFS
10152
10153fi
10154fi
10155RANLIB=$ac_cv_prog_RANLIB
10156if test -n "$RANLIB"; then
10157  { echo "$as_me:$LINENO: result: $RANLIB" >&5
10158echo "${ECHO_T}$RANLIB" >&6; }
10159else
10160  { echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6; }
10162fi
10163
10164
10165fi
10166if test -z "$ac_cv_prog_RANLIB"; then
10167  ac_ct_RANLIB=$RANLIB
10168  # Extract the first word of "ranlib", so it can be a program name with args.
10169set dummy ranlib; ac_word=$2
10170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10172if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10173  echo $ECHO_N "(cached) $ECHO_C" >&6
10174else
10175  if test -n "$ac_ct_RANLIB"; then
10176  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10177else
10178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179for as_dir in $PATH
10180do
10181  IFS=$as_save_IFS
10182  test -z "$as_dir" && as_dir=.
10183  for ac_exec_ext in '' $ac_executable_extensions; do
10184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185    ac_cv_prog_ac_ct_RANLIB="ranlib"
10186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10187    break 2
10188  fi
10189done
10190done
10191IFS=$as_save_IFS
10192
10193fi
10194fi
10195ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10196if test -n "$ac_ct_RANLIB"; then
10197  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10198echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10199else
10200  { echo "$as_me:$LINENO: result: no" >&5
10201echo "${ECHO_T}no" >&6; }
10202fi
10203
10204  if test "x$ac_ct_RANLIB" = x; then
10205    RANLIB=":"
10206  else
10207    case $cross_compiling:$ac_tool_warned in
10208yes:)
10209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10210whose name does not start with the host triplet.  If you think this
10211configuration is useful to you, please write to autoconf@gnu.org." >&5
10212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10213whose name does not start with the host triplet.  If you think this
10214configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10215ac_tool_warned=yes ;;
10216esac
10217    RANLIB=$ac_ct_RANLIB
10218  fi
10219else
10220  RANLIB="$ac_cv_prog_RANLIB"
10221fi
10222
10223if test -n "$ac_tool_prefix"; then
10224  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10225set dummy ${ac_tool_prefix}ar; ac_word=$2
10226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10228if test "${ac_cv_prog_AR+set}" = set; then
10229  echo $ECHO_N "(cached) $ECHO_C" >&6
10230else
10231  if test -n "$AR"; then
10232  ac_cv_prog_AR="$AR" # Let the user override the test.
10233else
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237  IFS=$as_save_IFS
10238  test -z "$as_dir" && as_dir=.
10239  for ac_exec_ext in '' $ac_executable_extensions; do
10240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10241    ac_cv_prog_AR="${ac_tool_prefix}ar"
10242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10243    break 2
10244  fi
10245done
10246done
10247IFS=$as_save_IFS
10248
10249fi
10250fi
10251AR=$ac_cv_prog_AR
10252if test -n "$AR"; then
10253  { echo "$as_me:$LINENO: result: $AR" >&5
10254echo "${ECHO_T}$AR" >&6; }
10255else
10256  { echo "$as_me:$LINENO: result: no" >&5
10257echo "${ECHO_T}no" >&6; }
10258fi
10259
10260
10261fi
10262if test -z "$ac_cv_prog_AR"; then
10263  ac_ct_AR=$AR
10264  # Extract the first word of "ar", so it can be a program name with args.
10265set dummy ar; ac_word=$2
10266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10268if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10269  echo $ECHO_N "(cached) $ECHO_C" >&6
10270else
10271  if test -n "$ac_ct_AR"; then
10272  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10273else
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277  IFS=$as_save_IFS
10278  test -z "$as_dir" && as_dir=.
10279  for ac_exec_ext in '' $ac_executable_extensions; do
10280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281    ac_cv_prog_ac_ct_AR="ar"
10282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283    break 2
10284  fi
10285done
10286done
10287IFS=$as_save_IFS
10288
10289fi
10290fi
10291ac_ct_AR=$ac_cv_prog_ac_ct_AR
10292if test -n "$ac_ct_AR"; then
10293  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10294echo "${ECHO_T}$ac_ct_AR" >&6; }
10295else
10296  { echo "$as_me:$LINENO: result: no" >&5
10297echo "${ECHO_T}no" >&6; }
10298fi
10299
10300  if test "x$ac_ct_AR" = x; then
10301    AR=""
10302  else
10303    case $cross_compiling:$ac_tool_warned in
10304yes:)
10305{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10306whose name does not start with the host triplet.  If you think this
10307configuration is useful to you, please write to autoconf@gnu.org." >&5
10308echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10309whose name does not start with the host triplet.  If you think this
10310configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10311ac_tool_warned=yes ;;
10312esac
10313    AR=$ac_ct_AR
10314  fi
10315else
10316  AR="$ac_cv_prog_AR"
10317fi
10318
10319
10320rm -f os-proto.h
10321    if test "${LBL_CFLAGS+set}" = set; then
10322	    V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10323    fi
10324    if test -f .devel ; then
10325	    if test "$GCC" = yes ; then
10326		    if test "${LBL_CFLAGS+set}" != set; then
10327			    if test "$ac_cv_prog_cc_g" = yes ; then
10328				    V_CCOPT="-g $V_CCOPT"
10329			    fi
10330			    V_CCOPT="$V_CCOPT -Wall"
10331			    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10332				    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10333			    fi
10334		    fi
10335	    else
10336		    case "$host_os" in
10337
10338		    irix6*)
10339			    V_CCOPT="$V_CCOPT -n32"
10340			    ;;
10341
10342		    *)
10343			    ;;
10344		    esac
10345	    fi
10346	    os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10347	    name="lbl/os-$os.h"
10348	    if test -f $name ; then
10349		    ln -s $name os-proto.h
10350
10351cat >>confdefs.h <<\_ACEOF
10352#define HAVE_OS_PROTO_H 1
10353_ACEOF
10354
10355	    else
10356		    { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10357echo "$as_me: WARNING: can't find $name" >&2;}
10358	    fi
10359    fi
10360
10361{ echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10362echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10363    if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10364  echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
10366  cat >conftest.$ac_ext <<_ACEOF
10367/* confdefs.h.  */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
10371/* end confdefs.h.  */
10372
10373#	include <sys/types.h>
10374#	include <sys/socket.h>
10375int
10376main ()
10377{
10378u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383rm -f conftest.$ac_objext
10384if { (ac_try="$ac_compile"
10385case "(($ac_try" in
10386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387  *) ac_try_echo=$ac_try;;
10388esac
10389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390  (eval "$ac_compile") 2>conftest.er1
10391  ac_status=$?
10392  grep -v '^ *+' conftest.er1 >conftest.err
10393  rm -f conftest.er1
10394  cat conftest.err >&5
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); } && {
10397	 test -z "$ac_c_werror_flag" ||
10398	 test ! -s conftest.err
10399       } && test -s conftest.$ac_objext; then
10400  ac_cv_lbl_sockaddr_has_sa_len=yes
10401else
10402  echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
10405	ac_cv_lbl_sockaddr_has_sa_len=no
10406fi
10407
10408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10409fi
10410
10411    { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10412echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10413    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10414
10415cat >>confdefs.h <<\_ACEOF
10416#define HAVE_SOCKADDR_SA_LEN 1
10417_ACEOF
10418
10419    fi
10420
10421{ echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10422echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10423    if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10424  echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426  cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h.  */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h.  */
10432
10433#	include <sys/types.h>
10434#	include <sys/socket.h>
10435int
10436main ()
10437{
10438u_int i = sizeof (struct sockaddr_storage)
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443rm -f conftest.$ac_objext
10444if { (ac_try="$ac_compile"
10445case "(($ac_try" in
10446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447  *) ac_try_echo=$ac_try;;
10448esac
10449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450  (eval "$ac_compile") 2>conftest.er1
10451  ac_status=$?
10452  grep -v '^ *+' conftest.er1 >conftest.err
10453  rm -f conftest.er1
10454  cat conftest.err >&5
10455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456  (exit $ac_status); } && {
10457	 test -z "$ac_c_werror_flag" ||
10458	 test ! -s conftest.err
10459       } && test -s conftest.$ac_objext; then
10460  ac_cv_lbl_has_sockaddr_storage=yes
10461else
10462  echo "$as_me: failed program was:" >&5
10463sed 's/^/| /' conftest.$ac_ext >&5
10464
10465	ac_cv_lbl_has_sockaddr_storage=no
10466fi
10467
10468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469fi
10470
10471    { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10472echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10473    if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10474
10475cat >>confdefs.h <<\_ACEOF
10476#define HAVE_SOCKADDR_STORAGE 1
10477_ACEOF
10478
10479    fi
10480
10481{ echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10482echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10483    if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10484  echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486  cat >conftest.$ac_ext <<_ACEOF
10487/* confdefs.h.  */
10488_ACEOF
10489cat confdefs.h >>conftest.$ac_ext
10490cat >>conftest.$ac_ext <<_ACEOF
10491/* end confdefs.h.  */
10492
10493#	include <sys/types.h>
10494#	include <sys/dlpi.h>
10495#	include <sys/dlpi_ext.h>
10496int
10497main ()
10498{
10499u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext
10505if { (ac_try="$ac_compile"
10506case "(($ac_try" in
10507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508  *) ac_try_echo=$ac_try;;
10509esac
10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511  (eval "$ac_compile") 2>conftest.er1
10512  ac_status=$?
10513  grep -v '^ *+' conftest.er1 >conftest.err
10514  rm -f conftest.er1
10515  cat conftest.err >&5
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); } && {
10518	 test -z "$ac_c_werror_flag" ||
10519	 test ! -s conftest.err
10520       } && test -s conftest.$ac_objext; then
10521  ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10522else
10523  echo "$as_me: failed program was:" >&5
10524sed 's/^/| /' conftest.$ac_ext >&5
10525
10526	ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10527fi
10528
10529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530fi
10531
10532    { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10533echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10534    if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10535
10536cat >>confdefs.h <<\_ACEOF
10537#define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10538_ACEOF
10539
10540    fi
10541
10542{ echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10543echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10544    if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10545  echo $ECHO_N "(cached) $ECHO_C" >&6
10546else
10547  case "$host_cpu" in
10548
10549	#
10550	# These are CPU types where:
10551	#
10552	#	the CPU faults on an unaligned access, but at least some
10553	#	OSes that support that CPU catch the fault and simulate
10554	#	the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10555	#	the simulation is slow, so we don't want to use it;
10556	#
10557	#	the CPU, I infer (from the old
10558	#
10559	# XXX: should also check that they don't do weird things (like on arm)
10560	#
10561	#	comment) doesn't fault on unaligned accesses, but doesn't
10562	#	do a normal unaligned fetch, either (e.g., presumably, ARM);
10563	#
10564	#	for whatever reason, the test program doesn't work
10565	#	(this has been claimed to be the case for several of those
10566	#	CPUs - I don't know what the problem is; the problem
10567	#	was reported as "the test program dumps core" for SuperH,
10568	#	but that's what the test program is *supposed* to do -
10569	#	it dumps core before it writes anything, so the test
10570	#	for an empty output file should find an empty output
10571	#	file and conclude that unaligned accesses don't work).
10572	#
10573	# This run-time test won't work if you're cross-compiling, so
10574	# in order to support cross-compiling for a particular CPU,
10575	# we have to wire in the list of CPU types anyway, as far as
10576	# I know, so perhaps we should just have a set of CPUs on
10577	# which we know it doesn't work, a set of CPUs on which we
10578	# know it does work, and have the script just fail on other
10579	# cpu types and update it when such a failure occurs.
10580	#
10581	alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10582		ac_cv_lbl_unaligned_fail=yes
10583		;;
10584
10585	*)
10586		cat >conftest.c <<EOF
10587#		include <sys/types.h>
10588#		include <sys/wait.h>
10589#		include <stdio.h>
10590		unsigned char a[5] = { 1, 2, 3, 4, 5 };
10591		main() {
10592		unsigned int i;
10593		pid_t pid;
10594		int status;
10595		/* avoid "core dumped" message */
10596		pid = fork();
10597		if (pid <  0)
10598			exit(2);
10599		if (pid > 0) {
10600			/* parent */
10601			pid = waitpid(pid, &status, 0);
10602			if (pid < 0)
10603				exit(3);
10604			exit(!WIFEXITED(status));
10605		}
10606		/* child */
10607		i = *(unsigned int *)&a[1];
10608		printf("%d\n", i);
10609		exit(0);
10610		}
10611EOF
10612		${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10613		    conftest.c $LIBS >/dev/null 2>&1
10614		if test ! -x conftest ; then
10615						ac_cv_lbl_unaligned_fail=yes
10616		else
10617			./conftest >conftest.out
10618			if test ! -s conftest.out ; then
10619				ac_cv_lbl_unaligned_fail=yes
10620			else
10621				ac_cv_lbl_unaligned_fail=no
10622			fi
10623		fi
10624		rm -f -r conftest* core core.conftest
10625		;;
10626	esac
10627fi
10628
10629    { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10630echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10631    if test $ac_cv_lbl_unaligned_fail = yes ; then
10632
10633cat >>confdefs.h <<\_ACEOF
10634#define LBL_ALIGN 1
10635_ACEOF
10636
10637    fi
10638
10639#
10640# Makefile.in includes rules to generate version.h, so we assume
10641# that it will be generated if autoconf is used.
10642#
10643
10644cat >>confdefs.h <<\_ACEOF
10645#define HAVE_VERSION_H 1
10646_ACEOF
10647
10648
10649rm -f net
10650ln -s ${srcdir}/bpf/net net
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670{ echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10671echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10672case "$host_os" in
10673linux*)
10674
10675cat >>confdefs.h <<\_ACEOF
10676#define PCAP_SUPPORT_USB 1
10677_ACEOF
10678
10679	USB_SRC=pcap-usb-linux.c
10680	{ echo "$as_me:$LINENO: result: yes" >&5
10681echo "${ECHO_T}yes" >&6; }
10682	ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10683	if test $? -ne 0 ; then
10684	  ac_usb_dev_name="usbmon"
10685	fi
10686
10687cat >>confdefs.h <<_ACEOF
10688#define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10689_ACEOF
10690
10691	{ echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10692echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10693	#
10694	# Do we have a version of <linux/compiler.h> available?
10695	# If so, we might need it for <linux/usbdevice_fs.h>.
10696	#
10697
10698for ac_header in linux/compiler.h
10699do
10700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10705  echo $ECHO_N "(cached) $ECHO_C" >&6
10706fi
10707ac_res=`eval echo '${'$as_ac_Header'}'`
10708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10709echo "${ECHO_T}$ac_res" >&6; }
10710else
10711  # Is the header compilable?
10712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10714cat >conftest.$ac_ext <<_ACEOF
10715/* confdefs.h.  */
10716_ACEOF
10717cat confdefs.h >>conftest.$ac_ext
10718cat >>conftest.$ac_ext <<_ACEOF
10719/* end confdefs.h.  */
10720$ac_includes_default
10721#include <$ac_header>
10722_ACEOF
10723rm -f conftest.$ac_objext
10724if { (ac_try="$ac_compile"
10725case "(($ac_try" in
10726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727  *) ac_try_echo=$ac_try;;
10728esac
10729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730  (eval "$ac_compile") 2>conftest.er1
10731  ac_status=$?
10732  grep -v '^ *+' conftest.er1 >conftest.err
10733  rm -f conftest.er1
10734  cat conftest.err >&5
10735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736  (exit $ac_status); } && {
10737	 test -z "$ac_c_werror_flag" ||
10738	 test ! -s conftest.err
10739       } && test -s conftest.$ac_objext; then
10740  ac_header_compiler=yes
10741else
10742  echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
10745	ac_header_compiler=no
10746fi
10747
10748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750echo "${ECHO_T}$ac_header_compiler" >&6; }
10751
10752# Is the header present?
10753{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h.  */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h.  */
10761#include <$ac_header>
10762_ACEOF
10763if { (ac_try="$ac_cpp conftest.$ac_ext"
10764case "(($ac_try" in
10765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766  *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10770  ac_status=$?
10771  grep -v '^ *+' conftest.er1 >conftest.err
10772  rm -f conftest.er1
10773  cat conftest.err >&5
10774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775  (exit $ac_status); } >/dev/null && {
10776	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777	 test ! -s conftest.err
10778       }; then
10779  ac_header_preproc=yes
10780else
10781  echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784  ac_header_preproc=no
10785fi
10786
10787rm -f conftest.err conftest.$ac_ext
10788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789echo "${ECHO_T}$ac_header_preproc" >&6; }
10790
10791# So?  What about this header?
10792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793  yes:no: )
10794    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798    ac_header_preproc=yes
10799    ;;
10800  no:yes:* )
10801    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10804echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10805    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10808echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10809    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813
10814    ;;
10815esac
10816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10819  echo $ECHO_N "(cached) $ECHO_C" >&6
10820else
10821  eval "$as_ac_Header=\$ac_header_preproc"
10822fi
10823ac_res=`eval echo '${'$as_ac_Header'}'`
10824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10825echo "${ECHO_T}$ac_res" >&6; }
10826
10827fi
10828if test `eval echo '${'$as_ac_Header'}'` = yes; then
10829  cat >>confdefs.h <<_ACEOF
10830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10831_ACEOF
10832
10833fi
10834
10835done
10836
10837	if test "$ac_cv_header_linux_compiler_h" = yes; then
10838	  #
10839	  # Yes - include it when testing for <linux/usbdevice_fs.h>.
10840	  #
10841
10842for ac_header in linux/usbdevice_fs.h
10843do
10844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10848  echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850  cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h.  */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h.  */
10856#include <linux/compiler.h>
10857
10858#include <$ac_header>
10859_ACEOF
10860rm -f conftest.$ac_objext
10861if { (ac_try="$ac_compile"
10862case "(($ac_try" in
10863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864  *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867  (eval "$ac_compile") 2>conftest.er1
10868  ac_status=$?
10869  grep -v '^ *+' conftest.er1 >conftest.err
10870  rm -f conftest.er1
10871  cat conftest.err >&5
10872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873  (exit $ac_status); } && {
10874	 test -z "$ac_c_werror_flag" ||
10875	 test ! -s conftest.err
10876       } && test -s conftest.$ac_objext; then
10877  eval "$as_ac_Header=yes"
10878else
10879  echo "$as_me: failed program was:" >&5
10880sed 's/^/| /' conftest.$ac_ext >&5
10881
10882	eval "$as_ac_Header=no"
10883fi
10884
10885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10886fi
10887ac_res=`eval echo '${'$as_ac_Header'}'`
10888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10889echo "${ECHO_T}$ac_res" >&6; }
10890if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891  cat >>confdefs.h <<_ACEOF
10892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10893_ACEOF
10894
10895fi
10896
10897done
10898
10899	else
10900
10901for ac_header in linux/usbdevice_fs.h
10902do
10903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908  echo $ECHO_N "(cached) $ECHO_C" >&6
10909fi
10910ac_res=`eval echo '${'$as_ac_Header'}'`
10911	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10912echo "${ECHO_T}$ac_res" >&6; }
10913else
10914  # Is the header compilable?
10915{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10917cat >conftest.$ac_ext <<_ACEOF
10918/* confdefs.h.  */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h.  */
10923$ac_includes_default
10924#include <$ac_header>
10925_ACEOF
10926rm -f conftest.$ac_objext
10927if { (ac_try="$ac_compile"
10928case "(($ac_try" in
10929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930  *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933  (eval "$ac_compile") 2>conftest.er1
10934  ac_status=$?
10935  grep -v '^ *+' conftest.er1 >conftest.err
10936  rm -f conftest.er1
10937  cat conftest.err >&5
10938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939  (exit $ac_status); } && {
10940	 test -z "$ac_c_werror_flag" ||
10941	 test ! -s conftest.err
10942       } && test -s conftest.$ac_objext; then
10943  ac_header_compiler=yes
10944else
10945  echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948	ac_header_compiler=no
10949fi
10950
10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10953echo "${ECHO_T}$ac_header_compiler" >&6; }
10954
10955# Is the header present?
10956{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10958cat >conftest.$ac_ext <<_ACEOF
10959/* confdefs.h.  */
10960_ACEOF
10961cat confdefs.h >>conftest.$ac_ext
10962cat >>conftest.$ac_ext <<_ACEOF
10963/* end confdefs.h.  */
10964#include <$ac_header>
10965_ACEOF
10966if { (ac_try="$ac_cpp conftest.$ac_ext"
10967case "(($ac_try" in
10968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969  *) ac_try_echo=$ac_try;;
10970esac
10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10973  ac_status=$?
10974  grep -v '^ *+' conftest.er1 >conftest.err
10975  rm -f conftest.er1
10976  cat conftest.err >&5
10977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978  (exit $ac_status); } >/dev/null && {
10979	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10980	 test ! -s conftest.err
10981       }; then
10982  ac_header_preproc=yes
10983else
10984  echo "$as_me: failed program was:" >&5
10985sed 's/^/| /' conftest.$ac_ext >&5
10986
10987  ac_header_preproc=no
10988fi
10989
10990rm -f conftest.err conftest.$ac_ext
10991{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10992echo "${ECHO_T}$ac_header_preproc" >&6; }
10993
10994# So?  What about this header?
10995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10996  yes:no: )
10997    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10999    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11000echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11001    ac_header_preproc=yes
11002    ;;
11003  no:yes:* )
11004    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11006    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11007echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11008    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11009echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11010    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11011echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11012    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11014    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11015echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11016
11017    ;;
11018esac
11019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022  echo $ECHO_N "(cached) $ECHO_C" >&6
11023else
11024  eval "$as_ac_Header=\$ac_header_preproc"
11025fi
11026ac_res=`eval echo '${'$as_ac_Header'}'`
11027	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11028echo "${ECHO_T}$ac_res" >&6; }
11029
11030fi
11031if test `eval echo '${'$as_ac_Header'}'` = yes; then
11032  cat >>confdefs.h <<_ACEOF
11033#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11034_ACEOF
11035
11036fi
11037
11038done
11039
11040	fi
11041	if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11042	  #
11043	  # OK, does it define bRequestType?  Older versions of the kernel
11044	  # define fields with names like "requesttype, "request", and
11045	  # "value", rather than "bRequestType", "bRequest", and
11046	  # "wValue".
11047	  #
11048	  { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11049echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11050	  if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11051  echo $ECHO_N "(cached) $ECHO_C" >&6
11052else
11053  cat >conftest.$ac_ext <<_ACEOF
11054/* confdefs.h.  */
11055_ACEOF
11056cat confdefs.h >>conftest.$ac_ext
11057cat >>conftest.$ac_ext <<_ACEOF
11058/* end confdefs.h.  */
11059
11060$ac_includes_default
11061#ifdef HAVE_SYS_BITYPES_H
11062#include <sys/bitypes.h>
11063#endif
11064#ifdef HAVE_LINUX_COMPILER_H
11065#include <linux/compiler.h>
11066#endif
11067#include <linux/usbdevice_fs.h>
11068int
11069main ()
11070{
11071u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11072  ;
11073  return 0;
11074}
11075_ACEOF
11076rm -f conftest.$ac_objext
11077if { (ac_try="$ac_compile"
11078case "(($ac_try" in
11079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080  *) ac_try_echo=$ac_try;;
11081esac
11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083  (eval "$ac_compile") 2>conftest.er1
11084  ac_status=$?
11085  grep -v '^ *+' conftest.er1 >conftest.err
11086  rm -f conftest.er1
11087  cat conftest.err >&5
11088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089  (exit $ac_status); } && {
11090	 test -z "$ac_c_werror_flag" ||
11091	 test ! -s conftest.err
11092       } && test -s conftest.$ac_objext; then
11093  ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11094else
11095  echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
11098	ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11099fi
11100
11101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102fi
11103
11104	    { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11105echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11106	    if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11107
11108cat >>confdefs.h <<\_ACEOF
11109#define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11110_ACEOF
11111
11112	    fi
11113	fi
11114	;;
11115*)
11116	{ echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6; }
11118	;;
11119esac
11120
11121
11122
11123{ echo "$as_me:$LINENO: checking whether the platform could support netfilter sniffing" >&5
11124echo $ECHO_N "checking whether the platform could support netfilter sniffing... $ECHO_C" >&6; }
11125case "$host_os" in
11126linux*)
11127	{ echo "$as_me:$LINENO: result: yes" >&5
11128echo "${ECHO_T}yes" >&6; }
11129	#
11130	# Life's too short to deal with trying to get this to compile
11131	# if you don't get the right types defined with
11132	# __KERNEL_STRICT_NAMES getting defined by some other include.
11133	#
11134	# Check whether the includes Just Work.  If not, don't turn on
11135	# netfilter support.
11136	#
11137	{ echo "$as_me:$LINENO: checking whether we can compile the netfilter support" >&5
11138echo $ECHO_N "checking whether we can compile the netfilter support... $ECHO_C" >&6; }
11139	if test "${ac_cv_netfilter_can_compile+set}" = set; then
11140  echo $ECHO_N "(cached) $ECHO_C" >&6
11141else
11142  cat >conftest.$ac_ext <<_ACEOF
11143/* confdefs.h.  */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h.  */
11148
11149$ac_includes_default
11150#include <sys/socket.h>
11151#include <linux/types.h>
11152
11153#include <linux/netlink.h>
11154#include <linux/netfilter/nfnetlink.h>
11155#include <linux/netfilter/nfnetlink_log.h>
11156int
11157main ()
11158{
11159
11160  ;
11161  return 0;
11162}
11163_ACEOF
11164rm -f conftest.$ac_objext
11165if { (ac_try="$ac_compile"
11166case "(($ac_try" in
11167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168  *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171  (eval "$ac_compile") 2>conftest.er1
11172  ac_status=$?
11173  grep -v '^ *+' conftest.er1 >conftest.err
11174  rm -f conftest.er1
11175  cat conftest.err >&5
11176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177  (exit $ac_status); } && {
11178	 test -z "$ac_c_werror_flag" ||
11179	 test ! -s conftest.err
11180       } && test -s conftest.$ac_objext; then
11181  ac_cv_netfilter_can_compile=yes
11182else
11183  echo "$as_me: failed program was:" >&5
11184sed 's/^/| /' conftest.$ac_ext >&5
11185
11186	ac_cv_netfilter_can_compile=no
11187fi
11188
11189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190fi
11191
11192	{ echo "$as_me:$LINENO: result: $ac_cv_netfilter_can_compile" >&5
11193echo "${ECHO_T}$ac_cv_netfilter_can_compile" >&6; }
11194	if test $ac_cv_netfilter_can_compile = yes ; then
11195
11196cat >>confdefs.h <<\_ACEOF
11197#define PCAP_SUPPORT_NETFILTER 1
11198_ACEOF
11199
11200	  NETFILTER_SRC=pcap-netfilter-linux.c
11201	fi
11202	;;
11203*)
11204	{ echo "$as_me:$LINENO: result: no" >&5
11205echo "${ECHO_T}no" >&6; }
11206	;;
11207esac
11208
11209
11210
11211# Check whether --enable-bluetooth was given.
11212if test "${enable_bluetooth+set}" = set; then
11213  enableval=$enable_bluetooth;
11214else
11215  enable_bluetooth=yes
11216fi
11217
11218
11219if test "x$enable_bluetooth" != "xno" ; then
11220		case "$host_os" in
11221	linux*)
11222		if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11223  { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11224echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11225if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11226  echo $ECHO_N "(cached) $ECHO_C" >&6
11227fi
11228{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11229echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11230else
11231  # Is the header compilable?
11232{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11233echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11234cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h.  */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h.  */
11240$ac_includes_default
11241#include <bluetooth/bluetooth.h>
11242_ACEOF
11243rm -f conftest.$ac_objext
11244if { (ac_try="$ac_compile"
11245case "(($ac_try" in
11246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247  *) ac_try_echo=$ac_try;;
11248esac
11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250  (eval "$ac_compile") 2>conftest.er1
11251  ac_status=$?
11252  grep -v '^ *+' conftest.er1 >conftest.err
11253  rm -f conftest.er1
11254  cat conftest.err >&5
11255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256  (exit $ac_status); } && {
11257	 test -z "$ac_c_werror_flag" ||
11258	 test ! -s conftest.err
11259       } && test -s conftest.$ac_objext; then
11260  ac_header_compiler=yes
11261else
11262  echo "$as_me: failed program was:" >&5
11263sed 's/^/| /' conftest.$ac_ext >&5
11264
11265	ac_header_compiler=no
11266fi
11267
11268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11270echo "${ECHO_T}$ac_header_compiler" >&6; }
11271
11272# Is the header present?
11273{ echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11274echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11275cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h.  */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h.  */
11281#include <bluetooth/bluetooth.h>
11282_ACEOF
11283if { (ac_try="$ac_cpp conftest.$ac_ext"
11284case "(($ac_try" in
11285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286  *) ac_try_echo=$ac_try;;
11287esac
11288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11290  ac_status=$?
11291  grep -v '^ *+' conftest.er1 >conftest.err
11292  rm -f conftest.er1
11293  cat conftest.err >&5
11294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295  (exit $ac_status); } >/dev/null && {
11296	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11297	 test ! -s conftest.err
11298       }; then
11299  ac_header_preproc=yes
11300else
11301  echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
11304  ac_header_preproc=no
11305fi
11306
11307rm -f conftest.err conftest.$ac_ext
11308{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309echo "${ECHO_T}$ac_header_preproc" >&6; }
11310
11311# So?  What about this header?
11312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11313  yes:no: )
11314    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11315echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11317echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11318    ac_header_preproc=yes
11319    ;;
11320  no:yes:* )
11321    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11322echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11323    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
11324echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
11325    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11326echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11327    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
11328echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11329    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11330echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11331    { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11332echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11333
11334    ;;
11335esac
11336{ echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11337echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11338if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11339  echo $ECHO_N "(cached) $ECHO_C" >&6
11340else
11341  ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11342fi
11343{ echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11344echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11345
11346fi
11347if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11348
11349
11350cat >>confdefs.h <<\_ACEOF
11351#define PCAP_SUPPORT_BT 1
11352_ACEOF
11353
11354		  BT_SRC=pcap-bt-linux.c
11355		  { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11356echo "$as_me: Bluetooth sniffing is supported" >&6;}
11357
11358else
11359  { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11360echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11361
11362fi
11363
11364
11365		;;
11366	*)
11367		{ echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11368echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11369		;;
11370	esac
11371
11372
11373fi
11374
11375# Check whether --enable-can was given.
11376if test "${enable_can+set}" = set; then
11377  enableval=$enable_can;
11378else
11379  enable_can=yes
11380fi
11381
11382
11383if test "x$enable_can" != "xno" ; then
11384		case "$host_os" in
11385	linux*)
11386		{ echo "$as_me:$LINENO: checking for linux/can.h" >&5
11387echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11388if test "${ac_cv_header_linux_can_h+set}" = set; then
11389  echo $ECHO_N "(cached) $ECHO_C" >&6
11390else
11391  cat >conftest.$ac_ext <<_ACEOF
11392/* confdefs.h.  */
11393_ACEOF
11394cat confdefs.h >>conftest.$ac_ext
11395cat >>conftest.$ac_ext <<_ACEOF
11396/* end confdefs.h.  */
11397#include <sys/socket.h>
11398
11399
11400#include <linux/can.h>
11401_ACEOF
11402rm -f conftest.$ac_objext
11403if { (ac_try="$ac_compile"
11404case "(($ac_try" in
11405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406  *) ac_try_echo=$ac_try;;
11407esac
11408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409  (eval "$ac_compile") 2>conftest.er1
11410  ac_status=$?
11411  grep -v '^ *+' conftest.er1 >conftest.err
11412  rm -f conftest.er1
11413  cat conftest.err >&5
11414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415  (exit $ac_status); } && {
11416	 test -z "$ac_c_werror_flag" ||
11417	 test ! -s conftest.err
11418       } && test -s conftest.$ac_objext; then
11419  ac_cv_header_linux_can_h=yes
11420else
11421  echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
11424	ac_cv_header_linux_can_h=no
11425fi
11426
11427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428fi
11429{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11430echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11431if test $ac_cv_header_linux_can_h = yes; then
11432
11433cat >>confdefs.h <<\_ACEOF
11434#define PCAP_SUPPORT_CAN 1
11435_ACEOF
11436
11437			CAN_SRC=pcap-can-linux.c
11438			{ echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11439echo "$as_me: CAN sniffing is supported" >&6;}
11440else
11441  { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11442echo "$as_me: CAN sniffing is not supported" >&6;}
11443fi
11444
11445
11446		;;
11447	*)
11448		{ echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11449echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11450		;;
11451	esac
11452
11453
11454fi
11455
11456case "$host_os" in
11457linux*)
11458
11459for ac_header in linux/net_tstamp.h
11460do
11461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463  { echo "$as_me:$LINENO: checking for $ac_header" >&5
11464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466  echo $ECHO_N "(cached) $ECHO_C" >&6
11467fi
11468ac_res=`eval echo '${'$as_ac_Header'}'`
11469	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11470echo "${ECHO_T}$ac_res" >&6; }
11471else
11472  # Is the header compilable?
11473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11475cat >conftest.$ac_ext <<_ACEOF
11476/* confdefs.h.  */
11477_ACEOF
11478cat confdefs.h >>conftest.$ac_ext
11479cat >>conftest.$ac_ext <<_ACEOF
11480/* end confdefs.h.  */
11481$ac_includes_default
11482#include <$ac_header>
11483_ACEOF
11484rm -f conftest.$ac_objext
11485if { (ac_try="$ac_compile"
11486case "(($ac_try" in
11487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488  *) ac_try_echo=$ac_try;;
11489esac
11490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491  (eval "$ac_compile") 2>conftest.er1
11492  ac_status=$?
11493  grep -v '^ *+' conftest.er1 >conftest.err
11494  rm -f conftest.er1
11495  cat conftest.err >&5
11496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497  (exit $ac_status); } && {
11498	 test -z "$ac_c_werror_flag" ||
11499	 test ! -s conftest.err
11500       } && test -s conftest.$ac_objext; then
11501  ac_header_compiler=yes
11502else
11503  echo "$as_me: failed program was:" >&5
11504sed 's/^/| /' conftest.$ac_ext >&5
11505
11506	ac_header_compiler=no
11507fi
11508
11509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11510{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11511echo "${ECHO_T}$ac_header_compiler" >&6; }
11512
11513# Is the header present?
11514{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11516cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h.  */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h.  */
11522#include <$ac_header>
11523_ACEOF
11524if { (ac_try="$ac_cpp conftest.$ac_ext"
11525case "(($ac_try" in
11526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527  *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11531  ac_status=$?
11532  grep -v '^ *+' conftest.er1 >conftest.err
11533  rm -f conftest.er1
11534  cat conftest.err >&5
11535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536  (exit $ac_status); } >/dev/null && {
11537	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11538	 test ! -s conftest.err
11539       }; then
11540  ac_header_preproc=yes
11541else
11542  echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545  ac_header_preproc=no
11546fi
11547
11548rm -f conftest.err conftest.$ac_ext
11549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11550echo "${ECHO_T}$ac_header_preproc" >&6; }
11551
11552# So?  What about this header?
11553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554  yes:no: )
11555    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11557    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11559    ac_header_preproc=yes
11560    ;;
11561  no:yes:* )
11562    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11564    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11565echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11566    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11568    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11569echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11570    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11572    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574
11575    ;;
11576esac
11577{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580  echo $ECHO_N "(cached) $ECHO_C" >&6
11581else
11582  eval "$as_ac_Header=\$ac_header_preproc"
11583fi
11584ac_res=`eval echo '${'$as_ac_Header'}'`
11585	       { echo "$as_me:$LINENO: result: $ac_res" >&5
11586echo "${ECHO_T}$ac_res" >&6; }
11587
11588fi
11589if test `eval echo '${'$as_ac_Header'}'` = yes; then
11590  cat >>confdefs.h <<_ACEOF
11591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592_ACEOF
11593
11594fi
11595
11596done
11597
11598	;;
11599*)
11600	{ echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11601echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11602	;;
11603esac
11604
11605# Find a good install program.  We prefer a C program (faster),
11606# so one script is as good as another.  But avoid the broken or
11607# incompatible versions:
11608# SysV /etc/install, /usr/sbin/install
11609# SunOS /usr/etc/install
11610# IRIX /sbin/install
11611# AIX /bin/install
11612# AmigaOS /C/install, which installs bootblocks on floppy discs
11613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11614# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11616# OS/2's system install, which has a completely different semantic
11617# ./install, which can be erroneously created by make from ./install.sh.
11618{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11619echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11620if test -z "$INSTALL"; then
11621if test "${ac_cv_path_install+set}" = set; then
11622  echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625for as_dir in $PATH
11626do
11627  IFS=$as_save_IFS
11628  test -z "$as_dir" && as_dir=.
11629  # Account for people who put trailing slashes in PATH elements.
11630case $as_dir/ in
11631  ./ | .// | /cC/* | \
11632  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11633  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11634  /usr/ucb/* ) ;;
11635  *)
11636    # OSF1 and SCO ODT 3.0 have their own names for install.
11637    # Don't use installbsd from OSF since it installs stuff as root
11638    # by default.
11639    for ac_prog in ginstall scoinst install; do
11640      for ac_exec_ext in '' $ac_executable_extensions; do
11641	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11642	  if test $ac_prog = install &&
11643	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11644	    # AIX install.  It has an incompatible calling convention.
11645	    :
11646	  elif test $ac_prog = install &&
11647	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11648	    # program-specific install script used by HP pwplus--don't use.
11649	    :
11650	  else
11651	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11652	    break 3
11653	  fi
11654	fi
11655      done
11656    done
11657    ;;
11658esac
11659done
11660IFS=$as_save_IFS
11661
11662
11663fi
11664  if test "${ac_cv_path_install+set}" = set; then
11665    INSTALL=$ac_cv_path_install
11666  else
11667    # As a last resort, use the slow shell script.  Don't cache a
11668    # value for INSTALL within a source directory, because that will
11669    # break other packages using the cache if that directory is
11670    # removed, or if the value is a relative name.
11671    INSTALL=$ac_install_sh
11672  fi
11673fi
11674{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11675echo "${ECHO_T}$INSTALL" >&6; }
11676
11677# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11678# It thinks the first close brace ends the variable substitution.
11679test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11680
11681test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11682
11683test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11684
11685
11686ac_config_headers="$ac_config_headers config.h"
11687
11688
11689ac_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"
11690
11691cat >confcache <<\_ACEOF
11692# This file is a shell script that caches the results of configure
11693# tests run on this system so they can be shared between configure
11694# scripts and configure runs, see configure's option --config-cache.
11695# It is not useful on other systems.  If it contains results you don't
11696# want to keep, you may remove or edit it.
11697#
11698# config.status only pays attention to the cache file if you give it
11699# the --recheck option to rerun configure.
11700#
11701# `ac_cv_env_foo' variables (set or unset) will be overridden when
11702# loading this file, other *unset* `ac_cv_foo' will be assigned the
11703# following values.
11704
11705_ACEOF
11706
11707# The following way of writing the cache mishandles newlines in values,
11708# but we know of no workaround that is simple, portable, and efficient.
11709# So, we kill variables containing newlines.
11710# Ultrix sh set writes to stderr and can't be redirected directly,
11711# and sets the high bit in the cache file unless we assign to the vars.
11712(
11713  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11714    eval ac_val=\$$ac_var
11715    case $ac_val in #(
11716    *${as_nl}*)
11717      case $ac_var in #(
11718      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11719echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11720      esac
11721      case $ac_var in #(
11722      _ | IFS | as_nl) ;; #(
11723      *) $as_unset $ac_var ;;
11724      esac ;;
11725    esac
11726  done
11727
11728  (set) 2>&1 |
11729    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11730    *${as_nl}ac_space=\ *)
11731      # `set' does not quote correctly, so add quotes (double-quote
11732      # substitution turns \\\\ into \\, and sed turns \\ into \).
11733      sed -n \
11734	"s/'/'\\\\''/g;
11735	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11736      ;; #(
11737    *)
11738      # `set' quotes correctly as required by POSIX, so do not add quotes.
11739      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11740      ;;
11741    esac |
11742    sort
11743) |
11744  sed '
11745     /^ac_cv_env_/b end
11746     t clear
11747     :clear
11748     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11749     t end
11750     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11751     :end' >>confcache
11752if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11753  if test -w "$cache_file"; then
11754    test "x$cache_file" != "x/dev/null" &&
11755      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11756echo "$as_me: updating cache $cache_file" >&6;}
11757    cat confcache >$cache_file
11758  else
11759    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11760echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11761  fi
11762fi
11763rm -f confcache
11764
11765test "x$prefix" = xNONE && prefix=$ac_default_prefix
11766# Let make expand exec_prefix.
11767test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11768
11769DEFS=-DHAVE_CONFIG_H
11770
11771ac_libobjs=
11772ac_ltlibobjs=
11773for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11774  # 1. Remove the extension, and $U if already installed.
11775  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11776  ac_i=`echo "$ac_i" | sed "$ac_script"`
11777  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11778  #    will be set to the directory where LIBOBJS objects are built.
11779  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11780  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11781done
11782LIBOBJS=$ac_libobjs
11783
11784LTLIBOBJS=$ac_ltlibobjs
11785
11786
11787
11788: ${CONFIG_STATUS=./config.status}
11789ac_clean_files_save=$ac_clean_files
11790ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11791{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11792echo "$as_me: creating $CONFIG_STATUS" >&6;}
11793cat >$CONFIG_STATUS <<_ACEOF
11794#! $SHELL
11795# Generated by $as_me.
11796# Run this file to recreate the current configuration.
11797# Compiler output produced by configure, useful for debugging
11798# configure, is in config.log if it exists.
11799
11800debug=false
11801ac_cs_recheck=false
11802ac_cs_silent=false
11803SHELL=\${CONFIG_SHELL-$SHELL}
11804_ACEOF
11805
11806cat >>$CONFIG_STATUS <<\_ACEOF
11807## --------------------- ##
11808## M4sh Initialization.  ##
11809## --------------------- ##
11810
11811# Be more Bourne compatible
11812DUALCASE=1; export DUALCASE # for MKS sh
11813if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11814  emulate sh
11815  NULLCMD=:
11816  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11817  # is contrary to our usage.  Disable this feature.
11818  alias -g '${1+"$@"}'='"$@"'
11819  setopt NO_GLOB_SUBST
11820else
11821  case `(set -o) 2>/dev/null` in
11822  *posix*) set -o posix ;;
11823esac
11824
11825fi
11826
11827
11828
11829
11830# PATH needs CR
11831# Avoid depending upon Character Ranges.
11832as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11833as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11834as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11835as_cr_digits='0123456789'
11836as_cr_alnum=$as_cr_Letters$as_cr_digits
11837
11838# The user is always right.
11839if test "${PATH_SEPARATOR+set}" != set; then
11840  echo "#! /bin/sh" >conf$$.sh
11841  echo  "exit 0"   >>conf$$.sh
11842  chmod +x conf$$.sh
11843  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11844    PATH_SEPARATOR=';'
11845  else
11846    PATH_SEPARATOR=:
11847  fi
11848  rm -f conf$$.sh
11849fi
11850
11851# Support unset when possible.
11852if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11853  as_unset=unset
11854else
11855  as_unset=false
11856fi
11857
11858
11859# IFS
11860# We need space, tab and new line, in precisely that order.  Quoting is
11861# there to prevent editors from complaining about space-tab.
11862# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11863# splitting by setting IFS to empty value.)
11864as_nl='
11865'
11866IFS=" ""	$as_nl"
11867
11868# Find who we are.  Look in the path if we contain no directory separator.
11869case $0 in
11870  *[\\/]* ) as_myself=$0 ;;
11871  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872for as_dir in $PATH
11873do
11874  IFS=$as_save_IFS
11875  test -z "$as_dir" && as_dir=.
11876  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11877done
11878IFS=$as_save_IFS
11879
11880     ;;
11881esac
11882# We did not find ourselves, most probably we were run as `sh COMMAND'
11883# in which case we are not to be found in the path.
11884if test "x$as_myself" = x; then
11885  as_myself=$0
11886fi
11887if test ! -f "$as_myself"; then
11888  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11889  { (exit 1); exit 1; }
11890fi
11891
11892# Work around bugs in pre-3.0 UWIN ksh.
11893for as_var in ENV MAIL MAILPATH
11894do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11895done
11896PS1='$ '
11897PS2='> '
11898PS4='+ '
11899
11900# NLS nuisances.
11901for as_var in \
11902  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11903  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11904  LC_TELEPHONE LC_TIME
11905do
11906  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11907    eval $as_var=C; export $as_var
11908  else
11909    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11910  fi
11911done
11912
11913# Required to use basename.
11914if expr a : '\(a\)' >/dev/null 2>&1 &&
11915   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11916  as_expr=expr
11917else
11918  as_expr=false
11919fi
11920
11921if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11922  as_basename=basename
11923else
11924  as_basename=false
11925fi
11926
11927
11928# Name of the executable.
11929as_me=`$as_basename -- "$0" ||
11930$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11931	 X"$0" : 'X\(//\)$' \| \
11932	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11933echo X/"$0" |
11934    sed '/^.*\/\([^/][^/]*\)\/*$/{
11935	    s//\1/
11936	    q
11937	  }
11938	  /^X\/\(\/\/\)$/{
11939	    s//\1/
11940	    q
11941	  }
11942	  /^X\/\(\/\).*/{
11943	    s//\1/
11944	    q
11945	  }
11946	  s/.*/./; q'`
11947
11948# CDPATH.
11949$as_unset CDPATH
11950
11951
11952
11953  as_lineno_1=$LINENO
11954  as_lineno_2=$LINENO
11955  test "x$as_lineno_1" != "x$as_lineno_2" &&
11956  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11957
11958  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11959  # uniformly replaced by the line number.  The first 'sed' inserts a
11960  # line-number line after each line using $LINENO; the second 'sed'
11961  # does the real work.  The second script uses 'N' to pair each
11962  # line-number line with the line containing $LINENO, and appends
11963  # trailing '-' during substitution so that $LINENO is not a special
11964  # case at line end.
11965  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11966  # scripts with optimization help from Paolo Bonzini.  Blame Lee
11967  # E. McMahon (1931-1989) for sed's syntax.  :-)
11968  sed -n '
11969    p
11970    /[$]LINENO/=
11971  ' <$as_myself |
11972    sed '
11973      s/[$]LINENO.*/&-/
11974      t lineno
11975      b
11976      :lineno
11977      N
11978      :loop
11979      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11980      t loop
11981      s/-\n.*//
11982    ' >$as_me.lineno &&
11983  chmod +x "$as_me.lineno" ||
11984    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11985   { (exit 1); exit 1; }; }
11986
11987  # Don't try to exec as it changes $[0], causing all sort of problems
11988  # (the dirname of $[0] is not the place where we might find the
11989  # original and so on.  Autoconf is especially sensitive to this).
11990  . "./$as_me.lineno"
11991  # Exit status is that of the last command.
11992  exit
11993}
11994
11995
11996if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11997  as_dirname=dirname
11998else
11999  as_dirname=false
12000fi
12001
12002ECHO_C= ECHO_N= ECHO_T=
12003case `echo -n x` in
12004-n*)
12005  case `echo 'x\c'` in
12006  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12007  *)   ECHO_C='\c';;
12008  esac;;
12009*)
12010  ECHO_N='-n';;
12011esac
12012
12013if expr a : '\(a\)' >/dev/null 2>&1 &&
12014   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12015  as_expr=expr
12016else
12017  as_expr=false
12018fi
12019
12020rm -f conf$$ conf$$.exe conf$$.file
12021if test -d conf$$.dir; then
12022  rm -f conf$$.dir/conf$$.file
12023else
12024  rm -f conf$$.dir
12025  mkdir conf$$.dir
12026fi
12027echo >conf$$.file
12028if ln -s conf$$.file conf$$ 2>/dev/null; then
12029  as_ln_s='ln -s'
12030  # ... but there are two gotchas:
12031  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12032  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12033  # In both cases, we have to default to `cp -p'.
12034  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12035    as_ln_s='cp -p'
12036elif ln conf$$.file conf$$ 2>/dev/null; then
12037  as_ln_s=ln
12038else
12039  as_ln_s='cp -p'
12040fi
12041rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12042rmdir conf$$.dir 2>/dev/null
12043
12044if mkdir -p . 2>/dev/null; then
12045  as_mkdir_p=:
12046else
12047  test -d ./-p && rmdir ./-p
12048  as_mkdir_p=false
12049fi
12050
12051if test -x / >/dev/null 2>&1; then
12052  as_test_x='test -x'
12053else
12054  if ls -dL / >/dev/null 2>&1; then
12055    as_ls_L_option=L
12056  else
12057    as_ls_L_option=
12058  fi
12059  as_test_x='
12060    eval sh -c '\''
12061      if test -d "$1"; then
12062        test -d "$1/.";
12063      else
12064	case $1 in
12065        -*)set "./$1";;
12066	esac;
12067	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12068	???[sx]*):;;*)false;;esac;fi
12069    '\'' sh
12070  '
12071fi
12072as_executable_p=$as_test_x
12073
12074# Sed expression to map a string onto a valid CPP name.
12075as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12076
12077# Sed expression to map a string onto a valid variable name.
12078as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12079
12080
12081exec 6>&1
12082
12083# Save the log message, to keep $[0] and so on meaningful, and to
12084# report actual input values of CONFIG_FILES etc. instead of their
12085# values after options handling.
12086ac_log="
12087This file was extended by $as_me, which was
12088generated by GNU Autoconf 2.61.  Invocation command line was
12089
12090  CONFIG_FILES    = $CONFIG_FILES
12091  CONFIG_HEADERS  = $CONFIG_HEADERS
12092  CONFIG_LINKS    = $CONFIG_LINKS
12093  CONFIG_COMMANDS = $CONFIG_COMMANDS
12094  $ $0 $@
12095
12096on `(hostname || uname -n) 2>/dev/null | sed 1q`
12097"
12098
12099_ACEOF
12100
12101cat >>$CONFIG_STATUS <<_ACEOF
12102# Files that config.status was made for.
12103config_files="$ac_config_files"
12104config_headers="$ac_config_headers"
12105
12106_ACEOF
12107
12108cat >>$CONFIG_STATUS <<\_ACEOF
12109ac_cs_usage="\
12110\`$as_me' instantiates files from templates according to the
12111current configuration.
12112
12113Usage: $0 [OPTIONS] [FILE]...
12114
12115  -h, --help       print this help, then exit
12116  -V, --version    print version number and configuration settings, then exit
12117  -q, --quiet      do not print progress messages
12118  -d, --debug      don't remove temporary files
12119      --recheck    update $as_me by reconfiguring in the same conditions
12120  --file=FILE[:TEMPLATE]
12121		   instantiate the configuration file FILE
12122  --header=FILE[:TEMPLATE]
12123		   instantiate the configuration header FILE
12124
12125Configuration files:
12126$config_files
12127
12128Configuration headers:
12129$config_headers
12130
12131Report bugs to <bug-autoconf@gnu.org>."
12132
12133_ACEOF
12134cat >>$CONFIG_STATUS <<_ACEOF
12135ac_cs_version="\\
12136config.status
12137configured by $0, generated by GNU Autoconf 2.61,
12138  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12139
12140Copyright (C) 2006 Free Software Foundation, Inc.
12141This config.status script is free software; the Free Software Foundation
12142gives unlimited permission to copy, distribute and modify it."
12143
12144ac_pwd='$ac_pwd'
12145srcdir='$srcdir'
12146INSTALL='$INSTALL'
12147_ACEOF
12148
12149cat >>$CONFIG_STATUS <<\_ACEOF
12150# If no file are specified by the user, then we need to provide default
12151# value.  By we need to know if files were specified by the user.
12152ac_need_defaults=:
12153while test $# != 0
12154do
12155  case $1 in
12156  --*=*)
12157    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12158    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12159    ac_shift=:
12160    ;;
12161  *)
12162    ac_option=$1
12163    ac_optarg=$2
12164    ac_shift=shift
12165    ;;
12166  esac
12167
12168  case $ac_option in
12169  # Handling of the options.
12170  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12171    ac_cs_recheck=: ;;
12172  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12173    echo "$ac_cs_version"; exit ;;
12174  --debug | --debu | --deb | --de | --d | -d )
12175    debug=: ;;
12176  --file | --fil | --fi | --f )
12177    $ac_shift
12178    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12179    ac_need_defaults=false;;
12180  --header | --heade | --head | --hea )
12181    $ac_shift
12182    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12183    ac_need_defaults=false;;
12184  --he | --h)
12185    # Conflict between --help and --header
12186    { echo "$as_me: error: ambiguous option: $1
12187Try \`$0 --help' for more information." >&2
12188   { (exit 1); exit 1; }; };;
12189  --help | --hel | -h )
12190    echo "$ac_cs_usage"; exit ;;
12191  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12192  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12193    ac_cs_silent=: ;;
12194
12195  # This is an error.
12196  -*) { echo "$as_me: error: unrecognized option: $1
12197Try \`$0 --help' for more information." >&2
12198   { (exit 1); exit 1; }; } ;;
12199
12200  *) ac_config_targets="$ac_config_targets $1"
12201     ac_need_defaults=false ;;
12202
12203  esac
12204  shift
12205done
12206
12207ac_configure_extra_args=
12208
12209if $ac_cs_silent; then
12210  exec 6>/dev/null
12211  ac_configure_extra_args="$ac_configure_extra_args --silent"
12212fi
12213
12214_ACEOF
12215cat >>$CONFIG_STATUS <<_ACEOF
12216if \$ac_cs_recheck; then
12217  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12218  CONFIG_SHELL=$SHELL
12219  export CONFIG_SHELL
12220  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12221fi
12222
12223_ACEOF
12224cat >>$CONFIG_STATUS <<\_ACEOF
12225exec 5>>config.log
12226{
12227  echo
12228  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12229## Running $as_me. ##
12230_ASBOX
12231  echo "$ac_log"
12232} >&5
12233
12234_ACEOF
12235cat >>$CONFIG_STATUS <<_ACEOF
12236_ACEOF
12237
12238cat >>$CONFIG_STATUS <<\_ACEOF
12239
12240# Handling of arguments.
12241for ac_config_target in $ac_config_targets
12242do
12243  case $ac_config_target in
12244    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12245    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12246    "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
12247    "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
12248    "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12249    "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
12250    "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
12251    "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
12252    "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
12253    "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12254    "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12255    "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12256    "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12257    "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12258    "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12259
12260  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12261echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12262   { (exit 1); exit 1; }; };;
12263  esac
12264done
12265
12266
12267# If the user did not use the arguments to specify the items to instantiate,
12268# then the envvar interface is used.  Set only those that are not.
12269# We use the long form for the default assignment because of an extremely
12270# bizarre bug on SunOS 4.1.3.
12271if $ac_need_defaults; then
12272  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12273  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12274fi
12275
12276# Have a temporary directory for convenience.  Make it in the build tree
12277# simply because there is no reason against having it here, and in addition,
12278# creating and moving files from /tmp can sometimes cause problems.
12279# Hook for its removal unless debugging.
12280# Note that there is a small window in which the directory will not be cleaned:
12281# after its creation but before its name has been assigned to `$tmp'.
12282$debug ||
12283{
12284  tmp=
12285  trap 'exit_status=$?
12286  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12287' 0
12288  trap '{ (exit 1); exit 1; }' 1 2 13 15
12289}
12290# Create a (secure) tmp directory for tmp files.
12291
12292{
12293  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12294  test -n "$tmp" && test -d "$tmp"
12295}  ||
12296{
12297  tmp=./conf$$-$RANDOM
12298  (umask 077 && mkdir "$tmp")
12299} ||
12300{
12301   echo "$me: cannot create a temporary directory in ." >&2
12302   { (exit 1); exit 1; }
12303}
12304
12305#
12306# Set up the sed scripts for CONFIG_FILES section.
12307#
12308
12309# No need to generate the scripts if there are no CONFIG_FILES.
12310# This happens for instance when ./config.status config.h
12311if test -n "$CONFIG_FILES"; then
12312
12313_ACEOF
12314
12315
12316
12317ac_delim='%!_!# '
12318for ac_last_try in false false false false false :; do
12319  cat >conf$$subs.sed <<_ACEOF
12320SHELL!$SHELL$ac_delim
12321PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12322PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12323PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12324PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12325PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12326PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12327exec_prefix!$exec_prefix$ac_delim
12328prefix!$prefix$ac_delim
12329program_transform_name!$program_transform_name$ac_delim
12330bindir!$bindir$ac_delim
12331sbindir!$sbindir$ac_delim
12332libexecdir!$libexecdir$ac_delim
12333datarootdir!$datarootdir$ac_delim
12334datadir!$datadir$ac_delim
12335sysconfdir!$sysconfdir$ac_delim
12336sharedstatedir!$sharedstatedir$ac_delim
12337localstatedir!$localstatedir$ac_delim
12338includedir!$includedir$ac_delim
12339oldincludedir!$oldincludedir$ac_delim
12340docdir!$docdir$ac_delim
12341infodir!$infodir$ac_delim
12342htmldir!$htmldir$ac_delim
12343dvidir!$dvidir$ac_delim
12344pdfdir!$pdfdir$ac_delim
12345psdir!$psdir$ac_delim
12346libdir!$libdir$ac_delim
12347localedir!$localedir$ac_delim
12348mandir!$mandir$ac_delim
12349DEFS!$DEFS$ac_delim
12350ECHO_C!$ECHO_C$ac_delim
12351ECHO_N!$ECHO_N$ac_delim
12352ECHO_T!$ECHO_T$ac_delim
12353LIBS!$LIBS$ac_delim
12354build_alias!$build_alias$ac_delim
12355host_alias!$host_alias$ac_delim
12356target_alias!$target_alias$ac_delim
12357build!$build$ac_delim
12358build_cpu!$build_cpu$ac_delim
12359build_vendor!$build_vendor$ac_delim
12360build_os!$build_os$ac_delim
12361host!$host$ac_delim
12362host_cpu!$host_cpu$ac_delim
12363host_vendor!$host_vendor$ac_delim
12364host_os!$host_os$ac_delim
12365target!$target$ac_delim
12366target_cpu!$target_cpu$ac_delim
12367target_vendor!$target_vendor$ac_delim
12368target_os!$target_os$ac_delim
12369SHLICC2!$SHLICC2$ac_delim
12370CC!$CC$ac_delim
12371CFLAGS!$CFLAGS$ac_delim
12372LDFLAGS!$LDFLAGS$ac_delim
12373CPPFLAGS!$CPPFLAGS$ac_delim
12374ac_ct_CC!$ac_ct_CC$ac_delim
12375EXEEXT!$EXEEXT$ac_delim
12376OBJEXT!$OBJEXT$ac_delim
12377CPP!$CPP$ac_delim
12378GREP!$GREP$ac_delim
12379EGREP!$EGREP$ac_delim
12380LIBOBJS!$LIBOBJS$ac_delim
12381HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12382V_LEX!$V_LEX$ac_delim
12383V_YACC!$V_YACC$ac_delim
12384RANLIB!$RANLIB$ac_delim
12385AR!$AR$ac_delim
12386V_CCOPT!$V_CCOPT$ac_delim
12387V_DEFS!$V_DEFS$ac_delim
12388V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12389V_INCLS!$V_INCLS$ac_delim
12390V_PCAP!$V_PCAP$ac_delim
12391V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12392V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12393V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12394V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12395ADDLOBJS!$ADDLOBJS$ac_delim
12396ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12397SSRC!$SSRC$ac_delim
12398DYEXT!$DYEXT$ac_delim
12399MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12400MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12401PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12402USB_SRC!$USB_SRC$ac_delim
12403PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12404NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12405PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12406BT_SRC!$BT_SRC$ac_delim
12407PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12408CAN_SRC!$CAN_SRC$ac_delim
12409INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12410INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12411INSTALL_DATA!$INSTALL_DATA$ac_delim
12412LTLIBOBJS!$LTLIBOBJS$ac_delim
12413_ACEOF
12414
12415  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
12416    break
12417  elif $ac_last_try; then
12418    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12419echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12420   { (exit 1); exit 1; }; }
12421  else
12422    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12423  fi
12424done
12425
12426ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12427if test -n "$ac_eof"; then
12428  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12429  ac_eof=`expr $ac_eof + 1`
12430fi
12431
12432cat >>$CONFIG_STATUS <<_ACEOF
12433cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12434/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12435_ACEOF
12436sed '
12437s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12438s/^/s,@/; s/!/@,|#_!!_#|/
12439:n
12440t n
12441s/'"$ac_delim"'$/,g/; t
12442s/$/\\/; p
12443N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12444' >>$CONFIG_STATUS <conf$$subs.sed
12445rm -f conf$$subs.sed
12446cat >>$CONFIG_STATUS <<_ACEOF
12447:end
12448s/|#_!!_#|//g
12449CEOF$ac_eof
12450_ACEOF
12451
12452
12453# VPATH may cause trouble with some makes, so we remove $(srcdir),
12454# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12455# trailing colons and then remove the whole line if VPATH becomes empty
12456# (actually we leave an empty line to preserve line numbers).
12457if test "x$srcdir" = x.; then
12458  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12459s/:*\$(srcdir):*/:/
12460s/:*\${srcdir}:*/:/
12461s/:*@srcdir@:*/:/
12462s/^\([^=]*=[	 ]*\):*/\1/
12463s/:*$//
12464s/^[^=]*=[	 ]*$//
12465}'
12466fi
12467
12468cat >>$CONFIG_STATUS <<\_ACEOF
12469fi # test -n "$CONFIG_FILES"
12470
12471
12472for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
12473do
12474  case $ac_tag in
12475  :[FHLC]) ac_mode=$ac_tag; continue;;
12476  esac
12477  case $ac_mode$ac_tag in
12478  :[FHL]*:*);;
12479  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12480echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12481   { (exit 1); exit 1; }; };;
12482  :[FH]-) ac_tag=-:-;;
12483  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12484  esac
12485  ac_save_IFS=$IFS
12486  IFS=:
12487  set x $ac_tag
12488  IFS=$ac_save_IFS
12489  shift
12490  ac_file=$1
12491  shift
12492
12493  case $ac_mode in
12494  :L) ac_source=$1;;
12495  :[FH])
12496    ac_file_inputs=
12497    for ac_f
12498    do
12499      case $ac_f in
12500      -) ac_f="$tmp/stdin";;
12501      *) # Look for the file first in the build tree, then in the source tree
12502	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12503	 # because $ac_f cannot contain `:'.
12504	 test -f "$ac_f" ||
12505	   case $ac_f in
12506	   [\\/$]*) false;;
12507	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12508	   esac ||
12509	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12510echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12511   { (exit 1); exit 1; }; };;
12512      esac
12513      ac_file_inputs="$ac_file_inputs $ac_f"
12514    done
12515
12516    # Let's still pretend it is `configure' which instantiates (i.e., don't
12517    # use $as_me), people would be surprised to read:
12518    #    /* config.h.  Generated by config.status.  */
12519    configure_input="Generated from "`IFS=:
12520	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12521    if test x"$ac_file" != x-; then
12522      configure_input="$ac_file.  $configure_input"
12523      { echo "$as_me:$LINENO: creating $ac_file" >&5
12524echo "$as_me: creating $ac_file" >&6;}
12525    fi
12526
12527    case $ac_tag in
12528    *:-:* | *:-) cat >"$tmp/stdin";;
12529    esac
12530    ;;
12531  esac
12532
12533  ac_dir=`$as_dirname -- "$ac_file" ||
12534$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12535	 X"$ac_file" : 'X\(//\)[^/]' \| \
12536	 X"$ac_file" : 'X\(//\)$' \| \
12537	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12538echo X"$ac_file" |
12539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12540	    s//\1/
12541	    q
12542	  }
12543	  /^X\(\/\/\)[^/].*/{
12544	    s//\1/
12545	    q
12546	  }
12547	  /^X\(\/\/\)$/{
12548	    s//\1/
12549	    q
12550	  }
12551	  /^X\(\/\).*/{
12552	    s//\1/
12553	    q
12554	  }
12555	  s/.*/./; q'`
12556  { as_dir="$ac_dir"
12557  case $as_dir in #(
12558  -*) as_dir=./$as_dir;;
12559  esac
12560  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12561    as_dirs=
12562    while :; do
12563      case $as_dir in #(
12564      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12565      *) as_qdir=$as_dir;;
12566      esac
12567      as_dirs="'$as_qdir' $as_dirs"
12568      as_dir=`$as_dirname -- "$as_dir" ||
12569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12570	 X"$as_dir" : 'X\(//\)[^/]' \| \
12571	 X"$as_dir" : 'X\(//\)$' \| \
12572	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12573echo X"$as_dir" |
12574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12575	    s//\1/
12576	    q
12577	  }
12578	  /^X\(\/\/\)[^/].*/{
12579	    s//\1/
12580	    q
12581	  }
12582	  /^X\(\/\/\)$/{
12583	    s//\1/
12584	    q
12585	  }
12586	  /^X\(\/\).*/{
12587	    s//\1/
12588	    q
12589	  }
12590	  s/.*/./; q'`
12591      test -d "$as_dir" && break
12592    done
12593    test -z "$as_dirs" || eval "mkdir $as_dirs"
12594  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12595echo "$as_me: error: cannot create directory $as_dir" >&2;}
12596   { (exit 1); exit 1; }; }; }
12597  ac_builddir=.
12598
12599case "$ac_dir" in
12600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12601*)
12602  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12603  # A ".." for each directory in $ac_dir_suffix.
12604  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12605  case $ac_top_builddir_sub in
12606  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12607  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12608  esac ;;
12609esac
12610ac_abs_top_builddir=$ac_pwd
12611ac_abs_builddir=$ac_pwd$ac_dir_suffix
12612# for backward compatibility:
12613ac_top_builddir=$ac_top_build_prefix
12614
12615case $srcdir in
12616  .)  # We are building in place.
12617    ac_srcdir=.
12618    ac_top_srcdir=$ac_top_builddir_sub
12619    ac_abs_top_srcdir=$ac_pwd ;;
12620  [\\/]* | ?:[\\/]* )  # Absolute name.
12621    ac_srcdir=$srcdir$ac_dir_suffix;
12622    ac_top_srcdir=$srcdir
12623    ac_abs_top_srcdir=$srcdir ;;
12624  *) # Relative name.
12625    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12626    ac_top_srcdir=$ac_top_build_prefix$srcdir
12627    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12628esac
12629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12630
12631
12632  case $ac_mode in
12633  :F)
12634  #
12635  # CONFIG_FILE
12636  #
12637
12638  case $INSTALL in
12639  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12640  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12641  esac
12642_ACEOF
12643
12644cat >>$CONFIG_STATUS <<\_ACEOF
12645# If the template does not know about datarootdir, expand it.
12646# FIXME: This hack should be removed a few years after 2.60.
12647ac_datarootdir_hack=; ac_datarootdir_seen=
12648
12649case `sed -n '/datarootdir/ {
12650  p
12651  q
12652}
12653/@datadir@/p
12654/@docdir@/p
12655/@infodir@/p
12656/@localedir@/p
12657/@mandir@/p
12658' $ac_file_inputs` in
12659*datarootdir*) ac_datarootdir_seen=yes;;
12660*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12661  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12662echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12663_ACEOF
12664cat >>$CONFIG_STATUS <<_ACEOF
12665  ac_datarootdir_hack='
12666  s&@datadir@&$datadir&g
12667  s&@docdir@&$docdir&g
12668  s&@infodir@&$infodir&g
12669  s&@localedir@&$localedir&g
12670  s&@mandir@&$mandir&g
12671    s&\\\${datarootdir}&$datarootdir&g' ;;
12672esac
12673_ACEOF
12674
12675# Neutralize VPATH when `$srcdir' = `.'.
12676# Shell code in configure.ac might set extrasub.
12677# FIXME: do we really want to maintain this feature?
12678cat >>$CONFIG_STATUS <<_ACEOF
12679  sed "$ac_vpsub
12680$extrasub
12681_ACEOF
12682cat >>$CONFIG_STATUS <<\_ACEOF
12683:t
12684/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12685s&@configure_input@&$configure_input&;t t
12686s&@top_builddir@&$ac_top_builddir_sub&;t t
12687s&@srcdir@&$ac_srcdir&;t t
12688s&@abs_srcdir@&$ac_abs_srcdir&;t t
12689s&@top_srcdir@&$ac_top_srcdir&;t t
12690s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12691s&@builddir@&$ac_builddir&;t t
12692s&@abs_builddir@&$ac_abs_builddir&;t t
12693s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12694s&@INSTALL@&$ac_INSTALL&;t t
12695$ac_datarootdir_hack
12696" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12697
12698test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12699  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12700  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12701  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12702which seems to be undefined.  Please make sure it is defined." >&5
12703echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12704which seems to be undefined.  Please make sure it is defined." >&2;}
12705
12706  rm -f "$tmp/stdin"
12707  case $ac_file in
12708  -) cat "$tmp/out"; rm -f "$tmp/out";;
12709  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12710  esac
12711 ;;
12712  :H)
12713  #
12714  # CONFIG_HEADER
12715  #
12716_ACEOF
12717
12718# Transform confdefs.h into a sed script `conftest.defines', that
12719# substitutes the proper values into config.h.in to produce config.h.
12720rm -f conftest.defines conftest.tail
12721# First, append a space to every undef/define line, to ease matching.
12722echo 's/$/ /' >conftest.defines
12723# Then, protect against being on the right side of a sed subst, or in
12724# an unquoted here document, in config.status.  If some macros were
12725# called several times there might be several #defines for the same
12726# symbol, which is useless.  But do not sort them, since the last
12727# AC_DEFINE must be honored.
12728ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12729# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12730# NAME is the cpp macro being defined, VALUE is the value it is being given.
12731# PARAMS is the parameter list in the macro definition--in most cases, it's
12732# just an empty string.
12733ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
12734ac_dB='\\)[	 (].*,\\1define\\2'
12735ac_dC=' '
12736ac_dD=' ,'
12737
12738uniq confdefs.h |
12739  sed -n '
12740	t rset
12741	:rset
12742	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
12743	t ok
12744	d
12745	:ok
12746	s/[\\&,]/\\&/g
12747	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12748	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12749  ' >>conftest.defines
12750
12751# Remove the space that was appended to ease matching.
12752# Then replace #undef with comments.  This is necessary, for
12753# example, in the case of _POSIX_SOURCE, which is predefined and required
12754# on some systems where configure will not decide to define it.
12755# (The regexp can be short, since the line contains either #define or #undef.)
12756echo 's/ $//
12757s,^[	 #]*u.*,/* & */,' >>conftest.defines
12758
12759# Break up conftest.defines:
12760ac_max_sed_lines=50
12761
12762# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12763# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12764# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12765# et cetera.
12766ac_in='$ac_file_inputs'
12767ac_out='"$tmp/out1"'
12768ac_nxt='"$tmp/out2"'
12769
12770while :
12771do
12772  # Write a here document:
12773    cat >>$CONFIG_STATUS <<_ACEOF
12774    # First, check the format of the line:
12775    cat >"\$tmp/defines.sed" <<\\CEOF
12776/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
12777/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
12778b
12779:def
12780_ACEOF
12781  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12782  echo 'CEOF
12783    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12784  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12785  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12786  grep . conftest.tail >/dev/null || break
12787  rm -f conftest.defines
12788  mv conftest.tail conftest.defines
12789done
12790rm -f conftest.defines conftest.tail
12791
12792echo "ac_result=$ac_in" >>$CONFIG_STATUS
12793cat >>$CONFIG_STATUS <<\_ACEOF
12794  if test x"$ac_file" != x-; then
12795    echo "/* $configure_input  */" >"$tmp/config.h"
12796    cat "$ac_result" >>"$tmp/config.h"
12797    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12798      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12799echo "$as_me: $ac_file is unchanged" >&6;}
12800    else
12801      rm -f $ac_file
12802      mv "$tmp/config.h" $ac_file
12803    fi
12804  else
12805    echo "/* $configure_input  */"
12806    cat "$ac_result"
12807  fi
12808  rm -f "$tmp/out12"
12809 ;;
12810
12811
12812  esac
12813
12814done # for ac_tag
12815
12816
12817{ (exit 0); exit 0; }
12818_ACEOF
12819chmod +x $CONFIG_STATUS
12820ac_clean_files=$ac_clean_files_save
12821
12822
12823# configure is writing to config.log, and then calls config.status.
12824# config.status does its own redirection, appending to config.log.
12825# Unfortunately, on DOS this fails, as config.log is still kept open
12826# by configure, so config.status won't be able to write to it; its
12827# output is simply discarded.  So we exec the FD to /dev/null,
12828# effectively closing config.log, so it can be properly (re)opened and
12829# appended to by config.status.  When coming back to configure, we
12830# need to make the FD available again.
12831if test "$no_create" != yes; then
12832  ac_cs_success=:
12833  ac_config_status_args=
12834  test "$silent" = yes &&
12835    ac_config_status_args="$ac_config_status_args --quiet"
12836  exec 5>/dev/null
12837  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12838  exec 5>>config.log
12839  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12840  # would make configure fail if this is the last instruction.
12841  $ac_cs_success || { (exit 1); exit 1; }
12842fi
12843
12844
12845if test -f .devel ; then
12846	make depend
12847fi
12848exit 0
12849