]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/libpcap/configure
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / libpcap / configure
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
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if 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
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if 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
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
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.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
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.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if 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; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for 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
108 do
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
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo 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
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$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   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
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
233 done
234 IFS=$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
241 if 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
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
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
262 if 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
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $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
337 fi
338
339 fi
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+"$@"}
349 fi
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; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$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
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `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';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if 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'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
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   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_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.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 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.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="pcap.c"
581 # Factoring default headers for most tests.
582 ac_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
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SHLICC2
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LIBOBJS
678 HAVE_LINUX_TPACKET_AUXDATA
679 V_LEX
680 V_YACC
681 RANLIB
682 AR
683 V_CCOPT
684 V_DEFS
685 V_FINDALLDEVS
686 V_INCLS
687 V_PCAP
688 V_SHLIB_CMD
689 V_SHLIB_OPT
690 V_SONAME_OPT
691 V_RPATH_OPT
692 ADDLOBJS
693 ADDLARCHIVEOBJS
694 SSRC
695 DYEXT
696 MAN_FILE_FORMATS
697 MAN_MISC_INFO
698 PCAP_SUPPORT_USB
699 USB_SRC
700 PCAP_SUPPORT_NETFILTER
701 NETFILTER_SRC
702 PCAP_SUPPORT_BT
703 BT_SRC
704 PCAP_SUPPORT_CANUSB
705 CANUSB_SRC
706 PCAP_SUPPORT_CAN
707 CAN_SRC
708 INSTALL_PROGRAM
709 INSTALL_SCRIPT
710 INSTALL_DATA
711 LTLIBOBJS'
712 ac_subst_files=''
713       ac_precious_vars='build_alias
714 host_alias
715 target_alias
716 CC
717 CFLAGS
718 LDFLAGS
719 LIBS
720 CPPFLAGS
721 CPP'
722
723
724 # Initialize some variables set by options.
725 ac_init_help=
726 ac_init_version=false
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
743
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
769
770 ac_prev=
771 ac_dashdash=
772 for ac_option
773 do
774   # If the previous option needs an argument, assign it.
775   if test -n "$ac_prev"; then
776     eval $ac_prev=\$ac_option
777     ac_prev=
778     continue
779   fi
780
781   case $ac_option in
782   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783   *)    ac_optarg=yes ;;
784   esac
785
786   # Accept the important Cygnus configure options, so we can diagnose typos.
787
788   case $ac_dashdash$ac_option in
789   --)
790     ac_dashdash=yes ;;
791
792   -bindir | --bindir | --bindi | --bind | --bin | --bi)
793     ac_prev=bindir ;;
794   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795     bindir=$ac_optarg ;;
796
797   -build | --build | --buil | --bui | --bu)
798     ac_prev=build_alias ;;
799   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800     build_alias=$ac_optarg ;;
801
802   -cache-file | --cache-file | --cache-fil | --cache-fi \
803   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804     ac_prev=cache_file ;;
805   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807     cache_file=$ac_optarg ;;
808
809   --config-cache | -C)
810     cache_file=config.cache ;;
811
812   -datadir | --datadir | --datadi | --datad)
813     ac_prev=datadir ;;
814   -datadir=* | --datadir=* | --datadi=* | --datad=*)
815     datadir=$ac_optarg ;;
816
817   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818   | --dataroo | --dataro | --datar)
819     ac_prev=datarootdir ;;
820   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822     datarootdir=$ac_optarg ;;
823
824   -disable-* | --disable-*)
825     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826     # Reject names that are not valid shell variable names.
827     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
828       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829    { (exit 1); exit 1; }; }
830     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
831     eval enable_$ac_feature=no ;;
832
833   -docdir | --docdir | --docdi | --doc | --do)
834     ac_prev=docdir ;;
835   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836     docdir=$ac_optarg ;;
837
838   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839     ac_prev=dvidir ;;
840   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841     dvidir=$ac_optarg ;;
842
843   -enable-* | --enable-*)
844     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845     # Reject names that are not valid shell variable names.
846     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848    { (exit 1); exit 1; }; }
849     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850     eval enable_$ac_feature=\$ac_optarg ;;
851
852   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854   | --exec | --exe | --ex)
855     ac_prev=exec_prefix ;;
856   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858   | --exec=* | --exe=* | --ex=*)
859     exec_prefix=$ac_optarg ;;
860
861   -gas | --gas | --ga | --g)
862     # Obsolete; use --with-gas.
863     with_gas=yes ;;
864
865   -help | --help | --hel | --he | -h)
866     ac_init_help=long ;;
867   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868     ac_init_help=recursive ;;
869   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870     ac_init_help=short ;;
871
872   -host | --host | --hos | --ho)
873     ac_prev=host_alias ;;
874   -host=* | --host=* | --hos=* | --ho=*)
875     host_alias=$ac_optarg ;;
876
877   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
878     ac_prev=htmldir ;;
879   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
880   | --ht=*)
881     htmldir=$ac_optarg ;;
882
883   -includedir | --includedir | --includedi | --included | --include \
884   | --includ | --inclu | --incl | --inc)
885     ac_prev=includedir ;;
886   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887   | --includ=* | --inclu=* | --incl=* | --inc=*)
888     includedir=$ac_optarg ;;
889
890   -infodir | --infodir | --infodi | --infod | --info | --inf)
891     ac_prev=infodir ;;
892   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893     infodir=$ac_optarg ;;
894
895   -libdir | --libdir | --libdi | --libd)
896     ac_prev=libdir ;;
897   -libdir=* | --libdir=* | --libdi=* | --libd=*)
898     libdir=$ac_optarg ;;
899
900   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901   | --libexe | --libex | --libe)
902     ac_prev=libexecdir ;;
903   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904   | --libexe=* | --libex=* | --libe=*)
905     libexecdir=$ac_optarg ;;
906
907   -localedir | --localedir | --localedi | --localed | --locale)
908     ac_prev=localedir ;;
909   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910     localedir=$ac_optarg ;;
911
912   -localstatedir | --localstatedir | --localstatedi | --localstated \
913   | --localstate | --localstat | --localsta | --localst | --locals)
914     ac_prev=localstatedir ;;
915   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917     localstatedir=$ac_optarg ;;
918
919   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
920     ac_prev=mandir ;;
921   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922     mandir=$ac_optarg ;;
923
924   -nfp | --nfp | --nf)
925     # Obsolete; use --without-fp.
926     with_fp=no ;;
927
928   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929   | --no-cr | --no-c | -n)
930     no_create=yes ;;
931
932   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934     no_recursion=yes ;;
935
936   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938   | --oldin | --oldi | --old | --ol | --o)
939     ac_prev=oldincludedir ;;
940   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943     oldincludedir=$ac_optarg ;;
944
945   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
946     ac_prev=prefix ;;
947   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948     prefix=$ac_optarg ;;
949
950   -program-prefix | --program-prefix | --program-prefi | --program-pref \
951   | --program-pre | --program-pr | --program-p)
952     ac_prev=program_prefix ;;
953   -program-prefix=* | --program-prefix=* | --program-prefi=* \
954   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955     program_prefix=$ac_optarg ;;
956
957   -program-suffix | --program-suffix | --program-suffi | --program-suff \
958   | --program-suf | --program-su | --program-s)
959     ac_prev=program_suffix ;;
960   -program-suffix=* | --program-suffix=* | --program-suffi=* \
961   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962     program_suffix=$ac_optarg ;;
963
964   -program-transform-name | --program-transform-name \
965   | --program-transform-nam | --program-transform-na \
966   | --program-transform-n | --program-transform- \
967   | --program-transform | --program-transfor \
968   | --program-transfo | --program-transf \
969   | --program-trans | --program-tran \
970   | --progr-tra | --program-tr | --program-t)
971     ac_prev=program_transform_name ;;
972   -program-transform-name=* | --program-transform-name=* \
973   | --program-transform-nam=* | --program-transform-na=* \
974   | --program-transform-n=* | --program-transform-=* \
975   | --program-transform=* | --program-transfor=* \
976   | --program-transfo=* | --program-transf=* \
977   | --program-trans=* | --program-tran=* \
978   | --progr-tra=* | --program-tr=* | --program-t=*)
979     program_transform_name=$ac_optarg ;;
980
981   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
982     ac_prev=pdfdir ;;
983   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984     pdfdir=$ac_optarg ;;
985
986   -psdir | --psdir | --psdi | --psd | --ps)
987     ac_prev=psdir ;;
988   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989     psdir=$ac_optarg ;;
990
991   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992   | -silent | --silent | --silen | --sile | --sil)
993     silent=yes ;;
994
995   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996     ac_prev=sbindir ;;
997   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998   | --sbi=* | --sb=*)
999     sbindir=$ac_optarg ;;
1000
1001   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003   | --sharedst | --shareds | --shared | --share | --shar \
1004   | --sha | --sh)
1005     ac_prev=sharedstatedir ;;
1006   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009   | --sha=* | --sh=*)
1010     sharedstatedir=$ac_optarg ;;
1011
1012   -site | --site | --sit)
1013     ac_prev=site ;;
1014   -site=* | --site=* | --sit=*)
1015     site=$ac_optarg ;;
1016
1017   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018     ac_prev=srcdir ;;
1019   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020     srcdir=$ac_optarg ;;
1021
1022   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023   | --syscon | --sysco | --sysc | --sys | --sy)
1024     ac_prev=sysconfdir ;;
1025   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027     sysconfdir=$ac_optarg ;;
1028
1029   -target | --target | --targe | --targ | --tar | --ta | --t)
1030     ac_prev=target_alias ;;
1031   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032     target_alias=$ac_optarg ;;
1033
1034   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035     verbose=yes ;;
1036
1037   -version | --version | --versio | --versi | --vers | -V)
1038     ac_init_version=: ;;
1039
1040   -with-* | --with-*)
1041     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042     # Reject names that are not valid shell variable names.
1043     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044       { echo "$as_me: error: invalid package name: $ac_package" >&2
1045    { (exit 1); exit 1; }; }
1046     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1047     eval with_$ac_package=\$ac_optarg ;;
1048
1049   -without-* | --without-*)
1050     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053       { echo "$as_me: error: invalid package name: $ac_package" >&2
1054    { (exit 1); exit 1; }; }
1055     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056     eval with_$ac_package=no ;;
1057
1058   --x)
1059     # Obsolete; use --with-x.
1060     with_x=yes ;;
1061
1062   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063   | --x-incl | --x-inc | --x-in | --x-i)
1064     ac_prev=x_includes ;;
1065   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067     x_includes=$ac_optarg ;;
1068
1069   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071     ac_prev=x_libraries ;;
1072   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074     x_libraries=$ac_optarg ;;
1075
1076   -*) { echo "$as_me: error: unrecognized option: $ac_option
1077 Try \`$0 --help' for more information." >&2
1078    { (exit 1); exit 1; }; }
1079     ;;
1080
1081   *=*)
1082     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1085       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086    { (exit 1); exit 1; }; }
1087     eval $ac_envvar=\$ac_optarg
1088     export $ac_envvar ;;
1089
1090   *)
1091     # FIXME: should be removed in autoconf 3.0.
1092     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1096     ;;
1097
1098   esac
1099 done
1100
1101 if test -n "$ac_prev"; then
1102   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1103   { echo "$as_me: error: missing argument to $ac_option" >&2
1104    { (exit 1); exit 1; }; }
1105 fi
1106
1107 # Be sure to have absolute directory names.
1108 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109                 datadir sysconfdir sharedstatedir localstatedir includedir \
1110                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111                 libdir localedir mandir
1112 do
1113   eval ac_val=\$$ac_var
1114   case $ac_val in
1115     [\\/$]* | ?:[\\/]* )  continue;;
1116     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1117   esac
1118   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119    { (exit 1); exit 1; }; }
1120 done
1121
1122 # There might be people who depend on the old broken behavior: `$host'
1123 # used to hold the argument of --host etc.
1124 # FIXME: To remove some day.
1125 build=$build_alias
1126 host=$host_alias
1127 target=$target_alias
1128
1129 # FIXME: To remove some day.
1130 if test "x$host_alias" != x; then
1131   if test "x$build_alias" = x; then
1132     cross_compiling=maybe
1133     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134     If a cross compiler is detected then cross compile mode will be used." >&2
1135   elif test "x$build_alias" != "x$host_alias"; then
1136     cross_compiling=yes
1137   fi
1138 fi
1139
1140 ac_tool_prefix=
1141 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1142
1143 test "$silent" = yes && exec 6>/dev/null
1144
1145
1146 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di=`ls -di .` &&
1148 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149   { echo "$as_me: error: Working directory cannot be determined" >&2
1150    { (exit 1); exit 1; }; }
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152   { echo "$as_me: error: pwd does not report name of working directory" >&2
1153    { (exit 1); exit 1; }; }
1154
1155
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158   ac_srcdir_defaulted=yes
1159   # Try the directory containing this script, then the parent directory.
1160   ac_confdir=`$as_dirname -- "$0" ||
1161 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162          X"$0" : 'X\(//\)[^/]' \| \
1163          X"$0" : 'X\(//\)$' \| \
1164          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1165 echo X"$0" |
1166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167             s//\1/
1168             q
1169           }
1170           /^X\(\/\/\)[^/].*/{
1171             s//\1/
1172             q
1173           }
1174           /^X\(\/\/\)$/{
1175             s//\1/
1176             q
1177           }
1178           /^X\(\/\).*/{
1179             s//\1/
1180             q
1181           }
1182           s/.*/./; q'`
1183   srcdir=$ac_confdir
1184   if test ! -r "$srcdir/$ac_unique_file"; then
1185     srcdir=..
1186   fi
1187 else
1188   ac_srcdir_defaulted=no
1189 fi
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1192   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1193    { (exit 1); exit 1; }; }
1194 fi
1195 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1196 ac_abs_confdir=`(
1197         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1198    { (exit 1); exit 1; }; }
1199         pwd)`
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1202   srcdir=.
1203 fi
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1207 case $srcdir in
1208 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209 esac
1210 for ac_var in $ac_precious_vars; do
1211   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212   eval ac_env_${ac_var}_value=\$${ac_var}
1213   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215 done
1216
1217 #
1218 # Report the --help message.
1219 #
1220 if test "$ac_init_help" = "long"; then
1221   # Omit some internal or obsolete options to make the list less imposing.
1222   # This message is too long to be a string in the A/UX 3.1 sh.
1223   cat <<_ACEOF
1224 \`configure' configures this package to adapt to many kinds of systems.
1225
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1227
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE.  See below for descriptions of some of the useful variables.
1230
1231 Defaults for the options are specified in brackets.
1232
1233 Configuration:
1234   -h, --help              display this help and exit
1235       --help=short        display options specific to this package
1236       --help=recursive    display the short help of all the included packages
1237   -V, --version           display version information and exit
1238   -q, --quiet, --silent   do not print \`checking...' messages
1239       --cache-file=FILE   cache test results in FILE [disabled]
1240   -C, --config-cache      alias for \`--cache-file=config.cache'
1241   -n, --no-create         do not create output files
1242       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1243
1244 Installation directories:
1245   --prefix=PREFIX         install architecture-independent files in PREFIX
1246                           [$ac_default_prefix]
1247   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1248                           [PREFIX]
1249
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1254
1255 For better control, use the options below.
1256
1257 Fine tuning of the installation directories:
1258   --bindir=DIR           user executables [EPREFIX/bin]
1259   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1260   --libexecdir=DIR       program executables [EPREFIX/libexec]
1261   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1262   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1263   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1264   --libdir=DIR           object code libraries [EPREFIX/lib]
1265   --includedir=DIR       C header files [PREFIX/include]
1266   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1267   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1268   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1269   --infodir=DIR          info documentation [DATAROOTDIR/info]
1270   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1271   --mandir=DIR           man documentation [DATAROOTDIR/man]
1272   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1273   --htmldir=DIR          html documentation [DOCDIR]
1274   --dvidir=DIR           dvi documentation [DOCDIR]
1275   --pdfdir=DIR           pdf documentation [DOCDIR]
1276   --psdir=DIR            ps documentation [DOCDIR]
1277 _ACEOF
1278
1279   cat <<\_ACEOF
1280
1281 System types:
1282   --build=BUILD     configure for building on BUILD [guessed]
1283   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1284   --target=TARGET   configure for building compilers for TARGET [HOST]
1285 _ACEOF
1286 fi
1287
1288 if test -n "$ac_init_help"; then
1289
1290   cat <<\_ACEOF
1291
1292 Optional Features:
1293   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1294   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1295   --disable-largefile     omit support for large files
1296   --disable-protochain    disable \"protochain\" insn
1297   --enable-ipv6           build IPv6-capable version [default=yes, if
1298                           getaddrinfo available]
1299   --enable-optimizer-dbg  build optimizer debugging code
1300   --enable-yydebug        build parser debugging code
1301   --disable-universal     don't build universal on OS X
1302   --enable-shared         build shared libraries [default=yes, if support
1303                           available]
1304   --enable-bluetooth      enable Bluetooth support [default=yes, if support
1305                           available]
1306   --enable-canusb         enable canusb support [default=yes, if support
1307                           available]
1308   --enable-can            enable CAN support [default=yes, if support
1309                           available]
1310
1311 Optional Packages:
1312   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1313   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1314   --without-gcc           don't use gcc
1315   --with-sita             include SITA support
1316   --with-pcap=TYPE        use packet capture TYPE
1317   --without-libnl         disable libnl support [default=yes, on Linux, if
1318                           present]
1319   --with-dag[=DIR]        include Endace DAG support ["yes", "no" or DIR;
1320                           default="yes" on BSD and Linux if present]
1321   --with-dag-includes=DIR Endace DAG include directory
1322   --with-dag-libraries=DIR
1323                           Endace DAG library directory
1324   --with-septel[=DIR]     include Septel support (located in directory DIR, if
1325                           supplied). [default=yes, on Linux, if present]
1326   --with-snf[=DIR]        include Myricom SNF support ["yes", "no" or DIR;
1327                           default="yes" on BSD and Linux if present]
1328   --with-snf-includes=DIR Myricom SNF include directory
1329   --with-snf-libraries=DIR
1330                           Myricom SNF library directory
1331   --without-flex          don't use flex
1332   --without-bison         don't use bison
1333
1334 Some influential environment variables:
1335   CC          C compiler command
1336   CFLAGS      C compiler flags
1337   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1338               nonstandard directory <lib dir>
1339   LIBS        libraries to pass to the linker, e.g. -l<library>
1340   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1341               you have headers in a nonstandard directory <include dir>
1342   CPP         C preprocessor
1343
1344 Use these variables to override the choices made by `configure' or to help
1345 it to find libraries and programs with nonstandard names/locations.
1346
1347 _ACEOF
1348 ac_status=$?
1349 fi
1350
1351 if test "$ac_init_help" = "recursive"; then
1352   # If there are subdirs, report their specific --help.
1353   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1354     test -d "$ac_dir" || continue
1355     ac_builddir=.
1356
1357 case "$ac_dir" in
1358 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *)
1360   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1361   # A ".." for each directory in $ac_dir_suffix.
1362   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1363   case $ac_top_builddir_sub in
1364   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1366   esac ;;
1367 esac
1368 ac_abs_top_builddir=$ac_pwd
1369 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1370 # for backward compatibility:
1371 ac_top_builddir=$ac_top_build_prefix
1372
1373 case $srcdir in
1374   .)  # We are building in place.
1375     ac_srcdir=.
1376     ac_top_srcdir=$ac_top_builddir_sub
1377     ac_abs_top_srcdir=$ac_pwd ;;
1378   [\\/]* | ?:[\\/]* )  # Absolute name.
1379     ac_srcdir=$srcdir$ac_dir_suffix;
1380     ac_top_srcdir=$srcdir
1381     ac_abs_top_srcdir=$srcdir ;;
1382   *) # Relative name.
1383     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1384     ac_top_srcdir=$ac_top_build_prefix$srcdir
1385     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386 esac
1387 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388
1389     cd "$ac_dir" || { ac_status=$?; continue; }
1390     # Check for guested configure.
1391     if test -f "$ac_srcdir/configure.gnu"; then
1392       echo &&
1393       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1394     elif test -f "$ac_srcdir/configure"; then
1395       echo &&
1396       $SHELL "$ac_srcdir/configure" --help=recursive
1397     else
1398       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399     fi || ac_status=$?
1400     cd "$ac_pwd" || { ac_status=$?; break; }
1401   done
1402 fi
1403
1404 test -n "$ac_init_help" && exit $ac_status
1405 if $ac_init_version; then
1406   cat <<\_ACEOF
1407 configure
1408 generated by GNU Autoconf 2.61
1409
1410 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1411 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1412 This configure script is free software; the Free Software Foundation
1413 gives unlimited permission to copy, distribute and modify it.
1414 _ACEOF
1415   exit
1416 fi
1417 cat >config.log <<_ACEOF
1418 This file contains any messages produced by compilers while
1419 running configure, to aid debugging if configure makes a mistake.
1420
1421 It was created by $as_me, which was
1422 generated by GNU Autoconf 2.61.  Invocation command line was
1423
1424   $ $0 $@
1425
1426 _ACEOF
1427 exec 5>>config.log
1428 {
1429 cat <<_ASUNAME
1430 ## --------- ##
1431 ## Platform. ##
1432 ## --------- ##
1433
1434 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1435 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1436 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1437 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1438 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1439
1440 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1441 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1442
1443 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1444 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1445 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1446 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1447 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1448 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1449 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1450
1451 _ASUNAME
1452
1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454 for as_dir in $PATH
1455 do
1456   IFS=$as_save_IFS
1457   test -z "$as_dir" && as_dir=.
1458   echo "PATH: $as_dir"
1459 done
1460 IFS=$as_save_IFS
1461
1462 } >&5
1463
1464 cat >&5 <<_ACEOF
1465
1466
1467 ## ----------- ##
1468 ## Core tests. ##
1469 ## ----------- ##
1470
1471 _ACEOF
1472
1473
1474 # Keep a trace of the command line.
1475 # Strip out --no-create and --no-recursion so they do not pile up.
1476 # Strip out --silent because we don't want to record it for future runs.
1477 # Also quote any args containing shell meta-characters.
1478 # Make two passes to allow for proper duplicate-argument suppression.
1479 ac_configure_args=
1480 ac_configure_args0=
1481 ac_configure_args1=
1482 ac_must_keep_next=false
1483 for ac_pass in 1 2
1484 do
1485   for ac_arg
1486   do
1487     case $ac_arg in
1488     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1489     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490     | -silent | --silent | --silen | --sile | --sil)
1491       continue ;;
1492     *\'*)
1493       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1494     esac
1495     case $ac_pass in
1496     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1497     2)
1498       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1499       if test $ac_must_keep_next = true; then
1500         ac_must_keep_next=false # Got value, back to normal.
1501       else
1502         case $ac_arg in
1503           *=* | --config-cache | -C | -disable-* | --disable-* \
1504           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1505           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1506           | -with-* | --with-* | -without-* | --without-* | --x)
1507             case "$ac_configure_args0 " in
1508               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1509             esac
1510             ;;
1511           -* ) ac_must_keep_next=true ;;
1512         esac
1513       fi
1514       ac_configure_args="$ac_configure_args '$ac_arg'"
1515       ;;
1516     esac
1517   done
1518 done
1519 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1520 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1521
1522 # When interrupted or exit'd, cleanup temporary files, and complete
1523 # config.log.  We remove comments because anyway the quotes in there
1524 # would cause problems or look ugly.
1525 # WARNING: Use '\'' to represent an apostrophe within the trap.
1526 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1527 trap 'exit_status=$?
1528   # Save into config.log some information that might help in debugging.
1529   {
1530     echo
1531
1532     cat <<\_ASBOX
1533 ## ---------------- ##
1534 ## Cache variables. ##
1535 ## ---------------- ##
1536 _ASBOX
1537     echo
1538     # The following way of writing the cache mishandles newlines in values,
1539 (
1540   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1541     eval ac_val=\$$ac_var
1542     case $ac_val in #(
1543     *${as_nl}*)
1544       case $ac_var in #(
1545       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1546 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1547       esac
1548       case $ac_var in #(
1549       _ | IFS | as_nl) ;; #(
1550       *) $as_unset $ac_var ;;
1551       esac ;;
1552     esac
1553   done
1554   (set) 2>&1 |
1555     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1556     *${as_nl}ac_space=\ *)
1557       sed -n \
1558         "s/'\''/'\''\\\\'\'''\''/g;
1559           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1560       ;; #(
1561     *)
1562       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1563       ;;
1564     esac |
1565     sort
1566 )
1567     echo
1568
1569     cat <<\_ASBOX
1570 ## ----------------- ##
1571 ## Output variables. ##
1572 ## ----------------- ##
1573 _ASBOX
1574     echo
1575     for ac_var in $ac_subst_vars
1576     do
1577       eval ac_val=\$$ac_var
1578       case $ac_val in
1579       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1580       esac
1581       echo "$ac_var='\''$ac_val'\''"
1582     done | sort
1583     echo
1584
1585     if test -n "$ac_subst_files"; then
1586       cat <<\_ASBOX
1587 ## ------------------- ##
1588 ## File substitutions. ##
1589 ## ------------------- ##
1590 _ASBOX
1591       echo
1592       for ac_var in $ac_subst_files
1593       do
1594         eval ac_val=\$$ac_var
1595         case $ac_val in
1596         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597         esac
1598         echo "$ac_var='\''$ac_val'\''"
1599       done | sort
1600       echo
1601     fi
1602
1603     if test -s confdefs.h; then
1604       cat <<\_ASBOX
1605 ## ----------- ##
1606 ## confdefs.h. ##
1607 ## ----------- ##
1608 _ASBOX
1609       echo
1610       cat confdefs.h
1611       echo
1612     fi
1613     test "$ac_signal" != 0 &&
1614       echo "$as_me: caught signal $ac_signal"
1615     echo "$as_me: exit $exit_status"
1616   } >&5
1617   rm -f core *.core core.conftest.* &&
1618     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1619     exit $exit_status
1620 ' 0
1621 for ac_signal in 1 2 13 15; do
1622   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1623 done
1624 ac_signal=0
1625
1626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1627 rm -f -r conftest* confdefs.h
1628
1629 # Predefined preprocessor variables.
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_NAME "$PACKAGE_NAME"
1633 _ACEOF
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1638 _ACEOF
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1643 _ACEOF
1644
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_STRING "$PACKAGE_STRING"
1648 _ACEOF
1649
1650
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1653 _ACEOF
1654
1655
1656 # Let the site file select an alternate cache file if it wants to.
1657 # Prefer explicitly selected file to automatically selected ones.
1658 if test -n "$CONFIG_SITE"; then
1659   set x "$CONFIG_SITE"
1660 elif test "x$prefix" != xNONE; then
1661   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1662 else
1663   set x "$ac_default_prefix/share/config.site" \
1664         "$ac_default_prefix/etc/config.site"
1665 fi
1666 shift
1667 for ac_site_file
1668 do
1669   if test -r "$ac_site_file"; then
1670     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1671 echo "$as_me: loading site script $ac_site_file" >&6;}
1672     sed 's/^/| /' "$ac_site_file" >&5
1673     . "$ac_site_file"
1674   fi
1675 done
1676
1677 if test -r "$cache_file"; then
1678   # Some versions of bash will fail to source /dev/null (special
1679   # files actually), so we avoid doing that.
1680   if test -f "$cache_file"; then
1681     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1682 echo "$as_me: loading cache $cache_file" >&6;}
1683     case $cache_file in
1684       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1685       *)                      . "./$cache_file";;
1686     esac
1687   fi
1688 else
1689   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1690 echo "$as_me: creating cache $cache_file" >&6;}
1691   >$cache_file
1692 fi
1693
1694 # Check that the precious variables saved in the cache have kept the same
1695 # value.
1696 ac_cache_corrupted=false
1697 for ac_var in $ac_precious_vars; do
1698   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1699   eval ac_new_set=\$ac_env_${ac_var}_set
1700   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1701   eval ac_new_val=\$ac_env_${ac_var}_value
1702   case $ac_old_set,$ac_new_set in
1703     set,)
1704       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1706       ac_cache_corrupted=: ;;
1707     ,set)
1708       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1709 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1710       ac_cache_corrupted=: ;;
1711     ,);;
1712     *)
1713       if test "x$ac_old_val" != "x$ac_new_val"; then
1714         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1715 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1716         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1717 echo "$as_me:   former value:  $ac_old_val" >&2;}
1718         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1719 echo "$as_me:   current value: $ac_new_val" >&2;}
1720         ac_cache_corrupted=:
1721       fi;;
1722   esac
1723   # Pass precious variables to config.status.
1724   if test "$ac_new_set" = set; then
1725     case $ac_new_val in
1726     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1727     *) ac_arg=$ac_var=$ac_new_val ;;
1728     esac
1729     case " $ac_configure_args " in
1730       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1731       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1732     esac
1733   fi
1734 done
1735 if $ac_cache_corrupted; then
1736   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1737 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1738   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1739 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1740    { (exit 1); exit 1; }; }
1741 fi
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759 ac_ext=c
1760 ac_cpp='$CPP $CPPFLAGS'
1761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1764
1765
1766
1767 ac_aux_dir=
1768 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1769   if test -f "$ac_dir/install-sh"; then
1770     ac_aux_dir=$ac_dir
1771     ac_install_sh="$ac_aux_dir/install-sh -c"
1772     break
1773   elif test -f "$ac_dir/install.sh"; then
1774     ac_aux_dir=$ac_dir
1775     ac_install_sh="$ac_aux_dir/install.sh -c"
1776     break
1777   elif test -f "$ac_dir/shtool"; then
1778     ac_aux_dir=$ac_dir
1779     ac_install_sh="$ac_aux_dir/shtool install -c"
1780     break
1781   fi
1782 done
1783 if test -z "$ac_aux_dir"; then
1784   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1785 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1786    { (exit 1); exit 1; }; }
1787 fi
1788
1789 # These three variables are undocumented and unsupported,
1790 # and are intended to be withdrawn in a future Autoconf release.
1791 # They can cause serious problems if a builder's source tree is in a directory
1792 # whose full name contains unusual characters.
1793 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1794 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1795 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1796
1797
1798 # Make sure we can run config.sub.
1799 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1800   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1801 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1802    { (exit 1); exit 1; }; }
1803
1804 { echo "$as_me:$LINENO: checking build system type" >&5
1805 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1806 if test "${ac_cv_build+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   ac_build_alias=$build_alias
1810 test "x$ac_build_alias" = x &&
1811   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1812 test "x$ac_build_alias" = x &&
1813   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1814 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1815    { (exit 1); exit 1; }; }
1816 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1817   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1818 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1819    { (exit 1); exit 1; }; }
1820
1821 fi
1822 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1823 echo "${ECHO_T}$ac_cv_build" >&6; }
1824 case $ac_cv_build in
1825 *-*-*) ;;
1826 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1827 echo "$as_me: error: invalid value of canonical build" >&2;}
1828    { (exit 1); exit 1; }; };;
1829 esac
1830 build=$ac_cv_build
1831 ac_save_IFS=$IFS; IFS='-'
1832 set x $ac_cv_build
1833 shift
1834 build_cpu=$1
1835 build_vendor=$2
1836 shift; shift
1837 # Remember, the first character of IFS is used to create $*,
1838 # except with old shells:
1839 build_os=$*
1840 IFS=$ac_save_IFS
1841 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1842
1843
1844 { echo "$as_me:$LINENO: checking host system type" >&5
1845 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1846 if test "${ac_cv_host+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849   if test "x$host_alias" = x; then
1850   ac_cv_host=$ac_cv_build
1851 else
1852   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1853     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1854 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1855    { (exit 1); exit 1; }; }
1856 fi
1857
1858 fi
1859 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1860 echo "${ECHO_T}$ac_cv_host" >&6; }
1861 case $ac_cv_host in
1862 *-*-*) ;;
1863 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1864 echo "$as_me: error: invalid value of canonical host" >&2;}
1865    { (exit 1); exit 1; }; };;
1866 esac
1867 host=$ac_cv_host
1868 ac_save_IFS=$IFS; IFS='-'
1869 set x $ac_cv_host
1870 shift
1871 host_cpu=$1
1872 host_vendor=$2
1873 shift; shift
1874 # Remember, the first character of IFS is used to create $*,
1875 # except with old shells:
1876 host_os=$*
1877 IFS=$ac_save_IFS
1878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1879
1880
1881 { echo "$as_me:$LINENO: checking target system type" >&5
1882 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1883 if test "${ac_cv_target+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test "x$target_alias" = x; then
1887   ac_cv_target=$ac_cv_host
1888 else
1889   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1890     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1891 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1892    { (exit 1); exit 1; }; }
1893 fi
1894
1895 fi
1896 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1897 echo "${ECHO_T}$ac_cv_target" >&6; }
1898 case $ac_cv_target in
1899 *-*-*) ;;
1900 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1901 echo "$as_me: error: invalid value of canonical target" >&2;}
1902    { (exit 1); exit 1; }; };;
1903 esac
1904 target=$ac_cv_target
1905 ac_save_IFS=$IFS; IFS='-'
1906 set x $ac_cv_target
1907 shift
1908 target_cpu=$1
1909 target_vendor=$2
1910 shift; shift
1911 # Remember, the first character of IFS is used to create $*,
1912 # except with old shells:
1913 target_os=$*
1914 IFS=$ac_save_IFS
1915 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1916
1917
1918 # The aliases save the names the user supplied, while $host etc.
1919 # will get canonicalized.
1920 test -n "$target_alias" &&
1921   test "$program_prefix$program_suffix$program_transform_name" = \
1922     NONENONEs,x,x, &&
1923   program_prefix=${target_alias}-
1924
1925
1926
1927
1928
1929
1930
1931 # Check whether --with-gcc was given.
1932 if test "${with_gcc+set}" = set; then
1933   withval=$with_gcc;
1934 fi
1935
1936     V_CCOPT="-O"
1937     V_INCLS=""
1938     if test "${srcdir}" != "." ; then
1939             V_INCLS="-I\$(srcdir)"
1940     fi
1941     if test "${CFLAGS+set}" = set; then
1942             LBL_CFLAGS="$CFLAGS"
1943     fi
1944     if test -z "$CC" ; then
1945             case "$host_os" in
1946
1947             bsdi*)
1948                     # Extract the first word of "shlicc2", so it can be a program name with args.
1949 set dummy shlicc2; ac_word=$2
1950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1952 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1953   echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955   if test -n "$SHLICC2"; then
1956   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961   IFS=$as_save_IFS
1962   test -z "$as_dir" && as_dir=.
1963   for ac_exec_ext in '' $ac_executable_extensions; do
1964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1965     ac_cv_prog_SHLICC2="yes"
1966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967     break 2
1968   fi
1969 done
1970 done
1971 IFS=$as_save_IFS
1972
1973   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1974 fi
1975 fi
1976 SHLICC2=$ac_cv_prog_SHLICC2
1977 if test -n "$SHLICC2"; then
1978   { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1979 echo "${ECHO_T}$SHLICC2" >&6; }
1980 else
1981   { echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6; }
1983 fi
1984
1985
1986                     if test $SHLICC2 = yes ; then
1987                             CC=shlicc2
1988                             export CC
1989                     fi
1990                     ;;
1991             esac
1992     fi
1993     if test -z "$CC" -a "$with_gcc" = no ; then
1994             CC=cc
1995             export CC
1996     fi
1997
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$CC"; then
2012   ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027 IFS=$as_save_IFS
2028
2029 fi
2030 fi
2031 CC=$ac_cv_prog_CC
2032 if test -n "$CC"; then
2033   { echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6; }
2035 else
2036   { echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6; }
2038 fi
2039
2040
2041 fi
2042 if test -z "$ac_cv_prog_CC"; then
2043   ac_ct_CC=$CC
2044   # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test -n "$ac_ct_CC"; then
2052   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061     ac_cv_prog_ac_ct_CC="gcc"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067 IFS=$as_save_IFS
2068
2069 fi
2070 fi
2071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072 if test -n "$ac_ct_CC"; then
2073   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074 echo "${ECHO_T}$ac_ct_CC" >&6; }
2075 else
2076   { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2078 fi
2079
2080   if test "x$ac_ct_CC" = x; then
2081     CC=""
2082   else
2083     case $cross_compiling:$ac_tool_warned in
2084 yes:)
2085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2086 whose name does not start with the host triplet.  If you think this
2087 configuration is useful to you, please write to autoconf@gnu.org." >&5
2088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2089 whose name does not start with the host triplet.  If you think this
2090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2091 ac_tool_warned=yes ;;
2092 esac
2093     CC=$ac_ct_CC
2094   fi
2095 else
2096   CC="$ac_cv_prog_CC"
2097 fi
2098
2099 if test -z "$CC"; then
2100           if test -n "$ac_tool_prefix"; then
2101     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}cc; ac_word=$2
2103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test -n "$CC"; then
2109   ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114   IFS=$as_save_IFS
2115   test -z "$as_dir" && as_dir=.
2116   for ac_exec_ext in '' $ac_executable_extensions; do
2117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2118     ac_cv_prog_CC="${ac_tool_prefix}cc"
2119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120     break 2
2121   fi
2122 done
2123 done
2124 IFS=$as_save_IFS
2125
2126 fi
2127 fi
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130   { echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6; }
2132 else
2133   { echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6; }
2135 fi
2136
2137
2138   fi
2139 fi
2140 if test -z "$CC"; then
2141   # Extract the first word of "cc", so it can be a program name with args.
2142 set dummy cc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test -n "$CC"; then
2149   ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151   ac_prog_rejected=no
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2160        ac_prog_rejected=yes
2161        continue
2162      fi
2163     ac_cv_prog_CC="cc"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169 IFS=$as_save_IFS
2170
2171 if test $ac_prog_rejected = yes; then
2172   # We found a bogon in the path, so make sure we never use it.
2173   set dummy $ac_cv_prog_CC
2174   shift
2175   if test $# != 0; then
2176     # We chose a different compiler from the bogus one.
2177     # However, it has the same basename, so the bogon will be chosen
2178     # first if we set CC to just the basename; use the full file name.
2179     shift
2180     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2181   fi
2182 fi
2183 fi
2184 fi
2185 CC=$ac_cv_prog_CC
2186 if test -n "$CC"; then
2187   { echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6; }
2189 else
2190   { echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6; }
2192 fi
2193
2194
2195 fi
2196 if test -z "$CC"; then
2197   if test -n "$ac_tool_prefix"; then
2198   for ac_prog in cl.exe
2199   do
2200     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_CC+set}" = set; then
2205   echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207   if test -n "$CC"; then
2208   ac_cv_prog_CC="$CC" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213   IFS=$as_save_IFS
2214   test -z "$as_dir" && as_dir=.
2215   for ac_exec_ext in '' $ac_executable_extensions; do
2216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219     break 2
2220   fi
2221 done
2222 done
2223 IFS=$as_save_IFS
2224
2225 fi
2226 fi
2227 CC=$ac_cv_prog_CC
2228 if test -n "$CC"; then
2229   { echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6; }
2231 else
2232   { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2234 fi
2235
2236
2237     test -n "$CC" && break
2238   done
2239 fi
2240 if test -z "$CC"; then
2241   ac_ct_CC=$CC
2242   for ac_prog in cl.exe
2243 do
2244   # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   if test -n "$ac_ct_CC"; then
2252   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259   for ac_exec_ext in '' $ac_executable_extensions; do
2260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261     ac_cv_prog_ac_ct_CC="$ac_prog"
2262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263     break 2
2264   fi
2265 done
2266 done
2267 IFS=$as_save_IFS
2268
2269 fi
2270 fi
2271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2272 if test -n "$ac_ct_CC"; then
2273   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2274 echo "${ECHO_T}$ac_ct_CC" >&6; }
2275 else
2276   { echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6; }
2278 fi
2279
2280
2281   test -n "$ac_ct_CC" && break
2282 done
2283
2284   if test "x$ac_ct_CC" = x; then
2285     CC=""
2286   else
2287     case $cross_compiling:$ac_tool_warned in
2288 yes:)
2289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2290 whose name does not start with the host triplet.  If you think this
2291 configuration is useful to you, please write to autoconf@gnu.org." >&5
2292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2293 whose name does not start with the host triplet.  If you think this
2294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2295 ac_tool_warned=yes ;;
2296 esac
2297     CC=$ac_ct_CC
2298   fi
2299 fi
2300
2301 fi
2302
2303
2304 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&2;}
2308    { (exit 1); exit 1; }; }
2309
2310 # Provide some information about the compiler.
2311 echo "$as_me:$LINENO: checking for C compiler version" >&5
2312 ac_compiler=`set X $ac_compile; echo $2`
2313 { (ac_try="$ac_compiler --version >&5"
2314 case "(($ac_try" in
2315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316   *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319   (eval "$ac_compiler --version >&5") 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }
2323 { (ac_try="$ac_compiler -v >&5"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compiler -v >&5") 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }
2333 { (ac_try="$ac_compiler -V >&5"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339   (eval "$ac_compiler -V >&5") 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }
2343
2344 cat >conftest.$ac_ext <<_ACEOF
2345 /* confdefs.h.  */
2346 _ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h.  */
2350
2351 int
2352 main ()
2353 {
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 ac_clean_files_save=$ac_clean_files
2360 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2361 # Try to create an executable without -o first, disregard a.out.
2362 # It will help us diagnose broken compilers, and finding out an intuition
2363 # of exeext.
2364 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2365 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2366 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2367 #
2368 # List of possible output files, starting from the most likely.
2369 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2370 # only as a last resort.  b.out is created by i960 compilers.
2371 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2372 #
2373 # The IRIX 6 linker writes into existing files which may not be
2374 # executable, retaining their permissions.  Remove them first so a
2375 # subsequent execution test works.
2376 ac_rmfiles=
2377 for ac_file in $ac_files
2378 do
2379   case $ac_file in
2380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2381     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2382   esac
2383 done
2384 rm -f $ac_rmfiles
2385
2386 if { (ac_try="$ac_link_default"
2387 case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_link_default") 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; then
2396   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2397 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2398 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2399 # so that the user can short-circuit this test for compilers unknown to
2400 # Autoconf.
2401 for ac_file in $ac_files ''
2402 do
2403   test -f "$ac_file" || continue
2404   case $ac_file in
2405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2406         ;;
2407     [ab].out )
2408         # We found the default executable, but exeext='' is most
2409         # certainly right.
2410         break;;
2411     *.* )
2412         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2413         then :; else
2414            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2415         fi
2416         # We set ac_cv_exeext here because the later test for it is not
2417         # safe: cross compilers may not add the suffix if given an `-o'
2418         # argument, so we may need to know it at that point already.
2419         # Even if this section looks crufty: it has the advantage of
2420         # actually working.
2421         break;;
2422     * )
2423         break;;
2424   esac
2425 done
2426 test "$ac_cv_exeext" = no && ac_cv_exeext=
2427
2428 else
2429   ac_file=''
2430 fi
2431
2432 { echo "$as_me:$LINENO: result: $ac_file" >&5
2433 echo "${ECHO_T}$ac_file" >&6; }
2434 if test -z "$ac_file"; then
2435   echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2439 See \`config.log' for more details." >&5
2440 echo "$as_me: error: C compiler cannot create executables
2441 See \`config.log' for more details." >&2;}
2442    { (exit 77); exit 77; }; }
2443 fi
2444
2445 ac_exeext=$ac_cv_exeext
2446
2447 # Check that the compiler produces executables we can run.  If not, either
2448 # the compiler is broken, or we cross compile.
2449 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2451 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452 # If not cross compiling, check that we can run a simple program.
2453 if test "$cross_compiling" != yes; then
2454   if { ac_try='./$ac_file'
2455   { (case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460   (eval "$ac_try") 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; }; then
2464     cross_compiling=no
2465   else
2466     if test "$cross_compiling" = maybe; then
2467         cross_compiling=yes
2468     else
2469         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2470 If you meant to cross compile, use \`--host'.
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&2;}
2475    { (exit 1); exit 1; }; }
2476     fi
2477   fi
2478 fi
2479 { echo "$as_me:$LINENO: result: yes" >&5
2480 echo "${ECHO_T}yes" >&6; }
2481
2482 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2483 ac_clean_files=$ac_clean_files_save
2484 # Check that the compiler produces executables we can run.  If not, either
2485 # the compiler is broken, or we cross compile.
2486 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2487 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2488 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2489 echo "${ECHO_T}$cross_compiling" >&6; }
2490
2491 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2492 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2493 if { (ac_try="$ac_link"
2494 case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499   (eval "$ac_link") 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; then
2503   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2504 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2505 # work properly (i.e., refer to `conftest.exe'), while it won't with
2506 # `rm'.
2507 for ac_file in conftest.exe conftest conftest.*; do
2508   test -f "$ac_file" || continue
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2511     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512           break;;
2513     * ) break;;
2514   esac
2515 done
2516 else
2517   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2520 See \`config.log' for more details." >&2;}
2521    { (exit 1); exit 1; }; }
2522 fi
2523
2524 rm -f conftest$ac_cv_exeext
2525 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2526 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2527
2528 rm -f conftest.$ac_ext
2529 EXEEXT=$ac_cv_exeext
2530 ac_exeext=$EXEEXT
2531 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2532 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2533 if test "${ac_cv_objext+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h.  */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h.  */
2542
2543 int
2544 main ()
2545 {
2546
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.o conftest.obj
2552 if { (ac_try="$ac_compile"
2553 case "(($ac_try" in
2554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555   *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558   (eval "$ac_compile") 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; then
2562   for ac_file in conftest.o conftest.obj conftest.*; do
2563   test -f "$ac_file" || continue;
2564   case $ac_file in
2565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2566     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2567        break;;
2568   esac
2569 done
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2577 See \`config.log' for more details." >&2;}
2578    { (exit 1); exit 1; }; }
2579 fi
2580
2581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2582 fi
2583 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2584 echo "${ECHO_T}$ac_cv_objext" >&6; }
2585 OBJEXT=$ac_cv_objext
2586 ac_objext=$OBJEXT
2587 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2588 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2589 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2590   echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592   cat >conftest.$ac_ext <<_ACEOF
2593 /* confdefs.h.  */
2594 _ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h.  */
2598
2599 int
2600 main ()
2601 {
2602 #ifndef __GNUC__
2603        choke me
2604 #endif
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (ac_try="$ac_compile"
2612 case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617   (eval "$ac_compile") 2>conftest.er1
2618   ac_status=$?
2619   grep -v '^ *+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } && {
2624          test -z "$ac_c_werror_flag" ||
2625          test ! -s conftest.err
2626        } && test -s conftest.$ac_objext; then
2627   ac_compiler_gnu=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632         ac_compiler_gnu=no
2633 fi
2634
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2637
2638 fi
2639 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2641 GCC=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CFLAGS=${CFLAGS+set}
2643 ac_save_CFLAGS=$CFLAGS
2644 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2645 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2646 if test "${ac_cv_prog_cc_g+set}" = set; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   ac_save_c_werror_flag=$ac_c_werror_flag
2650    ac_c_werror_flag=yes
2651    ac_cv_prog_cc_g=no
2652    CFLAGS="-g"
2653    cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659
2660 int
2661 main ()
2662 {
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_compile") 2>conftest.er1
2676   ac_status=$?
2677   grep -v '^ *+' conftest.er1 >conftest.err
2678   rm -f conftest.er1
2679   cat conftest.err >&5
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); } && {
2682          test -z "$ac_c_werror_flag" ||
2683          test ! -s conftest.err
2684        } && test -s conftest.$ac_objext; then
2685   ac_cv_prog_cc_g=yes
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690         CFLAGS=""
2691       cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697
2698 int
2699 main ()
2700 {
2701
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_compile") 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } && {
2720          test -z "$ac_c_werror_flag" ||
2721          test ! -s conftest.err
2722        } && test -s conftest.$ac_objext; then
2723   :
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728         ac_c_werror_flag=$ac_save_c_werror_flag
2729          CFLAGS="-g"
2730          cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h.  */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h.  */
2736
2737 int
2738 main ()
2739 {
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2747 case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752   (eval "$ac_compile") 2>conftest.er1
2753   ac_status=$?
2754   grep -v '^ *+' conftest.er1 >conftest.err
2755   rm -f conftest.er1
2756   cat conftest.err >&5
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } && {
2759          test -z "$ac_c_werror_flag" ||
2760          test ! -s conftest.err
2761        } && test -s conftest.$ac_objext; then
2762   ac_cv_prog_cc_g=yes
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 fi
2772
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 fi
2775
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777    ac_c_werror_flag=$ac_save_c_werror_flag
2778 fi
2779 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2781 if test "$ac_test_CFLAGS" = set; then
2782   CFLAGS=$ac_save_CFLAGS
2783 elif test $ac_cv_prog_cc_g = yes; then
2784   if test "$GCC" = yes; then
2785     CFLAGS="-g -O2"
2786   else
2787     CFLAGS="-g"
2788   fi
2789 else
2790   if test "$GCC" = yes; then
2791     CFLAGS="-O2"
2792   else
2793     CFLAGS=
2794   fi
2795 fi
2796 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2797 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2798 if test "${ac_cv_prog_cc_c89+set}" = set; then
2799   echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801   ac_cv_prog_cc_c89=no
2802 ac_save_CC=$CC
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h.  */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h.  */
2809 #include <stdarg.h>
2810 #include <stdio.h>
2811 #include <sys/types.h>
2812 #include <sys/stat.h>
2813 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2814 struct buf { int x; };
2815 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2816 static char *e (p, i)
2817      char **p;
2818      int i;
2819 {
2820   return p[i];
2821 }
2822 static char *f (char * (*g) (char **, int), char **p, ...)
2823 {
2824   char *s;
2825   va_list v;
2826   va_start (v,p);
2827   s = g (p, va_arg (v,int));
2828   va_end (v);
2829   return s;
2830 }
2831
2832 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2833    function prototypes and stuff, but not '\xHH' hex character constants.
2834    These don't provoke an error unfortunately, instead are silently treated
2835    as 'x'.  The following induces an error, until -std is added to get
2836    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2837    array size at least.  It's necessary to write '\x00'==0 to get something
2838    that's true only with -std.  */
2839 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2840
2841 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2842    inside strings and character constants.  */
2843 #define FOO(x) 'x'
2844 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2845
2846 int test (int i, double x);
2847 struct s1 {int (*f) (int a);};
2848 struct s2 {int (*f) (double a);};
2849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2850 int argc;
2851 char **argv;
2852 int
2853 main ()
2854 {
2855 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2861         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2862 do
2863   CC="$ac_save_CC $ac_arg"
2864   rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2866 case "(($ac_try" in
2867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868   *) ac_try_echo=$ac_try;;
2869 esac
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871   (eval "$ac_compile") 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } && {
2878          test -z "$ac_c_werror_flag" ||
2879          test ! -s conftest.err
2880        } && test -s conftest.$ac_objext; then
2881   ac_cv_prog_cc_c89=$ac_arg
2882 else
2883   echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886
2887 fi
2888
2889 rm -f core conftest.err conftest.$ac_objext
2890   test "x$ac_cv_prog_cc_c89" != "xno" && break
2891 done
2892 rm -f conftest.$ac_ext
2893 CC=$ac_save_CC
2894
2895 fi
2896 # AC_CACHE_VAL
2897 case "x$ac_cv_prog_cc_c89" in
2898   x)
2899     { echo "$as_me:$LINENO: result: none needed" >&5
2900 echo "${ECHO_T}none needed" >&6; } ;;
2901   xno)
2902     { echo "$as_me:$LINENO: result: unsupported" >&5
2903 echo "${ECHO_T}unsupported" >&6; } ;;
2904   *)
2905     CC="$CC $ac_cv_prog_cc_c89"
2906     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2907 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2908 esac
2909
2910
2911 ac_ext=c
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916
2917
2918
2919
2920
2921     if test "$GCC" = yes ; then
2922             if test "$SHLICC2" = yes ; then
2923                     ac_cv_lbl_gcc_vers=2
2924                     V_CCOPT="-O2"
2925             else
2926                     { echo "$as_me:$LINENO: checking gcc version" >&5
2927 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2928                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2932                             sed -e '/^gcc version /!d' \
2933                                 -e 's/^gcc version //' \
2934                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2935                                 -e 's/\..*//'`
2936 fi
2937
2938                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2939 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2940                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2941                             V_CCOPT="-O2"
2942                     fi
2943             fi
2944     else
2945             { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2946 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2947             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h.  */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h.  */
2957 #include <sys/types.h>
2958 int
2959 main ()
2960 {
2961 int frob(int, char *)
2962   ;
2963   return 0;
2964 }
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_compile") 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } && {
2980          test -z "$ac_c_werror_flag" ||
2981          test ! -s conftest.err
2982        } && test -s conftest.$ac_objext; then
2983   ac_cv_lbl_cc_ansi_prototypes=yes
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988         ac_cv_lbl_cc_ansi_prototypes=no
2989 fi
2990
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 fi
2993
2994             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2995 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2996             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2997                     case "$host_os" in
2998
2999                     hpux*)
3000                             { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3001 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
3002                             savedcflags="$CFLAGS"
3003                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3004                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h.  */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h.  */
3013 #include <sys/types.h>
3014 int
3015 main ()
3016 {
3017 int frob(int, char *)
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3024 case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_compile") 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } && {
3036          test -z "$ac_c_werror_flag" ||
3037          test ! -s conftest.err
3038        } && test -s conftest.$ac_objext; then
3039   ac_cv_lbl_cc_hpux_cc_aa=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         ac_cv_lbl_cc_hpux_cc_aa=no
3045 fi
3046
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 fi
3049
3050                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3051 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3052                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3053                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3054 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3055    { (exit 1); exit 1; }; }
3056                             fi
3057                             CFLAGS="$savedcflags"
3058                             V_CCOPT="-Aa $V_CCOPT"
3059
3060 cat >>confdefs.h <<\_ACEOF
3061 #define _HPUX_SOURCE 1
3062 _ACEOF
3063
3064                             ;;
3065
3066                     osf*)
3067                             { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3068 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3069                             savedcflags="$CFLAGS"
3070                             CFLAGS="-std1"
3071                             if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080 #include <sys/types.h>
3081 int
3082 main ()
3083 {
3084 int frob(int, char *)
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_compile") 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } && {
3103          test -z "$ac_c_werror_flag" ||
3104          test ! -s conftest.err
3105        } && test -s conftest.$ac_objext; then
3106   ac_cv_lbl_cc_osf1_cc_std1=yes
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111         ac_cv_lbl_cc_osf1_cc_std1=no
3112 fi
3113
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 fi
3116
3117                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3118 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3119                             if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3120                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3121 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3122    { (exit 1); exit 1; }; }
3123                             fi
3124                             CFLAGS="$savedcflags"
3125                             V_CCOPT="-std1 $V_CCOPT"
3126                             ;;
3127
3128                     *)
3129                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3130 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3131    { (exit 1); exit 1; }; }
3132                             ;;
3133                     esac
3134             fi
3135             V_INCLS="$V_INCLS -I/usr/local/include"
3136             LDFLAGS="$LDFLAGS -L/usr/local/lib"
3137
3138             case "$host_os" in
3139
3140             irix*)
3141                     V_CCOPT="$V_CCOPT -xansi -signed -g3"
3142                     ;;
3143
3144             osf*)
3145                     #
3146                     # Presumed to be DEC OSF/1, Digital UNIX, or
3147                     # Tru64 UNIX.
3148                     #
3149                     V_CCOPT="$V_CCOPT -g3"
3150                     ;;
3151
3152             ultrix*)
3153                     { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3154 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3155                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164 #include <sys/types.h>
3165 int
3166 main ()
3167 {
3168 struct a { int b; };
3169                             void c(const struct a *)
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } && {
3188          test -z "$ac_c_werror_flag" ||
3189          test ! -s conftest.err
3190        } && test -s conftest.$ac_objext; then
3191   ac_cv_lbl_cc_const_proto=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196         ac_cv_lbl_cc_const_proto=no
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3203 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3204                     if test $ac_cv_lbl_cc_const_proto = no ; then
3205
3206 cat >>confdefs.h <<\_ACEOF
3207 #define const
3208 _ACEOF
3209
3210                     fi
3211                     ;;
3212             esac
3213     fi
3214
3215
3216     if test "$GCC" = yes ; then
3217             #
3218             # On platforms where we build a shared library:
3219             #
3220             #   add options to generate position-independent code,
3221             #   if necessary (it's the default in AIX and Darwin/OS X);
3222             #
3223             #   define option to set the soname of the shared library,
3224             #   if the OS supports that;
3225             #
3226             #   add options to specify, at link time, a directory to
3227             #   add to the run-time search path, if that's necessary.
3228             #
3229             V_SHLIB_CMD="\$(CC)"
3230             V_SHLIB_OPT="-shared"
3231             case "$host_os" in
3232
3233             aix*)
3234                     ;;
3235
3236             freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3237                     #
3238                     # Platforms where the linker is the GNU linker
3239                     # or accepts command-line arguments like
3240                     # those the GNU linker accepts.
3241                     #
3242                     # Some instruction sets require -fPIC on some
3243                     # operating systems.  Check for them.  If you
3244                     # have a combination that requires it, add it
3245                     # here.
3246                     #
3247                     PIC_OPT=-fpic
3248                     case "$host_cpu" in
3249
3250                     sparc64*)
3251                         case "$host_os" in
3252
3253                         freebsd*|openbsd*)
3254                             PIC_OPT=-fPIC
3255                             ;;
3256                         esac
3257                         ;;
3258                     esac
3259                     V_CCOPT="$V_CCOPT $PIC_OPT"
3260                     V_SONAME_OPT="-Wl,-soname,"
3261                     V_RPATH_OPT="-Wl,-rpath,"
3262                     ;;
3263
3264             hpux*)
3265                     V_CCOPT="$V_CCOPT -fpic"
3266                     #
3267                     # XXX - this assumes GCC is using the HP linker,
3268                     # rather than the GNU linker, and that the "+h"
3269                     # option is used on all HP-UX platforms, both .sl
3270                     # and .so.
3271                     #
3272                     V_SONAME_OPT="-Wl,+h,"
3273                     #
3274                     # By default, directories specifed with -L
3275                     # are added to the run-time search path, so
3276                     # we don't add them in pcap-config.
3277                     #
3278                     ;;
3279
3280             solaris*)
3281                     V_CCOPT="$V_CCOPT -fpic"
3282                     #
3283                     # XXX - this assumes GCC is using the Sun linker,
3284                     # rather than the GNU linker.
3285                     #
3286                     V_SONAME_OPT="-Wl,-h,"
3287                     V_RPATH_OPT="-Wl,-R,"
3288                     ;;
3289             esac
3290     else
3291             #
3292             # Set the appropriate compiler flags and, on platforms
3293             # where we build a shared library:
3294             #
3295             #   add options to generate position-independent code,
3296             #   if necessary (it's the default in Darwin/OS X);
3297             #
3298             #   if we generate ".so" shared libraries, define the
3299             #   appropriate options for building the shared library;
3300             #
3301             #   add options to specify, at link time, a directory to
3302             #   add to the run-time search path, if that's necessary.
3303             #
3304             # Note: spaces after V_SONAME_OPT are significant; on
3305             # some platforms the soname is passed with a GCC-like
3306             # "-Wl,-soname,{soname}" option, with the soname part
3307             # of the option, while on other platforms the C compiler
3308             # driver takes it as a regular option with the soname
3309             # following the option.  The same applies to V_RPATH_OPT.
3310             #
3311             case "$host_os" in
3312
3313             aix*)
3314                     V_SHLIB_CMD="\$(CC)"
3315                     V_SHLIB_OPT="-G -bnoentry -bexpall"
3316                     ;;
3317
3318             freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3319                     #
3320                     # "cc" is GCC.
3321                     #
3322                     V_CCOPT="$V_CCOPT -fpic"
3323                     V_SHLIB_CMD="\$(CC)"
3324                     V_SHLIB_OPT="-shared"
3325                     V_SONAME_OPT="-Wl,-soname,"
3326                     V_RPATH_OPT="-Wl,-rpath,"
3327                     ;;
3328
3329             hpux*)
3330                     V_CCOPT="$V_CCOPT +z"
3331                     V_SHLIB_CMD="\$(LD)"
3332                     V_SHLIB_OPT="-b"
3333                     V_SONAME_OPT="+h "
3334                     #
3335                     # By default, directories specifed with -L
3336                     # are added to the run-time search path, so
3337                     # we don't add them in pcap-config.
3338                     #
3339                     ;;
3340
3341             osf*)
3342                     #
3343                     # Presumed to be DEC OSF/1, Digital UNIX, or
3344                     # Tru64 UNIX.
3345                     #
3346                     V_SHLIB_CMD="\$(CC)"
3347                     V_SHLIB_OPT="-shared"
3348                     V_SONAME_OPT="-soname "
3349                     V_RPATH_OPT="-rpath "
3350                     ;;
3351
3352             solaris*)
3353                     V_CCOPT="$V_CCOPT -Kpic"
3354                     V_SHLIB_CMD="\$(CC)"
3355                     V_SHLIB_OPT="-G"
3356                     V_SONAME_OPT="-h "
3357                     V_RPATH_OPT="-R"
3358                     ;;
3359             esac
3360     fi
3361
3362 { echo "$as_me:$LINENO: checking for inline" >&5
3363 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3364     save_CFLAGS="$CFLAGS"
3365     CFLAGS="$V_CCOPT"
3366     if test "${ac_cv_lbl_inline+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369
3370         ac_cv_lbl_inline=""
3371         ac_lbl_cc_inline=no
3372         for ac_lbl_inline in inline __inline__ __inline
3373         do
3374             cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380 #define inline $ac_lbl_inline
3381                 static inline struct iltest *foo(void);
3382                 struct iltest {
3383                     int iltest1;
3384                     int iltest2;
3385                 };
3386
3387                 static inline struct iltest *
3388                 foo()
3389                 {
3390                     static struct iltest xxx;
3391
3392                     return &xxx;
3393                 }
3394 int
3395 main ()
3396 {
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409   (eval "$ac_compile") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } && {
3416          test -z "$ac_c_werror_flag" ||
3417          test ! -s conftest.err
3418        } && test -s conftest.$ac_objext; then
3419   ac_lbl_cc_inline=yes
3420 else
3421   echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424
3425 fi
3426
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428             if test "$ac_lbl_cc_inline" = yes ; then
3429                 break;
3430             fi
3431         done
3432         if test "$ac_lbl_cc_inline" = yes ; then
3433             ac_cv_lbl_inline=$ac_lbl_inline
3434         fi
3435 fi
3436
3437     CFLAGS="$save_CFLAGS"
3438     if test ! -z "$ac_cv_lbl_inline" ; then
3439         { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3440 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3441     else
3442         { echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6; }
3444     fi
3445
3446 cat >>confdefs.h <<_ACEOF
3447 #define inline $ac_cv_lbl_inline
3448 _ACEOF
3449
3450
3451 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3452 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3453 if test "${ac_cv___attribute__+set}" = set; then
3454   echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h.  */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h.  */
3463
3464 #include <stdlib.h>
3465
3466 static void foo(void) __attribute__ ((noreturn));
3467
3468 static void
3469 foo(void)
3470 {
3471   exit(1);
3472 }
3473
3474 int
3475 main(int argc, char **argv)
3476 {
3477   foo();
3478 }
3479
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_compile") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } && {
3495          test -z "$ac_c_werror_flag" ||
3496          test ! -s conftest.err
3497        } && test -s conftest.$ac_objext; then
3498   ac_cv___attribute__=yes
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503         ac_cv___attribute__=no
3504 fi
3505
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 fi
3508
3509 if test "$ac_cv___attribute__" = "yes"; then
3510
3511 cat >>confdefs.h <<\_ACEOF
3512 #define HAVE___ATTRIBUTE__ 1
3513 _ACEOF
3514
3515   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3516 else
3517   V_DEFS="$V_DEFS -D_U_=\"\""
3518 fi
3519 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3520 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3521
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3529 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3530 # On Suns, sometimes $CPP names a directory.
3531 if test -n "$CPP" && test -d "$CPP"; then
3532   CPP=
3533 fi
3534 if test -z "$CPP"; then
3535   if test "${ac_cv_prog_CPP+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538       # Double quotes because CPP needs to be expanded
3539     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540     do
3541       ac_preproc_ok=false
3542 for ac_c_preproc_warn_flag in '' yes
3543 do
3544   # Use a header file that comes with gcc, so configuring glibc
3545   # with a fresh cross-compiler works.
3546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547   # <limits.h> exists even on freestanding compilers.
3548   # On the NeXT, cc -E runs the code through the compiler's parser,
3549   # not just through cpp. "Syntax error" is here to catch this case.
3550   cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556 #ifdef __STDC__
3557 # include <limits.h>
3558 #else
3559 # include <assert.h>
3560 #endif
3561                      Syntax error
3562 _ACEOF
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } >/dev/null && {
3576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3577          test ! -s conftest.err
3578        }; then
3579   :
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584   # Broken: fails on valid input.
3585 continue
3586 fi
3587
3588 rm -f conftest.err conftest.$ac_ext
3589
3590   # OK, works on sane cases.  Now check whether nonexistent headers
3591   # can be detected and how.
3592   cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598 #include <ac_nonexistent.h>
3599 _ACEOF
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null && {
3613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614          test ! -s conftest.err
3615        }; then
3616   # Broken: success on invalid input.
3617 continue
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622   # Passes both tests.
3623 ac_preproc_ok=:
3624 break
3625 fi
3626
3627 rm -f conftest.err conftest.$ac_ext
3628
3629 done
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3633   break
3634 fi
3635
3636     done
3637     ac_cv_prog_CPP=$CPP
3638
3639 fi
3640   CPP=$ac_cv_prog_CPP
3641 else
3642   ac_cv_prog_CPP=$CPP
3643 fi
3644 { echo "$as_me:$LINENO: result: $CPP" >&5
3645 echo "${ECHO_T}$CPP" >&6; }
3646 ac_preproc_ok=false
3647 for ac_c_preproc_warn_flag in '' yes
3648 do
3649   # Use a header file that comes with gcc, so configuring glibc
3650   # with a fresh cross-compiler works.
3651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652   # <limits.h> exists even on freestanding compilers.
3653   # On the NeXT, cc -E runs the code through the compiler's parser,
3654   # not just through cpp. "Syntax error" is here to catch this case.
3655   cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #ifdef __STDC__
3662 # include <limits.h>
3663 #else
3664 # include <assert.h>
3665 #endif
3666                      Syntax error
3667 _ACEOF
3668 if { (ac_try="$ac_cpp conftest.$ac_ext"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675   ac_status=$?
3676   grep -v '^ *+' conftest.er1 >conftest.err
3677   rm -f conftest.er1
3678   cat conftest.err >&5
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); } >/dev/null && {
3681          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3682          test ! -s conftest.err
3683        }; then
3684   :
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689   # Broken: fails on valid input.
3690 continue
3691 fi
3692
3693 rm -f conftest.err conftest.$ac_ext
3694
3695   # OK, works on sane cases.  Now check whether nonexistent headers
3696   # can be detected and how.
3697   cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h.  */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h.  */
3703 #include <ac_nonexistent.h>
3704 _ACEOF
3705 if { (ac_try="$ac_cpp conftest.$ac_ext"
3706 case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } >/dev/null && {
3718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3719          test ! -s conftest.err
3720        }; then
3721   # Broken: success on invalid input.
3722 continue
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727   # Passes both tests.
3728 ac_preproc_ok=:
3729 break
3730 fi
3731
3732 rm -f conftest.err conftest.$ac_ext
3733
3734 done
3735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3736 rm -f conftest.err conftest.$ac_ext
3737 if $ac_preproc_ok; then
3738   :
3739 else
3740   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3741 See \`config.log' for more details." >&5
3742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&2;}
3744    { (exit 1); exit 1; }; }
3745 fi
3746
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753
3754 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3755 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3756 if test "${ac_cv_path_GREP+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   # Extract the first word of "grep ggrep" to use in msg output
3760 if test -z "$GREP"; then
3761 set dummy grep ggrep; ac_prog_name=$2
3762 if test "${ac_cv_path_GREP+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   ac_path_GREP_found=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for ac_prog in grep ggrep; do
3773   for ac_exec_ext in '' $ac_executable_extensions; do
3774     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3775     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3776     # Check for GNU ac_path_GREP and select it if it is found.
3777   # Check for GNU $ac_path_GREP
3778 case `"$ac_path_GREP" --version 2>&1` in
3779 *GNU*)
3780   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3781 *)
3782   ac_count=0
3783   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3784   while :
3785   do
3786     cat "conftest.in" "conftest.in" >"conftest.tmp"
3787     mv "conftest.tmp" "conftest.in"
3788     cp "conftest.in" "conftest.nl"
3789     echo 'GREP' >> "conftest.nl"
3790     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792     ac_count=`expr $ac_count + 1`
3793     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3794       # Best one so far, save it but keep looking for a better one
3795       ac_cv_path_GREP="$ac_path_GREP"
3796       ac_path_GREP_max=$ac_count
3797     fi
3798     # 10*(2^10) chars as input seems more than enough
3799     test $ac_count -gt 10 && break
3800   done
3801   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802 esac
3803
3804
3805     $ac_path_GREP_found && break 3
3806   done
3807 done
3808
3809 done
3810 IFS=$as_save_IFS
3811
3812
3813 fi
3814
3815 GREP="$ac_cv_path_GREP"
3816 if test -z "$GREP"; then
3817   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3818 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3819    { (exit 1); exit 1; }; }
3820 fi
3821
3822 else
3823   ac_cv_path_GREP=$GREP
3824 fi
3825
3826
3827 fi
3828 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3829 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3830  GREP="$ac_cv_path_GREP"
3831
3832
3833 { echo "$as_me:$LINENO: checking for egrep" >&5
3834 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3835 if test "${ac_cv_path_EGREP+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3839    then ac_cv_path_EGREP="$GREP -E"
3840    else
3841      # Extract the first word of "egrep" to use in msg output
3842 if test -z "$EGREP"; then
3843 set dummy egrep; ac_prog_name=$2
3844 if test "${ac_cv_path_EGREP+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   ac_path_EGREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3851 do
3852   IFS=$as_save_IFS
3853   test -z "$as_dir" && as_dir=.
3854   for ac_prog in egrep; do
3855   for ac_exec_ext in '' $ac_executable_extensions; do
3856     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3857     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3858     # Check for GNU ac_path_EGREP and select it if it is found.
3859   # Check for GNU $ac_path_EGREP
3860 case `"$ac_path_EGREP" --version 2>&1` in
3861 *GNU*)
3862   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3863 *)
3864   ac_count=0
3865   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3866   while :
3867   do
3868     cat "conftest.in" "conftest.in" >"conftest.tmp"
3869     mv "conftest.tmp" "conftest.in"
3870     cp "conftest.in" "conftest.nl"
3871     echo 'EGREP' >> "conftest.nl"
3872     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874     ac_count=`expr $ac_count + 1`
3875     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876       # Best one so far, save it but keep looking for a better one
3877       ac_cv_path_EGREP="$ac_path_EGREP"
3878       ac_path_EGREP_max=$ac_count
3879     fi
3880     # 10*(2^10) chars as input seems more than enough
3881     test $ac_count -gt 10 && break
3882   done
3883   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3884 esac
3885
3886
3887     $ac_path_EGREP_found && break 3
3888   done
3889 done
3890
3891 done
3892 IFS=$as_save_IFS
3893
3894
3895 fi
3896
3897 EGREP="$ac_cv_path_EGREP"
3898 if test -z "$EGREP"; then
3899   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3900 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3901    { (exit 1); exit 1; }; }
3902 fi
3903
3904 else
3905   ac_cv_path_EGREP=$EGREP
3906 fi
3907
3908
3909    fi
3910 fi
3911 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3912 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3913  EGREP="$ac_cv_path_EGREP"
3914
3915
3916 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3917 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3918 if test "${ac_cv_header_stdc+set}" = set; then
3919   echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921   cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 #include <stdlib.h>
3928 #include <stdarg.h>
3929 #include <string.h>
3930 #include <float.h>
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3942 case "(($ac_try" in
3943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944   *) ac_try_echo=$ac_try;;
3945 esac
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947   (eval "$ac_compile") 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } && {
3954          test -z "$ac_c_werror_flag" ||
3955          test ! -s conftest.err
3956        } && test -s conftest.$ac_objext; then
3957   ac_cv_header_stdc=yes
3958 else
3959   echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962         ac_cv_header_stdc=no
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
3967 if test $ac_cv_header_stdc = yes; then
3968   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3969   cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975 #include <string.h>
3976
3977 _ACEOF
3978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3979   $EGREP "memchr" >/dev/null 2>&1; then
3980   :
3981 else
3982   ac_cv_header_stdc=no
3983 fi
3984 rm -f conftest*
3985
3986 fi
3987
3988 if test $ac_cv_header_stdc = yes; then
3989   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3990   cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h.  */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h.  */
3996 #include <stdlib.h>
3997
3998 _ACEOF
3999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000   $EGREP "free" >/dev/null 2>&1; then
4001   :
4002 else
4003   ac_cv_header_stdc=no
4004 fi
4005 rm -f conftest*
4006
4007 fi
4008
4009 if test $ac_cv_header_stdc = yes; then
4010   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4011   if test "$cross_compiling" = yes; then
4012   :
4013 else
4014   cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h.  */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h.  */
4020 #include <ctype.h>
4021 #include <stdlib.h>
4022 #if ((' ' & 0x0FF) == 0x020)
4023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4025 #else
4026 # define ISLOWER(c) \
4027                    (('a' <= (c) && (c) <= 'i') \
4028                      || ('j' <= (c) && (c) <= 'r') \
4029                      || ('s' <= (c) && (c) <= 'z'))
4030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4031 #endif
4032
4033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4034 int
4035 main ()
4036 {
4037   int i;
4038   for (i = 0; i < 256; i++)
4039     if (XOR (islower (i), ISLOWER (i))
4040         || toupper (i) != TOUPPER (i))
4041       return 2;
4042   return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest$ac_exeext
4046 if { (ac_try="$ac_link"
4047 case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052   (eval "$ac_link") 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4056   { (case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061   (eval "$ac_try") 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   :
4066 else
4067   echo "$as_me: program exited with status $ac_status" >&5
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 ( exit $ac_status )
4072 ac_cv_header_stdc=no
4073 fi
4074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4075 fi
4076
4077
4078 fi
4079 fi
4080 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4081 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4082 if test $ac_cv_header_stdc = yes; then
4083
4084 cat >>confdefs.h <<\_ACEOF
4085 #define STDC_HEADERS 1
4086 _ACEOF
4087
4088 fi
4089
4090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4101                   inttypes.h stdint.h unistd.h
4102 do
4103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4104 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h.  */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h.  */
4115 $ac_includes_default
4116
4117 #include <$ac_header>
4118 _ACEOF
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4121 case "(($ac_try" in
4122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123   *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126   (eval "$ac_compile") 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } && {
4133          test -z "$ac_c_werror_flag" ||
4134          test ! -s conftest.err
4135        } && test -s conftest.$ac_objext; then
4136   eval "$as_ac_Header=yes"
4137 else
4138   echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.$ac_ext >&5
4140
4141         eval "$as_ac_Header=no"
4142 fi
4143
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 fi
4146 ac_res=`eval echo '${'$as_ac_Header'}'`
4147                { echo "$as_me:$LINENO: result: $ac_res" >&5
4148 echo "${ECHO_T}$ac_res" >&6; }
4149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4150   cat >>confdefs.h <<_ACEOF
4151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4152 _ACEOF
4153
4154 fi
4155
4156 done
4157
4158
4159
4160 for ac_header in sys/bitypes.h
4161 do
4162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4164   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 fi
4169 ac_res=`eval echo '${'$as_ac_Header'}'`
4170                { echo "$as_me:$LINENO: result: $ac_res" >&5
4171 echo "${ECHO_T}$ac_res" >&6; }
4172 else
4173   # Is the header compilable?
4174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 $ac_includes_default
4183 #include <$ac_header>
4184 _ACEOF
4185 rm -f conftest.$ac_objext
4186 if { (ac_try="$ac_compile"
4187 case "(($ac_try" in
4188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189   *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192   (eval "$ac_compile") 2>conftest.er1
4193   ac_status=$?
4194   grep -v '^ *+' conftest.er1 >conftest.err
4195   rm -f conftest.er1
4196   cat conftest.err >&5
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } && {
4199          test -z "$ac_c_werror_flag" ||
4200          test ! -s conftest.err
4201        } && test -s conftest.$ac_objext; then
4202   ac_header_compiler=yes
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207         ac_header_compiler=no
4208 fi
4209
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4212 echo "${ECHO_T}$ac_header_compiler" >&6; }
4213
4214 # Is the header present?
4215 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223 #include <$ac_header>
4224 _ACEOF
4225 if { (ac_try="$ac_cpp conftest.$ac_ext"
4226 case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } >/dev/null && {
4238          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4239          test ! -s conftest.err
4240        }; then
4241   ac_header_preproc=yes
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246   ac_header_preproc=no
4247 fi
4248
4249 rm -f conftest.err conftest.$ac_ext
4250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4251 echo "${ECHO_T}$ac_header_preproc" >&6; }
4252
4253 # So?  What about this header?
4254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4255   yes:no: )
4256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4260     ac_header_preproc=yes
4261     ;;
4262   no:yes:* )
4263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4275
4276     ;;
4277 esac
4278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   eval "$as_ac_Header=\$ac_header_preproc"
4284 fi
4285 ac_res=`eval echo '${'$as_ac_Header'}'`
4286                { echo "$as_me:$LINENO: result: $ac_res" >&5
4287 echo "${ECHO_T}$ac_res" >&6; }
4288
4289 fi
4290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291   cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293 _ACEOF
4294
4295 fi
4296
4297 done
4298
4299
4300 { echo "$as_me:$LINENO: checking for int8_t" >&5
4301 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4302 if test "${ac_cv_type_int8_t+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h.  */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h.  */
4311 $ac_includes_default
4312 #ifdef HAVE_SYS_BITYPES_H
4313 #include <sys/bitypes.h>
4314 #endif
4315
4316 typedef int8_t ac__type_new_;
4317 int
4318 main ()
4319 {
4320 if ((ac__type_new_ *) 0)
4321   return 0;
4322 if (sizeof (ac__type_new_))
4323   return 0;
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4330 case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335   (eval "$ac_compile") 2>conftest.er1
4336   ac_status=$?
4337   grep -v '^ *+' conftest.er1 >conftest.err
4338   rm -f conftest.er1
4339   cat conftest.err >&5
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); } && {
4342          test -z "$ac_c_werror_flag" ||
4343          test ! -s conftest.err
4344        } && test -s conftest.$ac_objext; then
4345   ac_cv_type_int8_t=yes
4346 else
4347   echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4349
4350         ac_cv_type_int8_t=no
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4356 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4357 if test $ac_cv_type_int8_t = yes; then
4358   :
4359 else
4360
4361 cat >>confdefs.h <<\_ACEOF
4362 #define int8_t signed char
4363 _ACEOF
4364
4365 fi
4366
4367 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4368 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4369 if test "${ac_cv_type_u_int8_t+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 $ac_includes_default
4379 #ifdef HAVE_SYS_BITYPES_H
4380 #include <sys/bitypes.h>
4381 #endif
4382
4383 typedef u_int8_t ac__type_new_;
4384 int
4385 main ()
4386 {
4387 if ((ac__type_new_ *) 0)
4388   return 0;
4389 if (sizeof (ac__type_new_))
4390   return 0;
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (ac_try="$ac_compile"
4397 case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_compile") 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && {
4409          test -z "$ac_c_werror_flag" ||
4410          test ! -s conftest.err
4411        } && test -s conftest.$ac_objext; then
4412   ac_cv_type_u_int8_t=yes
4413 else
4414   echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417         ac_cv_type_u_int8_t=no
4418 fi
4419
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4423 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4424 if test $ac_cv_type_u_int8_t = yes; then
4425   :
4426 else
4427
4428 cat >>confdefs.h <<\_ACEOF
4429 #define u_int8_t unsigned char
4430 _ACEOF
4431
4432 fi
4433
4434 { echo "$as_me:$LINENO: checking for int16_t" >&5
4435 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4436 if test "${ac_cv_type_int16_t+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h.  */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h.  */
4445 $ac_includes_default
4446 typedef int16_t ac__type_new_;
4447 int
4448 main ()
4449 {
4450 if ((ac__type_new_ *) 0)
4451   return 0;
4452 if (sizeof (ac__type_new_))
4453   return 0;
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4460 case "(($ac_try" in
4461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462   *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465   (eval "$ac_compile") 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } && {
4472          test -z "$ac_c_werror_flag" ||
4473          test ! -s conftest.err
4474        } && test -s conftest.$ac_objext; then
4475   ac_cv_type_int16_t=yes
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         ac_cv_type_int16_t=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4486 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4487 if test $ac_cv_type_int16_t = yes; then
4488   :
4489 else
4490
4491 cat >>confdefs.h <<\_ACEOF
4492 #define int16_t short
4493 _ACEOF
4494
4495         $ac_includes_default
4496 #ifdef HAVE_SYS_BITYPES_H
4497 #include <sys/bitypes.h>
4498 #endif
4499 fi
4500
4501 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4502 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4503 if test "${ac_cv_type_u_int16_t+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506   cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512 $ac_includes_default
4513 #ifdef HAVE_SYS_BITYPES_H
4514 #include <sys/bitypes.h>
4515 #endif
4516
4517 typedef u_int16_t ac__type_new_;
4518 int
4519 main ()
4520 {
4521 if ((ac__type_new_ *) 0)
4522   return 0;
4523 if (sizeof (ac__type_new_))
4524   return 0;
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4531 case "(($ac_try" in
4532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533   *) ac_try_echo=$ac_try;;
4534 esac
4535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536   (eval "$ac_compile") 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } && {
4543          test -z "$ac_c_werror_flag" ||
4544          test ! -s conftest.err
4545        } && test -s conftest.$ac_objext; then
4546   ac_cv_type_u_int16_t=yes
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551         ac_cv_type_u_int16_t=no
4552 fi
4553
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 fi
4556 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4557 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4558 if test $ac_cv_type_u_int16_t = yes; then
4559   :
4560 else
4561
4562 cat >>confdefs.h <<\_ACEOF
4563 #define u_int16_t unsigned short
4564 _ACEOF
4565
4566 fi
4567
4568 { echo "$as_me:$LINENO: checking for int32_t" >&5
4569 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4570 if test "${ac_cv_type_int32_t+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 $ac_includes_default
4580 #ifdef HAVE_SYS_BITYPES_H
4581 #include <sys/bitypes.h>
4582 #endif
4583
4584 typedef int32_t ac__type_new_;
4585 int
4586 main ()
4587 {
4588 if ((ac__type_new_ *) 0)
4589   return 0;
4590 if (sizeof (ac__type_new_))
4591   return 0;
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (ac_try="$ac_compile"
4598 case "(($ac_try" in
4599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600   *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603   (eval "$ac_compile") 2>conftest.er1
4604   ac_status=$?
4605   grep -v '^ *+' conftest.er1 >conftest.err
4606   rm -f conftest.er1
4607   cat conftest.err >&5
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); } && {
4610          test -z "$ac_c_werror_flag" ||
4611          test ! -s conftest.err
4612        } && test -s conftest.$ac_objext; then
4613   ac_cv_type_int32_t=yes
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618         ac_cv_type_int32_t=no
4619 fi
4620
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4624 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4625 if test $ac_cv_type_int32_t = yes; then
4626   :
4627 else
4628
4629 cat >>confdefs.h <<\_ACEOF
4630 #define int32_t int
4631 _ACEOF
4632
4633 fi
4634
4635 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4636 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4637 if test "${ac_cv_type_u_int32_t+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h.  */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h.  */
4646 $ac_includes_default
4647 #ifdef HAVE_SYS_BITYPES_H
4648 #include <sys/bitypes.h>
4649 #endif
4650
4651 typedef u_int32_t ac__type_new_;
4652 int
4653 main ()
4654 {
4655 if ((ac__type_new_ *) 0)
4656   return 0;
4657 if (sizeof (ac__type_new_))
4658   return 0;
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670   (eval "$ac_compile") 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } && {
4677          test -z "$ac_c_werror_flag" ||
4678          test ! -s conftest.err
4679        } && test -s conftest.$ac_objext; then
4680   ac_cv_type_u_int32_t=yes
4681 else
4682   echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685         ac_cv_type_u_int32_t=no
4686 fi
4687
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 fi
4690 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4691 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4692 if test $ac_cv_type_u_int32_t = yes; then
4693   :
4694 else
4695
4696 cat >>confdefs.h <<\_ACEOF
4697 #define u_int32_t unsigned int
4698 _ACEOF
4699
4700 fi
4701
4702 { echo "$as_me:$LINENO: checking for int64_t" >&5
4703 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4704 if test "${ac_cv_type_int64_t+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707   cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h.  */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h.  */
4713 $ac_includes_default
4714 #ifdef HAVE_SYS_BITYPES_H
4715 #include <sys/bitypes.h>
4716 #endif
4717
4718 typedef int64_t ac__type_new_;
4719 int
4720 main ()
4721 {
4722 if ((ac__type_new_ *) 0)
4723   return 0;
4724 if (sizeof (ac__type_new_))
4725   return 0;
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (ac_try="$ac_compile"
4732 case "(($ac_try" in
4733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4734   *) ac_try_echo=$ac_try;;
4735 esac
4736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4737   (eval "$ac_compile") 2>conftest.er1
4738   ac_status=$?
4739   grep -v '^ *+' conftest.er1 >conftest.err
4740   rm -f conftest.er1
4741   cat conftest.err >&5
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); } && {
4744          test -z "$ac_c_werror_flag" ||
4745          test ! -s conftest.err
4746        } && test -s conftest.$ac_objext; then
4747   ac_cv_type_int64_t=yes
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752         ac_cv_type_int64_t=no
4753 fi
4754
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4758 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4759 if test $ac_cv_type_int64_t = yes; then
4760   :
4761 else
4762
4763 cat >>confdefs.h <<\_ACEOF
4764 #define int64_t long long
4765 _ACEOF
4766
4767 fi
4768
4769 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4770 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4771 if test "${ac_cv_type_u_int64_t+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780 $ac_includes_default
4781 #ifdef HAVE_SYS_BITYPES_H
4782 #include <sys/bitypes.h>
4783 #endif
4784
4785 typedef u_int64_t ac__type_new_;
4786 int
4787 main ()
4788 {
4789 if ((ac__type_new_ *) 0)
4790   return 0;
4791 if (sizeof (ac__type_new_))
4792   return 0;
4793   ;
4794   return 0;
4795 }
4796 _ACEOF
4797 rm -f conftest.$ac_objext
4798 if { (ac_try="$ac_compile"
4799 case "(($ac_try" in
4800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801   *) ac_try_echo=$ac_try;;
4802 esac
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804   (eval "$ac_compile") 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } && {
4811          test -z "$ac_c_werror_flag" ||
4812          test ! -s conftest.err
4813        } && test -s conftest.$ac_objext; then
4814   ac_cv_type_u_int64_t=yes
4815 else
4816   echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819         ac_cv_type_u_int64_t=no
4820 fi
4821
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 fi
4824 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4825 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4826 if test $ac_cv_type_u_int64_t = yes; then
4827   :
4828 else
4829
4830 cat >>confdefs.h <<\_ACEOF
4831 #define u_int64_t unsigned long long
4832 _ACEOF
4833
4834 fi
4835
4836
4837 #
4838 # Try to arrange for large file support.
4839 #
4840 # Check whether --enable-largefile was given.
4841 if test "${enable_largefile+set}" = set; then
4842   enableval=$enable_largefile;
4843 fi
4844
4845 if test "$enable_largefile" != no; then
4846
4847   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4848 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4849 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   ac_cv_sys_largefile_CC=no
4853      if test "$GCC" != yes; then
4854        ac_save_CC=$CC
4855        while :; do
4856          # IRIX 6.2 and later do not support large files by default,
4857          # so use the C compiler's -n32 option if that helps.
4858          cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864 #include <sys/types.h>
4865  /* Check that off_t can represent 2**63 - 1 correctly.
4866     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867     since some C++ compilers masquerading as C compilers
4868     incorrectly reject 9223372036854775807.  */
4869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871                        && LARGE_OFF_T % 2147483647 == 1)
4872                       ? 1 : -1];
4873 int
4874 main ()
4875 {
4876
4877   ;
4878   return 0;
4879 }
4880 _ACEOF
4881          rm -f conftest.$ac_objext
4882 if { (ac_try="$ac_compile"
4883 case "(($ac_try" in
4884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885   *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888   (eval "$ac_compile") 2>conftest.er1
4889   ac_status=$?
4890   grep -v '^ *+' conftest.er1 >conftest.err
4891   rm -f conftest.er1
4892   cat conftest.err >&5
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); } && {
4895          test -z "$ac_c_werror_flag" ||
4896          test ! -s conftest.err
4897        } && test -s conftest.$ac_objext; then
4898   break
4899 else
4900   echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903
4904 fi
4905
4906 rm -f core conftest.err conftest.$ac_objext
4907          CC="$CC -n32"
4908          rm -f conftest.$ac_objext
4909 if { (ac_try="$ac_compile"
4910 case "(($ac_try" in
4911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912   *) ac_try_echo=$ac_try;;
4913 esac
4914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915   (eval "$ac_compile") 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } && {
4922          test -z "$ac_c_werror_flag" ||
4923          test ! -s conftest.err
4924        } && test -s conftest.$ac_objext; then
4925   ac_cv_sys_largefile_CC=' -n32'; break
4926 else
4927   echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930
4931 fi
4932
4933 rm -f core conftest.err conftest.$ac_objext
4934          break
4935        done
4936        CC=$ac_save_CC
4937        rm -f conftest.$ac_ext
4938     fi
4939 fi
4940 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4941 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4942   if test "$ac_cv_sys_largefile_CC" != no; then
4943     CC=$CC$ac_cv_sys_largefile_CC
4944   fi
4945
4946   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4947 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4948 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   while :; do
4952   cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958 #include <sys/types.h>
4959  /* Check that off_t can represent 2**63 - 1 correctly.
4960     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4961     since some C++ compilers masquerading as C compilers
4962     incorrectly reject 9223372036854775807.  */
4963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4964   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4965                        && LARGE_OFF_T % 2147483647 == 1)
4966                       ? 1 : -1];
4967 int
4968 main ()
4969 {
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4977 case "(($ac_try" in
4978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979   *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982   (eval "$ac_compile") 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } && {
4989          test -z "$ac_c_werror_flag" ||
4990          test ! -s conftest.err
4991        } && test -s conftest.$ac_objext; then
4992   ac_cv_sys_file_offset_bits=no; break
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997
4998 fi
4999
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001   cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #define _FILE_OFFSET_BITS 64
5008 #include <sys/types.h>
5009  /* Check that off_t can represent 2**63 - 1 correctly.
5010     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011     since some C++ compilers masquerading as C compilers
5012     incorrectly reject 9223372036854775807.  */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015                        && LARGE_OFF_T % 2147483647 == 1)
5016                       ? 1 : -1];
5017 int
5018 main ()
5019 {
5020
5021   ;
5022   return 0;
5023 }
5024 _ACEOF
5025 rm -f conftest.$ac_objext
5026 if { (ac_try="$ac_compile"
5027 case "(($ac_try" in
5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029   *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032   (eval "$ac_compile") 2>conftest.er1
5033   ac_status=$?
5034   grep -v '^ *+' conftest.er1 >conftest.err
5035   rm -f conftest.er1
5036   cat conftest.err >&5
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); } && {
5039          test -z "$ac_c_werror_flag" ||
5040          test ! -s conftest.err
5041        } && test -s conftest.$ac_objext; then
5042   ac_cv_sys_file_offset_bits=64; break
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5046
5047
5048 fi
5049
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051   ac_cv_sys_file_offset_bits=unknown
5052   break
5053 done
5054 fi
5055 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5056 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5057 case $ac_cv_sys_file_offset_bits in #(
5058   no | unknown) ;;
5059   *)
5060 cat >>confdefs.h <<_ACEOF
5061 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5062 _ACEOF
5063 ;;
5064 esac
5065 rm -f conftest*
5066   if test $ac_cv_sys_file_offset_bits = unknown; then
5067     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5068 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5069 if test "${ac_cv_sys_large_files+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   while :; do
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <sys/types.h>
5080  /* Check that off_t can represent 2**63 - 1 correctly.
5081     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5082     since some C++ compilers masquerading as C compilers
5083     incorrectly reject 9223372036854775807.  */
5084 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5085   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5086                        && LARGE_OFF_T % 2147483647 == 1)
5087                       ? 1 : -1];
5088 int
5089 main ()
5090 {
5091
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 rm -f conftest.$ac_objext
5097 if { (ac_try="$ac_compile"
5098 case "(($ac_try" in
5099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100   *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103   (eval "$ac_compile") 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } && {
5110          test -z "$ac_c_werror_flag" ||
5111          test ! -s conftest.err
5112        } && test -s conftest.$ac_objext; then
5113   ac_cv_sys_large_files=no; break
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118
5119 fi
5120
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 #define _LARGE_FILES 1
5129 #include <sys/types.h>
5130  /* Check that off_t can represent 2**63 - 1 correctly.
5131     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132     since some C++ compilers masquerading as C compilers
5133     incorrectly reject 9223372036854775807.  */
5134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136                        && LARGE_OFF_T % 2147483647 == 1)
5137                       ? 1 : -1];
5138 int
5139 main ()
5140 {
5141
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_compile") 2>conftest.er1
5154   ac_status=$?
5155   grep -v '^ *+' conftest.er1 >conftest.err
5156   rm -f conftest.er1
5157   cat conftest.err >&5
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } && {
5160          test -z "$ac_c_werror_flag" ||
5161          test ! -s conftest.err
5162        } && test -s conftest.$ac_objext; then
5163   ac_cv_sys_large_files=1; break
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168
5169 fi
5170
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172   ac_cv_sys_large_files=unknown
5173   break
5174 done
5175 fi
5176 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5177 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5178 case $ac_cv_sys_large_files in #(
5179   no | unknown) ;;
5180   *)
5181 cat >>confdefs.h <<_ACEOF
5182 #define _LARGE_FILES $ac_cv_sys_large_files
5183 _ACEOF
5184 ;;
5185 esac
5186 rm -f conftest*
5187   fi
5188 fi
5189
5190 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5191 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5192 if test "${ac_cv_sys_largefile_source+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   while :; do
5196   cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h.  */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h.  */
5202 #include <stdio.h>
5203 int
5204 main ()
5205 {
5206 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5207   ;
5208   return 0;
5209 }
5210 _ACEOF
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (ac_try="$ac_link"
5213 case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218   (eval "$ac_link") 2>conftest.er1
5219   ac_status=$?
5220   grep -v '^ *+' conftest.er1 >conftest.err
5221   rm -f conftest.er1
5222   cat conftest.err >&5
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); } && {
5225          test -z "$ac_c_werror_flag" ||
5226          test ! -s conftest.err
5227        } && test -s conftest$ac_exeext &&
5228        $as_test_x conftest$ac_exeext; then
5229   ac_cv_sys_largefile_source=no; break
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234
5235 fi
5236
5237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5238       conftest$ac_exeext conftest.$ac_ext
5239   cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h.  */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h.  */
5245 #define _LARGEFILE_SOURCE 1
5246 #include <stdio.h>
5247 int
5248 main ()
5249 {
5250 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255 rm -f conftest.$ac_objext conftest$ac_exeext
5256 if { (ac_try="$ac_link"
5257 case "(($ac_try" in
5258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259   *) ac_try_echo=$ac_try;;
5260 esac
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262   (eval "$ac_link") 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && {
5269          test -z "$ac_c_werror_flag" ||
5270          test ! -s conftest.err
5271        } && test -s conftest$ac_exeext &&
5272        $as_test_x conftest$ac_exeext; then
5273   ac_cv_sys_largefile_source=1; break
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278
5279 fi
5280
5281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5282       conftest$ac_exeext conftest.$ac_ext
5283   ac_cv_sys_largefile_source=unknown
5284   break
5285 done
5286 fi
5287 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5288 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5289 case $ac_cv_sys_largefile_source in #(
5290   no | unknown) ;;
5291   *)
5292 cat >>confdefs.h <<_ACEOF
5293 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5294 _ACEOF
5295 ;;
5296 esac
5297 rm -f conftest*
5298
5299 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5300 # in glibc 2.1.3, but that breaks too many other things.
5301 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5302 if test $ac_cv_sys_largefile_source != unknown; then
5303
5304 cat >>confdefs.h <<\_ACEOF
5305 #define HAVE_FSEEKO 1
5306 _ACEOF
5307
5308 fi
5309
5310
5311
5312
5313
5314
5315 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5316 do
5317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 fi
5324 ac_res=`eval echo '${'$as_ac_Header'}'`
5325                { echo "$as_me:$LINENO: result: $ac_res" >&5
5326 echo "${ECHO_T}$ac_res" >&6; }
5327 else
5328   # Is the header compilable?
5329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 $ac_includes_default
5338 #include <$ac_header>
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5342 case "(($ac_try" in
5343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344   *) ac_try_echo=$ac_try;;
5345 esac
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347   (eval "$ac_compile") 2>conftest.er1
5348   ac_status=$?
5349   grep -v '^ *+' conftest.er1 >conftest.err
5350   rm -f conftest.er1
5351   cat conftest.err >&5
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); } && {
5354          test -z "$ac_c_werror_flag" ||
5355          test ! -s conftest.err
5356        } && test -s conftest.$ac_objext; then
5357   ac_header_compiler=yes
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362         ac_header_compiler=no
5363 fi
5364
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5367 echo "${ECHO_T}$ac_header_compiler" >&6; }
5368
5369 # Is the header present?
5370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378 #include <$ac_header>
5379 _ACEOF
5380 if { (ac_try="$ac_cpp conftest.$ac_ext"
5381 case "(($ac_try" in
5382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383   *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387   ac_status=$?
5388   grep -v '^ *+' conftest.er1 >conftest.err
5389   rm -f conftest.er1
5390   cat conftest.err >&5
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } >/dev/null && {
5393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5394          test ! -s conftest.err
5395        }; then
5396   ac_header_preproc=yes
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401   ac_header_preproc=no
5402 fi
5403
5404 rm -f conftest.err conftest.$ac_ext
5405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5406 echo "${ECHO_T}$ac_header_preproc" >&6; }
5407
5408 # So?  What about this header?
5409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5410   yes:no: )
5411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5415     ac_header_preproc=yes
5416     ;;
5417   no:yes:* )
5418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5430
5431     ;;
5432 esac
5433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   eval "$as_ac_Header=\$ac_header_preproc"
5439 fi
5440 ac_res=`eval echo '${'$as_ac_Header'}'`
5441                { echo "$as_me:$LINENO: result: $ac_res" >&5
5442 echo "${ECHO_T}$ac_res" >&6; }
5443
5444 fi
5445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5446   cat >>confdefs.h <<_ACEOF
5447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5448 _ACEOF
5449
5450 fi
5451
5452 done
5453
5454
5455 for ac_header in linux/types.h
5456 do
5457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5459   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 fi
5464 ac_res=`eval echo '${'$as_ac_Header'}'`
5465                { echo "$as_me:$LINENO: result: $ac_res" >&5
5466 echo "${ECHO_T}$ac_res" >&6; }
5467 else
5468   # Is the header compilable?
5469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477 $ac_includes_default
5478 #include <$ac_header>
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5482 case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487   (eval "$ac_compile") 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } && {
5494          test -z "$ac_c_werror_flag" ||
5495          test ! -s conftest.err
5496        } && test -s conftest.$ac_objext; then
5497   ac_header_compiler=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502         ac_header_compiler=no
5503 fi
5504
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507 echo "${ECHO_T}$ac_header_compiler" >&6; }
5508
5509 # Is the header present?
5510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518 #include <$ac_header>
5519 _ACEOF
5520 if { (ac_try="$ac_cpp conftest.$ac_ext"
5521 case "(($ac_try" in
5522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523   *) ac_try_echo=$ac_try;;
5524 esac
5525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5527   ac_status=$?
5528   grep -v '^ *+' conftest.er1 >conftest.err
5529   rm -f conftest.er1
5530   cat conftest.err >&5
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } >/dev/null && {
5533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5534          test ! -s conftest.err
5535        }; then
5536   ac_header_preproc=yes
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541   ac_header_preproc=no
5542 fi
5543
5544 rm -f conftest.err conftest.$ac_ext
5545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5546 echo "${ECHO_T}$ac_header_preproc" >&6; }
5547
5548 # So?  What about this header?
5549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5550   yes:no: )
5551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5555     ac_header_preproc=yes
5556     ;;
5557   no:yes:* )
5558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5570
5571     ;;
5572 esac
5573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   eval "$as_ac_Header=\$ac_header_preproc"
5579 fi
5580 ac_res=`eval echo '${'$as_ac_Header'}'`
5581                { echo "$as_me:$LINENO: result: $ac_res" >&5
5582 echo "${ECHO_T}$ac_res" >&6; }
5583
5584 fi
5585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5586   cat >>confdefs.h <<_ACEOF
5587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5588 _ACEOF
5589
5590 fi
5591
5592 done
5593
5594
5595
5596
5597 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
5598 do
5599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 fi
5606 ac_res=`eval echo '${'$as_ac_Header'}'`
5607                { echo "$as_me:$LINENO: result: $ac_res" >&5
5608 echo "${ECHO_T}$ac_res" >&6; }
5609 else
5610   # Is the header compilable?
5611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 $ac_includes_default
5620 #include <$ac_header>
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_compile") 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } && {
5636          test -z "$ac_c_werror_flag" ||
5637          test ! -s conftest.err
5638        } && test -s conftest.$ac_objext; then
5639   ac_header_compiler=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644         ac_header_compiler=no
5645 fi
5646
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6; }
5650
5651 # Is the header present?
5652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660 #include <$ac_header>
5661 _ACEOF
5662 if { (ac_try="$ac_cpp conftest.$ac_ext"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } >/dev/null && {
5675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5676          test ! -s conftest.err
5677        }; then
5678   ac_header_preproc=yes
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683   ac_header_preproc=no
5684 fi
5685
5686 rm -f conftest.err conftest.$ac_ext
5687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5688 echo "${ECHO_T}$ac_header_preproc" >&6; }
5689
5690 # So?  What about this header?
5691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5692   yes:no: )
5693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5697     ac_header_preproc=yes
5698     ;;
5699   no:yes:* )
5700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5712
5713     ;;
5714 esac
5715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   eval "$as_ac_Header=\$ac_header_preproc"
5721 fi
5722 ac_res=`eval echo '${'$as_ac_Header'}'`
5723                { echo "$as_me:$LINENO: result: $ac_res" >&5
5724 echo "${ECHO_T}$ac_res" >&6; }
5725
5726 fi
5727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5728   cat >>confdefs.h <<_ACEOF
5729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5730 _ACEOF
5731
5732 fi
5733
5734 done
5735
5736
5737 for ac_header in net/pfvar.h
5738 do
5739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 #include <sys/types.h>
5752 #include <sys/socket.h>
5753 #include <net/if.h>
5754
5755 #include <$ac_header>
5756 _ACEOF
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5759 case "(($ac_try" in
5760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761   *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764   (eval "$ac_compile") 2>conftest.er1
5765   ac_status=$?
5766   grep -v '^ *+' conftest.er1 >conftest.err
5767   rm -f conftest.er1
5768   cat conftest.err >&5
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); } && {
5771          test -z "$ac_c_werror_flag" ||
5772          test ! -s conftest.err
5773        } && test -s conftest.$ac_objext; then
5774   eval "$as_ac_Header=yes"
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779         eval "$as_ac_Header=no"
5780 fi
5781
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 fi
5784 ac_res=`eval echo '${'$as_ac_Header'}'`
5785                { echo "$as_me:$LINENO: result: $ac_res" >&5
5786 echo "${ECHO_T}$ac_res" >&6; }
5787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5788   cat >>confdefs.h <<_ACEOF
5789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5790 _ACEOF
5791
5792 fi
5793
5794 done
5795
5796 if test "$ac_cv_header_net_pfvar_h" = yes; then
5797         #
5798         # Check for various PF actions.
5799         #
5800         { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5801 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5802         cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808 #include <sys/types.h>
5809             #include <sys/socket.h>
5810             #include <net/if.h>
5811             #include <net/pfvar.h>
5812 int
5813 main ()
5814 {
5815 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5822 case "(($ac_try" in
5823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824   *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827   (eval "$ac_compile") 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } && {
5834          test -z "$ac_c_werror_flag" ||
5835          test ! -s conftest.err
5836        } && test -s conftest.$ac_objext; then
5837
5838                 { echo "$as_me:$LINENO: result: yes" >&5
5839 echo "${ECHO_T}yes" >&6; }
5840
5841 cat >>confdefs.h <<\_ACEOF
5842 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5843 _ACEOF
5844
5845
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850         { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 fi
5856
5857 for ac_header in netinet/if_ether.h
5858 do
5859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h.  */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h.  */
5871 #include <sys/types.h>
5872 #include <sys/socket.h>
5873
5874 #include <$ac_header>
5875 _ACEOF
5876 rm -f conftest.$ac_objext
5877 if { (ac_try="$ac_compile"
5878 case "(($ac_try" in
5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880   *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883   (eval "$ac_compile") 2>conftest.er1
5884   ac_status=$?
5885   grep -v '^ *+' conftest.er1 >conftest.err
5886   rm -f conftest.er1
5887   cat conftest.err >&5
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); } && {
5890          test -z "$ac_c_werror_flag" ||
5891          test ! -s conftest.err
5892        } && test -s conftest.$ac_objext; then
5893   eval "$as_ac_Header=yes"
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898         eval "$as_ac_Header=no"
5899 fi
5900
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 fi
5903 ac_res=`eval echo '${'$as_ac_Header'}'`
5904                { echo "$as_me:$LINENO: result: $ac_res" >&5
5905 echo "${ECHO_T}$ac_res" >&6; }
5906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5907   cat >>confdefs.h <<_ACEOF
5908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909 _ACEOF
5910
5911 fi
5912
5913 done
5914
5915 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5916         #
5917         # The simple test didn't work.
5918         # Do we need to include <net/if.h> first?
5919         # Unset ac_cv_header_netinet_if_ether_h so we don't
5920         # treat the previous failure as a cached value and
5921         # suppress the next test.
5922         #
5923         { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5924 echo "$as_me: Rechecking with some additional includes" >&6;}
5925         unset ac_cv_header_netinet_if_ether_h
5926
5927 for ac_header in netinet/if_ether.h
5928 do
5929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h.  */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h.  */
5941 #include <sys/types.h>
5942 #include <sys/socket.h>
5943 #include <netinet/in.h>
5944 struct mbuf;
5945 struct rtentry;
5946 #include <net/if.h>
5947
5948 #include <$ac_header>
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_compile") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && {
5964          test -z "$ac_c_werror_flag" ||
5965          test ! -s conftest.err
5966        } && test -s conftest.$ac_objext; then
5967   eval "$as_ac_Header=yes"
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972         eval "$as_ac_Header=no"
5973 fi
5974
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 ac_res=`eval echo '${'$as_ac_Header'}'`
5978                { echo "$as_me:$LINENO: result: $ac_res" >&5
5979 echo "${ECHO_T}$ac_res" >&6; }
5980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5981   cat >>confdefs.h <<_ACEOF
5982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5983 _ACEOF
5984
5985 fi
5986
5987 done
5988
5989 fi
5990
5991 if test "$GCC" = yes ; then
5992             { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5993 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5994             if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h.  */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h.  */
6003 /*
6004                      * This generates a "duplicate case value" when fixincludes
6005                      * has not be run.
6006                      */
6007 #               include <sys/types.h>
6008 #               include <sys/time.h>
6009 #               include <sys/ioctl.h>
6010 #               ifdef HAVE_SYS_IOCCOM_H
6011 #               include <sys/ioccom.h>
6012 #               endif
6013 int
6014 main ()
6015 {
6016 switch (0) {
6017                     case _IO('A', 1):;
6018                     case _IO('B', 1):;
6019                     }
6020   ;
6021   return 0;
6022 }
6023 _ACEOF
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6026 case "(($ac_try" in
6027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028   *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031   (eval "$ac_compile") 2>conftest.er1
6032   ac_status=$?
6033   grep -v '^ *+' conftest.er1 >conftest.err
6034   rm -f conftest.er1
6035   cat conftest.err >&5
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); } && {
6038          test -z "$ac_c_werror_flag" ||
6039          test ! -s conftest.err
6040        } && test -s conftest.$ac_objext; then
6041   ac_cv_lbl_gcc_fixincludes=yes
6042 else
6043   echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6045
6046         ac_cv_lbl_gcc_fixincludes=no
6047 fi
6048
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 fi
6051
6052             { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
6053 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
6054             if test $ac_cv_lbl_gcc_fixincludes = no ; then
6055                     # Don't cache failure
6056                     unset ac_cv_lbl_gcc_fixincludes
6057                     { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
6058 echo "$as_me: error: see the INSTALL for more info" >&2;}
6059    { (exit 1); exit 1; }; }
6060             fi
6061     fi
6062
6063
6064
6065 for ac_func in strerror strlcpy
6066 do
6067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h.  */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h.  */
6079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6081 #define $ac_func innocuous_$ac_func
6082
6083 /* System header to define __stub macros and hopefully few prototypes,
6084     which can conflict with char $ac_func (); below.
6085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086     <limits.h> exists even on freestanding compilers.  */
6087
6088 #ifdef __STDC__
6089 # include <limits.h>
6090 #else
6091 # include <assert.h>
6092 #endif
6093
6094 #undef $ac_func
6095
6096 /* Override any GCC internal prototype to avoid an error.
6097    Use char because int might match the return type of a GCC
6098    builtin and then its argument prototype would still apply.  */
6099 #ifdef __cplusplus
6100 extern "C"
6101 #endif
6102 char $ac_func ();
6103 /* The GNU C library defines this for functions which it implements
6104     to always fail with ENOSYS.  Some functions are actually named
6105     something starting with __ and the normal name is an alias.  */
6106 #if defined __stub_$ac_func || defined __stub___$ac_func
6107 choke me
6108 #endif
6109
6110 int
6111 main ()
6112 {
6113 return $ac_func ();
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (ac_try="$ac_link"
6120 case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_link") 2>conftest.er1
6126   ac_status=$?
6127   grep -v '^ *+' conftest.er1 >conftest.err
6128   rm -f conftest.er1
6129   cat conftest.err >&5
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); } && {
6132          test -z "$ac_c_werror_flag" ||
6133          test ! -s conftest.err
6134        } && test -s conftest$ac_exeext &&
6135        $as_test_x conftest$ac_exeext; then
6136   eval "$as_ac_var=yes"
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141         eval "$as_ac_var=no"
6142 fi
6143
6144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6145       conftest$ac_exeext conftest.$ac_ext
6146 fi
6147 ac_res=`eval echo '${'$as_ac_var'}'`
6148                { echo "$as_me:$LINENO: result: $ac_res" >&5
6149 echo "${ECHO_T}$ac_res" >&6; }
6150 if test `eval echo '${'$as_ac_var'}'` = yes; then
6151   cat >>confdefs.h <<_ACEOF
6152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6153 _ACEOF
6154
6155 fi
6156 done
6157
6158
6159 needsnprintf=no
6160
6161
6162 for ac_func in vsnprintf snprintf
6163 do
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6178 #define $ac_func innocuous_$ac_func
6179
6180 /* System header to define __stub macros and hopefully few prototypes,
6181     which can conflict with char $ac_func (); below.
6182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183     <limits.h> exists even on freestanding compilers.  */
6184
6185 #ifdef __STDC__
6186 # include <limits.h>
6187 #else
6188 # include <assert.h>
6189 #endif
6190
6191 #undef $ac_func
6192
6193 /* Override any GCC internal prototype to avoid an error.
6194    Use char because int might match the return type of a GCC
6195    builtin and then its argument prototype would still apply.  */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char $ac_func ();
6200 /* The GNU C library defines this for functions which it implements
6201     to always fail with ENOSYS.  Some functions are actually named
6202     something starting with __ and the normal name is an alias.  */
6203 #if defined __stub_$ac_func || defined __stub___$ac_func
6204 choke me
6205 #endif
6206
6207 int
6208 main ()
6209 {
6210 return $ac_func ();
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (ac_try="$ac_link"
6217 case "(($ac_try" in
6218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219   *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222   (eval "$ac_link") 2>conftest.er1
6223   ac_status=$?
6224   grep -v '^ *+' conftest.er1 >conftest.err
6225   rm -f conftest.er1
6226   cat conftest.err >&5
6227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); } && {
6229          test -z "$ac_c_werror_flag" ||
6230          test ! -s conftest.err
6231        } && test -s conftest$ac_exeext &&
6232        $as_test_x conftest$ac_exeext; then
6233   eval "$as_ac_var=yes"
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238         eval "$as_ac_var=no"
6239 fi
6240
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242       conftest$ac_exeext conftest.$ac_ext
6243 fi
6244 ac_res=`eval echo '${'$as_ac_var'}'`
6245                { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_var'}'` = yes; then
6248   cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6250 _ACEOF
6251
6252 else
6253   needsnprintf=yes
6254 fi
6255 done
6256
6257 if test $needsnprintf = yes; then
6258         case " $LIBOBJS " in
6259   *" snprintf.$ac_objext "* ) ;;
6260   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6261  ;;
6262 esac
6263
6264 fi
6265
6266 #
6267 # Do this before checking for ether_hostton(), as it's a
6268 # "gethostbyname() -ish function".
6269 #
6270
6271     # Most operating systems have gethostbyname() in the default searched
6272     # libraries (i.e. libc):
6273     # Some OSes (eg. Solaris) place it in libnsl
6274     # Some strange OSes (SINIX) have it in libsocket:
6275     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6276 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6277 if test "${ac_cv_search_gethostbyname+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   ac_func_search_save_LIBS=$LIBS
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287
6288 /* Override any GCC internal prototype to avoid an error.
6289    Use char because int might match the return type of a GCC
6290    builtin and then its argument prototype would still apply.  */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 char gethostbyname ();
6295 int
6296 main ()
6297 {
6298 return gethostbyname ();
6299   ;
6300   return 0;
6301 }
6302 _ACEOF
6303 for ac_lib in '' nsl socket resolv; do
6304   if test -z "$ac_lib"; then
6305     ac_res="none required"
6306   else
6307     ac_res=-l$ac_lib
6308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6309   fi
6310   rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (ac_try="$ac_link"
6312 case "(($ac_try" in
6313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314   *) ac_try_echo=$ac_try;;
6315 esac
6316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6317   (eval "$ac_link") 2>conftest.er1
6318   ac_status=$?
6319   grep -v '^ *+' conftest.er1 >conftest.err
6320   rm -f conftest.er1
6321   cat conftest.err >&5
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } && {
6324          test -z "$ac_c_werror_flag" ||
6325          test ! -s conftest.err
6326        } && test -s conftest$ac_exeext &&
6327        $as_test_x conftest$ac_exeext; then
6328   ac_cv_search_gethostbyname=$ac_res
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333
6334 fi
6335
6336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6337       conftest$ac_exeext
6338   if test "${ac_cv_search_gethostbyname+set}" = set; then
6339   break
6340 fi
6341 done
6342 if test "${ac_cv_search_gethostbyname+set}" = set; then
6343   :
6344 else
6345   ac_cv_search_gethostbyname=no
6346 fi
6347 rm conftest.$ac_ext
6348 LIBS=$ac_func_search_save_LIBS
6349 fi
6350 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6351 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6352 ac_res=$ac_cv_search_gethostbyname
6353 if test "$ac_res" != no; then
6354   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6355
6356 fi
6357
6358     # Unfortunately libsocket sometimes depends on libnsl and
6359     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6360     if test "$ac_cv_search_gethostbyname" = "no"
6361     then
6362         { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6363 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6364 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   ac_check_lib_save_LIBS=$LIBS
6368 LIBS="-lsocket -lnsl $LIBS"
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375
6376 /* Override any GCC internal prototype to avoid an error.
6377    Use char because int might match the return type of a GCC
6378    builtin and then its argument prototype would still apply.  */
6379 #ifdef __cplusplus
6380 extern "C"
6381 #endif
6382 char gethostbyname ();
6383 int
6384 main ()
6385 {
6386 return gethostbyname ();
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext conftest$ac_exeext
6392 if { (ac_try="$ac_link"
6393 case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398   (eval "$ac_link") 2>conftest.er1
6399   ac_status=$?
6400   grep -v '^ *+' conftest.er1 >conftest.err
6401   rm -f conftest.er1
6402   cat conftest.err >&5
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } && {
6405          test -z "$ac_c_werror_flag" ||
6406          test ! -s conftest.err
6407        } && test -s conftest$ac_exeext &&
6408        $as_test_x conftest$ac_exeext; then
6409   ac_cv_lib_socket_gethostbyname=yes
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414         ac_cv_lib_socket_gethostbyname=no
6415 fi
6416
6417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418       conftest$ac_exeext conftest.$ac_ext
6419 LIBS=$ac_check_lib_save_LIBS
6420 fi
6421 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6422 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6423 if test $ac_cv_lib_socket_gethostbyname = yes; then
6424   LIBS="-lsocket -lnsl $LIBS"
6425 fi
6426
6427     fi
6428     { echo "$as_me:$LINENO: checking for library containing socket" >&5
6429 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6430 if test "${ac_cv_search_socket+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   ac_func_search_save_LIBS=$LIBS
6434 cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440
6441 /* Override any GCC internal prototype to avoid an error.
6442    Use char because int might match the return type of a GCC
6443    builtin and then its argument prototype would still apply.  */
6444 #ifdef __cplusplus
6445 extern "C"
6446 #endif
6447 char socket ();
6448 int
6449 main ()
6450 {
6451 return socket ();
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 for ac_lib in '' socket; do
6457   if test -z "$ac_lib"; then
6458     ac_res="none required"
6459   else
6460     ac_res=-l$ac_lib
6461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6462   fi
6463   rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (ac_try="$ac_link"
6465 case "(($ac_try" in
6466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467   *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470   (eval "$ac_link") 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } && {
6477          test -z "$ac_c_werror_flag" ||
6478          test ! -s conftest.err
6479        } && test -s conftest$ac_exeext &&
6480        $as_test_x conftest$ac_exeext; then
6481   ac_cv_search_socket=$ac_res
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486
6487 fi
6488
6489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6490       conftest$ac_exeext
6491   if test "${ac_cv_search_socket+set}" = set; then
6492   break
6493 fi
6494 done
6495 if test "${ac_cv_search_socket+set}" = set; then
6496   :
6497 else
6498   ac_cv_search_socket=no
6499 fi
6500 rm conftest.$ac_ext
6501 LIBS=$ac_func_search_save_LIBS
6502 fi
6503 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6504 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6505 ac_res=$ac_cv_search_socket
6506 if test "$ac_res" != no; then
6507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6508
6509 else
6510   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6511 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6512 if test "${ac_cv_lib_socket_socket+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   ac_check_lib_save_LIBS=$LIBS
6516 LIBS="-lsocket -lnsl $LIBS"
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h.  */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h.  */
6523
6524 /* Override any GCC internal prototype to avoid an error.
6525    Use char because int might match the return type of a GCC
6526    builtin and then its argument prototype would still apply.  */
6527 #ifdef __cplusplus
6528 extern "C"
6529 #endif
6530 char socket ();
6531 int
6532 main ()
6533 {
6534 return socket ();
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (ac_try="$ac_link"
6541 case "(($ac_try" in
6542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543   *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546   (eval "$ac_link") 2>conftest.er1
6547   ac_status=$?
6548   grep -v '^ *+' conftest.er1 >conftest.err
6549   rm -f conftest.er1
6550   cat conftest.err >&5
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); } && {
6553          test -z "$ac_c_werror_flag" ||
6554          test ! -s conftest.err
6555        } && test -s conftest$ac_exeext &&
6556        $as_test_x conftest$ac_exeext; then
6557   ac_cv_lib_socket_socket=yes
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562         ac_cv_lib_socket_socket=no
6563 fi
6564
6565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6566       conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6568 fi
6569 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6570 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6571 if test $ac_cv_lib_socket_socket = yes; then
6572   LIBS="-lsocket -lnsl $LIBS"
6573 fi
6574
6575 fi
6576
6577     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6578     { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6579 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6580 if test "${ac_cv_search_putmsg+set}" = set; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   ac_func_search_save_LIBS=$LIBS
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590
6591 /* Override any GCC internal prototype to avoid an error.
6592    Use char because int might match the return type of a GCC
6593    builtin and then its argument prototype would still apply.  */
6594 #ifdef __cplusplus
6595 extern "C"
6596 #endif
6597 char putmsg ();
6598 int
6599 main ()
6600 {
6601 return putmsg ();
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 for ac_lib in '' str; do
6607   if test -z "$ac_lib"; then
6608     ac_res="none required"
6609   else
6610     ac_res=-l$ac_lib
6611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6612   fi
6613   rm -f conftest.$ac_objext conftest$ac_exeext
6614 if { (ac_try="$ac_link"
6615 case "(($ac_try" in
6616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617   *) ac_try_echo=$ac_try;;
6618 esac
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620   (eval "$ac_link") 2>conftest.er1
6621   ac_status=$?
6622   grep -v '^ *+' conftest.er1 >conftest.err
6623   rm -f conftest.er1
6624   cat conftest.err >&5
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); } && {
6627          test -z "$ac_c_werror_flag" ||
6628          test ! -s conftest.err
6629        } && test -s conftest$ac_exeext &&
6630        $as_test_x conftest$ac_exeext; then
6631   ac_cv_search_putmsg=$ac_res
6632 else
6633   echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636
6637 fi
6638
6639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6640       conftest$ac_exeext
6641   if test "${ac_cv_search_putmsg+set}" = set; then
6642   break
6643 fi
6644 done
6645 if test "${ac_cv_search_putmsg+set}" = set; then
6646   :
6647 else
6648   ac_cv_search_putmsg=no
6649 fi
6650 rm conftest.$ac_ext
6651 LIBS=$ac_func_search_save_LIBS
6652 fi
6653 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6654 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6655 ac_res=$ac_cv_search_putmsg
6656 if test "$ac_res" != no; then
6657   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6658
6659 fi
6660
6661
6662
6663 #
6664 # You are in a twisty little maze of UN*Xes, all different.
6665 # Some might not have ether_hostton().
6666 # Some might have it, but not declare it in any header file.
6667 # Some might have it, but declare it in <netinet/if_ether.h>.
6668 # Some might have it, but declare it in <netinet/ether.h>
6669 # (And some might have it but document it as something declared in
6670 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6671 #
6672 # Before you is a C compiler.
6673 #
6674
6675 for ac_func in ether_hostton
6676 do
6677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6691 #define $ac_func innocuous_$ac_func
6692
6693 /* System header to define __stub macros and hopefully few prototypes,
6694     which can conflict with char $ac_func (); below.
6695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6696     <limits.h> exists even on freestanding compilers.  */
6697
6698 #ifdef __STDC__
6699 # include <limits.h>
6700 #else
6701 # include <assert.h>
6702 #endif
6703
6704 #undef $ac_func
6705
6706 /* Override any GCC internal prototype to avoid an error.
6707    Use char because int might match the return type of a GCC
6708    builtin and then its argument prototype would still apply.  */
6709 #ifdef __cplusplus
6710 extern "C"
6711 #endif
6712 char $ac_func ();
6713 /* The GNU C library defines this for functions which it implements
6714     to always fail with ENOSYS.  Some functions are actually named
6715     something starting with __ and the normal name is an alias.  */
6716 #if defined __stub_$ac_func || defined __stub___$ac_func
6717 choke me
6718 #endif
6719
6720 int
6721 main ()
6722 {
6723 return $ac_func ();
6724   ;
6725   return 0;
6726 }
6727 _ACEOF
6728 rm -f conftest.$ac_objext conftest$ac_exeext
6729 if { (ac_try="$ac_link"
6730 case "(($ac_try" in
6731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732   *) ac_try_echo=$ac_try;;
6733 esac
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735   (eval "$ac_link") 2>conftest.er1
6736   ac_status=$?
6737   grep -v '^ *+' conftest.er1 >conftest.err
6738   rm -f conftest.er1
6739   cat conftest.err >&5
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } && {
6742          test -z "$ac_c_werror_flag" ||
6743          test ! -s conftest.err
6744        } && test -s conftest$ac_exeext &&
6745        $as_test_x conftest$ac_exeext; then
6746   eval "$as_ac_var=yes"
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751         eval "$as_ac_var=no"
6752 fi
6753
6754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6755       conftest$ac_exeext conftest.$ac_ext
6756 fi
6757 ac_res=`eval echo '${'$as_ac_var'}'`
6758                { echo "$as_me:$LINENO: result: $ac_res" >&5
6759 echo "${ECHO_T}$ac_res" >&6; }
6760 if test `eval echo '${'$as_ac_var'}'` = yes; then
6761   cat >>confdefs.h <<_ACEOF
6762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6763 _ACEOF
6764
6765 fi
6766 done
6767
6768 if test "$ac_cv_func_ether_hostton" = yes; then
6769         #
6770         # OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
6771         #
6772         if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6773                 #
6774                 # Yes.  Does it declare ether_hostton()?
6775                 #
6776                 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6777 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6778 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787
6788 #include <sys/types.h>
6789 #include <sys/socket.h>
6790 #include <netinet/in.h>
6791 #include <arpa/inet.h>
6792 struct mbuf;
6793 struct rtentry;
6794 #include <net/if.h>
6795 #include <netinet/if_ether.h>
6796
6797
6798 int
6799 main ()
6800 {
6801 #ifndef ether_hostton
6802   (void) ether_hostton;
6803 #endif
6804
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813   *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816   (eval "$ac_compile") 2>conftest.er1
6817   ac_status=$?
6818   grep -v '^ *+' conftest.er1 >conftest.err
6819   rm -f conftest.er1
6820   cat conftest.err >&5
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } && {
6823          test -z "$ac_c_werror_flag" ||
6824          test ! -s conftest.err
6825        } && test -s conftest.$ac_objext; then
6826   ac_cv_have_decl_ether_hostton=yes
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831         ac_cv_have_decl_ether_hostton=no
6832 fi
6833
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 fi
6836 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6837 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6838 if test $ac_cv_have_decl_ether_hostton = yes; then
6839
6840
6841 cat >>confdefs.h <<\_ACEOF
6842 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6843 _ACEOF
6844
6845
6846 fi
6847
6848         fi
6849         #
6850         # Did that succeed?
6851         #
6852         if test "$ac_cv_have_decl_ether_hostton" != yes; then
6853                 #
6854                 # No, how about <netinet/ether.h>, as on Linux?
6855                 #
6856
6857 for ac_header in netinet/ether.h
6858 do
6859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6861   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 fi
6866 ac_res=`eval echo '${'$as_ac_Header'}'`
6867                { echo "$as_me:$LINENO: result: $ac_res" >&5
6868 echo "${ECHO_T}$ac_res" >&6; }
6869 else
6870   # Is the header compilable?
6871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h.  */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h.  */
6879 $ac_includes_default
6880 #include <$ac_header>
6881 _ACEOF
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6884 case "(($ac_try" in
6885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886   *) ac_try_echo=$ac_try;;
6887 esac
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889   (eval "$ac_compile") 2>conftest.er1
6890   ac_status=$?
6891   grep -v '^ *+' conftest.er1 >conftest.err
6892   rm -f conftest.er1
6893   cat conftest.err >&5
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } && {
6896          test -z "$ac_c_werror_flag" ||
6897          test ! -s conftest.err
6898        } && test -s conftest.$ac_objext; then
6899   ac_header_compiler=yes
6900 else
6901   echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904         ac_header_compiler=no
6905 fi
6906
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6909 echo "${ECHO_T}$ac_header_compiler" >&6; }
6910
6911 # Is the header present?
6912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h.  */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h.  */
6920 #include <$ac_header>
6921 _ACEOF
6922 if { (ac_try="$ac_cpp conftest.$ac_ext"
6923 case "(($ac_try" in
6924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925   *) ac_try_echo=$ac_try;;
6926 esac
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6929   ac_status=$?
6930   grep -v '^ *+' conftest.er1 >conftest.err
6931   rm -f conftest.er1
6932   cat conftest.err >&5
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); } >/dev/null && {
6935          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936          test ! -s conftest.err
6937        }; then
6938   ac_header_preproc=yes
6939 else
6940   echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943   ac_header_preproc=no
6944 fi
6945
6946 rm -f conftest.err conftest.$ac_ext
6947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6948 echo "${ECHO_T}$ac_header_preproc" >&6; }
6949
6950 # So?  What about this header?
6951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6952   yes:no: )
6953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6957     ac_header_preproc=yes
6958     ;;
6959   no:yes:* )
6960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6972
6973     ;;
6974 esac
6975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   eval "$as_ac_Header=\$ac_header_preproc"
6981 fi
6982 ac_res=`eval echo '${'$as_ac_Header'}'`
6983                { echo "$as_me:$LINENO: result: $ac_res" >&5
6984 echo "${ECHO_T}$ac_res" >&6; }
6985
6986 fi
6987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6988   cat >>confdefs.h <<_ACEOF
6989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6990 _ACEOF
6991
6992 fi
6993
6994 done
6995
6996                 if test "$ac_cv_header_netinet_ether_h" = yes; then
6997                         #
6998                         # We have it - does it declare ether_hostton()?
6999                         # Unset ac_cv_have_decl_ether_hostton so we don't
7000                         # treat the previous failure as a cached value and
7001                         # suppress the next test.
7002                         #
7003                         unset ac_cv_have_decl_ether_hostton
7004                         { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
7005 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
7006 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
7007   echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009   cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h.  */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h.  */
7015
7016 #include <netinet/ether.h>
7017
7018
7019 int
7020 main ()
7021 {
7022 #ifndef ether_hostton
7023   (void) ether_hostton;
7024 #endif
7025
7026   ;
7027   return 0;
7028 }
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7032 case "(($ac_try" in
7033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034   *) ac_try_echo=$ac_try;;
7035 esac
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037   (eval "$ac_compile") 2>conftest.er1
7038   ac_status=$?
7039   grep -v '^ *+' conftest.er1 >conftest.err
7040   rm -f conftest.er1
7041   cat conftest.err >&5
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); } && {
7044          test -z "$ac_c_werror_flag" ||
7045          test ! -s conftest.err
7046        } && test -s conftest.$ac_objext; then
7047   ac_cv_have_decl_ether_hostton=yes
7048 else
7049   echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052         ac_cv_have_decl_ether_hostton=no
7053 fi
7054
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 fi
7057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
7058 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
7059 if test $ac_cv_have_decl_ether_hostton = yes; then
7060
7061
7062 cat >>confdefs.h <<\_ACEOF
7063 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
7064 _ACEOF
7065
7066
7067 fi
7068
7069                 fi
7070         fi
7071         #
7072         # Is ether_hostton() declared?
7073         #
7074         if test "$ac_cv_have_decl_ether_hostton" != yes; then
7075                 #
7076                 # No, we'll have to declare it ourselves.
7077                 # Do we have "struct ether_addr"?
7078                 #
7079                 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
7080 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
7081 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090
7091 #include <sys/types.h>
7092 #include <sys/socket.h>
7093 #include <netinet/in.h>
7094 #include <arpa/inet.h>
7095 struct mbuf;
7096 struct rtentry;
7097 #include <net/if.h>
7098 #include <netinet/if_ether.h>
7099
7100
7101 typedef struct ether_addr ac__type_new_;
7102 int
7103 main ()
7104 {
7105 if ((ac__type_new_ *) 0)
7106   return 0;
7107 if (sizeof (ac__type_new_))
7108   return 0;
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117   *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120   (eval "$ac_compile") 2>conftest.er1
7121   ac_status=$?
7122   grep -v '^ *+' conftest.er1 >conftest.err
7123   rm -f conftest.er1
7124   cat conftest.err >&5
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } && {
7127          test -z "$ac_c_werror_flag" ||
7128          test ! -s conftest.err
7129        } && test -s conftest.$ac_objext; then
7130   ac_cv_type_struct_ether_addr=yes
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135         ac_cv_type_struct_ether_addr=no
7136 fi
7137
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 fi
7140 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
7141 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
7142 if test $ac_cv_type_struct_ether_addr = yes; then
7143
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_STRUCT_ETHER_ADDR 1
7146 _ACEOF
7147
7148
7149 fi
7150
7151
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_DECL_ETHER_HOSTTON 0
7154 _ACEOF
7155
7156         else
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define HAVE_DECL_ETHER_HOSTTON 1
7160 _ACEOF
7161
7162         fi
7163 fi
7164
7165 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
7166 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
7167 # Check whether --enable-protochain was given.
7168 if test "${enable_protochain+set}" = set; then
7169   enableval=$enable_protochain;
7170 fi
7171
7172 case "x$enable_protochain" in
7173 xyes)   enable_protochain=enabled       ;;
7174 xno)    enable_protochain=disabled      ;;
7175 x)      enable_protochain=enabled       ;;
7176 esac
7177
7178 if test "$enable_protochain" = "disabled"; then
7179
7180 cat >>confdefs.h <<\_ACEOF
7181 #define NO_PROTOCHAIN 1
7182 _ACEOF
7183
7184 fi
7185 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
7186 echo "${ECHO_T}${enable_protochain}" >&6; }
7187
7188 #
7189 # SITA support is mutually exclusive with native capture support;
7190 # "--with-sita" selects SITA support.
7191 #
7192
7193 # Check whether --with-sita was given.
7194 if test "${with_sita+set}" = set; then
7195   withval=$with_sita;
7196         if test ! "x$withval" = "xno" ; then
7197
7198 cat >>confdefs.h <<\_ACEOF
7199 #define SITA 1
7200 _ACEOF
7201
7202                 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
7203 echo "$as_me: Enabling SITA ACN support" >&6;}
7204                 V_PCAP=sita
7205                 V_FINDALLDEVS=sita
7206         fi
7207
7208 else
7209
7210 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
7211         { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
7212 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
7213    { (exit 1); exit 1; }; }
7214 fi
7215
7216 # Check whether --with-pcap was given.
7217 if test "${with_pcap+set}" = set; then
7218   withval=$with_pcap;
7219 fi
7220
7221 { echo "$as_me:$LINENO: checking packet capture type" >&5
7222 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
7223 if test ! -z "$with_pcap" ; then
7224         V_PCAP="$withval"
7225 elif test -r /dev/bpf -o -h /dev/bpf ; then
7226         #
7227         # Cloning BPF device.
7228         #
7229         V_PCAP=bpf
7230
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_CLONING_BPF 1
7233 _ACEOF
7234
7235 elif test -r /dev/bpf0 ; then
7236         V_PCAP=bpf
7237 elif test -r /usr/include/net/pfilt.h ; then
7238         V_PCAP=pf
7239 elif test -r /dev/enet ; then
7240         V_PCAP=enet
7241 elif test -r /dev/nit ; then
7242         V_PCAP=snit
7243 elif test -r /usr/include/sys/net/nit.h ; then
7244         V_PCAP=nit
7245 elif test -r /usr/include/linux/socket.h ; then
7246         V_PCAP=linux
7247 elif test -r /usr/include/net/raw.h ; then
7248         V_PCAP=snoop
7249 elif test -r /usr/include/odmi.h ; then
7250         #
7251         # On AIX, the BPF devices might not yet be present - they're
7252         # created the first time libpcap runs after booting.
7253         # We check for odmi.h instead.
7254         #
7255         V_PCAP=bpf
7256 elif test -c /dev/bpf0 ; then           # check again in case not readable
7257         V_PCAP=bpf
7258 elif test -r /usr/include/sys/dlpi.h ; then
7259         V_PCAP=dlpi
7260 elif test -c /dev/enet ; then           # check again in case not readable
7261         V_PCAP=enet
7262 elif test -c /dev/nit ; then            # check again in case not readable
7263         V_PCAP=snit
7264 else
7265         V_PCAP=null
7266 fi
7267 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
7268 echo "${ECHO_T}$V_PCAP" >&6; }
7269
7270 #
7271 # Do capture-mechanism-dependent tests.
7272 #
7273 case "$V_PCAP" in
7274 dlpi)
7275         #
7276         # Checks to see if Solaris has the public libdlpi(3LIB) library.
7277         # Note: The existence of /usr/include/libdlpi.h does not mean it is the
7278         # public libdlpi(3LIB) version. Before libdlpi was made public, a
7279         # private version also existed, which did not have the same APIs.
7280         # Due to a gcc bug, the default search path for 32-bit libraries does
7281         # not include /lib, we add it explicitly here.
7282         # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
7283         # Also, due to the bug above applications that link to libpcap with
7284         # libdlpi will have to add "-L/lib" option to "configure".
7285         #
7286         saved_ldflags=$LDFLAGS
7287         LDFLAGS="$LIBS -L/lib"
7288         { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
7289 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7290 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   ac_check_lib_save_LIBS=$LIBS
7294 LIBS="-ldlpi  $LIBS"
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h.  */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h.  */
7301
7302 /* Override any GCC internal prototype to avoid an error.
7303    Use char because int might match the return type of a GCC
7304    builtin and then its argument prototype would still apply.  */
7305 #ifdef __cplusplus
7306 extern "C"
7307 #endif
7308 char dlpi_walk ();
7309 int
7310 main ()
7311 {
7312 return dlpi_walk ();
7313   ;
7314   return 0;
7315 }
7316 _ACEOF
7317 rm -f conftest.$ac_objext conftest$ac_exeext
7318 if { (ac_try="$ac_link"
7319 case "(($ac_try" in
7320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321   *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324   (eval "$ac_link") 2>conftest.er1
7325   ac_status=$?
7326   grep -v '^ *+' conftest.er1 >conftest.err
7327   rm -f conftest.er1
7328   cat conftest.err >&5
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); } && {
7331          test -z "$ac_c_werror_flag" ||
7332          test ! -s conftest.err
7333        } && test -s conftest$ac_exeext &&
7334        $as_test_x conftest$ac_exeext; then
7335   ac_cv_lib_dlpi_dlpi_walk=yes
7336 else
7337   echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340         ac_cv_lib_dlpi_dlpi_walk=no
7341 fi
7342
7343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7344       conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7346 fi
7347 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7348 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7349 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7350   LIBS="-ldlpi $LIBS"
7351                 V_PCAP=libdlpi
7352
7353 cat >>confdefs.h <<\_ACEOF
7354 #define HAVE_LIBDLPI 1
7355 _ACEOF
7356
7357 else
7358   V_PCAP=dlpi
7359 fi
7360
7361         LDFLAGS=$saved_ldflags
7362
7363         #
7364         # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7365         # versions of DLPI.
7366         #
7367         { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7368 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7369         if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h.  */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h.  */
7378
7379                         #include <sys/types.h>
7380                         #include <sys/time.h>
7381                         #include <sys/dlpi.h>
7382
7383 int
7384 main ()
7385 {
7386 int i = DL_PROMISC_PHYS;
7387   ;
7388   return 0;
7389 }
7390 _ACEOF
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7393 case "(($ac_try" in
7394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395   *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398   (eval "$ac_compile") 2>conftest.er1
7399   ac_status=$?
7400   grep -v '^ *+' conftest.er1 >conftest.err
7401   rm -f conftest.er1
7402   cat conftest.err >&5
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } && {
7405          test -z "$ac_c_werror_flag" ||
7406          test ! -s conftest.err
7407        } && test -s conftest.$ac_objext; then
7408   ac_cv_sys_dlpi_usable=yes
7409 else
7410   echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413         ac_cv_sys_dlpi_usable=no
7414 fi
7415
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 fi
7418
7419         { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7420 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7421         if test $ac_cv_sys_dlpi_usable = no ; then
7422                 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7423 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7424    { (exit 1); exit 1; }; }
7425         fi
7426
7427         #
7428         # Check whether we have a /dev/dlpi device or have multiple devices.
7429         #
7430         { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7431 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7432         if test -c /dev/dlpi ; then
7433                 { echo "$as_me:$LINENO: result: yes" >&5
7434 echo "${ECHO_T}yes" >&6; }
7435
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_DEV_DLPI 1
7438 _ACEOF
7439
7440         else
7441                 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443                 dir="/dev/dlpi"
7444                 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7445 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7446                 if test -d $dir ; then
7447                         { echo "$as_me:$LINENO: result: yes" >&5
7448 echo "${ECHO_T}yes" >&6; }
7449
7450 cat >>confdefs.h <<_ACEOF
7451 #define PCAP_DEV_PREFIX "$dir"
7452 _ACEOF
7453
7454                 else
7455                         { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7457                 fi
7458         fi
7459
7460         #
7461         # This check is for Solaris with DLPI support for passive modes.
7462         # See dlpi(7P) for more details.
7463         #
7464         { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7465 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7466        if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h.  */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h.  */
7475
7476 #       include <sys/types.h>
7477 #       include <sys/dlpi.h>
7478 int
7479 main ()
7480 {
7481 u_int i = sizeof(dl_passive_req_t)
7482   ;
7483   return 0;
7484 }
7485 _ACEOF
7486 rm -f conftest.$ac_objext
7487 if { (ac_try="$ac_compile"
7488 case "(($ac_try" in
7489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490   *) ac_try_echo=$ac_try;;
7491 esac
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493   (eval "$ac_compile") 2>conftest.er1
7494   ac_status=$?
7495   grep -v '^ *+' conftest.er1 >conftest.err
7496   rm -f conftest.er1
7497   cat conftest.err >&5
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); } && {
7500          test -z "$ac_c_werror_flag" ||
7501          test ! -s conftest.err
7502        } && test -s conftest.$ac_objext; then
7503   ac_cv_lbl_has_dl_passive_req_t=yes
7504 else
7505   echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508         ac_cv_lbl_has_dl_passive_req_t=no
7509 fi
7510
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513
7514     { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7515 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7516     if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7517
7518 cat >>confdefs.h <<\_ACEOF
7519 #define HAVE_DLPI_PASSIVE 1
7520 _ACEOF
7521
7522     fi
7523         ;;
7524
7525 linux)
7526         #
7527         # Do we have the wireless extensions?
7528         #
7529
7530 for ac_header in linux/wireless.h
7531 do
7532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538   cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h.  */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h.  */
7544
7545 #include <sys/socket.h>
7546 #include <linux/if.h>
7547 #include <linux/types.h>
7548
7549
7550 #include <$ac_header>
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559   (eval "$ac_compile") 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } && {
7566          test -z "$ac_c_werror_flag" ||
7567          test ! -s conftest.err
7568        } && test -s conftest.$ac_objext; then
7569   eval "$as_ac_Header=yes"
7570 else
7571   echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574         eval "$as_ac_Header=no"
7575 fi
7576
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 ac_res=`eval echo '${'$as_ac_Header'}'`
7580                { echo "$as_me:$LINENO: result: $ac_res" >&5
7581 echo "${ECHO_T}$ac_res" >&6; }
7582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7583   cat >>confdefs.h <<_ACEOF
7584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7585 _ACEOF
7586
7587 fi
7588
7589 done
7590
7591
7592         #
7593         # Do we have libnl?
7594         #
7595
7596 # Check whether --with-libnl was given.
7597 if test "${with_libnl+set}" = set; then
7598   withval=$with_libnl; with_libnl=$withval
7599 fi
7600
7601
7602         if test x$with_libnl != xno ; then
7603                 have_any_nl="no"
7604
7605                 #
7606                 # Try libnl 3.x first.
7607                 #
7608                 { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl-3" >&5
7609 echo $ECHO_N "checking for nl_socket_alloc in -lnl-3... $ECHO_C" >&6; }
7610 if test "${ac_cv_lib_nl_3_nl_socket_alloc+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613   ac_check_lib_save_LIBS=$LIBS
7614 LIBS="-lnl-3  $LIBS"
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h.  */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h.  */
7621
7622 /* Override any GCC internal prototype to avoid an error.
7623    Use char because int might match the return type of a GCC
7624    builtin and then its argument prototype would still apply.  */
7625 #ifdef __cplusplus
7626 extern "C"
7627 #endif
7628 char nl_socket_alloc ();
7629 int
7630 main ()
7631 {
7632 return nl_socket_alloc ();
7633   ;
7634   return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext conftest$ac_exeext
7638 if { (ac_try="$ac_link"
7639 case "(($ac_try" in
7640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641   *) ac_try_echo=$ac_try;;
7642 esac
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644   (eval "$ac_link") 2>conftest.er1
7645   ac_status=$?
7646   grep -v '^ *+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } && {
7651          test -z "$ac_c_werror_flag" ||
7652          test ! -s conftest.err
7653        } && test -s conftest$ac_exeext &&
7654        $as_test_x conftest$ac_exeext; then
7655   ac_cv_lib_nl_3_nl_socket_alloc=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660         ac_cv_lib_nl_3_nl_socket_alloc=no
7661 fi
7662
7663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7664       conftest$ac_exeext conftest.$ac_ext
7665 LIBS=$ac_check_lib_save_LIBS
7666 fi
7667 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_3_nl_socket_alloc" >&5
7668 echo "${ECHO_T}$ac_cv_lib_nl_3_nl_socket_alloc" >&6; }
7669 if test $ac_cv_lib_nl_3_nl_socket_alloc = yes; then
7670
7671                         #
7672                         # Yes, we have libnl 3.x.
7673                         #
7674                         LIBS="-lnl-genl-3 -lnl-3 $LIBS"
7675
7676 cat >>confdefs.h <<\_ACEOF
7677 #define HAVE_LIBNL 1
7678 _ACEOF
7679
7680
7681 cat >>confdefs.h <<\_ACEOF
7682 #define HAVE_LIBNL_3_x 1
7683 _ACEOF
7684
7685
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_LIBNL_NLE 1
7688 _ACEOF
7689
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_LIBNL_SOCKETS 1
7693 _ACEOF
7694
7695                         V_INCLS="$V_INCLS -I/usr/include/libnl3"
7696                         have_any_nl="yes"
7697
7698 fi
7699
7700
7701                 if test x$have_any_nl = xno ; then
7702                         #
7703                         # Try libnl 2.x
7704                         #
7705                         { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7706 echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7707 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-lnl  $LIBS"
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718
7719 /* Override any GCC internal prototype to avoid an error.
7720    Use char because int might match the return type of a GCC
7721    builtin and then its argument prototype would still apply.  */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 char nl_socket_alloc ();
7726 int
7727 main ()
7728 {
7729 return nl_socket_alloc ();
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (ac_try="$ac_link"
7736 case "(($ac_try" in
7737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738   *) ac_try_echo=$ac_try;;
7739 esac
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741   (eval "$ac_link") 2>conftest.er1
7742   ac_status=$?
7743   grep -v '^ *+' conftest.er1 >conftest.err
7744   rm -f conftest.er1
7745   cat conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } && {
7748          test -z "$ac_c_werror_flag" ||
7749          test ! -s conftest.err
7750        } && test -s conftest$ac_exeext &&
7751        $as_test_x conftest$ac_exeext; then
7752   ac_cv_lib_nl_nl_socket_alloc=yes
7753 else
7754   echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757         ac_cv_lib_nl_nl_socket_alloc=no
7758 fi
7759
7760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7761       conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7763 fi
7764 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7765 echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7766 if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7767
7768                                 #
7769                                 # Yes, we have libnl 2.x.
7770                                 #
7771                                 LIBS="-lnl-genl -lnl $LIBS"
7772
7773 cat >>confdefs.h <<\_ACEOF
7774 #define HAVE_LIBNL 1
7775 _ACEOF
7776
7777
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_LIBNL_2_x 1
7780 _ACEOF
7781
7782
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_LIBNL_NLE 1
7785 _ACEOF
7786
7787
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_LIBNL_SOCKETS 1
7790 _ACEOF
7791
7792                                 have_any_nl="yes"
7793
7794 fi
7795
7796                 fi
7797
7798                 if test x$have_any_nl = xno ; then
7799                         #
7800                         # No, we don't; do we have libnl 1.x?
7801                         #
7802                         { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7803 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7804 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   ac_check_lib_save_LIBS=$LIBS
7808 LIBS="-lnl  $LIBS"
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815
7816 /* Override any GCC internal prototype to avoid an error.
7817    Use char because int might match the return type of a GCC
7818    builtin and then its argument prototype would still apply.  */
7819 #ifdef __cplusplus
7820 extern "C"
7821 #endif
7822 char nl_handle_alloc ();
7823 int
7824 main ()
7825 {
7826 return nl_handle_alloc ();
7827   ;
7828   return 0;
7829 }
7830 _ACEOF
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7833 case "(($ac_try" in
7834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835   *) ac_try_echo=$ac_try;;
7836 esac
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838   (eval "$ac_link") 2>conftest.er1
7839   ac_status=$?
7840   grep -v '^ *+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } && {
7845          test -z "$ac_c_werror_flag" ||
7846          test ! -s conftest.err
7847        } && test -s conftest$ac_exeext &&
7848        $as_test_x conftest$ac_exeext; then
7849   ac_cv_lib_nl_nl_handle_alloc=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854         ac_cv_lib_nl_nl_handle_alloc=no
7855 fi
7856
7857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7858       conftest$ac_exeext conftest.$ac_ext
7859 LIBS=$ac_check_lib_save_LIBS
7860 fi
7861 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7862 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7863 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7864
7865                                 #
7866                                 # Yes.
7867                                 #
7868                                 LIBS="-lnl $LIBS"
7869
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_LIBNL 1
7872 _ACEOF
7873
7874                                 have_any_nl="yes"
7875
7876 fi
7877
7878                 fi
7879
7880                 if test x$have_any_nl = xno ; then
7881                         #
7882                         # No, we don't have libnl at all.
7883                         #
7884                         if test x$with_libnl = xyes ; then
7885                                 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7886 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7887    { (exit 1); exit 1; }; }
7888                         fi
7889                 fi
7890         fi
7891
7892
7893 for ac_header in linux/ethtool.h
7894 do
7895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h.  */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h.  */
7907
7908 $ac_includes_default
7909 #include <linux/types.h>
7910
7911
7912 #include <$ac_header>
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918   *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921   (eval "$ac_compile") 2>conftest.er1
7922   ac_status=$?
7923   grep -v '^ *+' conftest.er1 >conftest.err
7924   rm -f conftest.er1
7925   cat conftest.err >&5
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); } && {
7928          test -z "$ac_c_werror_flag" ||
7929          test ! -s conftest.err
7930        } && test -s conftest.$ac_objext; then
7931   eval "$as_ac_Header=yes"
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936         eval "$as_ac_Header=no"
7937 fi
7938
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 fi
7941 ac_res=`eval echo '${'$as_ac_Header'}'`
7942                { echo "$as_me:$LINENO: result: $ac_res" >&5
7943 echo "${ECHO_T}$ac_res" >&6; }
7944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945   cat >>confdefs.h <<_ACEOF
7946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947 _ACEOF
7948
7949 fi
7950
7951 done
7952
7953         { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7954 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7955    if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 #  include <linux/if_packet.h>
7966 int
7967 main ()
7968 {
7969 struct tpacket_stats stats
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_compile") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } && {
7988          test -z "$ac_c_werror_flag" ||
7989          test ! -s conftest.err
7990        } && test -s conftest.$ac_objext; then
7991   ac_cv_lbl_tpacket_stats=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996         ac_cv_lbl_tpacket_stats=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 fi
8001
8002    { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
8003 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
8004    if test $ac_cv_lbl_tpacket_stats = yes; then
8005
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_TPACKET_STATS 1
8008 _ACEOF
8009
8010    fi
8011         { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
8012 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
8013     if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022
8023 #       include <sys/types.h>
8024 #       include <linux/if_packet.h>
8025 int
8026 main ()
8027 {
8028 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
8029   ;
8030   return 0;
8031 }
8032 _ACEOF
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8035 case "(($ac_try" in
8036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037   *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040   (eval "$ac_compile") 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } && {
8047          test -z "$ac_c_werror_flag" ||
8048          test ! -s conftest.err
8049        } && test -s conftest.$ac_objext; then
8050   ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055         ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
8056 fi
8057
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060
8061     { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
8062 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
8063     if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
8064             HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
8065
8066
8067 cat >>confdefs.h <<\_ACEOF
8068 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
8069 _ACEOF
8070
8071     fi
8072         ;;
8073
8074 bpf)
8075         #
8076         # Check whether we have the *BSD-style ioctls.
8077         #
8078
8079 for ac_header in net/if_media.h
8080 do
8081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 fi
8088 ac_res=`eval echo '${'$as_ac_Header'}'`
8089                { echo "$as_me:$LINENO: result: $ac_res" >&5
8090 echo "${ECHO_T}$ac_res" >&6; }
8091 else
8092   # Is the header compilable?
8093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h.  */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h.  */
8101 $ac_includes_default
8102 #include <$ac_header>
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8106 case "(($ac_try" in
8107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108   *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111   (eval "$ac_compile") 2>conftest.er1
8112   ac_status=$?
8113   grep -v '^ *+' conftest.er1 >conftest.err
8114   rm -f conftest.er1
8115   cat conftest.err >&5
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); } && {
8118          test -z "$ac_c_werror_flag" ||
8119          test ! -s conftest.err
8120        } && test -s conftest.$ac_objext; then
8121   ac_header_compiler=yes
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126         ac_header_compiler=no
8127 fi
8128
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8131 echo "${ECHO_T}$ac_header_compiler" >&6; }
8132
8133 # Is the header present?
8134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8136 cat >conftest.$ac_ext <<_ACEOF
8137 /* confdefs.h.  */
8138 _ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h.  */
8142 #include <$ac_header>
8143 _ACEOF
8144 if { (ac_try="$ac_cpp conftest.$ac_ext"
8145 case "(($ac_try" in
8146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147   *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8151   ac_status=$?
8152   grep -v '^ *+' conftest.er1 >conftest.err
8153   rm -f conftest.er1
8154   cat conftest.err >&5
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } >/dev/null && {
8157          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8158          test ! -s conftest.err
8159        }; then
8160   ac_header_preproc=yes
8161 else
8162   echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165   ac_header_preproc=no
8166 fi
8167
8168 rm -f conftest.err conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170 echo "${ECHO_T}$ac_header_preproc" >&6; }
8171
8172 # So?  What about this header?
8173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8174   yes:no: )
8175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179     ac_header_preproc=yes
8180     ;;
8181   no:yes:* )
8182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8194
8195     ;;
8196 esac
8197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   eval "$as_ac_Header=\$ac_header_preproc"
8203 fi
8204 ac_res=`eval echo '${'$as_ac_Header'}'`
8205                { echo "$as_me:$LINENO: result: $ac_res" >&5
8206 echo "${ECHO_T}$ac_res" >&6; }
8207
8208 fi
8209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210   cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8212 _ACEOF
8213
8214 fi
8215
8216 done
8217
8218
8219         { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
8220 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
8221         cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h.  */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h.  */
8227 #include <sys/socket.h>
8228             #include <sys/ioctl.h>
8229             #include <net/if.h>
8230             #include <net/bpf.h>
8231 int
8232 main ()
8233 {
8234 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8235   ;
8236   return 0;
8237 }
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (ac_try="$ac_compile"
8241 case "(($ac_try" in
8242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243   *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246   (eval "$ac_compile") 2>conftest.er1
8247   ac_status=$?
8248   grep -v '^ *+' conftest.er1 >conftest.err
8249   rm -f conftest.er1
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } && {
8253          test -z "$ac_c_werror_flag" ||
8254          test ! -s conftest.err
8255        } && test -s conftest.$ac_objext; then
8256
8257                 { echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6; }
8259
8260 cat >>confdefs.h <<\_ACEOF
8261 #define HAVE_ZEROCOPY_BPF 1
8262 _ACEOF
8263
8264
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269         { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274
8275             #
8276             # Check whether we have struct BPF_TIMEVAL.
8277             #
8278             { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
8279 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
8280 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289
8290 #include <sys/types.h>
8291 #include <sys/ioctl.h>
8292 #ifdef HAVE_SYS_IOCCOM_H
8293 #include <sys/ioccom.h>
8294 #endif
8295 #include <net/bpf.h>
8296
8297
8298 typedef struct BPF_TIMEVAL ac__type_new_;
8299 int
8300 main ()
8301 {
8302 if ((ac__type_new_ *) 0)
8303   return 0;
8304 if (sizeof (ac__type_new_))
8305   return 0;
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8312 case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_compile") 2>conftest.er1
8318   ac_status=$?
8319   grep -v '^ *+' conftest.er1 >conftest.err
8320   rm -f conftest.er1
8321   cat conftest.err >&5
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } && {
8324          test -z "$ac_c_werror_flag" ||
8325          test ! -s conftest.err
8326        } && test -s conftest.$ac_objext; then
8327   ac_cv_type_struct_BPF_TIMEVAL=yes
8328 else
8329   echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332         ac_cv_type_struct_BPF_TIMEVAL=no
8333 fi
8334
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8338 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8339 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8340
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRUCT_BPF_TIMEVAL 1
8343 _ACEOF
8344
8345
8346 fi
8347
8348         ;;
8349
8350 dag)
8351         V_DEFS="$V_DEFS -DDAG_ONLY"
8352         ;;
8353
8354 septel)
8355         V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8356         ;;
8357
8358 snf)
8359         V_DEFS="$V_DEFS -DSNF_ONLY"
8360         ;;
8361
8362 null)
8363         { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8364 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8365         { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8366 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8367         ;;
8368 esac
8369
8370 if test "$V_PCAP" = null
8371 then
8372         #
8373         # We can't capture, so we can't open any capture
8374         # devices, so we won't return any interfaces.
8375         #
8376         V_FINDALLDEVS=null
8377 else
8378         { echo "$as_me:$LINENO: checking for getifaddrs" >&5
8379 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8380 if test "${ac_cv_func_getifaddrs+set}" = set; then
8381   echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383   cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8391 #define getifaddrs innocuous_getifaddrs
8392
8393 /* System header to define __stub macros and hopefully few prototypes,
8394     which can conflict with char getifaddrs (); below.
8395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8396     <limits.h> exists even on freestanding compilers.  */
8397
8398 #ifdef __STDC__
8399 # include <limits.h>
8400 #else
8401 # include <assert.h>
8402 #endif
8403
8404 #undef getifaddrs
8405
8406 /* Override any GCC internal prototype to avoid an error.
8407    Use char because int might match the return type of a GCC
8408    builtin and then its argument prototype would still apply.  */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 char getifaddrs ();
8413 /* The GNU C library defines this for functions which it implements
8414     to always fail with ENOSYS.  Some functions are actually named
8415     something starting with __ and the normal name is an alias.  */
8416 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8417 choke me
8418 #endif
8419
8420 int
8421 main ()
8422 {
8423 return getifaddrs ();
8424   ;
8425   return 0;
8426 }
8427 _ACEOF
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (ac_try="$ac_link"
8430 case "(($ac_try" in
8431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432   *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435   (eval "$ac_link") 2>conftest.er1
8436   ac_status=$?
8437   grep -v '^ *+' conftest.er1 >conftest.err
8438   rm -f conftest.er1
8439   cat conftest.err >&5
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); } && {
8442          test -z "$ac_c_werror_flag" ||
8443          test ! -s conftest.err
8444        } && test -s conftest$ac_exeext &&
8445        $as_test_x conftest$ac_exeext; then
8446   ac_cv_func_getifaddrs=yes
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451         ac_cv_func_getifaddrs=no
8452 fi
8453
8454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455       conftest$ac_exeext conftest.$ac_ext
8456 fi
8457 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8458 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8459 if test $ac_cv_func_getifaddrs = yes; then
8460
8461                 #
8462                 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
8463                 # as well, just in case some platform is really weird.
8464                 #
8465                 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8466   { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8467 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8468 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 fi
8471 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8472 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8473 else
8474   # Is the header compilable?
8475 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8476 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h.  */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h.  */
8483 $ac_includes_default
8484 #include <ifaddrs.h>
8485 _ACEOF
8486 rm -f conftest.$ac_objext
8487 if { (ac_try="$ac_compile"
8488 case "(($ac_try" in
8489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490   *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493   (eval "$ac_compile") 2>conftest.er1
8494   ac_status=$?
8495   grep -v '^ *+' conftest.er1 >conftest.err
8496   rm -f conftest.er1
8497   cat conftest.err >&5
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } && {
8500          test -z "$ac_c_werror_flag" ||
8501          test ! -s conftest.err
8502        } && test -s conftest.$ac_objext; then
8503   ac_header_compiler=yes
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508         ac_header_compiler=no
8509 fi
8510
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6; }
8514
8515 # Is the header present?
8516 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8517 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524 #include <ifaddrs.h>
8525 _ACEOF
8526 if { (ac_try="$ac_cpp conftest.$ac_ext"
8527 case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } >/dev/null && {
8539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8540          test ! -s conftest.err
8541        }; then
8542   ac_header_preproc=yes
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547   ac_header_preproc=no
8548 fi
8549
8550 rm -f conftest.err conftest.$ac_ext
8551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552 echo "${ECHO_T}$ac_header_preproc" >&6; }
8553
8554 # So?  What about this header?
8555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8556   yes:no: )
8557     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8558 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8560 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8561     ac_header_preproc=yes
8562     ;;
8563   no:yes:* )
8564     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8565 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8566     { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
8567 echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
8568     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8569 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8570     { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
8571 echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8572     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8573 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8574     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8575 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8576
8577     ;;
8578 esac
8579 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8580 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8581 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   ac_cv_header_ifaddrs_h=$ac_header_preproc
8585 fi
8586 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8587 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8588
8589 fi
8590 if test $ac_cv_header_ifaddrs_h = yes; then
8591
8592                     #
8593                     # We have the header, so we use "getifaddrs()" to
8594                     # get the list of interfaces.
8595                     #
8596                     V_FINDALLDEVS=getad
8597
8598 else
8599
8600                     #
8601                     # We don't have the header - give up.
8602                     # XXX - we could also fall back on some other
8603                     # mechanism, but, for now, this'll catch this
8604                     # problem so that we can at least try to figure
8605                     # out something to do on systems with "getifaddrs()"
8606                     # but without "ifaddrs.h", if there is something
8607                     # we can do on those systems.
8608                     #
8609                     { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8610 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8611    { (exit 1); exit 1; }; }
8612
8613 fi
8614
8615
8616
8617 else
8618
8619                 #
8620                 # Well, we don't have "getifaddrs()", so we have to use
8621                 # some other mechanism; determine what that mechanism is.
8622                 #
8623                 # The first thing we use is the type of capture mechanism,
8624                 # which is somewhat of a proxy for the OS we're using.
8625                 #
8626                 case "$V_PCAP" in
8627
8628                 dlpi|libdlpi)
8629
8630
8631 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8632 do
8633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8635   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 fi
8640 ac_res=`eval echo '${'$as_ac_Header'}'`
8641                { echo "$as_me:$LINENO: result: $ac_res" >&5
8642 echo "${ECHO_T}$ac_res" >&6; }
8643 else
8644   # Is the header compilable?
8645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653 $ac_includes_default
8654 #include <$ac_header>
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (ac_try="$ac_compile"
8658 case "(($ac_try" in
8659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660   *) ac_try_echo=$ac_try;;
8661 esac
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663   (eval "$ac_compile") 2>conftest.er1
8664   ac_status=$?
8665   grep -v '^ *+' conftest.er1 >conftest.err
8666   rm -f conftest.er1
8667   cat conftest.err >&5
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); } && {
8670          test -z "$ac_c_werror_flag" ||
8671          test ! -s conftest.err
8672        } && test -s conftest.$ac_objext; then
8673   ac_header_compiler=yes
8674 else
8675   echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678         ac_header_compiler=no
8679 fi
8680
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683 echo "${ECHO_T}$ac_header_compiler" >&6; }
8684
8685 # Is the header present?
8686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694 #include <$ac_header>
8695 _ACEOF
8696 if { (ac_try="$ac_cpp conftest.$ac_ext"
8697 case "(($ac_try" in
8698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699   *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } >/dev/null && {
8709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8710          test ! -s conftest.err
8711        }; then
8712   ac_header_preproc=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717   ac_header_preproc=no
8718 fi
8719
8720 rm -f conftest.err conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8722 echo "${ECHO_T}$ac_header_preproc" >&6; }
8723
8724 # So?  What about this header?
8725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8726   yes:no: )
8727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8731     ac_header_preproc=yes
8732     ;;
8733   no:yes:* )
8734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8746
8747     ;;
8748 esac
8749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8752   echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754   eval "$as_ac_Header=\$ac_header_preproc"
8755 fi
8756 ac_res=`eval echo '${'$as_ac_Header'}'`
8757                { echo "$as_me:$LINENO: result: $ac_res" >&5
8758 echo "${ECHO_T}$ac_res" >&6; }
8759
8760 fi
8761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8762   cat >>confdefs.h <<_ACEOF
8763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8764 _ACEOF
8765
8766 fi
8767
8768 done
8769
8770                         #
8771                         # This might be Solaris 8 or later, with
8772                         # SIOCGLIFCONF, or it might be some other OS
8773                         # or some older version of Solaris, with
8774                         # just SIOCGIFCONF.
8775                         #
8776                         { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8777 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8778                         if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h.  */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h.  */
8787 #include <sys/param.h>
8788                                 #include <sys/file.h>
8789                                 #include <sys/ioctl.h>
8790                                 #include <sys/socket.h>
8791                                 #include <sys/sockio.h>
8792 int
8793 main ()
8794 {
8795 ioctl(0, SIOCGLIFCONF, (char *)0);
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8802 case "(($ac_try" in
8803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804   *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807   (eval "$ac_compile") 2>conftest.er1
8808   ac_status=$?
8809   grep -v '^ *+' conftest.er1 >conftest.err
8810   rm -f conftest.er1
8811   cat conftest.err >&5
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } && {
8814          test -z "$ac_c_werror_flag" ||
8815          test ! -s conftest.err
8816        } && test -s conftest.$ac_objext; then
8817   ac_cv_lbl_have_siocglifconf=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822         ac_cv_lbl_have_siocglifconf=no
8823 fi
8824
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 fi
8827
8828                         { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8829 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8830                         if test $ac_cv_lbl_have_siocglifconf = yes ; then
8831                                 V_FINDALLDEVS=glifc
8832                         else
8833                                 V_FINDALLDEVS=gifc
8834                         fi
8835                         #
8836                         # Needed for common functions used by pcap-[dlpi,libdlpi].c
8837                         #
8838                         SSRC="dlpisubs.c"
8839                         ;;
8840
8841                 *)
8842                         #
8843                         # Assume we just have SIOCGIFCONF.
8844                         # (XXX - on at least later Linux kernels, there's
8845                         # another mechanism, and we should be using that
8846                         # instead.)
8847                         #
8848                         V_FINDALLDEVS=gifc
8849                         ;;
8850                 esac
8851 fi
8852
8853 fi
8854
8855 fi
8856
8857
8858 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8859 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866
8867         #include <sys/types.h>
8868         #include <sys/socket.h>
8869
8870 int
8871 main ()
8872 {
8873  socklen_t x;
8874   ;
8875   return 0;
8876 }
8877 _ACEOF
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8880 case "(($ac_try" in
8881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882   *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885   (eval "$ac_compile") 2>conftest.er1
8886   ac_status=$?
8887   grep -v '^ *+' conftest.er1 >conftest.err
8888   rm -f conftest.er1
8889   cat conftest.err >&5
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); } && {
8892          test -z "$ac_c_werror_flag" ||
8893          test ! -s conftest.err
8894        } && test -s conftest.$ac_objext; then
8895   have_socklen_t=yes
8896 else
8897   echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900         have_socklen_t=no
8901 fi
8902
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 if test "x$have_socklen_t" = "xyes"; then
8905
8906 cat >>confdefs.h <<\_ACEOF
8907 #define HAVE_SOCKLEN_T 1
8908 _ACEOF
8909
8910 fi
8911 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8912 echo "${ECHO_T}$have_socklen_t" >&6; }
8913
8914 # Check whether --enable-ipv6 was given.
8915 if test "${enable_ipv6+set}" = set; then
8916   enableval=$enable_ipv6;
8917 else
8918   enable_ipv6=ifavailable
8919 fi
8920
8921 if test "$enable_ipv6" != "no"; then
8922         { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8923 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8924 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8925   echo $ECHO_N "(cached) $ECHO_C" >&6
8926 else
8927   cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h.  */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h.  */
8933 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8935 #define getaddrinfo innocuous_getaddrinfo
8936
8937 /* System header to define __stub macros and hopefully few prototypes,
8938     which can conflict with char getaddrinfo (); below.
8939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940     <limits.h> exists even on freestanding compilers.  */
8941
8942 #ifdef __STDC__
8943 # include <limits.h>
8944 #else
8945 # include <assert.h>
8946 #endif
8947
8948 #undef getaddrinfo
8949
8950 /* Override any GCC internal prototype to avoid an error.
8951    Use char because int might match the return type of a GCC
8952    builtin and then its argument prototype would still apply.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 char getaddrinfo ();
8957 /* The GNU C library defines this for functions which it implements
8958     to always fail with ENOSYS.  Some functions are actually named
8959     something starting with __ and the normal name is an alias.  */
8960 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8961 choke me
8962 #endif
8963
8964 int
8965 main ()
8966 {
8967 return getaddrinfo ();
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (ac_try="$ac_link"
8974 case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_link") 2>conftest.er1
8980   ac_status=$?
8981   grep -v '^ *+' conftest.er1 >conftest.err
8982   rm -f conftest.er1
8983   cat conftest.err >&5
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } && {
8986          test -z "$ac_c_werror_flag" ||
8987          test ! -s conftest.err
8988        } && test -s conftest$ac_exeext &&
8989        $as_test_x conftest$ac_exeext; then
8990   ac_cv_func_getaddrinfo=yes
8991 else
8992   echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995         ac_cv_func_getaddrinfo=no
8996 fi
8997
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999       conftest$ac_exeext conftest.$ac_ext
9000 fi
9001 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
9002 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
9003 if test $ac_cv_func_getaddrinfo = yes; then
9004
9005
9006 cat >>confdefs.h <<\_ACEOF
9007 #define INET6 1
9008 _ACEOF
9009
9010
9011 else
9012
9013                 if test "$enable_ipv6" != "ifavailable"; then
9014                         { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
9015 See \`config.log' for more details." >&5
9016 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
9017 See \`config.log' for more details." >&2;}
9018    { (exit 1); exit 1; }; }
9019                 fi
9020
9021 fi
9022
9023 fi
9024
9025 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
9026 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
9027 # Check whether --enable-optimizer-dbg was given.
9028 if test "${enable_optimizer_dbg+set}" = set; then
9029   enableval=$enable_optimizer_dbg;
9030 fi
9031
9032 if test "$enable_optimizer_dbg" = "yes"; then
9033
9034 cat >>confdefs.h <<\_ACEOF
9035 #define BDEBUG 1
9036 _ACEOF
9037
9038 fi
9039 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
9040 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
9041
9042 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
9043 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
9044 # Check whether --enable-yydebug was given.
9045 if test "${enable_yydebug+set}" = set; then
9046   enableval=$enable_yydebug;
9047 fi
9048
9049 if test "$enable_yydebug" = "yes"; then
9050
9051 cat >>confdefs.h <<\_ACEOF
9052 #define YYDEBUG 1
9053 _ACEOF
9054
9055 fi
9056 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
9057 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
9058
9059 # Check for Endace DAG card support.
9060
9061 # Check whether --with-dag was given.
9062 if test "${with_dag+set}" = set; then
9063   withval=$with_dag;
9064         if test "$withval" = no
9065         then
9066                 # User doesn't want DAG support.
9067                 want_dag=no
9068         elif test "$withval" = yes
9069         then
9070                 # User wants DAG support but hasn't specified a directory.
9071                 want_dag=yes
9072         else
9073                 # User wants DAG support and has specified a directory, so use the provided value.
9074                 want_dag=yes
9075                 dag_root=$withval
9076         fi
9077
9078 else
9079
9080         #
9081         # Use DAG API if present, otherwise don't
9082         #
9083         want_dag=ifpresent
9084
9085 fi
9086
9087
9088
9089 # Check whether --with-dag-includes was given.
9090 if test "${with_dag_includes+set}" = set; then
9091   withval=$with_dag_includes;
9092         # User wants DAG support and has specified a header directory, so use the provided value.
9093         want_dag=yes
9094         dag_include_dir=$withval
9095
9096 fi
9097
9098
9099
9100 # Check whether --with-dag-libraries was given.
9101 if test "${with_dag_libraries+set}" = set; then
9102   withval=$with_dag_libraries;
9103         # User wants DAG support and has specified a library directory, so use the provided value.
9104         want_dag=yes
9105         dag_lib_dir=$withval
9106
9107 fi
9108
9109
9110 case "$V_PCAP" in
9111 linux|bpf|dag)
9112         #
9113         # We support the DAG API if we're on Linux or BSD, or if we're
9114         # building a DAG-only libpcap.
9115         #
9116         ;;
9117 *)
9118         #
9119         # If the user explicitly requested DAG, tell them it's not
9120         # supported.
9121         #
9122         # If they expressed no preference, don't include it.
9123         #
9124         if test $want_dag = yes; then
9125                 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
9126 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
9127    { (exit 1); exit 1; }; }
9128         elif test $want_dag = yes; then
9129                 want_dag=no
9130         fi
9131         ;;
9132 esac
9133
9134 ac_cv_lbl_dag_api=no
9135 if test "$want_dag" != no; then
9136
9137         { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
9138 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
9139
9140         # If necessary, set default paths for DAG API headers and libraries.
9141         if test -z "$dag_root"; then
9142             dag_root=/usr/local
9143         fi
9144
9145         if test -z "$dag_include_dir"; then
9146                 dag_include_dir="$dag_root/include"
9147         fi
9148
9149         if test -z "$dag_lib_dir"; then
9150             dag_lib_dir="$dag_root/lib"
9151         fi
9152
9153         if test -z "$dag_tools_dir"; then
9154             dag_tools_dir="$dag_root/tools"
9155         fi
9156
9157         if test -r $dag_include_dir/dagapi.h; then
9158                 ac_cv_lbl_dag_api=yes
9159         fi
9160         { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9161 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9162 fi
9163
9164 if test $ac_cv_lbl_dag_api = yes; then
9165         V_INCLS="$V_INCLS -I$dag_include_dir"
9166
9167         if test $V_PCAP != dag ; then
9168                  SSRC="pcap-dag.c"
9169         fi
9170
9171         # See if we can find a general version string.
9172         # Don't need to save and restore LIBS to prevent -ldag being
9173         # included if there's a found-action (arg 3).
9174         saved_ldflags=$LDFLAGS
9175         LDFLAGS="-L$dag_lib_dir"
9176         { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
9177 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
9178 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   ac_check_lib_save_LIBS=$LIBS
9182 LIBS="-ldag  $LIBS"
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189
9190 /* Override any GCC internal prototype to avoid an error.
9191    Use char because int might match the return type of a GCC
9192    builtin and then its argument prototype would still apply.  */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char dag_attach_stream ();
9197 int
9198 main ()
9199 {
9200 return dag_attach_stream ();
9201   ;
9202   return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (ac_try="$ac_link"
9207 case "(($ac_try" in
9208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209   *) ac_try_echo=$ac_try;;
9210 esac
9211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212   (eval "$ac_link") 2>conftest.er1
9213   ac_status=$?
9214   grep -v '^ *+' conftest.er1 >conftest.err
9215   rm -f conftest.er1
9216   cat conftest.err >&5
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } && {
9219          test -z "$ac_c_werror_flag" ||
9220          test ! -s conftest.err
9221        } && test -s conftest$ac_exeext &&
9222        $as_test_x conftest$ac_exeext; then
9223   ac_cv_lib_dag_dag_attach_stream=yes
9224 else
9225   echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9227
9228         ac_cv_lib_dag_dag_attach_stream=no
9229 fi
9230
9231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9232       conftest$ac_exeext conftest.$ac_ext
9233 LIBS=$ac_check_lib_save_LIBS
9234 fi
9235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
9236 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9237 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9238   dag_streams="1"
9239 else
9240   dag_streams="0"
9241 fi
9242
9243         { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
9244 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
9245 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9246   echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248   ac_check_lib_save_LIBS=$LIBS
9249 LIBS="-ldag  $LIBS"
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256
9257 /* Override any GCC internal prototype to avoid an error.
9258    Use char because int might match the return type of a GCC
9259    builtin and then its argument prototype would still apply.  */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 char dag_get_erf_types ();
9264 int
9265 main ()
9266 {
9267 return dag_get_erf_types ();
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9274 case "(($ac_try" in
9275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276   *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279   (eval "$ac_link") 2>conftest.er1
9280   ac_status=$?
9281   grep -v '^ *+' conftest.er1 >conftest.err
9282   rm -f conftest.er1
9283   cat conftest.err >&5
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } && {
9286          test -z "$ac_c_werror_flag" ||
9287          test ! -s conftest.err
9288        } && test -s conftest$ac_exeext &&
9289        $as_test_x conftest$ac_exeext; then
9290   ac_cv_lib_dag_dag_get_erf_types=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295         ac_cv_lib_dag_dag_get_erf_types=no
9296 fi
9297
9298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9299       conftest$ac_exeext conftest.$ac_ext
9300 LIBS=$ac_check_lib_save_LIBS
9301 fi
9302 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
9303 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9304 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9305
9306
9307 cat >>confdefs.h <<\_ACEOF
9308 #define HAVE_DAG_GET_ERF_TYPES 1
9309 _ACEOF
9310
9311 fi
9312
9313         { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
9314 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
9315 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   ac_check_lib_save_LIBS=$LIBS
9319 LIBS="-ldag  $LIBS"
9320 cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h.  */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h.  */
9326
9327 /* Override any GCC internal prototype to avoid an error.
9328    Use char because int might match the return type of a GCC
9329    builtin and then its argument prototype would still apply.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char dag_get_stream_erf_types ();
9334 int
9335 main ()
9336 {
9337 return dag_get_stream_erf_types ();
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9344 case "(($ac_try" in
9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346   *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349   (eval "$ac_link") 2>conftest.er1
9350   ac_status=$?
9351   grep -v '^ *+' conftest.er1 >conftest.err
9352   rm -f conftest.er1
9353   cat conftest.err >&5
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } && {
9356          test -z "$ac_c_werror_flag" ||
9357          test ! -s conftest.err
9358        } && test -s conftest$ac_exeext &&
9359        $as_test_x conftest$ac_exeext; then
9360   ac_cv_lib_dag_dag_get_stream_erf_types=yes
9361 else
9362   echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365         ac_cv_lib_dag_dag_get_stream_erf_types=no
9366 fi
9367
9368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9369       conftest$ac_exeext conftest.$ac_ext
9370 LIBS=$ac_check_lib_save_LIBS
9371 fi
9372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9373 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9374 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9375
9376
9377 cat >>confdefs.h <<\_ACEOF
9378 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9379 _ACEOF
9380
9381 fi
9382
9383
9384         LDFLAGS=$saved_ldflags
9385
9386         if test "$dag_streams" = 1; then
9387
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_DAG_STREAMS_API 1
9390 _ACEOF
9391
9392                 LIBS="$LIBS -ldag"
9393                 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9394
9395                 { echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9396 echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9397 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   ac_check_lib_save_LIBS=$LIBS
9401 LIBS="-lvdag  $LIBS"
9402 cat >conftest.$ac_ext <<_ACEOF
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408
9409 /* Override any GCC internal prototype to avoid an error.
9410    Use char because int might match the return type of a GCC
9411    builtin and then its argument prototype would still apply.  */
9412 #ifdef __cplusplus
9413 extern "C"
9414 #endif
9415 char vdag_set_device_info ();
9416 int
9417 main ()
9418 {
9419 return vdag_set_device_info ();
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (ac_try="$ac_link"
9426 case "(($ac_try" in
9427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428   *) ac_try_echo=$ac_try;;
9429 esac
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431   (eval "$ac_link") 2>conftest.er1
9432   ac_status=$?
9433   grep -v '^ *+' conftest.er1 >conftest.err
9434   rm -f conftest.er1
9435   cat conftest.err >&5
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } && {
9438          test -z "$ac_c_werror_flag" ||
9439          test ! -s conftest.err
9440        } && test -s conftest$ac_exeext &&
9441        $as_test_x conftest$ac_exeext; then
9442   ac_cv_lib_vdag_vdag_set_device_info=yes
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447         ac_cv_lib_vdag_vdag_set_device_info=no
9448 fi
9449
9450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9451       conftest$ac_exeext conftest.$ac_ext
9452 LIBS=$ac_check_lib_save_LIBS
9453 fi
9454 { echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9455 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9456 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9457   ac_dag_have_vdag="1"
9458 else
9459   ac_dag_have_vdag="0"
9460 fi
9461
9462                 if test "$ac_dag_have_vdag" = 1; then
9463
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_DAG_VDAG 1
9466 _ACEOF
9467
9468                         LIBS="$LIBS -lpthread"
9469                 fi
9470         fi
9471
9472
9473 cat >>confdefs.h <<\_ACEOF
9474 #define HAVE_DAG_API 1
9475 _ACEOF
9476
9477 fi
9478
9479 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9480 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9481
9482 if test $ac_cv_lbl_dag_api = no; then
9483         { echo "$as_me:$LINENO: result: no" >&5
9484 echo "${ECHO_T}no" >&6; }
9485         if test "$want_dag" = yes; then
9486                 # User wanted DAG support but we couldn't find it.
9487                 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9488 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9489    { (exit 1); exit 1; }; }
9490         fi
9491
9492         if test "$V_PCAP" = dag; then
9493                 # User requested "dag" capture type but the DAG API wasn't
9494                 # found.
9495                 { { echo "$as_me:$LINENO: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&5
9496 echo "$as_me: error: Specifying the capture type as \"dag\" requires the DAG API to be present; use the --with-dag options to specify the location. (Try \"./configure --help\" for more information.)" >&2;}
9497    { (exit 1); exit 1; }; }
9498         fi
9499 else
9500         { echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6; }
9502 fi
9503
9504
9505 # Check whether --with-septel was given.
9506 if test "${with_septel+set}" = set; then
9507   withval=$with_septel;
9508         if test "$withval" = no
9509         then
9510                 want_septel=no
9511         elif test "$withval" = yes
9512         then
9513                 want_septel=yes
9514                 septel_root=
9515         else
9516                 want_septel=yes
9517                 septel_root=$withval
9518         fi
9519
9520 else
9521
9522         #
9523         # Use Septel API if present, otherwise don't
9524         #
9525         want_septel=ifpresent
9526         septel_root=./../septel
9527
9528 fi
9529
9530 ac_cv_lbl_septel_api=no
9531 case "$V_PCAP" in
9532 linux|septel)
9533         #
9534         # We support the Septel API if we're on Linux, or if we're building
9535         # a Septel-only libpcap.
9536         #
9537         ;;
9538 *)
9539         #
9540         # If the user explicitly requested Septel, tell them it's not
9541         # supported.
9542         #
9543         # If they expressed no preference, don't include it.
9544         #
9545         if test $want_septel = yes; then
9546                 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9547 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9548    { (exit 1); exit 1; }; }
9549         elif test $want_septel = yes; then
9550                 want_septel=no
9551         fi
9552         ;;
9553 esac
9554
9555 if test "$with_septel" != no; then
9556         { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9557 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9558
9559         if test -z "$septel_root"; then
9560                 septel_root=$srcdir/../septel
9561         fi
9562
9563         septel_tools_dir="$septel_root"
9564         septel_include_dir="$septel_root/INC"
9565
9566         ac_cv_lbl_septel_api=no
9567         if test -r "$septel_include_dir/msg.h"; then
9568                 V_INCLS="$V_INCLS -I$septel_include_dir"
9569                 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9570                 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9571
9572                 if test "$V_PCAP" != septel ; then
9573                          SSRC="pcap-septel.c"
9574                 fi
9575                 ac_cv_lbl_septel_api=yes
9576         fi
9577
9578         { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9579 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9580         if test $ac_cv_lbl_septel_api = no; then
9581                 if test "$want_septel" = yes; then
9582                         { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9583 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9584    { (exit 1); exit 1; }; }
9585                 fi
9586         else
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_SEPTEL_API 1
9590 _ACEOF
9591
9592         fi
9593 fi
9594
9595 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9596         { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9597 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9598    { (exit 1); exit 1; }; }
9599 fi
9600
9601 # Check for Myricom SNF support.
9602
9603 # Check whether --with-snf was given.
9604 if test "${with_snf+set}" = set; then
9605   withval=$with_snf;
9606         if test "$withval" = no
9607         then
9608                 # User explicitly doesn't want SNF
9609                 want_snf=no
9610         elif test "$withval" = yes
9611         then
9612                 # User wants SNF support but hasn't specific a directory.
9613                 want_snf=yes
9614         else
9615                 # User wants SNF support with a specified directory.
9616                 want_snf=yes
9617                 snf_root=$withval
9618         fi
9619
9620 else
9621
9622         #
9623         # Use Sniffer API if present, otherwise don't
9624         #
9625         want_snf=ifpresent
9626
9627 fi
9628
9629
9630
9631 # Check whether --with-snf-includes was given.
9632 if test "${with_snf_includes+set}" = set; then
9633   withval=$with_snf_includes;
9634         # User wants SNF with specific header directory
9635         want_snf=yes
9636         snf_include_dir=$withval
9637
9638 fi
9639
9640
9641
9642 # Check whether --with-snf-libraries was given.
9643 if test "${with_snf_libraries+set}" = set; then
9644   withval=$with_snf_libraries;
9645         # User wants SNF with specific lib directory
9646         want_snf=yes
9647         snf_lib_dir=$withval
9648
9649 fi
9650
9651
9652 case "$V_PCAP" in
9653 bpf|linux|snf)
9654         #
9655         # We support the Sniffer API if we're on BSD, Linux, or if we're
9656         # building a Sniffer-only libpcap.
9657         #
9658         ;;
9659 *)
9660         #
9661         # If the user explicitly requested Sniffer, tell them it's not
9662         # supported.
9663         #
9664         # If they expressed no preference, don't include it.
9665         #
9666         if test $want_snf = yes; then
9667                 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9668 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9669    { (exit 1); exit 1; }; }
9670         elif test $want_snf = yes; then
9671                 want_snf=no
9672         fi
9673         ;;
9674 esac
9675
9676 ac_cv_lbl_snf_api=no
9677 if test "$with_snf" != no; then
9678
9679         { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9680 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9681
9682         if test -z "$snf_root"; then
9683                 snf_root=/opt/snf
9684         fi
9685
9686         if test -z "$snf_include_dir"; then
9687                 snf_include_dir="$snf_root/include"
9688         fi
9689
9690         if test -z "$snf_lib_dir"; then
9691                 snf_lib_dir="$snf_root/lib"
9692         fi
9693
9694         if test -f "$snf_include_dir/snf.h"; then
9695                 ac_cv_lbl_snf_api=yes
9696         fi
9697         { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9698 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9699
9700         if test $ac_cv_lbl_snf_api = no; then
9701                 if test "$want_snf" = yes; then
9702                         { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9703 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9704    { (exit 1); exit 1; }; }
9705                 fi
9706         else
9707                 saved_ldflags=$LDFLAGS
9708                 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9709                 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9710 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9711 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9712   echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714   ac_check_lib_save_LIBS=$LIBS
9715 LIBS="-lsnf  $LIBS"
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724    Use char because int might match the return type of a GCC
9725    builtin and then its argument prototype would still apply.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char snf_init ();
9730 int
9731 main ()
9732 {
9733 return snf_init ();
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9740 case "(($ac_try" in
9741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742   *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745   (eval "$ac_link") 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } && {
9752          test -z "$ac_c_werror_flag" ||
9753          test ! -s conftest.err
9754        } && test -s conftest$ac_exeext &&
9755        $as_test_x conftest$ac_exeext; then
9756   ac_cv_lib_snf_snf_init=yes
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761         ac_cv_lib_snf_snf_init=no
9762 fi
9763
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765       conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9767 fi
9768 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9769 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9770 if test $ac_cv_lib_snf_snf_init = yes; then
9771   ac_cv_lbl_snf_api="yes"
9772 else
9773   ac_cv_lbl_snf_api="no"
9774 fi
9775
9776                 LDFLAGS="$saved_ldflags"
9777
9778                 if test $ac_cv_lbl_snf_api = no; then
9779                         if test "$want_snf" = yes; then
9780                                 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9781 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9782    { (exit 1); exit 1; }; }
9783                         fi
9784                 else
9785                         V_INCLS="$V_INCLS -I$snf_include_dir"
9786                         LIBS="$LIBS -lsnf"
9787                         LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9788                         if test "$V_PCAP" != snf ; then
9789                                 SSRC="pcap-snf.c"
9790                         fi
9791
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_SNF_API 1
9794 _ACEOF
9795
9796                 fi
9797         fi
9798 fi
9799
9800 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9801         { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9802 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9803    { (exit 1); exit 1; }; }
9804 fi
9805
9806
9807 # Check whether --with-flex was given.
9808 if test "${with_flex+set}" = set; then
9809   withval=$with_flex;
9810 fi
9811
9812
9813 # Check whether --with-bison was given.
9814 if test "${with_bison+set}" = set; then
9815   withval=$with_bison;
9816 fi
9817
9818     if test "$with_flex" = no ; then
9819             V_LEX=lex
9820     else
9821             for ac_prog in flex
9822 do
9823   # Extract the first word of "$ac_prog", so it can be a program name with args.
9824 set dummy $ac_prog; ac_word=$2
9825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9827 if test "${ac_cv_prog_V_LEX+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   if test -n "$V_LEX"; then
9831   ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9832 else
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 for as_dir in $PATH
9835 do
9836   IFS=$as_save_IFS
9837   test -z "$as_dir" && as_dir=.
9838   for ac_exec_ext in '' $ac_executable_extensions; do
9839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840     ac_cv_prog_V_LEX="$ac_prog"
9841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9842     break 2
9843   fi
9844 done
9845 done
9846 IFS=$as_save_IFS
9847
9848 fi
9849 fi
9850 V_LEX=$ac_cv_prog_V_LEX
9851 if test -n "$V_LEX"; then
9852   { echo "$as_me:$LINENO: result: $V_LEX" >&5
9853 echo "${ECHO_T}$V_LEX" >&6; }
9854 else
9855   { echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6; }
9857 fi
9858
9859
9860   test -n "$V_LEX" && break
9861 done
9862 test -n "$V_LEX" || V_LEX="lex"
9863
9864     fi
9865     if test "$V_LEX" = flex ; then
9866             # The -V flag was added in 2.4
9867             { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9868 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9869             if test "${ac_cv_lbl_flex_v24+set}" = set; then
9870   echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872   if flex -V >/dev/null 2>&1; then
9873                         ac_cv_lbl_flex_v24=yes
9874                 else
9875                         ac_cv_lbl_flex_v24=no
9876                 fi
9877 fi
9878
9879             { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9880 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9881             if test $ac_cv_lbl_flex_v24 = no ; then
9882                     s="2.4 or higher required"
9883                     { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9884 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9885                     V_LEX=lex
9886             fi
9887     fi
9888     if test "$with_bison" = no ; then
9889             V_YACC=yacc
9890     else
9891             for ac_prog in bison
9892 do
9893   # Extract the first word of "$ac_prog", so it can be a program name with args.
9894 set dummy $ac_prog; ac_word=$2
9895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9897 if test "${ac_cv_prog_V_YACC+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900   if test -n "$V_YACC"; then
9901   ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9905 do
9906   IFS=$as_save_IFS
9907   test -z "$as_dir" && as_dir=.
9908   for ac_exec_ext in '' $ac_executable_extensions; do
9909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910     ac_cv_prog_V_YACC="$ac_prog"
9911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9912     break 2
9913   fi
9914 done
9915 done
9916 IFS=$as_save_IFS
9917
9918 fi
9919 fi
9920 V_YACC=$ac_cv_prog_V_YACC
9921 if test -n "$V_YACC"; then
9922   { echo "$as_me:$LINENO: result: $V_YACC" >&5
9923 echo "${ECHO_T}$V_YACC" >&6; }
9924 else
9925   { echo "$as_me:$LINENO: result: no" >&5
9926 echo "${ECHO_T}no" >&6; }
9927 fi
9928
9929
9930   test -n "$V_YACC" && break
9931 done
9932 test -n "$V_YACC" || V_YACC="yacc"
9933
9934     fi
9935     if test "$V_YACC" = bison ; then
9936             V_YACC="$V_YACC -y"
9937     fi
9938     if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9939             { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9940 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9941             V_LEX=lex
9942             V_YACC=yacc
9943     fi
9944     if test "$V_LEX" = flex -a -n "pcap_" ; then
9945             V_LEX="$V_LEX -Ppcap_"
9946             V_YACC="$V_YACC -p pcap_"
9947     else
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define NEED_YYPARSE_WRAPPER 1
9951 _ACEOF
9952
9953     fi
9954 if test "$V_LEX" = lex ; then
9955 # Some versions of lex can't handle the definitions section of scanner.l .
9956 # Try lexing it and complain if it can't deal.
9957         { echo "$as_me:$LINENO: checking for capable lex" >&5
9958 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9959 if test "${tcpdump_cv_capable_lex+set}" = set; then
9960   echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962   if lex -t scanner.l > /dev/null 2>&1; then
9963                         tcpdump_cv_capable_lex=yes
9964                 else
9965                         tcpdump_cv_capable_lex=insufficient
9966                 fi
9967 fi
9968 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9969 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9970         if test $tcpdump_cv_capable_lex = insufficient ; then
9971                 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9972  libpcap.  flex is a lex replacement that has many advantages, including
9973  being able to compile libpcap.  For more information, see
9974  http://www.gnu.org/software/flex/flex.html ." >&5
9975 echo "$as_me: error: Your operating system's lex is insufficient to compile
9976  libpcap.  flex is a lex replacement that has many advantages, including
9977  being able to compile libpcap.  For more information, see
9978  http://www.gnu.org/software/flex/flex.html ." >&2;}
9979    { (exit 1); exit 1; }; }
9980         fi
9981 fi
9982
9983 #
9984 # Assume, by default, no support for shared libraries and V7/BSD convention
9985 # for man pages (file formats in section 5, miscellaneous info in section 7).
9986 # Individual cases can override this.
9987 #
9988 DYEXT="none"
9989 MAN_FILE_FORMATS=5
9990 MAN_MISC_INFO=7
9991 case "$host_os" in
9992
9993 aix*)
9994
9995 cat >>confdefs.h <<\_ACEOF
9996 #define _SUN 1
9997 _ACEOF
9998
9999
10000         #
10001         # AIX makes it fun to build shared and static libraries,
10002         # because they're *both* ".a" archive libraries.  We
10003         # build the static library for the benefit of the traditional
10004         # scheme of building libpcap and tcpdump in subdirectories of
10005         # the same directory, with tcpdump statically linked with the
10006         # libpcap in question, but we also build a shared library as
10007         # "libpcap.shareda" and install *it*, rather than the static
10008         # library, as "libpcap.a".
10009         #
10010         DYEXT="shareda"
10011
10012         case "$V_PCAP" in
10013
10014         dlpi)
10015                 #
10016                 # If we're using DLPI, applications will need to
10017                 # use /lib/pse.exp if present, as we use the
10018                 # STREAMS routines.
10019                 #
10020                 pseexe="/lib/pse.exp"
10021                 { echo "$as_me:$LINENO: checking for $pseexe" >&5
10022 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
10023                 if test -f $pseexe ; then
10024                         { echo "$as_me:$LINENO: result: yes" >&5
10025 echo "${ECHO_T}yes" >&6; }
10026                         LIBS="-I:$pseexe"
10027                 fi
10028                 ;;
10029
10030         bpf)
10031                 #
10032                 # If we're using BPF, we need "-lodm" and "-lcfg", as
10033                 # we use them to load the BPF module.
10034                 #
10035                 LIBS="-lodm -lcfg"
10036                 ;;
10037         esac
10038         ;;
10039
10040 darwin*)
10041         DYEXT="dylib"
10042         V_CCOPT="$V_CCOPT -fno-common"
10043         # Check whether --enable-universal was given.
10044 if test "${enable_universal+set}" = set; then
10045   enableval=$enable_universal;
10046 fi
10047
10048         if test "$enable_universal" != "no"; then
10049                 case "$host_os" in
10050
10051                 darwin9.*)
10052                         #
10053                         # Leopard.  Build for 32-bit PowerPC, 64-bit
10054                         # PowerPC, x86, and x86-64, with 32-bit PowerPC
10055                         # first.  (That's what Apple does.)
10056                         #
10057                         V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10058                         LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10059                         ;;
10060
10061                 darwin10.*)
10062                         #
10063                         # Snow Leopard.  Build for x86-64, x86, and
10064                         # 32-bit PowerPC, with x86-64 first.  (That's
10065                         # what Apple does, even though Snow Leopard
10066                         # doesn't run on PPC, so PPC libpcap runs under
10067                         # Rosetta, and Rosetta doesn't support BPF
10068                         # ioctls, so PPC programs can't do live
10069                         # captures.)
10070                         #
10071                         V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
10072                         LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
10073                         ;;
10074
10075                 darwin11.*)
10076                         #
10077                         # Lion.  Build for x86-64 and x86, with x86-64
10078                         # first.  (That's probably what Apple does,
10079                         # given that Rosetta is gone.)
10080                         #
10081                         V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
10082                         LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
10083                         ;;
10084                 esac
10085         fi
10086         ;;
10087
10088 hpux9*)
10089
10090 cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_HPUX9 1
10092 _ACEOF
10093
10094
10095         #
10096         # Use System V conventions for man pages.
10097         #
10098         MAN_FILE_FORMATS=4
10099         MAN_MISC_INFO=5
10100         ;;
10101
10102 hpux10.0*)
10103
10104         #
10105         # Use System V conventions for man pages.
10106         #
10107         MAN_FILE_FORMATS=4
10108         MAN_MISC_INFO=5
10109         ;;
10110
10111 hpux10.1*)
10112
10113         #
10114         # Use System V conventions for man pages.
10115         #
10116         MAN_FILE_FORMATS=4
10117         MAN_MISC_INFO=5
10118         ;;
10119
10120 hpux*)
10121
10122 cat >>confdefs.h <<\_ACEOF
10123 #define HAVE_HPUX10_20_OR_LATER 1
10124 _ACEOF
10125
10126         if test "`uname -m`" = "ia64"; then
10127                 DYEXT="so"
10128         else
10129                 DYEXT="sl"
10130         fi
10131
10132         #
10133         # "-b" builds a shared library; "+h" sets the soname.
10134         #
10135         SHLIB_OPT="-b"
10136         SONAME_OPT="+h"
10137
10138         #
10139         # Use System V conventions for man pages.
10140         #
10141         MAN_FILE_FORMATS=4
10142         MAN_MISC_INFO=5
10143         ;;
10144
10145 irix*)
10146         #
10147         # Use System V conventions for man pages.
10148         #
10149         MAN_FILE_FORMATS=4
10150         MAN_MISC_INFO=5
10151         ;;
10152
10153 linux*|freebsd*|netbsd*|openbsd*|dragonfly*|kfreebsd*|gnu*)
10154         DYEXT="so"
10155
10156         #
10157         # Compiler assumed to be GCC; run-time linker may require a -R
10158         # flag.
10159         #
10160         if test "$libdir" != "/usr/lib"; then
10161                 V_RFLAGS=-Wl,-R$libdir
10162         fi
10163         ;;
10164
10165 osf*)
10166         DYEXT="so"
10167
10168         #
10169         # Use System V conventions for man pages.
10170         #
10171         MAN_FILE_FORMATS=4
10172         MAN_MISC_INFO=5
10173         ;;
10174
10175 sinix*)
10176         { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
10177 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
10178         if test "${ac_cv_cc_sinix_defined+set}" = set; then
10179   echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188 int
10189 main ()
10190 {
10191 int i = sinix;
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext
10197 if { (ac_try="$ac_compile"
10198 case "(($ac_try" in
10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200   *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203   (eval "$ac_compile") 2>conftest.er1
10204   ac_status=$?
10205   grep -v '^ *+' conftest.er1 >conftest.err
10206   rm -f conftest.er1
10207   cat conftest.err >&5
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } && {
10210          test -z "$ac_c_werror_flag" ||
10211          test ! -s conftest.err
10212        } && test -s conftest.$ac_objext; then
10213   ac_cv_cc_sinix_defined=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218         ac_cv_cc_sinix_defined=no
10219 fi
10220
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222 fi
10223
10224             { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
10225 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10226             if test $ac_cv_cc_sinix_defined = no ; then
10227
10228 cat >>confdefs.h <<\_ACEOF
10229 #define sinix 1
10230 _ACEOF
10231
10232             fi
10233         ;;
10234
10235 solaris*)
10236
10237 cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_SOLARIS 1
10239 _ACEOF
10240
10241
10242         DYEXT="so"
10243         #
10244         # Use System V conventions for man pages.
10245         #
10246         MAN_FILE_FORMATS=4
10247         MAN_MISC_INFO=5
10248         ;;
10249 esac
10250
10251 # Check whether --enable-shared was given.
10252 if test "${enable_shared+set}" = set; then
10253   enableval=$enable_shared;
10254 fi
10255
10256 test "x$enable_shared" = "xno" && DYEXT="none"
10257
10258 if test -n "$ac_tool_prefix"; then
10259   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10260 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10263 if test "${ac_cv_prog_RANLIB+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   if test -n "$RANLIB"; then
10267   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10268 else
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10271 do
10272   IFS=$as_save_IFS
10273   test -z "$as_dir" && as_dir=.
10274   for ac_exec_ext in '' $ac_executable_extensions; do
10275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10278     break 2
10279   fi
10280 done
10281 done
10282 IFS=$as_save_IFS
10283
10284 fi
10285 fi
10286 RANLIB=$ac_cv_prog_RANLIB
10287 if test -n "$RANLIB"; then
10288   { echo "$as_me:$LINENO: result: $RANLIB" >&5
10289 echo "${ECHO_T}$RANLIB" >&6; }
10290 else
10291   { echo "$as_me:$LINENO: result: no" >&5
10292 echo "${ECHO_T}no" >&6; }
10293 fi
10294
10295
10296 fi
10297 if test -z "$ac_cv_prog_RANLIB"; then
10298   ac_ct_RANLIB=$RANLIB
10299   # Extract the first word of "ranlib", so it can be a program name with args.
10300 set dummy ranlib; ac_word=$2
10301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10303 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   if test -n "$ac_ct_RANLIB"; then
10307   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10308 else
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10311 do
10312   IFS=$as_save_IFS
10313   test -z "$as_dir" && as_dir=.
10314   for ac_exec_ext in '' $ac_executable_extensions; do
10315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10316     ac_cv_prog_ac_ct_RANLIB="ranlib"
10317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10318     break 2
10319   fi
10320 done
10321 done
10322 IFS=$as_save_IFS
10323
10324 fi
10325 fi
10326 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10327 if test -n "$ac_ct_RANLIB"; then
10328   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10329 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10330 else
10331   { echo "$as_me:$LINENO: result: no" >&5
10332 echo "${ECHO_T}no" >&6; }
10333 fi
10334
10335   if test "x$ac_ct_RANLIB" = x; then
10336     RANLIB=":"
10337   else
10338     case $cross_compiling:$ac_tool_warned in
10339 yes:)
10340 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10341 whose name does not start with the host triplet.  If you think this
10342 configuration is useful to you, please write to autoconf@gnu.org." >&5
10343 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10344 whose name does not start with the host triplet.  If you think this
10345 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10346 ac_tool_warned=yes ;;
10347 esac
10348     RANLIB=$ac_ct_RANLIB
10349   fi
10350 else
10351   RANLIB="$ac_cv_prog_RANLIB"
10352 fi
10353
10354 if test -n "$ac_tool_prefix"; then
10355   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10356 set dummy ${ac_tool_prefix}ar; ac_word=$2
10357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10359 if test "${ac_cv_prog_AR+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   if test -n "$AR"; then
10363   ac_cv_prog_AR="$AR" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10367 do
10368   IFS=$as_save_IFS
10369   test -z "$as_dir" && as_dir=.
10370   for ac_exec_ext in '' $ac_executable_extensions; do
10371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372     ac_cv_prog_AR="${ac_tool_prefix}ar"
10373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374     break 2
10375   fi
10376 done
10377 done
10378 IFS=$as_save_IFS
10379
10380 fi
10381 fi
10382 AR=$ac_cv_prog_AR
10383 if test -n "$AR"; then
10384   { echo "$as_me:$LINENO: result: $AR" >&5
10385 echo "${ECHO_T}$AR" >&6; }
10386 else
10387   { echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6; }
10389 fi
10390
10391
10392 fi
10393 if test -z "$ac_cv_prog_AR"; then
10394   ac_ct_AR=$AR
10395   # Extract the first word of "ar", so it can be a program name with args.
10396 set dummy ar; ac_word=$2
10397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10399 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   if test -n "$ac_ct_AR"; then
10403   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10404 else
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10407 do
10408   IFS=$as_save_IFS
10409   test -z "$as_dir" && as_dir=.
10410   for ac_exec_ext in '' $ac_executable_extensions; do
10411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412     ac_cv_prog_ac_ct_AR="ar"
10413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10414     break 2
10415   fi
10416 done
10417 done
10418 IFS=$as_save_IFS
10419
10420 fi
10421 fi
10422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10423 if test -n "$ac_ct_AR"; then
10424   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10425 echo "${ECHO_T}$ac_ct_AR" >&6; }
10426 else
10427   { echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6; }
10429 fi
10430
10431   if test "x$ac_ct_AR" = x; then
10432     AR=""
10433   else
10434     case $cross_compiling:$ac_tool_warned in
10435 yes:)
10436 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10437 whose name does not start with the host triplet.  If you think this
10438 configuration is useful to you, please write to autoconf@gnu.org." >&5
10439 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10440 whose name does not start with the host triplet.  If you think this
10441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10442 ac_tool_warned=yes ;;
10443 esac
10444     AR=$ac_ct_AR
10445   fi
10446 else
10447   AR="$ac_cv_prog_AR"
10448 fi
10449
10450
10451 rm -f os-proto.h
10452     if test "${LBL_CFLAGS+set}" = set; then
10453             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10454     fi
10455     if test -f .devel ; then
10456             if test "$GCC" = yes ; then
10457                     if test "${LBL_CFLAGS+set}" != set; then
10458                             if test "$ac_cv_prog_cc_g" = yes ; then
10459                                     V_CCOPT="-g $V_CCOPT"
10460                             fi
10461                             V_CCOPT="$V_CCOPT -Wall"
10462                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10463                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10464                             fi
10465                     fi
10466             else
10467                     case "$host_os" in
10468
10469                     irix6*)
10470                             V_CCOPT="$V_CCOPT -n32"
10471                             ;;
10472
10473                     *)
10474                             ;;
10475                     esac
10476             fi
10477             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10478             name="lbl/os-$os.h"
10479             if test -f $name ; then
10480                     ln -s $name os-proto.h
10481
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_OS_PROTO_H 1
10484 _ACEOF
10485
10486             else
10487                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10488 echo "$as_me: WARNING: can't find $name" >&2;}
10489             fi
10490     fi
10491
10492 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10493 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10494     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10495   echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497   cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503
10504 #       include <sys/types.h>
10505 #       include <sys/socket.h>
10506 int
10507 main ()
10508 {
10509 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10510   ;
10511   return 0;
10512 }
10513 _ACEOF
10514 rm -f conftest.$ac_objext
10515 if { (ac_try="$ac_compile"
10516 case "(($ac_try" in
10517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518   *) ac_try_echo=$ac_try;;
10519 esac
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521   (eval "$ac_compile") 2>conftest.er1
10522   ac_status=$?
10523   grep -v '^ *+' conftest.er1 >conftest.err
10524   rm -f conftest.er1
10525   cat conftest.err >&5
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); } && {
10528          test -z "$ac_c_werror_flag" ||
10529          test ! -s conftest.err
10530        } && test -s conftest.$ac_objext; then
10531   ac_cv_lbl_sockaddr_has_sa_len=yes
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536         ac_cv_lbl_sockaddr_has_sa_len=no
10537 fi
10538
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 fi
10541
10542     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10543 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10544     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10545
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_SOCKADDR_SA_LEN 1
10548 _ACEOF
10549
10550     fi
10551
10552 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10553 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10554     if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563
10564 #       include <sys/types.h>
10565 #       include <sys/socket.h>
10566 int
10567 main ()
10568 {
10569 u_int i = sizeof (struct sockaddr_storage)
10570   ;
10571   return 0;
10572 }
10573 _ACEOF
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578   *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581   (eval "$ac_compile") 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } && {
10588          test -z "$ac_c_werror_flag" ||
10589          test ! -s conftest.err
10590        } && test -s conftest.$ac_objext; then
10591   ac_cv_lbl_has_sockaddr_storage=yes
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596         ac_cv_lbl_has_sockaddr_storage=no
10597 fi
10598
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 fi
10601
10602     { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10603 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10604     if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10605
10606 cat >>confdefs.h <<\_ACEOF
10607 #define HAVE_SOCKADDR_STORAGE 1
10608 _ACEOF
10609
10610     fi
10611
10612 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10613 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10614     if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10615   echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617   cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623
10624 #       include <sys/types.h>
10625 #       include <sys/dlpi.h>
10626 #       include <sys/dlpi_ext.h>
10627 int
10628 main ()
10629 {
10630 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639   *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642   (eval "$ac_compile") 2>conftest.er1
10643   ac_status=$?
10644   grep -v '^ *+' conftest.er1 >conftest.err
10645   rm -f conftest.er1
10646   cat conftest.err >&5
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } && {
10649          test -z "$ac_c_werror_flag" ||
10650          test ! -s conftest.err
10651        } && test -s conftest.$ac_objext; then
10652   ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657         ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10658 fi
10659
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 fi
10662
10663     { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10664 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10665     if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10666
10667 cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10669 _ACEOF
10670
10671     fi
10672
10673 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10674 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10675     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   case "$host_cpu" in
10679
10680         #
10681         # These are CPU types where:
10682         #
10683         #       the CPU faults on an unaligned access, but at least some
10684         #       OSes that support that CPU catch the fault and simulate
10685         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10686         #       the simulation is slow, so we don't want to use it;
10687         #
10688         #       the CPU, I infer (from the old
10689         #
10690         # XXX: should also check that they don't do weird things (like on arm)
10691         #
10692         #       comment) doesn't fault on unaligned accesses, but doesn't
10693         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
10694         #
10695         #       for whatever reason, the test program doesn't work
10696         #       (this has been claimed to be the case for several of those
10697         #       CPUs - I don't know what the problem is; the problem
10698         #       was reported as "the test program dumps core" for SuperH,
10699         #       but that's what the test program is *supposed* to do -
10700         #       it dumps core before it writes anything, so the test
10701         #       for an empty output file should find an empty output
10702         #       file and conclude that unaligned accesses don't work).
10703         #
10704         # This run-time test won't work if you're cross-compiling, so
10705         # in order to support cross-compiling for a particular CPU,
10706         # we have to wire in the list of CPU types anyway, as far as
10707         # I know, so perhaps we should just have a set of CPUs on
10708         # which we know it doesn't work, a set of CPUs on which we
10709         # know it does work, and have the script just fail on other
10710         # cpu types and update it when such a failure occurs.
10711         #
10712         alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10713                 ac_cv_lbl_unaligned_fail=yes
10714                 ;;
10715
10716         *)
10717                 cat >conftest.c <<EOF
10718 #               include <sys/types.h>
10719 #               include <sys/wait.h>
10720 #               include <stdio.h>
10721                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10722                 main() {
10723                 unsigned int i;
10724                 pid_t pid;
10725                 int status;
10726                 /* avoid "core dumped" message */
10727                 pid = fork();
10728                 if (pid <  0)
10729                         exit(2);
10730                 if (pid > 0) {
10731                         /* parent */
10732                         pid = waitpid(pid, &status, 0);
10733                         if (pid < 0)
10734                                 exit(3);
10735                         exit(!WIFEXITED(status));
10736                 }
10737                 /* child */
10738                 i = *(unsigned int *)&a[1];
10739                 printf("%d\n", i);
10740                 exit(0);
10741                 }
10742 EOF
10743                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10744                     conftest.c $LIBS >/dev/null 2>&1
10745                 if test ! -x conftest ; then
10746                                                 ac_cv_lbl_unaligned_fail=yes
10747                 else
10748                         ./conftest >conftest.out
10749                         if test ! -s conftest.out ; then
10750                                 ac_cv_lbl_unaligned_fail=yes
10751                         else
10752                                 ac_cv_lbl_unaligned_fail=no
10753                         fi
10754                 fi
10755                 rm -f -r conftest* core core.conftest
10756                 ;;
10757         esac
10758 fi
10759
10760     { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10761 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10762     if test $ac_cv_lbl_unaligned_fail = yes ; then
10763
10764 cat >>confdefs.h <<\_ACEOF
10765 #define LBL_ALIGN 1
10766 _ACEOF
10767
10768     fi
10769
10770 #
10771 # Makefile.in includes rules to generate version.h, so we assume
10772 # that it will be generated if autoconf is used.
10773 #
10774
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_VERSION_H 1
10777 _ACEOF
10778
10779
10780 rm -f net
10781 ln -s ${srcdir}/bpf/net net
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10802 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10803 case "$host_os" in
10804 linux*)
10805
10806 cat >>confdefs.h <<\_ACEOF
10807 #define PCAP_SUPPORT_USB 1
10808 _ACEOF
10809
10810         USB_SRC=pcap-usb-linux.c
10811         { echo "$as_me:$LINENO: result: yes" >&5
10812 echo "${ECHO_T}yes" >&6; }
10813         ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10814         if test $? -ne 0 ; then
10815           ac_usb_dev_name="usbmon"
10816         fi
10817
10818 cat >>confdefs.h <<_ACEOF
10819 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10820 _ACEOF
10821
10822         { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10823 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10824         #
10825         # Do we have a version of <linux/compiler.h> available?
10826         # If so, we might need it for <linux/usbdevice_fs.h>.
10827         #
10828
10829 for ac_header in linux/compiler.h
10830 do
10831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 fi
10838 ac_res=`eval echo '${'$as_ac_Header'}'`
10839                { echo "$as_me:$LINENO: result: $ac_res" >&5
10840 echo "${ECHO_T}$ac_res" >&6; }
10841 else
10842   # Is the header compilable?
10843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10845 cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 $ac_includes_default
10852 #include <$ac_header>
10853 _ACEOF
10854 rm -f conftest.$ac_objext
10855 if { (ac_try="$ac_compile"
10856 case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_compile") 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } && {
10868          test -z "$ac_c_werror_flag" ||
10869          test ! -s conftest.err
10870        } && test -s conftest.$ac_objext; then
10871   ac_header_compiler=yes
10872 else
10873   echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876         ac_header_compiler=no
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10881 echo "${ECHO_T}$ac_header_compiler" >&6; }
10882
10883 # Is the header present?
10884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892 #include <$ac_header>
10893 _ACEOF
10894 if { (ac_try="$ac_cpp conftest.$ac_ext"
10895 case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10901   ac_status=$?
10902   grep -v '^ *+' conftest.er1 >conftest.err
10903   rm -f conftest.er1
10904   cat conftest.err >&5
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } >/dev/null && {
10907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10908          test ! -s conftest.err
10909        }; then
10910   ac_header_preproc=yes
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915   ac_header_preproc=no
10916 fi
10917
10918 rm -f conftest.err conftest.$ac_ext
10919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920 echo "${ECHO_T}$ac_header_preproc" >&6; }
10921
10922 # So?  What about this header?
10923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10924   yes:no: )
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929     ac_header_preproc=yes
10930     ;;
10931   no:yes:* )
10932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10944
10945     ;;
10946 esac
10947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   eval "$as_ac_Header=\$ac_header_preproc"
10953 fi
10954 ac_res=`eval echo '${'$as_ac_Header'}'`
10955                { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10957
10958 fi
10959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960   cat >>confdefs.h <<_ACEOF
10961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10962 _ACEOF
10963
10964 fi
10965
10966 done
10967
10968         if test "$ac_cv_header_linux_compiler_h" = yes; then
10969           #
10970           # Yes - include it when testing for <linux/usbdevice_fs.h>.
10971           #
10972
10973 for ac_header in linux/usbdevice_fs.h
10974 do
10975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987 #include <linux/compiler.h>
10988
10989 #include <$ac_header>
10990 _ACEOF
10991 rm -f conftest.$ac_objext
10992 if { (ac_try="$ac_compile"
10993 case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_compile") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest.$ac_objext; then
11008   eval "$as_ac_Header=yes"
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013         eval "$as_ac_Header=no"
11014 fi
11015
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 fi
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019                { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022   cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11024 _ACEOF
11025
11026 fi
11027
11028 done
11029
11030         else
11031
11032 for ac_header in linux/usbdevice_fs.h
11033 do
11034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11036   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039   echo $ECHO_N "(cached) $ECHO_C" >&6
11040 fi
11041 ac_res=`eval echo '${'$as_ac_Header'}'`
11042                { echo "$as_me:$LINENO: result: $ac_res" >&5
11043 echo "${ECHO_T}$ac_res" >&6; }
11044 else
11045   # Is the header compilable?
11046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054 $ac_includes_default
11055 #include <$ac_header>
11056 _ACEOF
11057 rm -f conftest.$ac_objext
11058 if { (ac_try="$ac_compile"
11059 case "(($ac_try" in
11060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061   *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064   (eval "$ac_compile") 2>conftest.er1
11065   ac_status=$?
11066   grep -v '^ *+' conftest.er1 >conftest.err
11067   rm -f conftest.er1
11068   cat conftest.err >&5
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } && {
11071          test -z "$ac_c_werror_flag" ||
11072          test ! -s conftest.err
11073        } && test -s conftest.$ac_objext; then
11074   ac_header_compiler=yes
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079         ac_header_compiler=no
11080 fi
11081
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11084 echo "${ECHO_T}$ac_header_compiler" >&6; }
11085
11086 # Is the header present?
11087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 #include <$ac_header>
11096 _ACEOF
11097 if { (ac_try="$ac_cpp conftest.$ac_ext"
11098 case "(($ac_try" in
11099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100   *) ac_try_echo=$ac_try;;
11101 esac
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11104   ac_status=$?
11105   grep -v '^ *+' conftest.er1 >conftest.err
11106   rm -f conftest.er1
11107   cat conftest.err >&5
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); } >/dev/null && {
11110          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11111          test ! -s conftest.err
11112        }; then
11113   ac_header_preproc=yes
11114 else
11115   echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118   ac_header_preproc=no
11119 fi
11120
11121 rm -f conftest.err conftest.$ac_ext
11122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11123 echo "${ECHO_T}$ac_header_preproc" >&6; }
11124
11125 # So?  What about this header?
11126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11127   yes:no: )
11128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11132     ac_header_preproc=yes
11133     ;;
11134   no:yes:* )
11135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11147
11148     ;;
11149 esac
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155   eval "$as_ac_Header=\$ac_header_preproc"
11156 fi
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158                { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160
11161 fi
11162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163   cat >>confdefs.h <<_ACEOF
11164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165 _ACEOF
11166
11167 fi
11168
11169 done
11170
11171         fi
11172         if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11173           #
11174           # OK, does it define bRequestType?  Older versions of the kernel
11175           # define fields with names like "requesttype, "request", and
11176           # "value", rather than "bRequestType", "bRequest", and
11177           # "wValue".
11178           #
11179           { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11180 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11181           if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11182   echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184   cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h.  */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h.  */
11190
11191 $ac_includes_default
11192 #ifdef HAVE_SYS_BITYPES_H
11193 #include <sys/bitypes.h>
11194 #endif
11195 #ifdef HAVE_LINUX_COMPILER_H
11196 #include <linux/compiler.h>
11197 #endif
11198 #include <linux/usbdevice_fs.h>
11199 int
11200 main ()
11201 {
11202 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest.$ac_objext
11208 if { (ac_try="$ac_compile"
11209 case "(($ac_try" in
11210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211   *) ac_try_echo=$ac_try;;
11212 esac
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214   (eval "$ac_compile") 2>conftest.er1
11215   ac_status=$?
11216   grep -v '^ *+' conftest.er1 >conftest.err
11217   rm -f conftest.er1
11218   cat conftest.err >&5
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); } && {
11221          test -z "$ac_c_werror_flag" ||
11222          test ! -s conftest.err
11223        } && test -s conftest.$ac_objext; then
11224   ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11225 else
11226   echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229         ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11230 fi
11231
11232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 fi
11234
11235             { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11236 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11237             if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11238
11239 cat >>confdefs.h <<\_ACEOF
11240 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11241 _ACEOF
11242
11243             fi
11244         fi
11245         ;;
11246 *)
11247         { echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6; }
11249         ;;
11250 esac
11251
11252
11253
11254 { echo "$as_me:$LINENO: checking whether the platform could support netfilter sniffing" >&5
11255 echo $ECHO_N "checking whether the platform could support netfilter sniffing... $ECHO_C" >&6; }
11256 case "$host_os" in
11257 linux*)
11258         { echo "$as_me:$LINENO: result: yes" >&5
11259 echo "${ECHO_T}yes" >&6; }
11260         #
11261         # Life's too short to deal with trying to get this to compile
11262         # if you don't get the right types defined with
11263         # __KERNEL_STRICT_NAMES getting defined by some other include.
11264         #
11265         # Check whether the includes Just Work.  If not, don't turn on
11266         # netfilter support.
11267         #
11268         { echo "$as_me:$LINENO: checking whether we can compile the netfilter support" >&5
11269 echo $ECHO_N "checking whether we can compile the netfilter support... $ECHO_C" >&6; }
11270         if test "${ac_cv_netfilter_can_compile+set}" = set; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273   cat >conftest.$ac_ext <<_ACEOF
11274 /* confdefs.h.  */
11275 _ACEOF
11276 cat confdefs.h >>conftest.$ac_ext
11277 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h.  */
11279
11280 $ac_includes_default
11281 #include <sys/socket.h>
11282 #include <netinet/in.h>
11283 #include <linux/types.h>
11284
11285 #include <linux/netlink.h>
11286 #include <linux/netfilter.h>
11287 #include <linux/netfilter/nfnetlink.h>
11288 #include <linux/netfilter/nfnetlink_log.h>
11289 #include <linux/netfilter/nfnetlink_queue.h>
11290 int
11291 main ()
11292 {
11293
11294   ;
11295   return 0;
11296 }
11297 _ACEOF
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302   *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305   (eval "$ac_compile") 2>conftest.er1
11306   ac_status=$?
11307   grep -v '^ *+' conftest.er1 >conftest.err
11308   rm -f conftest.er1
11309   cat conftest.err >&5
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); } && {
11312          test -z "$ac_c_werror_flag" ||
11313          test ! -s conftest.err
11314        } && test -s conftest.$ac_objext; then
11315   ac_cv_netfilter_can_compile=yes
11316 else
11317   echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11319
11320         ac_cv_netfilter_can_compile=no
11321 fi
11322
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 fi
11325
11326         { echo "$as_me:$LINENO: result: $ac_cv_netfilter_can_compile" >&5
11327 echo "${ECHO_T}$ac_cv_netfilter_can_compile" >&6; }
11328         if test $ac_cv_netfilter_can_compile = yes ; then
11329
11330 cat >>confdefs.h <<\_ACEOF
11331 #define PCAP_SUPPORT_NETFILTER 1
11332 _ACEOF
11333
11334           NETFILTER_SRC=pcap-netfilter-linux.c
11335         fi
11336         ;;
11337 *)
11338         { echo "$as_me:$LINENO: result: no" >&5
11339 echo "${ECHO_T}no" >&6; }
11340         ;;
11341 esac
11342
11343
11344
11345 # Check whether --enable-bluetooth was given.
11346 if test "${enable_bluetooth+set}" = set; then
11347   enableval=$enable_bluetooth;
11348 else
11349   enable_bluetooth=yes
11350 fi
11351
11352
11353 if test "x$enable_bluetooth" != "xno" ; then
11354                 case "$host_os" in
11355         linux*)
11356                 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11357   { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11358 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11359 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11360   echo $ECHO_N "(cached) $ECHO_C" >&6
11361 fi
11362 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11363 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11364 else
11365   # Is the header compilable?
11366 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11367 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 $ac_includes_default
11375 #include <bluetooth/bluetooth.h>
11376 _ACEOF
11377 rm -f conftest.$ac_objext
11378 if { (ac_try="$ac_compile"
11379 case "(($ac_try" in
11380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381   *) ac_try_echo=$ac_try;;
11382 esac
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384   (eval "$ac_compile") 2>conftest.er1
11385   ac_status=$?
11386   grep -v '^ *+' conftest.er1 >conftest.err
11387   rm -f conftest.er1
11388   cat conftest.err >&5
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); } && {
11391          test -z "$ac_c_werror_flag" ||
11392          test ! -s conftest.err
11393        } && test -s conftest.$ac_objext; then
11394   ac_header_compiler=yes
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399         ac_header_compiler=no
11400 fi
11401
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404 echo "${ECHO_T}$ac_header_compiler" >&6; }
11405
11406 # Is the header present?
11407 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11408 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415 #include <bluetooth/bluetooth.h>
11416 _ACEOF
11417 if { (ac_try="$ac_cpp conftest.$ac_ext"
11418 case "(($ac_try" in
11419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420   *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11424   ac_status=$?
11425   grep -v '^ *+' conftest.er1 >conftest.err
11426   rm -f conftest.er1
11427   cat conftest.err >&5
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); } >/dev/null && {
11430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11431          test ! -s conftest.err
11432        }; then
11433   ac_header_preproc=yes
11434 else
11435   echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11437
11438   ac_header_preproc=no
11439 fi
11440
11441 rm -f conftest.err conftest.$ac_ext
11442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 echo "${ECHO_T}$ac_header_preproc" >&6; }
11444
11445 # So?  What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11447   yes:no: )
11448     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11449 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11451 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11452     ac_header_preproc=yes
11453     ;;
11454   no:yes:* )
11455     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11456 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
11458 echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11460 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
11462 echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11464 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11466 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11467
11468     ;;
11469 esac
11470 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11471 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11472 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11476 fi
11477 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11478 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11479
11480 fi
11481 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11482
11483
11484 cat >>confdefs.h <<\_ACEOF
11485 #define PCAP_SUPPORT_BT 1
11486 _ACEOF
11487
11488                   BT_SRC=pcap-bt-linux.c
11489                   { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11490 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11491
11492                   #
11493                   # OK, does struct sockaddr_hci have an hci_channel
11494                   # member?
11495                   #
11496                   { echo "$as_me:$LINENO: checking if struct sockaddr_hci has hci_channel member" >&5
11497 echo $ECHO_N "checking if struct sockaddr_hci has hci_channel member... $ECHO_C" >&6; }
11498                   if test "${ac_cv_lbl_sockaddr_hci_has_hci_channel+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507
11508 #include <bluetooth/bluetooth.h>
11509 #include <bluetooth/hci.h>
11510
11511 int
11512 main ()
11513 {
11514 u_int i = sizeof(((struct sockaddr_hci *)0)->hci_channel)
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (ac_try="$ac_compile"
11521 case "(($ac_try" in
11522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523   *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526   (eval "$ac_compile") 2>conftest.er1
11527   ac_status=$?
11528   grep -v '^ *+' conftest.er1 >conftest.err
11529   rm -f conftest.er1
11530   cat conftest.err >&5
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); } && {
11533          test -z "$ac_c_werror_flag" ||
11534          test ! -s conftest.err
11535        } && test -s conftest.$ac_objext; then
11536   ac_cv_lbl_sockaddr_hci_has_hci_channel=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541         ac_cv_lbl_sockaddr_hci_has_hci_channel=no
11542 fi
11543
11544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 fi
11546
11547                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_hci_has_hci_channel" >&5
11548 echo "${ECHO_T}$ac_cv_lbl_sockaddr_hci_has_hci_channel" >&6; }
11549                     if test $ac_cv_lbl_sockaddr_hci_has_hci_channel = yes ; then
11550
11551 cat >>confdefs.h <<\_ACEOF
11552 #define SOCKADDR_HCI_HAS_HCI_CHANNEL
11553 _ACEOF
11554
11555                     fi
11556
11557 else
11558   { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11559 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11560
11561 fi
11562
11563
11564                 ;;
11565         *)
11566                 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11567 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11568                 ;;
11569         esac
11570
11571
11572 fi
11573
11574 # Check whether --enable-canusb was given.
11575 if test "${enable_canusb+set}" = set; then
11576   enableval=$enable_canusb;
11577 else
11578   enable_canusb=yes
11579 fi
11580
11581
11582 if test "x$enable_canusb" != "xno" ; then
11583                 case "$host_os" in
11584         linux*)
11585                 if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11586   { echo "$as_me:$LINENO: checking for libusb-1.0/libusb.h" >&5
11587 echo $ECHO_N "checking for libusb-1.0/libusb.h... $ECHO_C" >&6; }
11588 if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 fi
11591 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_1_0_libusb_h" >&5
11592 echo "${ECHO_T}$ac_cv_header_libusb_1_0_libusb_h" >&6; }
11593 else
11594   # Is the header compilable?
11595 { echo "$as_me:$LINENO: checking libusb-1.0/libusb.h usability" >&5
11596 echo $ECHO_N "checking libusb-1.0/libusb.h usability... $ECHO_C" >&6; }
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 $ac_includes_default
11604 #include <libusb-1.0/libusb.h>
11605 _ACEOF
11606 rm -f conftest.$ac_objext
11607 if { (ac_try="$ac_compile"
11608 case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_compile") 2>conftest.er1
11614   ac_status=$?
11615   grep -v '^ *+' conftest.er1 >conftest.err
11616   rm -f conftest.er1
11617   cat conftest.err >&5
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); } && {
11620          test -z "$ac_c_werror_flag" ||
11621          test ! -s conftest.err
11622        } && test -s conftest.$ac_objext; then
11623   ac_header_compiler=yes
11624 else
11625   echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628         ac_header_compiler=no
11629 fi
11630
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633 echo "${ECHO_T}$ac_header_compiler" >&6; }
11634
11635 # Is the header present?
11636 { echo "$as_me:$LINENO: checking libusb-1.0/libusb.h presence" >&5
11637 echo $ECHO_N "checking libusb-1.0/libusb.h presence... $ECHO_C" >&6; }
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #include <libusb-1.0/libusb.h>
11645 _ACEOF
11646 if { (ac_try="$ac_cpp conftest.$ac_ext"
11647 case "(($ac_try" in
11648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649   *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } >/dev/null && {
11659          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11660          test ! -s conftest.err
11661        }; then
11662   ac_header_preproc=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667   ac_header_preproc=no
11668 fi
11669
11670 rm -f conftest.err conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11672 echo "${ECHO_T}$ac_header_preproc" >&6; }
11673
11674 # So?  What about this header?
11675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11676   yes:no: )
11677     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
11678 echo "$as_me: WARNING: libusb-1.0/libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11679     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: proceeding with the compiler's result" >&5
11680 echo "$as_me: WARNING: libusb-1.0/libusb.h: proceeding with the compiler's result" >&2;}
11681     ac_header_preproc=yes
11682     ;;
11683   no:yes:* )
11684     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: present but cannot be compiled" >&5
11685 echo "$as_me: WARNING: libusb-1.0/libusb.h: present but cannot be compiled" >&2;}
11686     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h:     check for missing prerequisite headers?" >&5
11687 echo "$as_me: WARNING: libusb-1.0/libusb.h:     check for missing prerequisite headers?" >&2;}
11688     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: see the Autoconf documentation" >&5
11689 echo "$as_me: WARNING: libusb-1.0/libusb.h: see the Autoconf documentation" >&2;}
11690     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h:     section \"Present But Cannot Be Compiled\"" >&5
11691 echo "$as_me: WARNING: libusb-1.0/libusb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11692     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: proceeding with the preprocessor's result" >&5
11693 echo "$as_me: WARNING: libusb-1.0/libusb.h: proceeding with the preprocessor's result" >&2;}
11694     { echo "$as_me:$LINENO: WARNING: libusb-1.0/libusb.h: in the future, the compiler will take precedence" >&5
11695 echo "$as_me: WARNING: libusb-1.0/libusb.h: in the future, the compiler will take precedence" >&2;}
11696
11697     ;;
11698 esac
11699 { echo "$as_me:$LINENO: checking for libusb-1.0/libusb.h" >&5
11700 echo $ECHO_N "checking for libusb-1.0/libusb.h... $ECHO_C" >&6; }
11701 if test "${ac_cv_header_libusb_1_0_libusb_h+set}" = set; then
11702   echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704   ac_cv_header_libusb_1_0_libusb_h=$ac_header_preproc
11705 fi
11706 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_1_0_libusb_h" >&5
11707 echo "${ECHO_T}$ac_cv_header_libusb_1_0_libusb_h" >&6; }
11708
11709 fi
11710 if test $ac_cv_header_libusb_1_0_libusb_h = yes; then
11711
11712
11713 cat >>confdefs.h <<\_ACEOF
11714 #define PCAP_SUPPORT_CANUSB 1
11715 _ACEOF
11716
11717                     CANUSB_SRC=pcap-canusb-linux.c
11718                     LIBS="-lusb-1.0 -lpthread $LIBS"
11719                     { echo "$as_me:$LINENO: canusb sniffing is supported" >&5
11720 echo "$as_me: canusb sniffing is supported" >&6;}
11721
11722 else
11723   { echo "$as_me:$LINENO: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&5
11724 echo "$as_me: canusb sniffing is not supported; install libusb1.0 lib devel to enable it" >&6;}
11725
11726 fi
11727
11728
11729                 ;;
11730         *)
11731                 { echo "$as_me:$LINENO: no canusb support implemented for $host_os" >&5
11732 echo "$as_me: no canusb support implemented for $host_os" >&6;}
11733                 ;;
11734         esac
11735
11736
11737 fi
11738
11739 # Check whether --enable-can was given.
11740 if test "${enable_can+set}" = set; then
11741   enableval=$enable_can;
11742 else
11743   enable_can=yes
11744 fi
11745
11746
11747 if test "x$enable_can" != "xno" ; then
11748                 case "$host_os" in
11749         linux*)
11750                 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11751 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11752 if test "${ac_cv_header_linux_can_h+set}" = set; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761 #include <sys/socket.h>
11762
11763
11764 #include <linux/can.h>
11765 _ACEOF
11766 rm -f conftest.$ac_objext
11767 if { (ac_try="$ac_compile"
11768 case "(($ac_try" in
11769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770   *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773   (eval "$ac_compile") 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } && {
11780          test -z "$ac_c_werror_flag" ||
11781          test ! -s conftest.err
11782        } && test -s conftest.$ac_objext; then
11783   ac_cv_header_linux_can_h=yes
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788         ac_cv_header_linux_can_h=no
11789 fi
11790
11791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792 fi
11793 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11794 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11795 if test $ac_cv_header_linux_can_h = yes; then
11796
11797 cat >>confdefs.h <<\_ACEOF
11798 #define PCAP_SUPPORT_CAN 1
11799 _ACEOF
11800
11801                         CAN_SRC=pcap-can-linux.c
11802                         { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11803 echo "$as_me: CAN sniffing is supported" >&6;}
11804 else
11805   { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11806 echo "$as_me: CAN sniffing is not supported" >&6;}
11807 fi
11808
11809
11810                 ;;
11811         *)
11812                 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11813 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11814                 ;;
11815         esac
11816
11817
11818 fi
11819
11820 case "$host_os" in
11821 linux*)
11822
11823 for ac_header in linux/net_tstamp.h
11824 do
11825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 fi
11832 ac_res=`eval echo '${'$as_ac_Header'}'`
11833                { echo "$as_me:$LINENO: result: $ac_res" >&5
11834 echo "${ECHO_T}$ac_res" >&6; }
11835 else
11836   # Is the header compilable?
11837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h.  */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h.  */
11845 $ac_includes_default
11846 #include <$ac_header>
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_compile") 2>conftest.er1
11856   ac_status=$?
11857   grep -v '^ *+' conftest.er1 >conftest.err
11858   rm -f conftest.er1
11859   cat conftest.err >&5
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } && {
11862          test -z "$ac_c_werror_flag" ||
11863          test ! -s conftest.err
11864        } && test -s conftest.$ac_objext; then
11865   ac_header_compiler=yes
11866 else
11867   echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870         ac_header_compiler=no
11871 fi
11872
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875 echo "${ECHO_T}$ac_header_compiler" >&6; }
11876
11877 # Is the header present?
11878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886 #include <$ac_header>
11887 _ACEOF
11888 if { (ac_try="$ac_cpp conftest.$ac_ext"
11889 case "(($ac_try" in
11890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891   *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11895   ac_status=$?
11896   grep -v '^ *+' conftest.er1 >conftest.err
11897   rm -f conftest.er1
11898   cat conftest.err >&5
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } >/dev/null && {
11901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11902          test ! -s conftest.err
11903        }; then
11904   ac_header_preproc=yes
11905 else
11906   echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909   ac_header_preproc=no
11910 fi
11911
11912 rm -f conftest.err conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914 echo "${ECHO_T}$ac_header_preproc" >&6; }
11915
11916 # So?  What about this header?
11917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11918   yes:no: )
11919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923     ac_header_preproc=yes
11924     ;;
11925   no:yes:* )
11926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11938
11939     ;;
11940 esac
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   eval "$as_ac_Header=\$ac_header_preproc"
11947 fi
11948 ac_res=`eval echo '${'$as_ac_Header'}'`
11949                { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951
11952 fi
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954   cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 _ACEOF
11957
11958 fi
11959
11960 done
11961
11962         ;;
11963 *)
11964         { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11965 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11966         ;;
11967 esac
11968
11969 # Find a good install program.  We prefer a C program (faster),
11970 # so one script is as good as another.  But avoid the broken or
11971 # incompatible versions:
11972 # SysV /etc/install, /usr/sbin/install
11973 # SunOS /usr/etc/install
11974 # IRIX /sbin/install
11975 # AIX /bin/install
11976 # AmigaOS /C/install, which installs bootblocks on floppy discs
11977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11980 # OS/2's system install, which has a completely different semantic
11981 # ./install, which can be erroneously created by make from ./install.sh.
11982 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11984 if test -z "$INSTALL"; then
11985 if test "${ac_cv_path_install+set}" = set; then
11986   echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991   IFS=$as_save_IFS
11992   test -z "$as_dir" && as_dir=.
11993   # Account for people who put trailing slashes in PATH elements.
11994 case $as_dir/ in
11995   ./ | .// | /cC/* | \
11996   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11997   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11998   /usr/ucb/* ) ;;
11999   *)
12000     # OSF1 and SCO ODT 3.0 have their own names for install.
12001     # Don't use installbsd from OSF since it installs stuff as root
12002     # by default.
12003     for ac_prog in ginstall scoinst install; do
12004       for ac_exec_ext in '' $ac_executable_extensions; do
12005         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12006           if test $ac_prog = install &&
12007             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12008             # AIX install.  It has an incompatible calling convention.
12009             :
12010           elif test $ac_prog = install &&
12011             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12012             # program-specific install script used by HP pwplus--don't use.
12013             :
12014           else
12015             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12016             break 3
12017           fi
12018         fi
12019       done
12020     done
12021     ;;
12022 esac
12023 done
12024 IFS=$as_save_IFS
12025
12026
12027 fi
12028   if test "${ac_cv_path_install+set}" = set; then
12029     INSTALL=$ac_cv_path_install
12030   else
12031     # As a last resort, use the slow shell script.  Don't cache a
12032     # value for INSTALL within a source directory, because that will
12033     # break other packages using the cache if that directory is
12034     # removed, or if the value is a relative name.
12035     INSTALL=$ac_install_sh
12036   fi
12037 fi
12038 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12039 echo "${ECHO_T}$INSTALL" >&6; }
12040
12041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12042 # It thinks the first close brace ends the variable substitution.
12043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12044
12045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12046
12047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12048
12049
12050 ac_config_headers="$ac_config_headers config.h"
12051
12052
12053 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
12054
12055 cat >confcache <<\_ACEOF
12056 # This file is a shell script that caches the results of configure
12057 # tests run on this system so they can be shared between configure
12058 # scripts and configure runs, see configure's option --config-cache.
12059 # It is not useful on other systems.  If it contains results you don't
12060 # want to keep, you may remove or edit it.
12061 #
12062 # config.status only pays attention to the cache file if you give it
12063 # the --recheck option to rerun configure.
12064 #
12065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12067 # following values.
12068
12069 _ACEOF
12070
12071 # The following way of writing the cache mishandles newlines in values,
12072 # but we know of no workaround that is simple, portable, and efficient.
12073 # So, we kill variables containing newlines.
12074 # Ultrix sh set writes to stderr and can't be redirected directly,
12075 # and sets the high bit in the cache file unless we assign to the vars.
12076 (
12077   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12078     eval ac_val=\$$ac_var
12079     case $ac_val in #(
12080     *${as_nl}*)
12081       case $ac_var in #(
12082       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12083 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12084       esac
12085       case $ac_var in #(
12086       _ | IFS | as_nl) ;; #(
12087       *) $as_unset $ac_var ;;
12088       esac ;;
12089     esac
12090   done
12091
12092   (set) 2>&1 |
12093     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12094     *${as_nl}ac_space=\ *)
12095       # `set' does not quote correctly, so add quotes (double-quote
12096       # substitution turns \\\\ into \\, and sed turns \\ into \).
12097       sed -n \
12098         "s/'/'\\\\''/g;
12099           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12100       ;; #(
12101     *)
12102       # `set' quotes correctly as required by POSIX, so do not add quotes.
12103       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12104       ;;
12105     esac |
12106     sort
12107 ) |
12108   sed '
12109      /^ac_cv_env_/b end
12110      t clear
12111      :clear
12112      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12113      t end
12114      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12115      :end' >>confcache
12116 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12117   if test -w "$cache_file"; then
12118     test "x$cache_file" != "x/dev/null" &&
12119       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12120 echo "$as_me: updating cache $cache_file" >&6;}
12121     cat confcache >$cache_file
12122   else
12123     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12124 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12125   fi
12126 fi
12127 rm -f confcache
12128
12129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12130 # Let make expand exec_prefix.
12131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12132
12133 DEFS=-DHAVE_CONFIG_H
12134
12135 ac_libobjs=
12136 ac_ltlibobjs=
12137 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12138   # 1. Remove the extension, and $U if already installed.
12139   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12140   ac_i=`echo "$ac_i" | sed "$ac_script"`
12141   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12142   #    will be set to the directory where LIBOBJS objects are built.
12143   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12144   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12145 done
12146 LIBOBJS=$ac_libobjs
12147
12148 LTLIBOBJS=$ac_ltlibobjs
12149
12150
12151
12152 : ${CONFIG_STATUS=./config.status}
12153 ac_clean_files_save=$ac_clean_files
12154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12157 cat >$CONFIG_STATUS <<_ACEOF
12158 #! $SHELL
12159 # Generated by $as_me.
12160 # Run this file to recreate the current configuration.
12161 # Compiler output produced by configure, useful for debugging
12162 # configure, is in config.log if it exists.
12163
12164 debug=false
12165 ac_cs_recheck=false
12166 ac_cs_silent=false
12167 SHELL=\${CONFIG_SHELL-$SHELL}
12168 _ACEOF
12169
12170 cat >>$CONFIG_STATUS <<\_ACEOF
12171 ## --------------------- ##
12172 ## M4sh Initialization.  ##
12173 ## --------------------- ##
12174
12175 # Be more Bourne compatible
12176 DUALCASE=1; export DUALCASE # for MKS sh
12177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12178   emulate sh
12179   NULLCMD=:
12180   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12181   # is contrary to our usage.  Disable this feature.
12182   alias -g '${1+"$@"}'='"$@"'
12183   setopt NO_GLOB_SUBST
12184 else
12185   case `(set -o) 2>/dev/null` in
12186   *posix*) set -o posix ;;
12187 esac
12188
12189 fi
12190
12191
12192
12193
12194 # PATH needs CR
12195 # Avoid depending upon Character Ranges.
12196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12199 as_cr_digits='0123456789'
12200 as_cr_alnum=$as_cr_Letters$as_cr_digits
12201
12202 # The user is always right.
12203 if test "${PATH_SEPARATOR+set}" != set; then
12204   echo "#! /bin/sh" >conf$$.sh
12205   echo  "exit 0"   >>conf$$.sh
12206   chmod +x conf$$.sh
12207   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12208     PATH_SEPARATOR=';'
12209   else
12210     PATH_SEPARATOR=:
12211   fi
12212   rm -f conf$$.sh
12213 fi
12214
12215 # Support unset when possible.
12216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12217   as_unset=unset
12218 else
12219   as_unset=false
12220 fi
12221
12222
12223 # IFS
12224 # We need space, tab and new line, in precisely that order.  Quoting is
12225 # there to prevent editors from complaining about space-tab.
12226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12227 # splitting by setting IFS to empty value.)
12228 as_nl='
12229 '
12230 IFS=" ""        $as_nl"
12231
12232 # Find who we are.  Look in the path if we contain no directory separator.
12233 case $0 in
12234   *[\\/]* ) as_myself=$0 ;;
12235   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12241 done
12242 IFS=$as_save_IFS
12243
12244      ;;
12245 esac
12246 # We did not find ourselves, most probably we were run as `sh COMMAND'
12247 # in which case we are not to be found in the path.
12248 if test "x$as_myself" = x; then
12249   as_myself=$0
12250 fi
12251 if test ! -f "$as_myself"; then
12252   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12253   { (exit 1); exit 1; }
12254 fi
12255
12256 # Work around bugs in pre-3.0 UWIN ksh.
12257 for as_var in ENV MAIL MAILPATH
12258 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12259 done
12260 PS1='$ '
12261 PS2='> '
12262 PS4='+ '
12263
12264 # NLS nuisances.
12265 for as_var in \
12266   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12267   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12268   LC_TELEPHONE LC_TIME
12269 do
12270   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12271     eval $as_var=C; export $as_var
12272   else
12273     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12274   fi
12275 done
12276
12277 # Required to use basename.
12278 if expr a : '\(a\)' >/dev/null 2>&1 &&
12279    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12280   as_expr=expr
12281 else
12282   as_expr=false
12283 fi
12284
12285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12286   as_basename=basename
12287 else
12288   as_basename=false
12289 fi
12290
12291
12292 # Name of the executable.
12293 as_me=`$as_basename -- "$0" ||
12294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12295          X"$0" : 'X\(//\)$' \| \
12296          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12297 echo X/"$0" |
12298     sed '/^.*\/\([^/][^/]*\)\/*$/{
12299             s//\1/
12300             q
12301           }
12302           /^X\/\(\/\/\)$/{
12303             s//\1/
12304             q
12305           }
12306           /^X\/\(\/\).*/{
12307             s//\1/
12308             q
12309           }
12310           s/.*/./; q'`
12311
12312 # CDPATH.
12313 $as_unset CDPATH
12314
12315
12316
12317   as_lineno_1=$LINENO
12318   as_lineno_2=$LINENO
12319   test "x$as_lineno_1" != "x$as_lineno_2" &&
12320   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12321
12322   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12323   # uniformly replaced by the line number.  The first 'sed' inserts a
12324   # line-number line after each line using $LINENO; the second 'sed'
12325   # does the real work.  The second script uses 'N' to pair each
12326   # line-number line with the line containing $LINENO, and appends
12327   # trailing '-' during substitution so that $LINENO is not a special
12328   # case at line end.
12329   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12330   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12331   # E. McMahon (1931-1989) for sed's syntax.  :-)
12332   sed -n '
12333     p
12334     /[$]LINENO/=
12335   ' <$as_myself |
12336     sed '
12337       s/[$]LINENO.*/&-/
12338       t lineno
12339       b
12340       :lineno
12341       N
12342       :loop
12343       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12344       t loop
12345       s/-\n.*//
12346     ' >$as_me.lineno &&
12347   chmod +x "$as_me.lineno" ||
12348     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12349    { (exit 1); exit 1; }; }
12350
12351   # Don't try to exec as it changes $[0], causing all sort of problems
12352   # (the dirname of $[0] is not the place where we might find the
12353   # original and so on.  Autoconf is especially sensitive to this).
12354   . "./$as_me.lineno"
12355   # Exit status is that of the last command.
12356   exit
12357 }
12358
12359
12360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12361   as_dirname=dirname
12362 else
12363   as_dirname=false
12364 fi
12365
12366 ECHO_C= ECHO_N= ECHO_T=
12367 case `echo -n x` in
12368 -n*)
12369   case `echo 'x\c'` in
12370   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12371   *)   ECHO_C='\c';;
12372   esac;;
12373 *)
12374   ECHO_N='-n';;
12375 esac
12376
12377 if expr a : '\(a\)' >/dev/null 2>&1 &&
12378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12379   as_expr=expr
12380 else
12381   as_expr=false
12382 fi
12383
12384 rm -f conf$$ conf$$.exe conf$$.file
12385 if test -d conf$$.dir; then
12386   rm -f conf$$.dir/conf$$.file
12387 else
12388   rm -f conf$$.dir
12389   mkdir conf$$.dir
12390 fi
12391 echo >conf$$.file
12392 if ln -s conf$$.file conf$$ 2>/dev/null; then
12393   as_ln_s='ln -s'
12394   # ... but there are two gotchas:
12395   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12396   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12397   # In both cases, we have to default to `cp -p'.
12398   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12399     as_ln_s='cp -p'
12400 elif ln conf$$.file conf$$ 2>/dev/null; then
12401   as_ln_s=ln
12402 else
12403   as_ln_s='cp -p'
12404 fi
12405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12406 rmdir conf$$.dir 2>/dev/null
12407
12408 if mkdir -p . 2>/dev/null; then
12409   as_mkdir_p=:
12410 else
12411   test -d ./-p && rmdir ./-p
12412   as_mkdir_p=false
12413 fi
12414
12415 if test -x / >/dev/null 2>&1; then
12416   as_test_x='test -x'
12417 else
12418   if ls -dL / >/dev/null 2>&1; then
12419     as_ls_L_option=L
12420   else
12421     as_ls_L_option=
12422   fi
12423   as_test_x='
12424     eval sh -c '\''
12425       if test -d "$1"; then
12426         test -d "$1/.";
12427       else
12428         case $1 in
12429         -*)set "./$1";;
12430         esac;
12431         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12432         ???[sx]*):;;*)false;;esac;fi
12433     '\'' sh
12434   '
12435 fi
12436 as_executable_p=$as_test_x
12437
12438 # Sed expression to map a string onto a valid CPP name.
12439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12440
12441 # Sed expression to map a string onto a valid variable name.
12442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12443
12444
12445 exec 6>&1
12446
12447 # Save the log message, to keep $[0] and so on meaningful, and to
12448 # report actual input values of CONFIG_FILES etc. instead of their
12449 # values after options handling.
12450 ac_log="
12451 This file was extended by $as_me, which was
12452 generated by GNU Autoconf 2.61.  Invocation command line was
12453
12454   CONFIG_FILES    = $CONFIG_FILES
12455   CONFIG_HEADERS  = $CONFIG_HEADERS
12456   CONFIG_LINKS    = $CONFIG_LINKS
12457   CONFIG_COMMANDS = $CONFIG_COMMANDS
12458   $ $0 $@
12459
12460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12461 "
12462
12463 _ACEOF
12464
12465 cat >>$CONFIG_STATUS <<_ACEOF
12466 # Files that config.status was made for.
12467 config_files="$ac_config_files"
12468 config_headers="$ac_config_headers"
12469
12470 _ACEOF
12471
12472 cat >>$CONFIG_STATUS <<\_ACEOF
12473 ac_cs_usage="\
12474 \`$as_me' instantiates files from templates according to the
12475 current configuration.
12476
12477 Usage: $0 [OPTIONS] [FILE]...
12478
12479   -h, --help       print this help, then exit
12480   -V, --version    print version number and configuration settings, then exit
12481   -q, --quiet      do not print progress messages
12482   -d, --debug      don't remove temporary files
12483       --recheck    update $as_me by reconfiguring in the same conditions
12484   --file=FILE[:TEMPLATE]
12485                    instantiate the configuration file FILE
12486   --header=FILE[:TEMPLATE]
12487                    instantiate the configuration header FILE
12488
12489 Configuration files:
12490 $config_files
12491
12492 Configuration headers:
12493 $config_headers
12494
12495 Report bugs to <bug-autoconf@gnu.org>."
12496
12497 _ACEOF
12498 cat >>$CONFIG_STATUS <<_ACEOF
12499 ac_cs_version="\\
12500 config.status
12501 configured by $0, generated by GNU Autoconf 2.61,
12502   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12503
12504 Copyright (C) 2006 Free Software Foundation, Inc.
12505 This config.status script is free software; the Free Software Foundation
12506 gives unlimited permission to copy, distribute and modify it."
12507
12508 ac_pwd='$ac_pwd'
12509 srcdir='$srcdir'
12510 INSTALL='$INSTALL'
12511 _ACEOF
12512
12513 cat >>$CONFIG_STATUS <<\_ACEOF
12514 # If no file are specified by the user, then we need to provide default
12515 # value.  By we need to know if files were specified by the user.
12516 ac_need_defaults=:
12517 while test $# != 0
12518 do
12519   case $1 in
12520   --*=*)
12521     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12522     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12523     ac_shift=:
12524     ;;
12525   *)
12526     ac_option=$1
12527     ac_optarg=$2
12528     ac_shift=shift
12529     ;;
12530   esac
12531
12532   case $ac_option in
12533   # Handling of the options.
12534   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12535     ac_cs_recheck=: ;;
12536   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12537     echo "$ac_cs_version"; exit ;;
12538   --debug | --debu | --deb | --de | --d | -d )
12539     debug=: ;;
12540   --file | --fil | --fi | --f )
12541     $ac_shift
12542     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12543     ac_need_defaults=false;;
12544   --header | --heade | --head | --hea )
12545     $ac_shift
12546     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12547     ac_need_defaults=false;;
12548   --he | --h)
12549     # Conflict between --help and --header
12550     { echo "$as_me: error: ambiguous option: $1
12551 Try \`$0 --help' for more information." >&2
12552    { (exit 1); exit 1; }; };;
12553   --help | --hel | -h )
12554     echo "$ac_cs_usage"; exit ;;
12555   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12556   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12557     ac_cs_silent=: ;;
12558
12559   # This is an error.
12560   -*) { echo "$as_me: error: unrecognized option: $1
12561 Try \`$0 --help' for more information." >&2
12562    { (exit 1); exit 1; }; } ;;
12563
12564   *) ac_config_targets="$ac_config_targets $1"
12565      ac_need_defaults=false ;;
12566
12567   esac
12568   shift
12569 done
12570
12571 ac_configure_extra_args=
12572
12573 if $ac_cs_silent; then
12574   exec 6>/dev/null
12575   ac_configure_extra_args="$ac_configure_extra_args --silent"
12576 fi
12577
12578 _ACEOF
12579 cat >>$CONFIG_STATUS <<_ACEOF
12580 if \$ac_cs_recheck; then
12581   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12582   CONFIG_SHELL=$SHELL
12583   export CONFIG_SHELL
12584   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12585 fi
12586
12587 _ACEOF
12588 cat >>$CONFIG_STATUS <<\_ACEOF
12589 exec 5>>config.log
12590 {
12591   echo
12592   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12593 ## Running $as_me. ##
12594 _ASBOX
12595   echo "$ac_log"
12596 } >&5
12597
12598 _ACEOF
12599 cat >>$CONFIG_STATUS <<_ACEOF
12600 _ACEOF
12601
12602 cat >>$CONFIG_STATUS <<\_ACEOF
12603
12604 # Handling of arguments.
12605 for ac_config_target in $ac_config_targets
12606 do
12607   case $ac_config_target in
12608     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12609     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12610     "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
12611     "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
12612     "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12613     "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
12614     "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
12615     "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
12616     "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
12617     "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12618     "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12619     "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12620     "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12621     "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12622     "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12623
12624   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12625 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12626    { (exit 1); exit 1; }; };;
12627   esac
12628 done
12629
12630
12631 # If the user did not use the arguments to specify the items to instantiate,
12632 # then the envvar interface is used.  Set only those that are not.
12633 # We use the long form for the default assignment because of an extremely
12634 # bizarre bug on SunOS 4.1.3.
12635 if $ac_need_defaults; then
12636   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12637   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12638 fi
12639
12640 # Have a temporary directory for convenience.  Make it in the build tree
12641 # simply because there is no reason against having it here, and in addition,
12642 # creating and moving files from /tmp can sometimes cause problems.
12643 # Hook for its removal unless debugging.
12644 # Note that there is a small window in which the directory will not be cleaned:
12645 # after its creation but before its name has been assigned to `$tmp'.
12646 $debug ||
12647 {
12648   tmp=
12649   trap 'exit_status=$?
12650   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12651 ' 0
12652   trap '{ (exit 1); exit 1; }' 1 2 13 15
12653 }
12654 # Create a (secure) tmp directory for tmp files.
12655
12656 {
12657   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12658   test -n "$tmp" && test -d "$tmp"
12659 }  ||
12660 {
12661   tmp=./conf$$-$RANDOM
12662   (umask 077 && mkdir "$tmp")
12663 } ||
12664 {
12665    echo "$me: cannot create a temporary directory in ." >&2
12666    { (exit 1); exit 1; }
12667 }
12668
12669 #
12670 # Set up the sed scripts for CONFIG_FILES section.
12671 #
12672
12673 # No need to generate the scripts if there are no CONFIG_FILES.
12674 # This happens for instance when ./config.status config.h
12675 if test -n "$CONFIG_FILES"; then
12676
12677 _ACEOF
12678
12679
12680
12681 ac_delim='%!_!# '
12682 for ac_last_try in false false false false false :; do
12683   cat >conf$$subs.sed <<_ACEOF
12684 SHELL!$SHELL$ac_delim
12685 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12686 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12687 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12688 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12689 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12690 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12691 exec_prefix!$exec_prefix$ac_delim
12692 prefix!$prefix$ac_delim
12693 program_transform_name!$program_transform_name$ac_delim
12694 bindir!$bindir$ac_delim
12695 sbindir!$sbindir$ac_delim
12696 libexecdir!$libexecdir$ac_delim
12697 datarootdir!$datarootdir$ac_delim
12698 datadir!$datadir$ac_delim
12699 sysconfdir!$sysconfdir$ac_delim
12700 sharedstatedir!$sharedstatedir$ac_delim
12701 localstatedir!$localstatedir$ac_delim
12702 includedir!$includedir$ac_delim
12703 oldincludedir!$oldincludedir$ac_delim
12704 docdir!$docdir$ac_delim
12705 infodir!$infodir$ac_delim
12706 htmldir!$htmldir$ac_delim
12707 dvidir!$dvidir$ac_delim
12708 pdfdir!$pdfdir$ac_delim
12709 psdir!$psdir$ac_delim
12710 libdir!$libdir$ac_delim
12711 localedir!$localedir$ac_delim
12712 mandir!$mandir$ac_delim
12713 DEFS!$DEFS$ac_delim
12714 ECHO_C!$ECHO_C$ac_delim
12715 ECHO_N!$ECHO_N$ac_delim
12716 ECHO_T!$ECHO_T$ac_delim
12717 LIBS!$LIBS$ac_delim
12718 build_alias!$build_alias$ac_delim
12719 host_alias!$host_alias$ac_delim
12720 target_alias!$target_alias$ac_delim
12721 build!$build$ac_delim
12722 build_cpu!$build_cpu$ac_delim
12723 build_vendor!$build_vendor$ac_delim
12724 build_os!$build_os$ac_delim
12725 host!$host$ac_delim
12726 host_cpu!$host_cpu$ac_delim
12727 host_vendor!$host_vendor$ac_delim
12728 host_os!$host_os$ac_delim
12729 target!$target$ac_delim
12730 target_cpu!$target_cpu$ac_delim
12731 target_vendor!$target_vendor$ac_delim
12732 target_os!$target_os$ac_delim
12733 SHLICC2!$SHLICC2$ac_delim
12734 CC!$CC$ac_delim
12735 CFLAGS!$CFLAGS$ac_delim
12736 LDFLAGS!$LDFLAGS$ac_delim
12737 CPPFLAGS!$CPPFLAGS$ac_delim
12738 ac_ct_CC!$ac_ct_CC$ac_delim
12739 EXEEXT!$EXEEXT$ac_delim
12740 OBJEXT!$OBJEXT$ac_delim
12741 CPP!$CPP$ac_delim
12742 GREP!$GREP$ac_delim
12743 EGREP!$EGREP$ac_delim
12744 LIBOBJS!$LIBOBJS$ac_delim
12745 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12746 V_LEX!$V_LEX$ac_delim
12747 V_YACC!$V_YACC$ac_delim
12748 RANLIB!$RANLIB$ac_delim
12749 AR!$AR$ac_delim
12750 V_CCOPT!$V_CCOPT$ac_delim
12751 V_DEFS!$V_DEFS$ac_delim
12752 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12753 V_INCLS!$V_INCLS$ac_delim
12754 V_PCAP!$V_PCAP$ac_delim
12755 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12756 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12757 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12758 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12759 ADDLOBJS!$ADDLOBJS$ac_delim
12760 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12761 SSRC!$SSRC$ac_delim
12762 DYEXT!$DYEXT$ac_delim
12763 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12764 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12765 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12766 USB_SRC!$USB_SRC$ac_delim
12767 PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12768 NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12769 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12770 BT_SRC!$BT_SRC$ac_delim
12771 PCAP_SUPPORT_CANUSB!$PCAP_SUPPORT_CANUSB$ac_delim
12772 CANUSB_SRC!$CANUSB_SRC$ac_delim
12773 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12774 CAN_SRC!$CAN_SRC$ac_delim
12775 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12776 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12777 INSTALL_DATA!$INSTALL_DATA$ac_delim
12778 LTLIBOBJS!$LTLIBOBJS$ac_delim
12779 _ACEOF
12780
12781   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
12782     break
12783   elif $ac_last_try; then
12784     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12785 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12786    { (exit 1); exit 1; }; }
12787   else
12788     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12789   fi
12790 done
12791
12792 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12793 if test -n "$ac_eof"; then
12794   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12795   ac_eof=`expr $ac_eof + 1`
12796 fi
12797
12798 cat >>$CONFIG_STATUS <<_ACEOF
12799 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12801 _ACEOF
12802 sed '
12803 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12804 s/^/s,@/; s/!/@,|#_!!_#|/
12805 :n
12806 t n
12807 s/'"$ac_delim"'$/,g/; t
12808 s/$/\\/; p
12809 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12810 ' >>$CONFIG_STATUS <conf$$subs.sed
12811 rm -f conf$$subs.sed
12812 cat >>$CONFIG_STATUS <<_ACEOF
12813 :end
12814 s/|#_!!_#|//g
12815 CEOF$ac_eof
12816 _ACEOF
12817
12818
12819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12821 # trailing colons and then remove the whole line if VPATH becomes empty
12822 # (actually we leave an empty line to preserve line numbers).
12823 if test "x$srcdir" = x.; then
12824   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12825 s/:*\$(srcdir):*/:/
12826 s/:*\${srcdir}:*/:/
12827 s/:*@srcdir@:*/:/
12828 s/^\([^=]*=[     ]*\):*/\1/
12829 s/:*$//
12830 s/^[^=]*=[       ]*$//
12831 }'
12832 fi
12833
12834 cat >>$CONFIG_STATUS <<\_ACEOF
12835 fi # test -n "$CONFIG_FILES"
12836
12837
12838 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
12839 do
12840   case $ac_tag in
12841   :[FHLC]) ac_mode=$ac_tag; continue;;
12842   esac
12843   case $ac_mode$ac_tag in
12844   :[FHL]*:*);;
12845   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12846 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12847    { (exit 1); exit 1; }; };;
12848   :[FH]-) ac_tag=-:-;;
12849   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12850   esac
12851   ac_save_IFS=$IFS
12852   IFS=:
12853   set x $ac_tag
12854   IFS=$ac_save_IFS
12855   shift
12856   ac_file=$1
12857   shift
12858
12859   case $ac_mode in
12860   :L) ac_source=$1;;
12861   :[FH])
12862     ac_file_inputs=
12863     for ac_f
12864     do
12865       case $ac_f in
12866       -) ac_f="$tmp/stdin";;
12867       *) # Look for the file first in the build tree, then in the source tree
12868          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12869          # because $ac_f cannot contain `:'.
12870          test -f "$ac_f" ||
12871            case $ac_f in
12872            [\\/$]*) false;;
12873            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12874            esac ||
12875            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12876 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12877    { (exit 1); exit 1; }; };;
12878       esac
12879       ac_file_inputs="$ac_file_inputs $ac_f"
12880     done
12881
12882     # Let's still pretend it is `configure' which instantiates (i.e., don't
12883     # use $as_me), people would be surprised to read:
12884     #    /* config.h.  Generated by config.status.  */
12885     configure_input="Generated from "`IFS=:
12886           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12887     if test x"$ac_file" != x-; then
12888       configure_input="$ac_file.  $configure_input"
12889       { echo "$as_me:$LINENO: creating $ac_file" >&5
12890 echo "$as_me: creating $ac_file" >&6;}
12891     fi
12892
12893     case $ac_tag in
12894     *:-:* | *:-) cat >"$tmp/stdin";;
12895     esac
12896     ;;
12897   esac
12898
12899   ac_dir=`$as_dirname -- "$ac_file" ||
12900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12901          X"$ac_file" : 'X\(//\)[^/]' \| \
12902          X"$ac_file" : 'X\(//\)$' \| \
12903          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12904 echo X"$ac_file" |
12905     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12906             s//\1/
12907             q
12908           }
12909           /^X\(\/\/\)[^/].*/{
12910             s//\1/
12911             q
12912           }
12913           /^X\(\/\/\)$/{
12914             s//\1/
12915             q
12916           }
12917           /^X\(\/\).*/{
12918             s//\1/
12919             q
12920           }
12921           s/.*/./; q'`
12922   { as_dir="$ac_dir"
12923   case $as_dir in #(
12924   -*) as_dir=./$as_dir;;
12925   esac
12926   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12927     as_dirs=
12928     while :; do
12929       case $as_dir in #(
12930       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12931       *) as_qdir=$as_dir;;
12932       esac
12933       as_dirs="'$as_qdir' $as_dirs"
12934       as_dir=`$as_dirname -- "$as_dir" ||
12935 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936          X"$as_dir" : 'X\(//\)[^/]' \| \
12937          X"$as_dir" : 'X\(//\)$' \| \
12938          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12939 echo X"$as_dir" |
12940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12941             s//\1/
12942             q
12943           }
12944           /^X\(\/\/\)[^/].*/{
12945             s//\1/
12946             q
12947           }
12948           /^X\(\/\/\)$/{
12949             s//\1/
12950             q
12951           }
12952           /^X\(\/\).*/{
12953             s//\1/
12954             q
12955           }
12956           s/.*/./; q'`
12957       test -d "$as_dir" && break
12958     done
12959     test -z "$as_dirs" || eval "mkdir $as_dirs"
12960   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12961 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12962    { (exit 1); exit 1; }; }; }
12963   ac_builddir=.
12964
12965 case "$ac_dir" in
12966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12967 *)
12968   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12969   # A ".." for each directory in $ac_dir_suffix.
12970   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12971   case $ac_top_builddir_sub in
12972   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12973   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12974   esac ;;
12975 esac
12976 ac_abs_top_builddir=$ac_pwd
12977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12978 # for backward compatibility:
12979 ac_top_builddir=$ac_top_build_prefix
12980
12981 case $srcdir in
12982   .)  # We are building in place.
12983     ac_srcdir=.
12984     ac_top_srcdir=$ac_top_builddir_sub
12985     ac_abs_top_srcdir=$ac_pwd ;;
12986   [\\/]* | ?:[\\/]* )  # Absolute name.
12987     ac_srcdir=$srcdir$ac_dir_suffix;
12988     ac_top_srcdir=$srcdir
12989     ac_abs_top_srcdir=$srcdir ;;
12990   *) # Relative name.
12991     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12992     ac_top_srcdir=$ac_top_build_prefix$srcdir
12993     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12994 esac
12995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12996
12997
12998   case $ac_mode in
12999   :F)
13000   #
13001   # CONFIG_FILE
13002   #
13003
13004   case $INSTALL in
13005   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13006   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13007   esac
13008 _ACEOF
13009
13010 cat >>$CONFIG_STATUS <<\_ACEOF
13011 # If the template does not know about datarootdir, expand it.
13012 # FIXME: This hack should be removed a few years after 2.60.
13013 ac_datarootdir_hack=; ac_datarootdir_seen=
13014
13015 case `sed -n '/datarootdir/ {
13016   p
13017   q
13018 }
13019 /@datadir@/p
13020 /@docdir@/p
13021 /@infodir@/p
13022 /@localedir@/p
13023 /@mandir@/p
13024 ' $ac_file_inputs` in
13025 *datarootdir*) ac_datarootdir_seen=yes;;
13026 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13027   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13028 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13029 _ACEOF
13030 cat >>$CONFIG_STATUS <<_ACEOF
13031   ac_datarootdir_hack='
13032   s&@datadir@&$datadir&g
13033   s&@docdir@&$docdir&g
13034   s&@infodir@&$infodir&g
13035   s&@localedir@&$localedir&g
13036   s&@mandir@&$mandir&g
13037     s&\\\${datarootdir}&$datarootdir&g' ;;
13038 esac
13039 _ACEOF
13040
13041 # Neutralize VPATH when `$srcdir' = `.'.
13042 # Shell code in configure.ac might set extrasub.
13043 # FIXME: do we really want to maintain this feature?
13044 cat >>$CONFIG_STATUS <<_ACEOF
13045   sed "$ac_vpsub
13046 $extrasub
13047 _ACEOF
13048 cat >>$CONFIG_STATUS <<\_ACEOF
13049 :t
13050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13051 s&@configure_input@&$configure_input&;t t
13052 s&@top_builddir@&$ac_top_builddir_sub&;t t
13053 s&@srcdir@&$ac_srcdir&;t t
13054 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13055 s&@top_srcdir@&$ac_top_srcdir&;t t
13056 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13057 s&@builddir@&$ac_builddir&;t t
13058 s&@abs_builddir@&$ac_abs_builddir&;t t
13059 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13060 s&@INSTALL@&$ac_INSTALL&;t t
13061 $ac_datarootdir_hack
13062 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13063
13064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13065   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13066   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13067   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13068 which seems to be undefined.  Please make sure it is defined." >&5
13069 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13070 which seems to be undefined.  Please make sure it is defined." >&2;}
13071
13072   rm -f "$tmp/stdin"
13073   case $ac_file in
13074   -) cat "$tmp/out"; rm -f "$tmp/out";;
13075   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13076   esac
13077  ;;
13078   :H)
13079   #
13080   # CONFIG_HEADER
13081   #
13082 _ACEOF
13083
13084 # Transform confdefs.h into a sed script `conftest.defines', that
13085 # substitutes the proper values into config.h.in to produce config.h.
13086 rm -f conftest.defines conftest.tail
13087 # First, append a space to every undef/define line, to ease matching.
13088 echo 's/$/ /' >conftest.defines
13089 # Then, protect against being on the right side of a sed subst, or in
13090 # an unquoted here document, in config.status.  If some macros were
13091 # called several times there might be several #defines for the same
13092 # symbol, which is useless.  But do not sort them, since the last
13093 # AC_DEFINE must be honored.
13094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13095 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13096 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13097 # PARAMS is the parameter list in the macro definition--in most cases, it's
13098 # just an empty string.
13099 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13100 ac_dB='\\)[      (].*,\\1define\\2'
13101 ac_dC=' '
13102 ac_dD=' ,'
13103
13104 uniq confdefs.h |
13105   sed -n '
13106         t rset
13107         :rset
13108         s/^[     ]*#[    ]*define[       ][      ]*//
13109         t ok
13110         d
13111         :ok
13112         s/[\\&,]/\\&/g
13113         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13114         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13115   ' >>conftest.defines
13116
13117 # Remove the space that was appended to ease matching.
13118 # Then replace #undef with comments.  This is necessary, for
13119 # example, in the case of _POSIX_SOURCE, which is predefined and required
13120 # on some systems where configure will not decide to define it.
13121 # (The regexp can be short, since the line contains either #define or #undef.)
13122 echo 's/ $//
13123 s,^[     #]*u.*,/* & */,' >>conftest.defines
13124
13125 # Break up conftest.defines:
13126 ac_max_sed_lines=50
13127
13128 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13129 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13130 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13131 # et cetera.
13132 ac_in='$ac_file_inputs'
13133 ac_out='"$tmp/out1"'
13134 ac_nxt='"$tmp/out2"'
13135
13136 while :
13137 do
13138   # Write a here document:
13139     cat >>$CONFIG_STATUS <<_ACEOF
13140     # First, check the format of the line:
13141     cat >"\$tmp/defines.sed" <<\\CEOF
13142 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13143 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
13144 b
13145 :def
13146 _ACEOF
13147   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13148   echo 'CEOF
13149     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13150   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13151   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13152   grep . conftest.tail >/dev/null || break
13153   rm -f conftest.defines
13154   mv conftest.tail conftest.defines
13155 done
13156 rm -f conftest.defines conftest.tail
13157
13158 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13159 cat >>$CONFIG_STATUS <<\_ACEOF
13160   if test x"$ac_file" != x-; then
13161     echo "/* $configure_input  */" >"$tmp/config.h"
13162     cat "$ac_result" >>"$tmp/config.h"
13163     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13164       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13165 echo "$as_me: $ac_file is unchanged" >&6;}
13166     else
13167       rm -f $ac_file
13168       mv "$tmp/config.h" $ac_file
13169     fi
13170   else
13171     echo "/* $configure_input  */"
13172     cat "$ac_result"
13173   fi
13174   rm -f "$tmp/out12"
13175  ;;
13176
13177
13178   esac
13179
13180 done # for ac_tag
13181
13182
13183 { (exit 0); exit 0; }
13184 _ACEOF
13185 chmod +x $CONFIG_STATUS
13186 ac_clean_files=$ac_clean_files_save
13187
13188
13189 # configure is writing to config.log, and then calls config.status.
13190 # config.status does its own redirection, appending to config.log.
13191 # Unfortunately, on DOS this fails, as config.log is still kept open
13192 # by configure, so config.status won't be able to write to it; its
13193 # output is simply discarded.  So we exec the FD to /dev/null,
13194 # effectively closing config.log, so it can be properly (re)opened and
13195 # appended to by config.status.  When coming back to configure, we
13196 # need to make the FD available again.
13197 if test "$no_create" != yes; then
13198   ac_cs_success=:
13199   ac_config_status_args=
13200   test "$silent" = yes &&
13201     ac_config_status_args="$ac_config_status_args --quiet"
13202   exec 5>/dev/null
13203   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13204   exec 5>>config.log
13205   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13206   # would make configure fail if this is the last instruction.
13207   $ac_cs_success || { (exit 1); exit 1; }
13208 fi
13209
13210
13211 if test -f .devel ; then
13212         make depend
13213 fi
13214 exit 0