]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/libpcap/configure
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / libpcap / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.138.2.22 .
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 V_LEX
679 V_YACC
680 RANLIB
681 V_CCOPT
682 V_DEFS
683 V_INCLS
684 V_LIBS
685 V_PCAP
686 V_FINDALLDEVS
687 SSRC
688 DYEXT
689 DAGLIBS
690 DEPLIBS
691 MAN_FILE_FORMATS
692 MAN_MISC_INFO
693 PCAP_SUPPORT_USB
694 USB_SRC
695 PCAP_SUPPORT_BT
696 BT_SRC
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 LTLIBOBJS'
701 ac_subst_files=''
702       ac_precious_vars='build_alias
703 host_alias
704 target_alias
705 CC
706 CFLAGS
707 LDFLAGS
708 LIBS
709 CPPFLAGS
710 CPP'
711
712
713 # Initialize some variables set by options.
714 ac_init_help=
715 ac_init_version=false
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
718 cache_file=/dev/null
719 exec_prefix=NONE
720 no_create=
721 no_recursion=
722 prefix=NONE
723 program_prefix=NONE
724 program_suffix=NONE
725 program_transform_name=s,x,x,
726 silent=
727 site=
728 srcdir=
729 verbose=
730 x_includes=NONE
731 x_libraries=NONE
732
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE}'
750 infodir='${datarootdir}/info'
751 htmldir='${docdir}'
752 dvidir='${docdir}'
753 pdfdir='${docdir}'
754 psdir='${docdir}'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
758
759 ac_prev=
760 ac_dashdash=
761 for ac_option
762 do
763   # If the previous option needs an argument, assign it.
764   if test -n "$ac_prev"; then
765     eval $ac_prev=\$ac_option
766     ac_prev=
767     continue
768   fi
769
770   case $ac_option in
771   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772   *)    ac_optarg=yes ;;
773   esac
774
775   # Accept the important Cygnus configure options, so we can diagnose typos.
776
777   case $ac_dashdash$ac_option in
778   --)
779     ac_dashdash=yes ;;
780
781   -bindir | --bindir | --bindi | --bind | --bin | --bi)
782     ac_prev=bindir ;;
783   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784     bindir=$ac_optarg ;;
785
786   -build | --build | --buil | --bui | --bu)
787     ac_prev=build_alias ;;
788   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789     build_alias=$ac_optarg ;;
790
791   -cache-file | --cache-file | --cache-fil | --cache-fi \
792   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793     ac_prev=cache_file ;;
794   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796     cache_file=$ac_optarg ;;
797
798   --config-cache | -C)
799     cache_file=config.cache ;;
800
801   -datadir | --datadir | --datadi | --datad)
802     ac_prev=datadir ;;
803   -datadir=* | --datadir=* | --datadi=* | --datad=*)
804     datadir=$ac_optarg ;;
805
806   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807   | --dataroo | --dataro | --datar)
808     ac_prev=datarootdir ;;
809   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811     datarootdir=$ac_optarg ;;
812
813   -disable-* | --disable-*)
814     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815     # Reject names that are not valid shell variable names.
816     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818    { (exit 1); exit 1; }; }
819     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820     eval enable_$ac_feature=no ;;
821
822   -docdir | --docdir | --docdi | --doc | --do)
823     ac_prev=docdir ;;
824   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825     docdir=$ac_optarg ;;
826
827   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828     ac_prev=dvidir ;;
829   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830     dvidir=$ac_optarg ;;
831
832   -enable-* | --enable-*)
833     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834     # Reject names that are not valid shell variable names.
835     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837    { (exit 1); exit 1; }; }
838     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839     eval enable_$ac_feature=\$ac_optarg ;;
840
841   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843   | --exec | --exe | --ex)
844     ac_prev=exec_prefix ;;
845   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847   | --exec=* | --exe=* | --ex=*)
848     exec_prefix=$ac_optarg ;;
849
850   -gas | --gas | --ga | --g)
851     # Obsolete; use --with-gas.
852     with_gas=yes ;;
853
854   -help | --help | --hel | --he | -h)
855     ac_init_help=long ;;
856   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857     ac_init_help=recursive ;;
858   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859     ac_init_help=short ;;
860
861   -host | --host | --hos | --ho)
862     ac_prev=host_alias ;;
863   -host=* | --host=* | --hos=* | --ho=*)
864     host_alias=$ac_optarg ;;
865
866   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867     ac_prev=htmldir ;;
868   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869   | --ht=*)
870     htmldir=$ac_optarg ;;
871
872   -includedir | --includedir | --includedi | --included | --include \
873   | --includ | --inclu | --incl | --inc)
874     ac_prev=includedir ;;
875   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876   | --includ=* | --inclu=* | --incl=* | --inc=*)
877     includedir=$ac_optarg ;;
878
879   -infodir | --infodir | --infodi | --infod | --info | --inf)
880     ac_prev=infodir ;;
881   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882     infodir=$ac_optarg ;;
883
884   -libdir | --libdir | --libdi | --libd)
885     ac_prev=libdir ;;
886   -libdir=* | --libdir=* | --libdi=* | --libd=*)
887     libdir=$ac_optarg ;;
888
889   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890   | --libexe | --libex | --libe)
891     ac_prev=libexecdir ;;
892   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893   | --libexe=* | --libex=* | --libe=*)
894     libexecdir=$ac_optarg ;;
895
896   -localedir | --localedir | --localedi | --localed | --locale)
897     ac_prev=localedir ;;
898   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899     localedir=$ac_optarg ;;
900
901   -localstatedir | --localstatedir | --localstatedi | --localstated \
902   | --localstate | --localstat | --localsta | --localst | --locals)
903     ac_prev=localstatedir ;;
904   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906     localstatedir=$ac_optarg ;;
907
908   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909     ac_prev=mandir ;;
910   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911     mandir=$ac_optarg ;;
912
913   -nfp | --nfp | --nf)
914     # Obsolete; use --without-fp.
915     with_fp=no ;;
916
917   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918   | --no-cr | --no-c | -n)
919     no_create=yes ;;
920
921   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923     no_recursion=yes ;;
924
925   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927   | --oldin | --oldi | --old | --ol | --o)
928     ac_prev=oldincludedir ;;
929   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932     oldincludedir=$ac_optarg ;;
933
934   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935     ac_prev=prefix ;;
936   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937     prefix=$ac_optarg ;;
938
939   -program-prefix | --program-prefix | --program-prefi | --program-pref \
940   | --program-pre | --program-pr | --program-p)
941     ac_prev=program_prefix ;;
942   -program-prefix=* | --program-prefix=* | --program-prefi=* \
943   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944     program_prefix=$ac_optarg ;;
945
946   -program-suffix | --program-suffix | --program-suffi | --program-suff \
947   | --program-suf | --program-su | --program-s)
948     ac_prev=program_suffix ;;
949   -program-suffix=* | --program-suffix=* | --program-suffi=* \
950   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951     program_suffix=$ac_optarg ;;
952
953   -program-transform-name | --program-transform-name \
954   | --program-transform-nam | --program-transform-na \
955   | --program-transform-n | --program-transform- \
956   | --program-transform | --program-transfor \
957   | --program-transfo | --program-transf \
958   | --program-trans | --program-tran \
959   | --progr-tra | --program-tr | --program-t)
960     ac_prev=program_transform_name ;;
961   -program-transform-name=* | --program-transform-name=* \
962   | --program-transform-nam=* | --program-transform-na=* \
963   | --program-transform-n=* | --program-transform-=* \
964   | --program-transform=* | --program-transfor=* \
965   | --program-transfo=* | --program-transf=* \
966   | --program-trans=* | --program-tran=* \
967   | --progr-tra=* | --program-tr=* | --program-t=*)
968     program_transform_name=$ac_optarg ;;
969
970   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971     ac_prev=pdfdir ;;
972   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973     pdfdir=$ac_optarg ;;
974
975   -psdir | --psdir | --psdi | --psd | --ps)
976     ac_prev=psdir ;;
977   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978     psdir=$ac_optarg ;;
979
980   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981   | -silent | --silent | --silen | --sile | --sil)
982     silent=yes ;;
983
984   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985     ac_prev=sbindir ;;
986   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987   | --sbi=* | --sb=*)
988     sbindir=$ac_optarg ;;
989
990   -sharedstatedir | --sharedstatedir | --sharedstatedi \
991   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992   | --sharedst | --shareds | --shared | --share | --shar \
993   | --sha | --sh)
994     ac_prev=sharedstatedir ;;
995   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998   | --sha=* | --sh=*)
999     sharedstatedir=$ac_optarg ;;
1000
1001   -site | --site | --sit)
1002     ac_prev=site ;;
1003   -site=* | --site=* | --sit=*)
1004     site=$ac_optarg ;;
1005
1006   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007     ac_prev=srcdir ;;
1008   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009     srcdir=$ac_optarg ;;
1010
1011   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012   | --syscon | --sysco | --sysc | --sys | --sy)
1013     ac_prev=sysconfdir ;;
1014   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016     sysconfdir=$ac_optarg ;;
1017
1018   -target | --target | --targe | --targ | --tar | --ta | --t)
1019     ac_prev=target_alias ;;
1020   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021     target_alias=$ac_optarg ;;
1022
1023   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024     verbose=yes ;;
1025
1026   -version | --version | --versio | --versi | --vers | -V)
1027     ac_init_version=: ;;
1028
1029   -with-* | --with-*)
1030     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid package name: $ac_package" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036     eval with_$ac_package=\$ac_optarg ;;
1037
1038   -without-* | --without-*)
1039     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040     # Reject names that are not valid shell variable names.
1041     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042       { echo "$as_me: error: invalid package name: $ac_package" >&2
1043    { (exit 1); exit 1; }; }
1044     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045     eval with_$ac_package=no ;;
1046
1047   --x)
1048     # Obsolete; use --with-x.
1049     with_x=yes ;;
1050
1051   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052   | --x-incl | --x-inc | --x-in | --x-i)
1053     ac_prev=x_includes ;;
1054   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056     x_includes=$ac_optarg ;;
1057
1058   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060     ac_prev=x_libraries ;;
1061   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063     x_libraries=$ac_optarg ;;
1064
1065   -*) { echo "$as_me: error: unrecognized option: $ac_option
1066 Try \`$0 --help' for more information." >&2
1067    { (exit 1); exit 1; }; }
1068     ;;
1069
1070   *=*)
1071     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075    { (exit 1); exit 1; }; }
1076     eval $ac_envvar=\$ac_optarg
1077     export $ac_envvar ;;
1078
1079   *)
1080     # FIXME: should be removed in autoconf 3.0.
1081     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085     ;;
1086
1087   esac
1088 done
1089
1090 if test -n "$ac_prev"; then
1091   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092   { echo "$as_me: error: missing argument to $ac_option" >&2
1093    { (exit 1); exit 1; }; }
1094 fi
1095
1096 # Be sure to have absolute directory names.
1097 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098                 datadir sysconfdir sharedstatedir localstatedir includedir \
1099                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100                 libdir localedir mandir
1101 do
1102   eval ac_val=\$$ac_var
1103   case $ac_val in
1104     [\\/$]* | ?:[\\/]* )  continue;;
1105     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106   esac
1107   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108    { (exit 1); exit 1; }; }
1109 done
1110
1111 # There might be people who depend on the old broken behavior: `$host'
1112 # used to hold the argument of --host etc.
1113 # FIXME: To remove some day.
1114 build=$build_alias
1115 host=$host_alias
1116 target=$target_alias
1117
1118 # FIXME: To remove some day.
1119 if test "x$host_alias" != x; then
1120   if test "x$build_alias" = x; then
1121     cross_compiling=maybe
1122     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123     If a cross compiler is detected then cross compile mode will be used." >&2
1124   elif test "x$build_alias" != "x$host_alias"; then
1125     cross_compiling=yes
1126   fi
1127 fi
1128
1129 ac_tool_prefix=
1130 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131
1132 test "$silent" = yes && exec 6>/dev/null
1133
1134
1135 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136 ac_ls_di=`ls -di .` &&
1137 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138   { echo "$as_me: error: Working directory cannot be determined" >&2
1139    { (exit 1); exit 1; }; }
1140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141   { echo "$as_me: error: pwd does not report name of working directory" >&2
1142    { (exit 1); exit 1; }; }
1143
1144
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147   ac_srcdir_defaulted=yes
1148   # Try the directory containing this script, then the parent directory.
1149   ac_confdir=`$as_dirname -- "$0" ||
1150 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151          X"$0" : 'X\(//\)[^/]' \| \
1152          X"$0" : 'X\(//\)$' \| \
1153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 echo X"$0" |
1155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156             s//\1/
1157             q
1158           }
1159           /^X\(\/\/\)[^/].*/{
1160             s//\1/
1161             q
1162           }
1163           /^X\(\/\/\)$/{
1164             s//\1/
1165             q
1166           }
1167           /^X\(\/\).*/{
1168             s//\1/
1169             q
1170           }
1171           s/.*/./; q'`
1172   srcdir=$ac_confdir
1173   if test ! -r "$srcdir/$ac_unique_file"; then
1174     srcdir=..
1175   fi
1176 else
1177   ac_srcdir_defaulted=no
1178 fi
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182    { (exit 1); exit 1; }; }
1183 fi
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 ac_abs_confdir=`(
1186         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187    { (exit 1); exit 1; }; }
1188         pwd)`
1189 # When building in place, set srcdir=.
1190 if test "$ac_abs_confdir" = "$ac_pwd"; then
1191   srcdir=.
1192 fi
1193 # Remove unnecessary trailing slashes from srcdir.
1194 # Double slashes in file names in object file debugging info
1195 # mess up M-x gdb in Emacs.
1196 case $srcdir in
1197 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 esac
1199 for ac_var in $ac_precious_vars; do
1200   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201   eval ac_env_${ac_var}_value=\$${ac_var}
1202   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1204 done
1205
1206 #
1207 # Report the --help message.
1208 #
1209 if test "$ac_init_help" = "long"; then
1210   # Omit some internal or obsolete options to make the list less imposing.
1211   # This message is too long to be a string in the A/UX 3.1 sh.
1212   cat <<_ACEOF
1213 \`configure' configures this package to adapt to many kinds of systems.
1214
1215 Usage: $0 [OPTION]... [VAR=VALUE]...
1216
1217 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218 VAR=VALUE.  See below for descriptions of some of the useful variables.
1219
1220 Defaults for the options are specified in brackets.
1221
1222 Configuration:
1223   -h, --help              display this help and exit
1224       --help=short        display options specific to this package
1225       --help=recursive    display the short help of all the included packages
1226   -V, --version           display version information and exit
1227   -q, --quiet, --silent   do not print \`checking...' messages
1228       --cache-file=FILE   cache test results in FILE [disabled]
1229   -C, --config-cache      alias for \`--cache-file=config.cache'
1230   -n, --no-create         do not create output files
1231       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1232
1233 Installation directories:
1234   --prefix=PREFIX         install architecture-independent files in PREFIX
1235                           [$ac_default_prefix]
1236   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1237                           [PREFIX]
1238
1239 By default, \`make install' will install all the files in
1240 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1241 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242 for instance \`--prefix=\$HOME'.
1243
1244 For better control, use the options below.
1245
1246 Fine tuning of the installation directories:
1247   --bindir=DIR           user executables [EPREFIX/bin]
1248   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1249   --libexecdir=DIR       program executables [EPREFIX/libexec]
1250   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1251   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1252   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1253   --libdir=DIR           object code libraries [EPREFIX/lib]
1254   --includedir=DIR       C header files [PREFIX/include]
1255   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1256   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1257   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1258   --infodir=DIR          info documentation [DATAROOTDIR/info]
1259   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1260   --mandir=DIR           man documentation [DATAROOTDIR/man]
1261   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1262   --htmldir=DIR          html documentation [DOCDIR]
1263   --dvidir=DIR           dvi documentation [DOCDIR]
1264   --pdfdir=DIR           pdf documentation [DOCDIR]
1265   --psdir=DIR            ps documentation [DOCDIR]
1266 _ACEOF
1267
1268   cat <<\_ACEOF
1269
1270 System types:
1271   --build=BUILD     configure for building on BUILD [guessed]
1272   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1273   --target=TARGET   configure for building compilers for TARGET [HOST]
1274 _ACEOF
1275 fi
1276
1277 if test -n "$ac_init_help"; then
1278
1279   cat <<\_ACEOF
1280
1281 Optional Features:
1282   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1283   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1284   --disable-largefile     omit support for large files
1285   --disable-protochain    disable \"protochain\" insn
1286   --enable-ipv6           build IPv6-capable version [default=yes, if getaddrinfo available]
1287   --enable-optimizer-dbg  build optimizer debugging code
1288   --enable-yydebug        build parser debugging code
1289
1290 Optional Packages:
1291   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1292   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1293   --without-gcc           don't use gcc
1294   --with-sita             include SITA support
1295   --with-pcap=TYPE        use packet capture TYPE
1296   --with-dag[=DIR]        include Endace DAG support ("yes", "no" or DIR; default="yes" on BSD and Linux if present)
1297   --with-dag-includes=DIR   Endace DAG include directory
1298   --with-dag-libraries=DIR  Endace DAG library directory
1299   --with-septel[=DIR]     include Septel support (located in directory DIR, if supplied).  default=yes, on Linux, if present
1300   --without-flex          don't use flex
1301   --without-bison         don't use bison
1302
1303 Some influential environment variables:
1304   CC          C compiler command
1305   CFLAGS      C compiler flags
1306   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1307               nonstandard directory <lib dir>
1308   LIBS        libraries to pass to the linker, e.g. -l<library>
1309   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1310               you have headers in a nonstandard directory <include dir>
1311   CPP         C preprocessor
1312
1313 Use these variables to override the choices made by `configure' or to help
1314 it to find libraries and programs with nonstandard names/locations.
1315
1316 _ACEOF
1317 ac_status=$?
1318 fi
1319
1320 if test "$ac_init_help" = "recursive"; then
1321   # If there are subdirs, report their specific --help.
1322   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1323     test -d "$ac_dir" || continue
1324     ac_builddir=.
1325
1326 case "$ac_dir" in
1327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1328 *)
1329   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1330   # A ".." for each directory in $ac_dir_suffix.
1331   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1332   case $ac_top_builddir_sub in
1333   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1335   esac ;;
1336 esac
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1341
1342 case $srcdir in
1343   .)  # We are building in place.
1344     ac_srcdir=.
1345     ac_top_srcdir=$ac_top_builddir_sub
1346     ac_abs_top_srcdir=$ac_pwd ;;
1347   [\\/]* | ?:[\\/]* )  # Absolute name.
1348     ac_srcdir=$srcdir$ac_dir_suffix;
1349     ac_top_srcdir=$srcdir
1350     ac_abs_top_srcdir=$srcdir ;;
1351   *) # Relative name.
1352     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353     ac_top_srcdir=$ac_top_build_prefix$srcdir
1354     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1355 esac
1356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1357
1358     cd "$ac_dir" || { ac_status=$?; continue; }
1359     # Check for guested configure.
1360     if test -f "$ac_srcdir/configure.gnu"; then
1361       echo &&
1362       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363     elif test -f "$ac_srcdir/configure"; then
1364       echo &&
1365       $SHELL "$ac_srcdir/configure" --help=recursive
1366     else
1367       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1368     fi || ac_status=$?
1369     cd "$ac_pwd" || { ac_status=$?; break; }
1370   done
1371 fi
1372
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1375   cat <<\_ACEOF
1376 configure
1377 generated by GNU Autoconf 2.61
1378
1379 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1380 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1381 This configure script is free software; the Free Software Foundation
1382 gives unlimited permission to copy, distribute and modify it.
1383 _ACEOF
1384   exit
1385 fi
1386 cat >config.log <<_ACEOF
1387 This file contains any messages produced by compilers while
1388 running configure, to aid debugging if configure makes a mistake.
1389
1390 It was created by $as_me, which was
1391 generated by GNU Autoconf 2.61.  Invocation command line was
1392
1393   $ $0 $@
1394
1395 _ACEOF
1396 exec 5>>config.log
1397 {
1398 cat <<_ASUNAME
1399 ## --------- ##
1400 ## Platform. ##
1401 ## --------- ##
1402
1403 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1404 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1405 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1406 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1407 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1408
1409 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1410 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1411
1412 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1413 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1414 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1415 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1416 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1417 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1418 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1419
1420 _ASUNAME
1421
1422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 for as_dir in $PATH
1424 do
1425   IFS=$as_save_IFS
1426   test -z "$as_dir" && as_dir=.
1427   echo "PATH: $as_dir"
1428 done
1429 IFS=$as_save_IFS
1430
1431 } >&5
1432
1433 cat >&5 <<_ACEOF
1434
1435
1436 ## ----------- ##
1437 ## Core tests. ##
1438 ## ----------- ##
1439
1440 _ACEOF
1441
1442
1443 # Keep a trace of the command line.
1444 # Strip out --no-create and --no-recursion so they do not pile up.
1445 # Strip out --silent because we don't want to record it for future runs.
1446 # Also quote any args containing shell meta-characters.
1447 # Make two passes to allow for proper duplicate-argument suppression.
1448 ac_configure_args=
1449 ac_configure_args0=
1450 ac_configure_args1=
1451 ac_must_keep_next=false
1452 for ac_pass in 1 2
1453 do
1454   for ac_arg
1455   do
1456     case $ac_arg in
1457     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1458     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1459     | -silent | --silent | --silen | --sile | --sil)
1460       continue ;;
1461     *\'*)
1462       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1463     esac
1464     case $ac_pass in
1465     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1466     2)
1467       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1468       if test $ac_must_keep_next = true; then
1469         ac_must_keep_next=false # Got value, back to normal.
1470       else
1471         case $ac_arg in
1472           *=* | --config-cache | -C | -disable-* | --disable-* \
1473           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1474           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1475           | -with-* | --with-* | -without-* | --without-* | --x)
1476             case "$ac_configure_args0 " in
1477               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1478             esac
1479             ;;
1480           -* ) ac_must_keep_next=true ;;
1481         esac
1482       fi
1483       ac_configure_args="$ac_configure_args '$ac_arg'"
1484       ;;
1485     esac
1486   done
1487 done
1488 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1489 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1490
1491 # When interrupted or exit'd, cleanup temporary files, and complete
1492 # config.log.  We remove comments because anyway the quotes in there
1493 # would cause problems or look ugly.
1494 # WARNING: Use '\'' to represent an apostrophe within the trap.
1495 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1496 trap 'exit_status=$?
1497   # Save into config.log some information that might help in debugging.
1498   {
1499     echo
1500
1501     cat <<\_ASBOX
1502 ## ---------------- ##
1503 ## Cache variables. ##
1504 ## ---------------- ##
1505 _ASBOX
1506     echo
1507     # The following way of writing the cache mishandles newlines in values,
1508 (
1509   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1510     eval ac_val=\$$ac_var
1511     case $ac_val in #(
1512     *${as_nl}*)
1513       case $ac_var in #(
1514       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1515 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1516       esac
1517       case $ac_var in #(
1518       _ | IFS | as_nl) ;; #(
1519       *) $as_unset $ac_var ;;
1520       esac ;;
1521     esac
1522   done
1523   (set) 2>&1 |
1524     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1525     *${as_nl}ac_space=\ *)
1526       sed -n \
1527         "s/'\''/'\''\\\\'\'''\''/g;
1528           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1529       ;; #(
1530     *)
1531       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1532       ;;
1533     esac |
1534     sort
1535 )
1536     echo
1537
1538     cat <<\_ASBOX
1539 ## ----------------- ##
1540 ## Output variables. ##
1541 ## ----------------- ##
1542 _ASBOX
1543     echo
1544     for ac_var in $ac_subst_vars
1545     do
1546       eval ac_val=\$$ac_var
1547       case $ac_val in
1548       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549       esac
1550       echo "$ac_var='\''$ac_val'\''"
1551     done | sort
1552     echo
1553
1554     if test -n "$ac_subst_files"; then
1555       cat <<\_ASBOX
1556 ## ------------------- ##
1557 ## File substitutions. ##
1558 ## ------------------- ##
1559 _ASBOX
1560       echo
1561       for ac_var in $ac_subst_files
1562       do
1563         eval ac_val=\$$ac_var
1564         case $ac_val in
1565         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1566         esac
1567         echo "$ac_var='\''$ac_val'\''"
1568       done | sort
1569       echo
1570     fi
1571
1572     if test -s confdefs.h; then
1573       cat <<\_ASBOX
1574 ## ----------- ##
1575 ## confdefs.h. ##
1576 ## ----------- ##
1577 _ASBOX
1578       echo
1579       cat confdefs.h
1580       echo
1581     fi
1582     test "$ac_signal" != 0 &&
1583       echo "$as_me: caught signal $ac_signal"
1584     echo "$as_me: exit $exit_status"
1585   } >&5
1586   rm -f core *.core core.conftest.* &&
1587     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1588     exit $exit_status
1589 ' 0
1590 for ac_signal in 1 2 13 15; do
1591   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1592 done
1593 ac_signal=0
1594
1595 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1596 rm -f -r conftest* confdefs.h
1597
1598 # Predefined preprocessor variables.
1599
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_NAME "$PACKAGE_NAME"
1602 _ACEOF
1603
1604
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1607 _ACEOF
1608
1609
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1612 _ACEOF
1613
1614
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE_STRING "$PACKAGE_STRING"
1617 _ACEOF
1618
1619
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1622 _ACEOF
1623
1624
1625 # Let the site file select an alternate cache file if it wants to.
1626 # Prefer explicitly selected file to automatically selected ones.
1627 if test -n "$CONFIG_SITE"; then
1628   set x "$CONFIG_SITE"
1629 elif test "x$prefix" != xNONE; then
1630   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1631 else
1632   set x "$ac_default_prefix/share/config.site" \
1633         "$ac_default_prefix/etc/config.site"
1634 fi
1635 shift
1636 for ac_site_file
1637 do
1638   if test -r "$ac_site_file"; then
1639     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1640 echo "$as_me: loading site script $ac_site_file" >&6;}
1641     sed 's/^/| /' "$ac_site_file" >&5
1642     . "$ac_site_file"
1643   fi
1644 done
1645
1646 if test -r "$cache_file"; then
1647   # Some versions of bash will fail to source /dev/null (special
1648   # files actually), so we avoid doing that.
1649   if test -f "$cache_file"; then
1650     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1651 echo "$as_me: loading cache $cache_file" >&6;}
1652     case $cache_file in
1653       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1654       *)                      . "./$cache_file";;
1655     esac
1656   fi
1657 else
1658   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1659 echo "$as_me: creating cache $cache_file" >&6;}
1660   >$cache_file
1661 fi
1662
1663 # Check that the precious variables saved in the cache have kept the same
1664 # value.
1665 ac_cache_corrupted=false
1666 for ac_var in $ac_precious_vars; do
1667   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1668   eval ac_new_set=\$ac_env_${ac_var}_set
1669   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1670   eval ac_new_val=\$ac_env_${ac_var}_value
1671   case $ac_old_set,$ac_new_set in
1672     set,)
1673       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1674 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1675       ac_cache_corrupted=: ;;
1676     ,set)
1677       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1678 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1679       ac_cache_corrupted=: ;;
1680     ,);;
1681     *)
1682       if test "x$ac_old_val" != "x$ac_new_val"; then
1683         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1684 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1685         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1686 echo "$as_me:   former value:  $ac_old_val" >&2;}
1687         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1688 echo "$as_me:   current value: $ac_new_val" >&2;}
1689         ac_cache_corrupted=:
1690       fi;;
1691   esac
1692   # Pass precious variables to config.status.
1693   if test "$ac_new_set" = set; then
1694     case $ac_new_val in
1695     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1696     *) ac_arg=$ac_var=$ac_new_val ;;
1697     esac
1698     case " $ac_configure_args " in
1699       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1700       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1701     esac
1702   fi
1703 done
1704 if $ac_cache_corrupted; then
1705   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1706 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1707   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1708 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1709    { (exit 1); exit 1; }; }
1710 fi
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728 ac_ext=c
1729 ac_cpp='$CPP $CPPFLAGS'
1730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1733
1734
1735
1736 ac_aux_dir=
1737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1738   if test -f "$ac_dir/install-sh"; then
1739     ac_aux_dir=$ac_dir
1740     ac_install_sh="$ac_aux_dir/install-sh -c"
1741     break
1742   elif test -f "$ac_dir/install.sh"; then
1743     ac_aux_dir=$ac_dir
1744     ac_install_sh="$ac_aux_dir/install.sh -c"
1745     break
1746   elif test -f "$ac_dir/shtool"; then
1747     ac_aux_dir=$ac_dir
1748     ac_install_sh="$ac_aux_dir/shtool install -c"
1749     break
1750   fi
1751 done
1752 if test -z "$ac_aux_dir"; then
1753   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1754 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1755    { (exit 1); exit 1; }; }
1756 fi
1757
1758 # These three variables are undocumented and unsupported,
1759 # and are intended to be withdrawn in a future Autoconf release.
1760 # They can cause serious problems if a builder's source tree is in a directory
1761 # whose full name contains unusual characters.
1762 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1763 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1764 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1765
1766
1767 # Make sure we can run config.sub.
1768 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1769   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1770 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1771    { (exit 1); exit 1; }; }
1772
1773 { echo "$as_me:$LINENO: checking build system type" >&5
1774 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1775 if test "${ac_cv_build+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778   ac_build_alias=$build_alias
1779 test "x$ac_build_alias" = x &&
1780   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1781 test "x$ac_build_alias" = x &&
1782   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1783 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1784    { (exit 1); exit 1; }; }
1785 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1786   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1787 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1788    { (exit 1); exit 1; }; }
1789
1790 fi
1791 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1792 echo "${ECHO_T}$ac_cv_build" >&6; }
1793 case $ac_cv_build in
1794 *-*-*) ;;
1795 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1796 echo "$as_me: error: invalid value of canonical build" >&2;}
1797    { (exit 1); exit 1; }; };;
1798 esac
1799 build=$ac_cv_build
1800 ac_save_IFS=$IFS; IFS='-'
1801 set x $ac_cv_build
1802 shift
1803 build_cpu=$1
1804 build_vendor=$2
1805 shift; shift
1806 # Remember, the first character of IFS is used to create $*,
1807 # except with old shells:
1808 build_os=$*
1809 IFS=$ac_save_IFS
1810 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1811
1812
1813 { echo "$as_me:$LINENO: checking host system type" >&5
1814 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1815 if test "${ac_cv_host+set}" = set; then
1816   echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818   if test "x$host_alias" = x; then
1819   ac_cv_host=$ac_cv_build
1820 else
1821   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1822     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1823 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1824    { (exit 1); exit 1; }; }
1825 fi
1826
1827 fi
1828 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1829 echo "${ECHO_T}$ac_cv_host" >&6; }
1830 case $ac_cv_host in
1831 *-*-*) ;;
1832 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1833 echo "$as_me: error: invalid value of canonical host" >&2;}
1834    { (exit 1); exit 1; }; };;
1835 esac
1836 host=$ac_cv_host
1837 ac_save_IFS=$IFS; IFS='-'
1838 set x $ac_cv_host
1839 shift
1840 host_cpu=$1
1841 host_vendor=$2
1842 shift; shift
1843 # Remember, the first character of IFS is used to create $*,
1844 # except with old shells:
1845 host_os=$*
1846 IFS=$ac_save_IFS
1847 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1848
1849
1850 { echo "$as_me:$LINENO: checking target system type" >&5
1851 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1852 if test "${ac_cv_target+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test "x$target_alias" = x; then
1856   ac_cv_target=$ac_cv_host
1857 else
1858   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1859     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1861    { (exit 1); exit 1; }; }
1862 fi
1863
1864 fi
1865 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1866 echo "${ECHO_T}$ac_cv_target" >&6; }
1867 case $ac_cv_target in
1868 *-*-*) ;;
1869 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1870 echo "$as_me: error: invalid value of canonical target" >&2;}
1871    { (exit 1); exit 1; }; };;
1872 esac
1873 target=$ac_cv_target
1874 ac_save_IFS=$IFS; IFS='-'
1875 set x $ac_cv_target
1876 shift
1877 target_cpu=$1
1878 target_vendor=$2
1879 shift; shift
1880 # Remember, the first character of IFS is used to create $*,
1881 # except with old shells:
1882 target_os=$*
1883 IFS=$ac_save_IFS
1884 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1885
1886
1887 # The aliases save the names the user supplied, while $host etc.
1888 # will get canonicalized.
1889 test -n "$target_alias" &&
1890   test "$program_prefix$program_suffix$program_transform_name" = \
1891     NONENONEs,x,x, &&
1892   program_prefix=${target_alias}-
1893
1894
1895
1896
1897
1898
1899 # Check whether --with-gcc was given.
1900 if test "${with_gcc+set}" = set; then
1901   withval=$with_gcc;
1902 fi
1903
1904     V_CCOPT="-O"
1905     V_INCLS=""
1906     if test "${srcdir}" != "." ; then
1907             V_INCLS="-I\$(srcdir)"
1908     fi
1909     if test "${CFLAGS+set}" = set; then
1910             LBL_CFLAGS="$CFLAGS"
1911     fi
1912     if test -z "$CC" ; then
1913             case "$host_os" in
1914
1915             bsdi*)
1916                     # Extract the first word of "shlicc2", so it can be a program name with args.
1917 set dummy shlicc2; ac_word=$2
1918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$SHLICC2"; then
1924   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1933     ac_cv_prog_SHLICC2="yes"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939 IFS=$as_save_IFS
1940
1941   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1942 fi
1943 fi
1944 SHLICC2=$ac_cv_prog_SHLICC2
1945 if test -n "$SHLICC2"; then
1946   { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1947 echo "${ECHO_T}$SHLICC2" >&6; }
1948 else
1949   { echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6; }
1951 fi
1952
1953
1954                     if test $SHLICC2 = yes ; then
1955                             CC=shlicc2
1956                             export CC
1957                     fi
1958                     ;;
1959             esac
1960     fi
1961     if test -z "$CC" -a "$with_gcc" = no ; then
1962             CC=cc
1963             export CC
1964     fi
1965     ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 if test -n "$ac_tool_prefix"; then
1971   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$CC"; then
1979   ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994 IFS=$as_save_IFS
1995
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2002 else
2003   { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2005 fi
2006
2007
2008 fi
2009 if test -z "$ac_cv_prog_CC"; then
2010   ac_ct_CC=$CC
2011   # Extract the first word of "gcc", so it can be a program name with args.
2012 set dummy gcc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_ac_ct_CC="gcc"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047   if test "x$ac_ct_CC" = x; then
2048     CC=""
2049   else
2050     case $cross_compiling:$ac_tool_warned in
2051 yes:)
2052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet.  If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&5
2055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet.  If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2058 ac_tool_warned=yes ;;
2059 esac
2060     CC=$ac_ct_CC
2061   fi
2062 else
2063   CC="$ac_cv_prog_CC"
2064 fi
2065
2066 if test -z "$CC"; then
2067           if test -n "$ac_tool_prefix"; then
2068     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}cc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$CC"; then
2076   ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_prog_CC="${ac_tool_prefix}cc"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097   { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100   { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105   fi
2106 fi
2107 if test -z "$CC"; then
2108   # Extract the first word of "cc", so it can be a program name with args.
2109 set dummy cc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118   ac_prog_rejected=no
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   for ac_exec_ext in '' $ac_executable_extensions; do
2125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2127        ac_prog_rejected=yes
2128        continue
2129      fi
2130     ac_cv_prog_CC="cc"
2131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132     break 2
2133   fi
2134 done
2135 done
2136 IFS=$as_save_IFS
2137
2138 if test $ac_prog_rejected = yes; then
2139   # We found a bogon in the path, so make sure we never use it.
2140   set dummy $ac_cv_prog_CC
2141   shift
2142   if test $# != 0; then
2143     # We chose a different compiler from the bogus one.
2144     # However, it has the same basename, so the bogon will be chosen
2145     # first if we set CC to just the basename; use the full file name.
2146     shift
2147     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2148   fi
2149 fi
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162 fi
2163 if test -z "$CC"; then
2164   if test -n "$ac_tool_prefix"; then
2165   for ac_prog in cl.exe
2166   do
2167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$CC"; then
2175   ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193 fi
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196   { echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6; }
2198 else
2199   { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 fi
2202
2203
2204     test -n "$CC" && break
2205   done
2206 fi
2207 if test -z "$CC"; then
2208   ac_ct_CC=$CC
2209   for ac_prog in cl.exe
2210 do
2211   # Extract the first word of "$ac_prog", so it can be a program name with args.
2212 set dummy $ac_prog; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$ac_ct_CC"; then
2219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228     ac_cv_prog_ac_ct_CC="$ac_prog"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234 IFS=$as_save_IFS
2235
2236 fi
2237 fi
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6; }
2242 else
2243   { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2245 fi
2246
2247
2248   test -n "$ac_ct_CC" && break
2249 done
2250
2251   if test "x$ac_ct_CC" = x; then
2252     CC=""
2253   else
2254     case $cross_compiling:$ac_tool_warned in
2255 yes:)
2256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2257 whose name does not start with the host triplet.  If you think this
2258 configuration is useful to you, please write to autoconf@gnu.org." >&5
2259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2260 whose name does not start with the host triplet.  If you think this
2261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2262 ac_tool_warned=yes ;;
2263 esac
2264     CC=$ac_ct_CC
2265   fi
2266 fi
2267
2268 fi
2269
2270
2271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: no acceptable C compiler found in \$PATH
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276
2277 # Provide some information about the compiler.
2278 echo "$as_me:$LINENO: checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (ac_try="$ac_compiler --version >&5"
2281 case "(($ac_try" in
2282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283   *) ac_try_echo=$ac_try;;
2284 esac
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286   (eval "$ac_compiler --version >&5") 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }
2290 { (ac_try="$ac_compiler -v >&5"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296   (eval "$ac_compiler -v >&5") 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }
2300 { (ac_try="$ac_compiler -V >&5"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306   (eval "$ac_compiler -V >&5") 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }
2310
2311 cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2330 # of exeext.
2331 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 #
2335 # List of possible output files, starting from the most likely.
2336 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2337 # only as a last resort.  b.out is created by i960 compilers.
2338 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2339 #
2340 # The IRIX 6 linker writes into existing files which may not be
2341 # executable, retaining their permissions.  Remove them first so a
2342 # subsequent execution test works.
2343 ac_rmfiles=
2344 for ac_file in $ac_files
2345 do
2346   case $ac_file in
2347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2349   esac
2350 done
2351 rm -f $ac_rmfiles
2352
2353 if { (ac_try="$ac_link_default"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359   (eval "$ac_link_default") 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; then
2363   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2364 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2365 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2366 # so that the user can short-circuit this test for compilers unknown to
2367 # Autoconf.
2368 for ac_file in $ac_files ''
2369 do
2370   test -f "$ac_file" || continue
2371   case $ac_file in
2372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2373         ;;
2374     [ab].out )
2375         # We found the default executable, but exeext='' is most
2376         # certainly right.
2377         break;;
2378     *.* )
2379         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2380         then :; else
2381            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382         fi
2383         # We set ac_cv_exeext here because the later test for it is not
2384         # safe: cross compilers may not add the suffix if given an `-o'
2385         # argument, so we may need to know it at that point already.
2386         # Even if this section looks crufty: it has the advantage of
2387         # actually working.
2388         break;;
2389     * )
2390         break;;
2391   esac
2392 done
2393 test "$ac_cv_exeext" = no && ac_cv_exeext=
2394
2395 else
2396   ac_file=''
2397 fi
2398
2399 { echo "$as_me:$LINENO: result: $ac_file" >&5
2400 echo "${ECHO_T}$ac_file" >&6; }
2401 if test -z "$ac_file"; then
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: C compiler cannot create executables
2408 See \`config.log' for more details." >&2;}
2409    { (exit 77); exit 77; }; }
2410 fi
2411
2412 ac_exeext=$ac_cv_exeext
2413
2414 # Check that the compiler produces executables we can run.  If not, either
2415 # the compiler is broken, or we cross compile.
2416 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2418 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419 # If not cross compiling, check that we can run a simple program.
2420 if test "$cross_compiling" != yes; then
2421   if { ac_try='./$ac_file'
2422   { (case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; }; then
2431     cross_compiling=no
2432   else
2433     if test "$cross_compiling" = maybe; then
2434         cross_compiling=yes
2435     else
2436         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437 If you meant to cross compile, use \`--host'.
2438 See \`config.log' for more details." >&5
2439 echo "$as_me: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&2;}
2442    { (exit 1); exit 1; }; }
2443     fi
2444   fi
2445 fi
2446 { echo "$as_me:$LINENO: result: yes" >&5
2447 echo "${ECHO_T}yes" >&6; }
2448
2449 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450 ac_clean_files=$ac_clean_files_save
2451 # Check that the compiler produces executables we can run.  If not, either
2452 # the compiler is broken, or we cross compile.
2453 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2455 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456 echo "${ECHO_T}$cross_compiling" >&6; }
2457
2458 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2460 if { (ac_try="$ac_link"
2461 case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_link") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; then
2470   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2471 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with
2473 # `rm'.
2474 for ac_file in conftest.exe conftest conftest.*; do
2475   test -f "$ac_file" || continue
2476   case $ac_file in
2477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479           break;;
2480     * ) break;;
2481   esac
2482 done
2483 else
2484   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest$ac_cv_exeext
2492 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2494
2495 rm -f conftest.$ac_ext
2496 EXEEXT=$ac_cv_exeext
2497 ac_exeext=$EXEEXT
2498 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2500 if test "${ac_cv_objext+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.o conftest.obj
2519 if { (ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_compile") 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; then
2529   for ac_file in conftest.o conftest.obj conftest.*; do
2530   test -f "$ac_file" || continue;
2531   case $ac_file in
2532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2533     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2534        break;;
2535   esac
2536 done
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2544 See \`config.log' for more details." >&2;}
2545    { (exit 1); exit 1; }; }
2546 fi
2547
2548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2549 fi
2550 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2551 echo "${ECHO_T}$ac_cv_objext" >&6; }
2552 OBJEXT=$ac_cv_objext
2553 ac_objext=$OBJEXT
2554 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2556 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569 #ifndef __GNUC__
2570        choke me
2571 #endif
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_compile") 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } && {
2591          test -z "$ac_c_werror_flag" ||
2592          test ! -s conftest.err
2593        } && test -s conftest.$ac_objext; then
2594   ac_compiler_gnu=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599         ac_compiler_gnu=no
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2605 fi
2606 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_cc_g+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   ac_save_c_werror_flag=$ac_c_werror_flag
2617    ac_c_werror_flag=yes
2618    ac_cv_prog_cc_g=no
2619    CFLAGS="-g"
2620    cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h.  */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h.  */
2626
2627 int
2628 main ()
2629 {
2630
2631   ;
2632   return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2637 case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642   (eval "$ac_compile") 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } && {
2649          test -z "$ac_c_werror_flag" ||
2650          test ! -s conftest.err
2651        } && test -s conftest.$ac_objext; then
2652   ac_cv_prog_cc_g=yes
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657         CFLAGS=""
2658       cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664
2665 int
2666 main ()
2667 {
2668
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (ac_try="$ac_compile"
2675 case "(($ac_try" in
2676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677   *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680   (eval "$ac_compile") 2>conftest.er1
2681   ac_status=$?
2682   grep -v '^ *+' conftest.er1 >conftest.err
2683   rm -f conftest.er1
2684   cat conftest.err >&5
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); } && {
2687          test -z "$ac_c_werror_flag" ||
2688          test ! -s conftest.err
2689        } && test -s conftest.$ac_objext; then
2690   :
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695         ac_c_werror_flag=$ac_save_c_werror_flag
2696          CFLAGS="-g"
2697          cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_compile") 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } && {
2726          test -z "$ac_c_werror_flag" ||
2727          test ! -s conftest.err
2728        } && test -s conftest.$ac_objext; then
2729   ac_cv_prog_cc_g=yes
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734
2735 fi
2736
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 fi
2742
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744    ac_c_werror_flag=$ac_save_c_werror_flag
2745 fi
2746 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2748 if test "$ac_test_CFLAGS" = set; then
2749   CFLAGS=$ac_save_CFLAGS
2750 elif test $ac_cv_prog_cc_g = yes; then
2751   if test "$GCC" = yes; then
2752     CFLAGS="-g -O2"
2753   else
2754     CFLAGS="-g"
2755   fi
2756 else
2757   if test "$GCC" = yes; then
2758     CFLAGS="-O2"
2759   else
2760     CFLAGS=
2761   fi
2762 fi
2763 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2764 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_cc_c89+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   ac_cv_prog_cc_c89=no
2769 ac_save_CC=$CC
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2776 #include <stdarg.h>
2777 #include <stdio.h>
2778 #include <sys/types.h>
2779 #include <sys/stat.h>
2780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2781 struct buf { int x; };
2782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783 static char *e (p, i)
2784      char **p;
2785      int i;
2786 {
2787   return p[i];
2788 }
2789 static char *f (char * (*g) (char **, int), char **p, ...)
2790 {
2791   char *s;
2792   va_list v;
2793   va_start (v,p);
2794   s = g (p, va_arg (v,int));
2795   va_end (v);
2796   return s;
2797 }
2798
2799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2800    function prototypes and stuff, but not '\xHH' hex character constants.
2801    These don't provoke an error unfortunately, instead are silently treated
2802    as 'x'.  The following induces an error, until -std is added to get
2803    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2804    array size at least.  It's necessary to write '\x00'==0 to get something
2805    that's true only with -std.  */
2806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807
2808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2809    inside strings and character constants.  */
2810 #define FOO(x) 'x'
2811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2812
2813 int test (int i, double x);
2814 struct s1 {int (*f) (int a);};
2815 struct s2 {int (*f) (double a);};
2816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817 int argc;
2818 char **argv;
2819 int
2820 main ()
2821 {
2822 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2828         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 do
2830   CC="$ac_save_CC $ac_arg"
2831   rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_compile") 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } && {
2845          test -z "$ac_c_werror_flag" ||
2846          test ! -s conftest.err
2847        } && test -s conftest.$ac_objext; then
2848   ac_cv_prog_cc_c89=$ac_arg
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853
2854 fi
2855
2856 rm -f core conftest.err conftest.$ac_objext
2857   test "x$ac_cv_prog_cc_c89" != "xno" && break
2858 done
2859 rm -f conftest.$ac_ext
2860 CC=$ac_save_CC
2861
2862 fi
2863 # AC_CACHE_VAL
2864 case "x$ac_cv_prog_cc_c89" in
2865   x)
2866     { echo "$as_me:$LINENO: result: none needed" >&5
2867 echo "${ECHO_T}none needed" >&6; } ;;
2868   xno)
2869     { echo "$as_me:$LINENO: result: unsupported" >&5
2870 echo "${ECHO_T}unsupported" >&6; } ;;
2871   *)
2872     CC="$CC $ac_cv_prog_cc_c89"
2873     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2875 esac
2876
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884     if test "$GCC" = yes ; then
2885             if test "$SHLICC2" = yes ; then
2886                     ac_cv_lbl_gcc_vers=2
2887                     V_CCOPT="-O2"
2888             else
2889                     { echo "$as_me:$LINENO: checking gcc version" >&5
2890 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2891                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2895                             sed -e '/^gcc version /!d' \
2896                                 -e 's/^gcc version //' \
2897                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2898                                 -e 's/\..*//'`
2899 fi
2900
2901                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2902 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2903                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2904                             V_CCOPT="-O2"
2905                     fi
2906             fi
2907     else
2908             { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2909 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2910             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 #include <sys/types.h>
2921 int
2922 main ()
2923 {
2924 int frob(int, char *)
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_compile") 2>conftest.er1
2937   ac_status=$?
2938   grep -v '^ *+' conftest.er1 >conftest.err
2939   rm -f conftest.er1
2940   cat conftest.err >&5
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } && {
2943          test -z "$ac_c_werror_flag" ||
2944          test ! -s conftest.err
2945        } && test -s conftest.$ac_objext; then
2946   ac_cv_lbl_cc_ansi_prototypes=yes
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951         ac_cv_lbl_cc_ansi_prototypes=no
2952 fi
2953
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 fi
2956
2957             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2958 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2959             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2960                     case "$host_os" in
2961
2962                     hpux*)
2963                             { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2964 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2965                             savedcflags="$CFLAGS"
2966                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2967                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976 #include <sys/types.h>
2977 int
2978 main ()
2979 {
2980 int frob(int, char *)
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } && {
2999          test -z "$ac_c_werror_flag" ||
3000          test ! -s conftest.err
3001        } && test -s conftest.$ac_objext; then
3002   ac_cv_lbl_cc_hpux_cc_aa=yes
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007         ac_cv_lbl_cc_hpux_cc_aa=no
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 fi
3012
3013                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3014 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3015                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3016                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3017 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3018    { (exit 1); exit 1; }; }
3019                             fi
3020                             CFLAGS="$savedcflags"
3021                             V_CCOPT="-Aa $V_CCOPT"
3022
3023 cat >>confdefs.h <<\_ACEOF
3024 #define _HPUX_SOURCE 1
3025 _ACEOF
3026
3027                             ;;
3028
3029                     *)
3030                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3031 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3032    { (exit 1); exit 1; }; }
3033                             ;;
3034                     esac
3035             fi
3036             V_INCLS="$V_INCLS -I/usr/local/include"
3037             LDFLAGS="$LDFLAGS -L/usr/local/lib"
3038
3039             case "$host_os" in
3040
3041             irix*)
3042                     V_CCOPT="$V_CCOPT -xansi -signed -g3"
3043                     ;;
3044
3045             osf*)
3046                     V_CCOPT="$V_CCOPT -std1 -g3"
3047                     ;;
3048
3049             ultrix*)
3050                     { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3051 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3052                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #include <sys/types.h>
3062 int
3063 main ()
3064 {
3065 struct a { int b; };
3066                             void c(const struct a *)
3067   ;
3068   return 0;
3069 }
3070 _ACEOF
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078   (eval "$ac_compile") 2>conftest.er1
3079   ac_status=$?
3080   grep -v '^ *+' conftest.er1 >conftest.err
3081   rm -f conftest.er1
3082   cat conftest.err >&5
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); } && {
3085          test -z "$ac_c_werror_flag" ||
3086          test ! -s conftest.err
3087        } && test -s conftest.$ac_objext; then
3088   ac_cv_lbl_cc_const_proto=yes
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093         ac_cv_lbl_cc_const_proto=no
3094 fi
3095
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 fi
3098
3099                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3100 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3101                     if test $ac_cv_lbl_cc_const_proto = no ; then
3102                             cat >>confdefs.h <<\_ACEOF
3103 #define const
3104 _ACEOF
3105
3106                     fi
3107                     ;;
3108             esac
3109     fi
3110
3111 { echo "$as_me:$LINENO: checking for inline" >&5
3112 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3113     save_CFLAGS="$CFLAGS"
3114     CFLAGS="$V_CCOPT"
3115     if test "${ac_cv_lbl_inline+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118
3119         ac_cv_lbl_inline=""
3120         ac_lbl_cc_inline=no
3121         for ac_lbl_inline in inline __inline__ __inline
3122         do
3123             cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129 #define inline $ac_lbl_inline
3130                 static inline struct iltest *foo(void);
3131                 struct iltest {
3132                     int iltest1;
3133                     int iltest2;
3134                 };
3135
3136                 static inline struct iltest *
3137                 foo()
3138                 {
3139                     static struct iltest xxx;
3140
3141                     return &xxx;
3142                 }
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_compile") 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } && {
3165          test -z "$ac_c_werror_flag" ||
3166          test ! -s conftest.err
3167        } && test -s conftest.$ac_objext; then
3168   ac_lbl_cc_inline=yes
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177             if test "$ac_lbl_cc_inline" = yes ; then
3178                 break;
3179             fi
3180         done
3181         if test "$ac_lbl_cc_inline" = yes ; then
3182             ac_cv_lbl_inline=$ac_lbl_inline
3183         fi
3184 fi
3185
3186     CFLAGS="$save_CFLAGS"
3187     if test ! -z "$ac_cv_lbl_inline" ; then
3188         { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3189 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3190     else
3191         { echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6; }
3193     fi
3194
3195 cat >>confdefs.h <<_ACEOF
3196 #define inline $ac_cv_lbl_inline
3197 _ACEOF
3198
3199
3200 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3201 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3202 if test "${ac_cv___attribute__+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 #include <stdlib.h>
3214
3215 static void foo(void) __attribute__ ((noreturn));
3216
3217 static void
3218 foo(void)
3219 {
3220   exit(1);
3221 }
3222
3223 int
3224 main(int argc, char **argv)
3225 {
3226   foo();
3227 }
3228
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_compile") 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } && {
3244          test -z "$ac_c_werror_flag" ||
3245          test ! -s conftest.err
3246        } && test -s conftest.$ac_objext; then
3247   ac_cv___attribute__=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252         ac_cv___attribute__=no
3253 fi
3254
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 fi
3257
3258 if test "$ac_cv___attribute__" = "yes"; then
3259
3260 cat >>confdefs.h <<\_ACEOF
3261 #define HAVE___ATTRIBUTE__ 1
3262 _ACEOF
3263
3264   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3265 else
3266   V_DEFS="$V_DEFS -D_U_=\"\""
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3269 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3270
3271
3272 { echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
3273 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6; }
3274     if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 #       include "confdefs.h"
3285 #       include <sys/types.h>
3286 #       if STDC_HEADERS
3287 #       include <stdlib.h>
3288 #       include <stddef.h>
3289 #       endif
3290 int
3291 main ()
3292 {
3293 u_int8_t i
3294   ;
3295   return 0;
3296 }
3297 _ACEOF
3298 rm -f conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3300 case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_compile") 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } && {
3312          test -z "$ac_c_werror_flag" ||
3313          test ! -s conftest.err
3314        } && test -s conftest.$ac_objext; then
3315   ac_cv_lbl_have_u_int8_t=yes
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320         ac_cv_lbl_have_u_int8_t=no
3321 fi
3322
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 fi
3325
3326     { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
3327 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6; }
3328     if test $ac_cv_lbl_have_u_int8_t = no ; then
3329
3330 cat >>confdefs.h <<\_ACEOF
3331 #define u_int8_t u_char
3332 _ACEOF
3333
3334     fi
3335 { echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
3336 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6; }
3337     if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346
3347 #       include "confdefs.h"
3348 #       include <sys/types.h>
3349 #       if STDC_HEADERS
3350 #       include <stdlib.h>
3351 #       include <stddef.h>
3352 #       endif
3353 int
3354 main ()
3355 {
3356 u_int16_t i
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_compile") 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } && {
3375          test -z "$ac_c_werror_flag" ||
3376          test ! -s conftest.err
3377        } && test -s conftest.$ac_objext; then
3378   ac_cv_lbl_have_u_int16_t=yes
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383         ac_cv_lbl_have_u_int16_t=no
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388
3389     { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
3390 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6; }
3391     if test $ac_cv_lbl_have_u_int16_t = no ; then
3392
3393 cat >>confdefs.h <<\_ACEOF
3394 #define u_int16_t u_short
3395 _ACEOF
3396
3397     fi
3398 { echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
3399 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6; }
3400     if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 #       include "confdefs.h"
3411 #       include <sys/types.h>
3412 #       if STDC_HEADERS
3413 #       include <stdlib.h>
3414 #       include <stddef.h>
3415 #       endif
3416 int
3417 main ()
3418 {
3419 u_int32_t i
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_compile") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } && {
3438          test -z "$ac_c_werror_flag" ||
3439          test ! -s conftest.err
3440        } && test -s conftest.$ac_objext; then
3441   ac_cv_lbl_have_u_int32_t=yes
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446         ac_cv_lbl_have_u_int32_t=no
3447 fi
3448
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451
3452     { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
3453 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6; }
3454     if test $ac_cv_lbl_have_u_int32_t = no ; then
3455
3456 cat >>confdefs.h <<\_ACEOF
3457 #define u_int32_t u_int
3458 _ACEOF
3459
3460     fi
3461 { echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
3462 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6; }
3463     if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472
3473 #       include "confdefs.h"
3474 #       include <sys/types.h>
3475 #       if STDC_HEADERS
3476 #       include <stdlib.h>
3477 #       include <stddef.h>
3478 #       endif
3479 int
3480 main ()
3481 {
3482 u_int64_t i
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_compile") 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } && {
3501          test -z "$ac_c_werror_flag" ||
3502          test ! -s conftest.err
3503        } && test -s conftest.$ac_objext; then
3504   ac_cv_lbl_have_u_int64_t=yes
3505 else
3506   echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509         ac_cv_lbl_have_u_int64_t=no
3510 fi
3511
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514
3515     { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
3516 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6; }
3517     if test $ac_cv_lbl_have_u_int64_t = no ; then
3518
3519 cat >>confdefs.h <<\_ACEOF
3520 #define u_int64_t unsigned long long
3521 _ACEOF
3522
3523     fi
3524
3525 #
3526 # Try to arrange for large file support.
3527 #
3528 # Check whether --enable-largefile was given.
3529 if test "${enable_largefile+set}" = set; then
3530   enableval=$enable_largefile;
3531 fi
3532
3533 if test "$enable_largefile" != no; then
3534
3535   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3536 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3537 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   ac_cv_sys_largefile_CC=no
3541      if test "$GCC" != yes; then
3542        ac_save_CC=$CC
3543        while :; do
3544          # IRIX 6.2 and later do not support large files by default,
3545          # so use the C compiler's -n32 option if that helps.
3546          cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552 #include <sys/types.h>
3553  /* Check that off_t can represent 2**63 - 1 correctly.
3554     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3555     since some C++ compilers masquerading as C compilers
3556     incorrectly reject 9223372036854775807.  */
3557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3558   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3559                        && LARGE_OFF_T % 2147483647 == 1)
3560                       ? 1 : -1];
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569          rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576   (eval "$ac_compile") 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } && {
3583          test -z "$ac_c_werror_flag" ||
3584          test ! -s conftest.err
3585        } && test -s conftest.$ac_objext; then
3586   break
3587 else
3588   echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591
3592 fi
3593
3594 rm -f core conftest.err conftest.$ac_objext
3595          CC="$CC -n32"
3596          rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_compile") 2>conftest.er1
3604   ac_status=$?
3605   grep -v '^ *+' conftest.er1 >conftest.err
3606   rm -f conftest.er1
3607   cat conftest.err >&5
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); } && {
3610          test -z "$ac_c_werror_flag" ||
3611          test ! -s conftest.err
3612        } && test -s conftest.$ac_objext; then
3613   ac_cv_sys_largefile_CC=' -n32'; break
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618
3619 fi
3620
3621 rm -f core conftest.err conftest.$ac_objext
3622          break
3623        done
3624        CC=$ac_save_CC
3625        rm -f conftest.$ac_ext
3626     fi
3627 fi
3628 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3629 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3630   if test "$ac_cv_sys_largefile_CC" != no; then
3631     CC=$CC$ac_cv_sys_largefile_CC
3632   fi
3633
3634   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3635 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3636 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   while :; do
3640   cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646 #include <sys/types.h>
3647  /* Check that off_t can represent 2**63 - 1 correctly.
3648     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3649     since some C++ compilers masquerading as C compilers
3650     incorrectly reject 9223372036854775807.  */
3651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3652   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3653                        && LARGE_OFF_T % 2147483647 == 1)
3654                       ? 1 : -1];
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (ac_try="$ac_compile"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_compile") 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } && {
3677          test -z "$ac_c_werror_flag" ||
3678          test ! -s conftest.err
3679        } && test -s conftest.$ac_objext; then
3680   ac_cv_sys_file_offset_bits=no; break
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685
3686 fi
3687
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689   cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h.  */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h.  */
3695 #define _FILE_OFFSET_BITS 64
3696 #include <sys/types.h>
3697  /* Check that off_t can represent 2**63 - 1 correctly.
3698     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3699     since some C++ compilers masquerading as C compilers
3700     incorrectly reject 9223372036854775807.  */
3701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3702   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3703                        && LARGE_OFF_T % 2147483647 == 1)
3704                       ? 1 : -1];
3705 int
3706 main ()
3707 {
3708
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (ac_try="$ac_compile"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720   (eval "$ac_compile") 2>conftest.er1
3721   ac_status=$?
3722   grep -v '^ *+' conftest.er1 >conftest.err
3723   rm -f conftest.er1
3724   cat conftest.err >&5
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); } && {
3727          test -z "$ac_c_werror_flag" ||
3728          test ! -s conftest.err
3729        } && test -s conftest.$ac_objext; then
3730   ac_cv_sys_file_offset_bits=64; break
3731 else
3732   echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735
3736 fi
3737
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739   ac_cv_sys_file_offset_bits=unknown
3740   break
3741 done
3742 fi
3743 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3744 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3745 case $ac_cv_sys_file_offset_bits in #(
3746   no | unknown) ;;
3747   *)
3748 cat >>confdefs.h <<_ACEOF
3749 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3750 _ACEOF
3751 ;;
3752 esac
3753 rm -f conftest*
3754   if test $ac_cv_sys_file_offset_bits = unknown; then
3755     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3756 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3757 if test "${ac_cv_sys_large_files+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   while :; do
3761   cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767 #include <sys/types.h>
3768  /* Check that off_t can represent 2**63 - 1 correctly.
3769     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3770     since some C++ compilers masquerading as C compilers
3771     incorrectly reject 9223372036854775807.  */
3772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3773   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3774                        && LARGE_OFF_T % 2147483647 == 1)
3775                       ? 1 : -1];
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (ac_try="$ac_compile"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_compile") 2>conftest.er1
3792   ac_status=$?
3793   grep -v '^ *+' conftest.er1 >conftest.err
3794   rm -f conftest.er1
3795   cat conftest.err >&5
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); } && {
3798          test -z "$ac_c_werror_flag" ||
3799          test ! -s conftest.err
3800        } && test -s conftest.$ac_objext; then
3801   ac_cv_sys_large_files=no; break
3802 else
3803   echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806
3807 fi
3808
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816 #define _LARGE_FILES 1
3817 #include <sys/types.h>
3818  /* Check that off_t can represent 2**63 - 1 correctly.
3819     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3820     since some C++ compilers masquerading as C compilers
3821     incorrectly reject 9223372036854775807.  */
3822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3823   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3824                        && LARGE_OFF_T % 2147483647 == 1)
3825                       ? 1 : -1];
3826 int
3827 main ()
3828 {
3829
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841   (eval "$ac_compile") 2>conftest.er1
3842   ac_status=$?
3843   grep -v '^ *+' conftest.er1 >conftest.err
3844   rm -f conftest.er1
3845   cat conftest.err >&5
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); } && {
3848          test -z "$ac_c_werror_flag" ||
3849          test ! -s conftest.err
3850        } && test -s conftest.$ac_objext; then
3851   ac_cv_sys_large_files=1; break
3852 else
3853   echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856
3857 fi
3858
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860   ac_cv_sys_large_files=unknown
3861   break
3862 done
3863 fi
3864 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3865 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3866 case $ac_cv_sys_large_files in #(
3867   no | unknown) ;;
3868   *)
3869 cat >>confdefs.h <<_ACEOF
3870 #define _LARGE_FILES $ac_cv_sys_large_files
3871 _ACEOF
3872 ;;
3873 esac
3874 rm -f conftest*
3875   fi
3876 fi
3877
3878 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
3879 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
3880 if test "${ac_cv_sys_largefile_source+set}" = set; then
3881   echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883   while :; do
3884   cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h.  */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h.  */
3890 #include <stdio.h>
3891 int
3892 main ()
3893 {
3894 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3895   ;
3896   return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (ac_try="$ac_link"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_link") 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } && {
3913          test -z "$ac_c_werror_flag" ||
3914          test ! -s conftest.err
3915        } && test -s conftest$ac_exeext &&
3916        $as_test_x conftest$ac_exeext; then
3917   ac_cv_sys_largefile_source=no; break
3918 else
3919   echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922
3923 fi
3924
3925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3926       conftest$ac_exeext conftest.$ac_ext
3927   cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h.  */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h.  */
3933 #define _LARGEFILE_SOURCE 1
3934 #include <stdio.h>
3935 int
3936 main ()
3937 {
3938 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 rm -f conftest.$ac_objext conftest$ac_exeext
3944 if { (ac_try="$ac_link"
3945 case "(($ac_try" in
3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947   *) ac_try_echo=$ac_try;;
3948 esac
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950   (eval "$ac_link") 2>conftest.er1
3951   ac_status=$?
3952   grep -v '^ *+' conftest.er1 >conftest.err
3953   rm -f conftest.er1
3954   cat conftest.err >&5
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); } && {
3957          test -z "$ac_c_werror_flag" ||
3958          test ! -s conftest.err
3959        } && test -s conftest$ac_exeext &&
3960        $as_test_x conftest$ac_exeext; then
3961   ac_cv_sys_largefile_source=1; break
3962 else
3963   echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966
3967 fi
3968
3969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3970       conftest$ac_exeext conftest.$ac_ext
3971   ac_cv_sys_largefile_source=unknown
3972   break
3973 done
3974 fi
3975 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
3976 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
3977 case $ac_cv_sys_largefile_source in #(
3978   no | unknown) ;;
3979   *)
3980 cat >>confdefs.h <<_ACEOF
3981 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
3982 _ACEOF
3983 ;;
3984 esac
3985 rm -f conftest*
3986
3987 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
3988 # in glibc 2.1.3, but that breaks too many other things.
3989 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
3990 if test $ac_cv_sys_largefile_source != unknown; then
3991
3992 cat >>confdefs.h <<\_ACEOF
3993 #define HAVE_FSEEKO 1
3994 _ACEOF
3995
3996 fi
3997
3998
3999 ac_ext=c
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4005 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4006 # On Suns, sometimes $CPP names a directory.
4007 if test -n "$CPP" && test -d "$CPP"; then
4008   CPP=
4009 fi
4010 if test -z "$CPP"; then
4011   if test "${ac_cv_prog_CPP+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014       # Double quotes because CPP needs to be expanded
4015     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4016     do
4017       ac_preproc_ok=false
4018 for ac_c_preproc_warn_flag in '' yes
4019 do
4020   # Use a header file that comes with gcc, so configuring glibc
4021   # with a fresh cross-compiler works.
4022   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023   # <limits.h> exists even on freestanding compilers.
4024   # On the NeXT, cc -E runs the code through the compiler's parser,
4025   # not just through cpp. "Syntax error" is here to catch this case.
4026   cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h.  */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h.  */
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037                      Syntax error
4038 _ACEOF
4039 if { (ac_try="$ac_cpp conftest.$ac_ext"
4040 case "(($ac_try" in
4041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042   *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } >/dev/null && {
4052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4053          test ! -s conftest.err
4054        }; then
4055   :
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060   # Broken: fails on valid input.
4061 continue
4062 fi
4063
4064 rm -f conftest.err conftest.$ac_ext
4065
4066   # OK, works on sane cases.  Now check whether nonexistent headers
4067   # can be detected and how.
4068   cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #include <ac_nonexistent.h>
4075 _ACEOF
4076 if { (ac_try="$ac_cpp conftest.$ac_ext"
4077 case "(($ac_try" in
4078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079   *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } >/dev/null && {
4089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090          test ! -s conftest.err
4091        }; then
4092   # Broken: success on invalid input.
4093 continue
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098   # Passes both tests.
4099 ac_preproc_ok=:
4100 break
4101 fi
4102
4103 rm -f conftest.err conftest.$ac_ext
4104
4105 done
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then
4109   break
4110 fi
4111
4112     done
4113     ac_cv_prog_CPP=$CPP
4114
4115 fi
4116   CPP=$ac_cv_prog_CPP
4117 else
4118   ac_cv_prog_CPP=$CPP
4119 fi
4120 { echo "$as_me:$LINENO: result: $CPP" >&5
4121 echo "${ECHO_T}$CPP" >&6; }
4122 ac_preproc_ok=false
4123 for ac_c_preproc_warn_flag in '' yes
4124 do
4125   # Use a header file that comes with gcc, so configuring glibc
4126   # with a fresh cross-compiler works.
4127   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4128   # <limits.h> exists even on freestanding compilers.
4129   # On the NeXT, cc -E runs the code through the compiler's parser,
4130   # not just through cpp. "Syntax error" is here to catch this case.
4131   cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #ifdef __STDC__
4138 # include <limits.h>
4139 #else
4140 # include <assert.h>
4141 #endif
4142                      Syntax error
4143 _ACEOF
4144 if { (ac_try="$ac_cpp conftest.$ac_ext"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151   ac_status=$?
4152   grep -v '^ *+' conftest.er1 >conftest.err
4153   rm -f conftest.er1
4154   cat conftest.err >&5
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); } >/dev/null && {
4157          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4158          test ! -s conftest.err
4159        }; then
4160   :
4161 else
4162   echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165   # Broken: fails on valid input.
4166 continue
4167 fi
4168
4169 rm -f conftest.err conftest.$ac_ext
4170
4171   # OK, works on sane cases.  Now check whether nonexistent headers
4172   # can be detected and how.
4173   cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h.  */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h.  */
4179 #include <ac_nonexistent.h>
4180 _ACEOF
4181 if { (ac_try="$ac_cpp conftest.$ac_ext"
4182 case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188   ac_status=$?
4189   grep -v '^ *+' conftest.er1 >conftest.err
4190   rm -f conftest.er1
4191   cat conftest.err >&5
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } >/dev/null && {
4194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195          test ! -s conftest.err
4196        }; then
4197   # Broken: success on invalid input.
4198 continue
4199 else
4200   echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203   # Passes both tests.
4204 ac_preproc_ok=:
4205 break
4206 fi
4207
4208 rm -f conftest.err conftest.$ac_ext
4209
4210 done
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then
4214   :
4215 else
4216   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4217 See \`config.log' for more details." >&5
4218 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details." >&2;}
4220    { (exit 1); exit 1; }; }
4221 fi
4222
4223 ac_ext=c
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228
4229
4230 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4231 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4232 if test "${ac_cv_path_GREP+set}" = set; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   # Extract the first word of "grep ggrep" to use in msg output
4236 if test -z "$GREP"; then
4237 set dummy grep ggrep; ac_prog_name=$2
4238 if test "${ac_cv_path_GREP+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   ac_path_GREP_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_prog in grep ggrep; do
4249   for ac_exec_ext in '' $ac_executable_extensions; do
4250     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4251     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4252     # Check for GNU ac_path_GREP and select it if it is found.
4253   # Check for GNU $ac_path_GREP
4254 case `"$ac_path_GREP" --version 2>&1` in
4255 *GNU*)
4256   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4257 *)
4258   ac_count=0
4259   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4260   while :
4261   do
4262     cat "conftest.in" "conftest.in" >"conftest.tmp"
4263     mv "conftest.tmp" "conftest.in"
4264     cp "conftest.in" "conftest.nl"
4265     echo 'GREP' >> "conftest.nl"
4266     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268     ac_count=`expr $ac_count + 1`
4269     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4270       # Best one so far, save it but keep looking for a better one
4271       ac_cv_path_GREP="$ac_path_GREP"
4272       ac_path_GREP_max=$ac_count
4273     fi
4274     # 10*(2^10) chars as input seems more than enough
4275     test $ac_count -gt 10 && break
4276   done
4277   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 esac
4279
4280
4281     $ac_path_GREP_found && break 3
4282   done
4283 done
4284
4285 done
4286 IFS=$as_save_IFS
4287
4288
4289 fi
4290
4291 GREP="$ac_cv_path_GREP"
4292 if test -z "$GREP"; then
4293   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4294 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4295    { (exit 1); exit 1; }; }
4296 fi
4297
4298 else
4299   ac_cv_path_GREP=$GREP
4300 fi
4301
4302
4303 fi
4304 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4305 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4306  GREP="$ac_cv_path_GREP"
4307
4308
4309 { echo "$as_me:$LINENO: checking for egrep" >&5
4310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4311 if test "${ac_cv_path_EGREP+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315    then ac_cv_path_EGREP="$GREP -E"
4316    else
4317      # Extract the first word of "egrep" to use in msg output
4318 if test -z "$EGREP"; then
4319 set dummy egrep; ac_prog_name=$2
4320 if test "${ac_cv_path_EGREP+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330   for ac_prog in egrep; do
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4334     # Check for GNU ac_path_EGREP and select it if it is found.
4335   # Check for GNU $ac_path_EGREP
4336 case `"$ac_path_EGREP" --version 2>&1` in
4337 *GNU*)
4338   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339 *)
4340   ac_count=0
4341   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4342   while :
4343   do
4344     cat "conftest.in" "conftest.in" >"conftest.tmp"
4345     mv "conftest.tmp" "conftest.in"
4346     cp "conftest.in" "conftest.nl"
4347     echo 'EGREP' >> "conftest.nl"
4348     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350     ac_count=`expr $ac_count + 1`
4351     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352       # Best one so far, save it but keep looking for a better one
4353       ac_cv_path_EGREP="$ac_path_EGREP"
4354       ac_path_EGREP_max=$ac_count
4355     fi
4356     # 10*(2^10) chars as input seems more than enough
4357     test $ac_count -gt 10 && break
4358   done
4359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 esac
4361
4362
4363     $ac_path_EGREP_found && break 3
4364   done
4365 done
4366
4367 done
4368 IFS=$as_save_IFS
4369
4370
4371 fi
4372
4373 EGREP="$ac_cv_path_EGREP"
4374 if test -z "$EGREP"; then
4375   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4376 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4377    { (exit 1); exit 1; }; }
4378 fi
4379
4380 else
4381   ac_cv_path_EGREP=$EGREP
4382 fi
4383
4384
4385    fi
4386 fi
4387 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4388 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4389  EGREP="$ac_cv_path_EGREP"
4390
4391
4392 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4394 if test "${ac_cv_header_stdc+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403 #include <stdlib.h>
4404 #include <stdarg.h>
4405 #include <string.h>
4406 #include <float.h>
4407
4408 int
4409 main ()
4410 {
4411
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (ac_try="$ac_compile"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423   (eval "$ac_compile") 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } && {
4430          test -z "$ac_c_werror_flag" ||
4431          test ! -s conftest.err
4432        } && test -s conftest.$ac_objext; then
4433   ac_cv_header_stdc=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438         ac_cv_header_stdc=no
4439 fi
4440
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442
4443 if test $ac_cv_header_stdc = yes; then
4444   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 #include <string.h>
4452
4453 _ACEOF
4454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4455   $EGREP "memchr" >/dev/null 2>&1; then
4456   :
4457 else
4458   ac_cv_header_stdc=no
4459 fi
4460 rm -f conftest*
4461
4462 fi
4463
4464 if test $ac_cv_header_stdc = yes; then
4465   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4466   cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472 #include <stdlib.h>
4473
4474 _ACEOF
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476   $EGREP "free" >/dev/null 2>&1; then
4477   :
4478 else
4479   ac_cv_header_stdc=no
4480 fi
4481 rm -f conftest*
4482
4483 fi
4484
4485 if test $ac_cv_header_stdc = yes; then
4486   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4487   if test "$cross_compiling" = yes; then
4488   :
4489 else
4490   cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496 #include <ctype.h>
4497 #include <stdlib.h>
4498 #if ((' ' & 0x0FF) == 0x020)
4499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4501 #else
4502 # define ISLOWER(c) \
4503                    (('a' <= (c) && (c) <= 'i') \
4504                      || ('j' <= (c) && (c) <= 'r') \
4505                      || ('s' <= (c) && (c) <= 'z'))
4506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4507 #endif
4508
4509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4510 int
4511 main ()
4512 {
4513   int i;
4514   for (i = 0; i < 256; i++)
4515     if (XOR (islower (i), ISLOWER (i))
4516         || toupper (i) != TOUPPER (i))
4517       return 2;
4518   return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest$ac_exeext
4522 if { (ac_try="$ac_link"
4523 case "(($ac_try" in
4524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525   *) ac_try_echo=$ac_try;;
4526 esac
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528   (eval "$ac_link") 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4532   { (case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537   (eval "$ac_try") 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; }; then
4541   :
4542 else
4543   echo "$as_me: program exited with status $ac_status" >&5
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 ( exit $ac_status )
4548 ac_cv_header_stdc=no
4549 fi
4550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4551 fi
4552
4553
4554 fi
4555 fi
4556 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4557 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4558 if test $ac_cv_header_stdc = yes; then
4559
4560 cat >>confdefs.h <<\_ACEOF
4561 #define STDC_HEADERS 1
4562 _ACEOF
4563
4564 fi
4565
4566 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577                   inttypes.h stdint.h unistd.h
4578 do
4579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591 $ac_includes_default
4592
4593 #include <$ac_header>
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_compile") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } && {
4609          test -z "$ac_c_werror_flag" ||
4610          test ! -s conftest.err
4611        } && test -s conftest.$ac_objext; then
4612   eval "$as_ac_Header=yes"
4613 else
4614   echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617         eval "$as_ac_Header=no"
4618 fi
4619
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 ac_res=`eval echo '${'$as_ac_Header'}'`
4623                { echo "$as_me:$LINENO: result: $ac_res" >&5
4624 echo "${ECHO_T}$ac_res" >&6; }
4625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4626   cat >>confdefs.h <<_ACEOF
4627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4628 _ACEOF
4629
4630 fi
4631
4632 done
4633
4634
4635
4636
4637
4638
4639 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
4640 do
4641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4643   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 fi
4648 ac_res=`eval echo '${'$as_ac_Header'}'`
4649                { echo "$as_me:$LINENO: result: $ac_res" >&5
4650 echo "${ECHO_T}$ac_res" >&6; }
4651 else
4652   # Is the header compilable?
4653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661 $ac_includes_default
4662 #include <$ac_header>
4663 _ACEOF
4664 rm -f conftest.$ac_objext
4665 if { (ac_try="$ac_compile"
4666 case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_compile") 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } && {
4678          test -z "$ac_c_werror_flag" ||
4679          test ! -s conftest.err
4680        } && test -s conftest.$ac_objext; then
4681   ac_header_compiler=yes
4682 else
4683   echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686         ac_header_compiler=no
4687 fi
4688
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4691 echo "${ECHO_T}$ac_header_compiler" >&6; }
4692
4693 # Is the header present?
4694 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 #include <$ac_header>
4703 _ACEOF
4704 if { (ac_try="$ac_cpp conftest.$ac_ext"
4705 case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4711   ac_status=$?
4712   grep -v '^ *+' conftest.er1 >conftest.err
4713   rm -f conftest.er1
4714   cat conftest.err >&5
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); } >/dev/null && {
4717          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4718          test ! -s conftest.err
4719        }; then
4720   ac_header_preproc=yes
4721 else
4722   echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725   ac_header_preproc=no
4726 fi
4727
4728 rm -f conftest.err conftest.$ac_ext
4729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4730 echo "${ECHO_T}$ac_header_preproc" >&6; }
4731
4732 # So?  What about this header?
4733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4734   yes:no: )
4735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4739     ac_header_preproc=yes
4740     ;;
4741   no:yes:* )
4742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4754
4755     ;;
4756 esac
4757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4760   echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762   eval "$as_ac_Header=\$ac_header_preproc"
4763 fi
4764 ac_res=`eval echo '${'$as_ac_Header'}'`
4765                { echo "$as_me:$LINENO: result: $ac_res" >&5
4766 echo "${ECHO_T}$ac_res" >&6; }
4767
4768 fi
4769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770   cat >>confdefs.h <<_ACEOF
4771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772 _ACEOF
4773
4774 fi
4775
4776 done
4777
4778
4779 for ac_header in net/pfvar.h
4780 do
4781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787   cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 #include <sys/types.h>
4794 #include <sys/socket.h>
4795 #include <net/if.h>
4796
4797 #include <$ac_header>
4798 _ACEOF
4799 rm -f conftest.$ac_objext
4800 if { (ac_try="$ac_compile"
4801 case "(($ac_try" in
4802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803   *) ac_try_echo=$ac_try;;
4804 esac
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806   (eval "$ac_compile") 2>conftest.er1
4807   ac_status=$?
4808   grep -v '^ *+' conftest.er1 >conftest.err
4809   rm -f conftest.er1
4810   cat conftest.err >&5
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } && {
4813          test -z "$ac_c_werror_flag" ||
4814          test ! -s conftest.err
4815        } && test -s conftest.$ac_objext; then
4816   eval "$as_ac_Header=yes"
4817 else
4818   echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4820
4821         eval "$as_ac_Header=no"
4822 fi
4823
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 fi
4826 ac_res=`eval echo '${'$as_ac_Header'}'`
4827                { echo "$as_me:$LINENO: result: $ac_res" >&5
4828 echo "${ECHO_T}$ac_res" >&6; }
4829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4830   cat >>confdefs.h <<_ACEOF
4831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4832 _ACEOF
4833
4834 fi
4835
4836 done
4837
4838 if test "$ac_cv_header_net_pfvar_h" = yes; then
4839         #
4840         # Check for various PF actions.
4841         #
4842         { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
4843 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
4844         cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 #include <sys/types.h>
4851             #include <sys/socket.h>
4852             #include <net/if.h>
4853             #include <net/pfvar.h>
4854 int
4855 main ()
4856 {
4857 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
4858   ;
4859   return 0;
4860 }
4861 _ACEOF
4862 rm -f conftest.$ac_objext
4863 if { (ac_try="$ac_compile"
4864 case "(($ac_try" in
4865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866   *) ac_try_echo=$ac_try;;
4867 esac
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869   (eval "$ac_compile") 2>conftest.er1
4870   ac_status=$?
4871   grep -v '^ *+' conftest.er1 >conftest.err
4872   rm -f conftest.er1
4873   cat conftest.err >&5
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } && {
4876          test -z "$ac_c_werror_flag" ||
4877          test ! -s conftest.err
4878        } && test -s conftest.$ac_objext; then
4879
4880                 { echo "$as_me:$LINENO: result: yes" >&5
4881 echo "${ECHO_T}yes" >&6; }
4882
4883 cat >>confdefs.h <<\_ACEOF
4884 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
4885 _ACEOF
4886
4887
4888 else
4889   echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4891
4892         { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4894 fi
4895
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 fi
4898
4899 for ac_header in netinet/if_ether.h
4900 do
4901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 #include <sys/types.h>
4914 #include <sys/socket.h>
4915
4916 #include <$ac_header>
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (ac_try="$ac_compile"
4920 case "(($ac_try" in
4921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922   *) ac_try_echo=$ac_try;;
4923 esac
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925   (eval "$ac_compile") 2>conftest.er1
4926   ac_status=$?
4927   grep -v '^ *+' conftest.er1 >conftest.err
4928   rm -f conftest.er1
4929   cat conftest.err >&5
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); } && {
4932          test -z "$ac_c_werror_flag" ||
4933          test ! -s conftest.err
4934        } && test -s conftest.$ac_objext; then
4935   eval "$as_ac_Header=yes"
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940         eval "$as_ac_Header=no"
4941 fi
4942
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 ac_res=`eval echo '${'$as_ac_Header'}'`
4946                { echo "$as_me:$LINENO: result: $ac_res" >&5
4947 echo "${ECHO_T}$ac_res" >&6; }
4948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4949   cat >>confdefs.h <<_ACEOF
4950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4951 _ACEOF
4952
4953 fi
4954
4955 done
4956
4957 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4958         #
4959         # The simple test didn't work.
4960         # Do we need to include <net/if.h> first?
4961         # Unset ac_cv_header_netinet_if_ether_h so we don't
4962         # treat the previous failure as a cached value and
4963         # suppress the next test.
4964         #
4965         { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4966 echo "$as_me: Rechecking with some additional includes" >&6;}
4967         unset ac_cv_header_netinet_if_ether_h
4968
4969 for ac_header in netinet/if_ether.h
4970 do
4971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h.  */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h.  */
4983 #include <sys/types.h>
4984 #include <sys/socket.h>
4985 #include <netinet/in.h>
4986 struct mbuf;
4987 struct rtentry;
4988 #include <net/if.h>
4989
4990 #include <$ac_header>
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (ac_try="$ac_compile"
4994 case "(($ac_try" in
4995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996   *) ac_try_echo=$ac_try;;
4997 esac
4998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999   (eval "$ac_compile") 2>conftest.er1
5000   ac_status=$?
5001   grep -v '^ *+' conftest.er1 >conftest.err
5002   rm -f conftest.er1
5003   cat conftest.err >&5
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); } && {
5006          test -z "$ac_c_werror_flag" ||
5007          test ! -s conftest.err
5008        } && test -s conftest.$ac_objext; then
5009   eval "$as_ac_Header=yes"
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014         eval "$as_ac_Header=no"
5015 fi
5016
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 fi
5019 ac_res=`eval echo '${'$as_ac_Header'}'`
5020                { echo "$as_me:$LINENO: result: $ac_res" >&5
5021 echo "${ECHO_T}$ac_res" >&6; }
5022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5023   cat >>confdefs.h <<_ACEOF
5024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025 _ACEOF
5026
5027 fi
5028
5029 done
5030
5031 fi
5032
5033 if test "$GCC" = yes ; then
5034             { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5035 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5036             if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045 /*
5046                      * This generates a "duplicate case value" when fixincludes
5047                      * has not be run.
5048                      */
5049 #               include <sys/types.h>
5050 #               include <sys/time.h>
5051 #               include <sys/ioctl.h>
5052 #               ifdef HAVE_SYS_IOCCOM_H
5053 #               include <sys/ioccom.h>
5054 #               endif
5055 int
5056 main ()
5057 {
5058 switch (0) {
5059                     case _IO('A', 1):;
5060                     case _IO('B', 1):;
5061                     }
5062   ;
5063   return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (ac_try="$ac_compile"
5068 case "(($ac_try" in
5069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070   *) ac_try_echo=$ac_try;;
5071 esac
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073   (eval "$ac_compile") 2>conftest.er1
5074   ac_status=$?
5075   grep -v '^ *+' conftest.er1 >conftest.err
5076   rm -f conftest.er1
5077   cat conftest.err >&5
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); } && {
5080          test -z "$ac_c_werror_flag" ||
5081          test ! -s conftest.err
5082        } && test -s conftest.$ac_objext; then
5083   ac_cv_lbl_gcc_fixincludes=yes
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088         ac_cv_lbl_gcc_fixincludes=no
5089 fi
5090
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 fi
5093
5094             { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5095 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5096             if test $ac_cv_lbl_gcc_fixincludes = no ; then
5097                     # Don't cache failure
5098                     unset ac_cv_lbl_gcc_fixincludes
5099                     { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5100 echo "$as_me: error: see the INSTALL for more info" >&2;}
5101    { (exit 1); exit 1; }; }
5102             fi
5103     fi
5104
5105
5106
5107 for ac_func in strerror strlcpy
5108 do
5109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h.  */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h.  */
5121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5123 #define $ac_func innocuous_$ac_func
5124
5125 /* System header to define __stub macros and hopefully few prototypes,
5126     which can conflict with char $ac_func (); below.
5127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5128     <limits.h> exists even on freestanding compilers.  */
5129
5130 #ifdef __STDC__
5131 # include <limits.h>
5132 #else
5133 # include <assert.h>
5134 #endif
5135
5136 #undef $ac_func
5137
5138 /* Override any GCC internal prototype to avoid an error.
5139    Use char because int might match the return type of a GCC
5140    builtin and then its argument prototype would still apply.  */
5141 #ifdef __cplusplus
5142 extern "C"
5143 #endif
5144 char $ac_func ();
5145 /* The GNU C library defines this for functions which it implements
5146     to always fail with ENOSYS.  Some functions are actually named
5147     something starting with __ and the normal name is an alias.  */
5148 #if defined __stub_$ac_func || defined __stub___$ac_func
5149 choke me
5150 #endif
5151
5152 int
5153 main ()
5154 {
5155 return $ac_func ();
5156   ;
5157   return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5162 case "(($ac_try" in
5163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164   *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167   (eval "$ac_link") 2>conftest.er1
5168   ac_status=$?
5169   grep -v '^ *+' conftest.er1 >conftest.err
5170   rm -f conftest.er1
5171   cat conftest.err >&5
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); } && {
5174          test -z "$ac_c_werror_flag" ||
5175          test ! -s conftest.err
5176        } && test -s conftest$ac_exeext &&
5177        $as_test_x conftest$ac_exeext; then
5178   eval "$as_ac_var=yes"
5179 else
5180   echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183         eval "$as_ac_var=no"
5184 fi
5185
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187       conftest$ac_exeext conftest.$ac_ext
5188 fi
5189 ac_res=`eval echo '${'$as_ac_var'}'`
5190                { echo "$as_me:$LINENO: result: $ac_res" >&5
5191 echo "${ECHO_T}$ac_res" >&6; }
5192 if test `eval echo '${'$as_ac_var'}'` = yes; then
5193   cat >>confdefs.h <<_ACEOF
5194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5195 _ACEOF
5196
5197 fi
5198 done
5199
5200
5201 needsnprintf=no
5202
5203
5204 for ac_func in vsnprintf snprintf
5205 do
5206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h.  */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h.  */
5218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5220 #define $ac_func innocuous_$ac_func
5221
5222 /* System header to define __stub macros and hopefully few prototypes,
5223     which can conflict with char $ac_func (); below.
5224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225     <limits.h> exists even on freestanding compilers.  */
5226
5227 #ifdef __STDC__
5228 # include <limits.h>
5229 #else
5230 # include <assert.h>
5231 #endif
5232
5233 #undef $ac_func
5234
5235 /* Override any GCC internal prototype to avoid an error.
5236    Use char because int might match the return type of a GCC
5237    builtin and then its argument prototype would still apply.  */
5238 #ifdef __cplusplus
5239 extern "C"
5240 #endif
5241 char $ac_func ();
5242 /* The GNU C library defines this for functions which it implements
5243     to always fail with ENOSYS.  Some functions are actually named
5244     something starting with __ and the normal name is an alias.  */
5245 #if defined __stub_$ac_func || defined __stub___$ac_func
5246 choke me
5247 #endif
5248
5249 int
5250 main ()
5251 {
5252 return $ac_func ();
5253   ;
5254   return 0;
5255 }
5256 _ACEOF
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (ac_try="$ac_link"
5259 case "(($ac_try" in
5260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261   *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264   (eval "$ac_link") 2>conftest.er1
5265   ac_status=$?
5266   grep -v '^ *+' conftest.er1 >conftest.err
5267   rm -f conftest.er1
5268   cat conftest.err >&5
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } && {
5271          test -z "$ac_c_werror_flag" ||
5272          test ! -s conftest.err
5273        } && test -s conftest$ac_exeext &&
5274        $as_test_x conftest$ac_exeext; then
5275   eval "$as_ac_var=yes"
5276 else
5277   echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280         eval "$as_ac_var=no"
5281 fi
5282
5283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5284       conftest$ac_exeext conftest.$ac_ext
5285 fi
5286 ac_res=`eval echo '${'$as_ac_var'}'`
5287                { echo "$as_me:$LINENO: result: $ac_res" >&5
5288 echo "${ECHO_T}$ac_res" >&6; }
5289 if test `eval echo '${'$as_ac_var'}'` = yes; then
5290   cat >>confdefs.h <<_ACEOF
5291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5292 _ACEOF
5293
5294 else
5295   needsnprintf=yes
5296 fi
5297 done
5298
5299 if test $needsnprintf = yes; then
5300         case " $LIBOBJS " in
5301   *" snprintf.$ac_objext "* ) ;;
5302   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5303  ;;
5304 esac
5305
5306 fi
5307
5308 #
5309 # Do this before checking for ether_hostton(), as it's a
5310 # "gethostbyname() -ish function".
5311 #
5312
5313     # Most operating systems have gethostbyname() in the default searched
5314     # libraries (i.e. libc):
5315     # Some OSes (eg. Solaris) place it in libnsl
5316     # Some strange OSes (SINIX) have it in libsocket:
5317     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5318 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5319 if test "${ac_cv_search_gethostbyname+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   ac_func_search_save_LIBS=$LIBS
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329
5330 /* Override any GCC internal prototype to avoid an error.
5331    Use char because int might match the return type of a GCC
5332    builtin and then its argument prototype would still apply.  */
5333 #ifdef __cplusplus
5334 extern "C"
5335 #endif
5336 char gethostbyname ();
5337 int
5338 main ()
5339 {
5340 return gethostbyname ();
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 for ac_lib in '' nsl socket resolv; do
5346   if test -z "$ac_lib"; then
5347     ac_res="none required"
5348   else
5349     ac_res=-l$ac_lib
5350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5351   fi
5352   rm -f conftest.$ac_objext conftest$ac_exeext
5353 if { (ac_try="$ac_link"
5354 case "(($ac_try" in
5355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356   *) ac_try_echo=$ac_try;;
5357 esac
5358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359   (eval "$ac_link") 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } && {
5366          test -z "$ac_c_werror_flag" ||
5367          test ! -s conftest.err
5368        } && test -s conftest$ac_exeext &&
5369        $as_test_x conftest$ac_exeext; then
5370   ac_cv_search_gethostbyname=$ac_res
5371 else
5372   echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375
5376 fi
5377
5378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5379       conftest$ac_exeext
5380   if test "${ac_cv_search_gethostbyname+set}" = set; then
5381   break
5382 fi
5383 done
5384 if test "${ac_cv_search_gethostbyname+set}" = set; then
5385   :
5386 else
5387   ac_cv_search_gethostbyname=no
5388 fi
5389 rm conftest.$ac_ext
5390 LIBS=$ac_func_search_save_LIBS
5391 fi
5392 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5393 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
5394 ac_res=$ac_cv_search_gethostbyname
5395 if test "$ac_res" != no; then
5396   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5397
5398 fi
5399
5400     # Unfortunately libsocket sometimes depends on libnsl and
5401     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5402     if test "$ac_cv_search_gethostbyname" = "no"
5403     then
5404         { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
5405 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
5406 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   ac_check_lib_save_LIBS=$LIBS
5410 LIBS="-lsocket -lnsl $LIBS"
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417
5418 /* Override any GCC internal prototype to avoid an error.
5419    Use char because int might match the return type of a GCC
5420    builtin and then its argument prototype would still apply.  */
5421 #ifdef __cplusplus
5422 extern "C"
5423 #endif
5424 char gethostbyname ();
5425 int
5426 main ()
5427 {
5428 return gethostbyname ();
5429   ;
5430   return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (ac_try="$ac_link"
5435 case "(($ac_try" in
5436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437   *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440   (eval "$ac_link") 2>conftest.er1
5441   ac_status=$?
5442   grep -v '^ *+' conftest.er1 >conftest.err
5443   rm -f conftest.er1
5444   cat conftest.err >&5
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); } && {
5447          test -z "$ac_c_werror_flag" ||
5448          test ! -s conftest.err
5449        } && test -s conftest$ac_exeext &&
5450        $as_test_x conftest$ac_exeext; then
5451   ac_cv_lib_socket_gethostbyname=yes
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456         ac_cv_lib_socket_gethostbyname=no
5457 fi
5458
5459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460       conftest$ac_exeext conftest.$ac_ext
5461 LIBS=$ac_check_lib_save_LIBS
5462 fi
5463 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5464 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5465 if test $ac_cv_lib_socket_gethostbyname = yes; then
5466   LIBS="-lsocket -lnsl $LIBS"
5467 fi
5468
5469     fi
5470     { echo "$as_me:$LINENO: checking for library containing socket" >&5
5471 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5472 if test "${ac_cv_search_socket+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   ac_func_search_save_LIBS=$LIBS
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482
5483 /* Override any GCC internal prototype to avoid an error.
5484    Use char because int might match the return type of a GCC
5485    builtin and then its argument prototype would still apply.  */
5486 #ifdef __cplusplus
5487 extern "C"
5488 #endif
5489 char socket ();
5490 int
5491 main ()
5492 {
5493 return socket ();
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 for ac_lib in '' socket; do
5499   if test -z "$ac_lib"; then
5500     ac_res="none required"
5501   else
5502     ac_res=-l$ac_lib
5503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5504   fi
5505   rm -f conftest.$ac_objext conftest$ac_exeext
5506 if { (ac_try="$ac_link"
5507 case "(($ac_try" in
5508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509   *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512   (eval "$ac_link") 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } && {
5519          test -z "$ac_c_werror_flag" ||
5520          test ! -s conftest.err
5521        } && test -s conftest$ac_exeext &&
5522        $as_test_x conftest$ac_exeext; then
5523   ac_cv_search_socket=$ac_res
5524 else
5525   echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5527
5528
5529 fi
5530
5531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5532       conftest$ac_exeext
5533   if test "${ac_cv_search_socket+set}" = set; then
5534   break
5535 fi
5536 done
5537 if test "${ac_cv_search_socket+set}" = set; then
5538   :
5539 else
5540   ac_cv_search_socket=no
5541 fi
5542 rm conftest.$ac_ext
5543 LIBS=$ac_func_search_save_LIBS
5544 fi
5545 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5546 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5547 ac_res=$ac_cv_search_socket
5548 if test "$ac_res" != no; then
5549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5550
5551 else
5552   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5553 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5554 if test "${ac_cv_lib_socket_socket+set}" = set; then
5555   echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557   ac_check_lib_save_LIBS=$LIBS
5558 LIBS="-lsocket -lnsl $LIBS"
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565
5566 /* Override any GCC internal prototype to avoid an error.
5567    Use char because int might match the return type of a GCC
5568    builtin and then its argument prototype would still apply.  */
5569 #ifdef __cplusplus
5570 extern "C"
5571 #endif
5572 char socket ();
5573 int
5574 main ()
5575 {
5576 return socket ();
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (ac_try="$ac_link"
5583 case "(($ac_try" in
5584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585   *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588   (eval "$ac_link") 2>conftest.er1
5589   ac_status=$?
5590   grep -v '^ *+' conftest.er1 >conftest.err
5591   rm -f conftest.er1
5592   cat conftest.err >&5
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } && {
5595          test -z "$ac_c_werror_flag" ||
5596          test ! -s conftest.err
5597        } && test -s conftest$ac_exeext &&
5598        $as_test_x conftest$ac_exeext; then
5599   ac_cv_lib_socket_socket=yes
5600 else
5601   echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604         ac_cv_lib_socket_socket=no
5605 fi
5606
5607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5608       conftest$ac_exeext conftest.$ac_ext
5609 LIBS=$ac_check_lib_save_LIBS
5610 fi
5611 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5612 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5613 if test $ac_cv_lib_socket_socket = yes; then
5614   LIBS="-lsocket -lnsl $LIBS"
5615 fi
5616
5617 fi
5618
5619     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5620     { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5621 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5622 if test "${ac_cv_search_putmsg+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   ac_func_search_save_LIBS=$LIBS
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h.  */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h.  */
5632
5633 /* Override any GCC internal prototype to avoid an error.
5634    Use char because int might match the return type of a GCC
5635    builtin and then its argument prototype would still apply.  */
5636 #ifdef __cplusplus
5637 extern "C"
5638 #endif
5639 char putmsg ();
5640 int
5641 main ()
5642 {
5643 return putmsg ();
5644   ;
5645   return 0;
5646 }
5647 _ACEOF
5648 for ac_lib in '' str; do
5649   if test -z "$ac_lib"; then
5650     ac_res="none required"
5651   else
5652     ac_res=-l$ac_lib
5653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5654   fi
5655   rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (ac_try="$ac_link"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662   (eval "$ac_link") 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } && {
5669          test -z "$ac_c_werror_flag" ||
5670          test ! -s conftest.err
5671        } && test -s conftest$ac_exeext &&
5672        $as_test_x conftest$ac_exeext; then
5673   ac_cv_search_putmsg=$ac_res
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5682       conftest$ac_exeext
5683   if test "${ac_cv_search_putmsg+set}" = set; then
5684   break
5685 fi
5686 done
5687 if test "${ac_cv_search_putmsg+set}" = set; then
5688   :
5689 else
5690   ac_cv_search_putmsg=no
5691 fi
5692 rm conftest.$ac_ext
5693 LIBS=$ac_func_search_save_LIBS
5694 fi
5695 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5696 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5697 ac_res=$ac_cv_search_putmsg
5698 if test "$ac_res" != no; then
5699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5700
5701 fi
5702
5703
5704
5705 #
5706 # You are in a twisty little maze of UN*Xes, all different.
5707 # Some might not have ether_hostton().
5708 # Some might have it, but not declare it in any header file.
5709 # Some might have it, but declare it in <netinet/if_ether.h>.
5710 # Some might have it, but declare it in <netinet/ether.h>
5711 # (And some might have it but document it as something declared in
5712 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
5713 #
5714 # Before you is a C compiler.
5715 #
5716
5717 for ac_func in ether_hostton
5718 do
5719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5733 #define $ac_func innocuous_$ac_func
5734
5735 /* System header to define __stub macros and hopefully few prototypes,
5736     which can conflict with char $ac_func (); below.
5737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5738     <limits.h> exists even on freestanding compilers.  */
5739
5740 #ifdef __STDC__
5741 # include <limits.h>
5742 #else
5743 # include <assert.h>
5744 #endif
5745
5746 #undef $ac_func
5747
5748 /* Override any GCC internal prototype to avoid an error.
5749    Use char because int might match the return type of a GCC
5750    builtin and then its argument prototype would still apply.  */
5751 #ifdef __cplusplus
5752 extern "C"
5753 #endif
5754 char $ac_func ();
5755 /* The GNU C library defines this for functions which it implements
5756     to always fail with ENOSYS.  Some functions are actually named
5757     something starting with __ and the normal name is an alias.  */
5758 #if defined __stub_$ac_func || defined __stub___$ac_func
5759 choke me
5760 #endif
5761
5762 int
5763 main ()
5764 {
5765 return $ac_func ();
5766   ;
5767   return 0;
5768 }
5769 _ACEOF
5770 rm -f conftest.$ac_objext conftest$ac_exeext
5771 if { (ac_try="$ac_link"
5772 case "(($ac_try" in
5773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774   *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777   (eval "$ac_link") 2>conftest.er1
5778   ac_status=$?
5779   grep -v '^ *+' conftest.er1 >conftest.err
5780   rm -f conftest.er1
5781   cat conftest.err >&5
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } && {
5784          test -z "$ac_c_werror_flag" ||
5785          test ! -s conftest.err
5786        } && test -s conftest$ac_exeext &&
5787        $as_test_x conftest$ac_exeext; then
5788   eval "$as_ac_var=yes"
5789 else
5790   echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793         eval "$as_ac_var=no"
5794 fi
5795
5796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5797       conftest$ac_exeext conftest.$ac_ext
5798 fi
5799 ac_res=`eval echo '${'$as_ac_var'}'`
5800                { echo "$as_me:$LINENO: result: $ac_res" >&5
5801 echo "${ECHO_T}$ac_res" >&6; }
5802 if test `eval echo '${'$as_ac_var'}'` = yes; then
5803   cat >>confdefs.h <<_ACEOF
5804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5805 _ACEOF
5806
5807 fi
5808 done
5809
5810 if test "$ac_cv_func_ether_hostton" = yes; then
5811         #
5812         # OK, we have ether_hostton().  Do we have <netinet/if_ether.h>?
5813         #
5814         if test "$ac_cv_header_netinet_if_ether_h" = yes; then
5815                 #
5816                 # Yes.  Does it declare ether_hostton()?
5817                 #
5818                 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
5819 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
5820 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829
5830 #include <sys/types.h>
5831 #include <sys/socket.h>
5832 #include <netinet/in.h>
5833 #include <arpa/inet.h>
5834 struct mbuf;
5835 struct rtentry;
5836 #include <net/if.h>
5837 #include <netinet/if_ether.h>
5838
5839
5840 int
5841 main ()
5842 {
5843 #ifndef ether_hostton
5844   (void) ether_hostton;
5845 #endif
5846
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5853 case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_compile") 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } && {
5865          test -z "$ac_c_werror_flag" ||
5866          test ! -s conftest.err
5867        } && test -s conftest.$ac_objext; then
5868   ac_cv_have_decl_ether_hostton=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873         ac_cv_have_decl_ether_hostton=no
5874 fi
5875
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
5879 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
5880 if test $ac_cv_have_decl_ether_hostton = yes; then
5881
5882
5883 cat >>confdefs.h <<\_ACEOF
5884 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
5885 _ACEOF
5886
5887
5888 fi
5889
5890         fi
5891         #
5892         # Did that succeed?
5893         #
5894         if test "$ac_cv_have_decl_ether_hostton" != yes; then
5895                 #
5896                 # No, how about <netinet/ether.h>, as on Linux?
5897                 #
5898
5899 for ac_header in netinet/ether.h
5900 do
5901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5903   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 fi
5908 ac_res=`eval echo '${'$as_ac_Header'}'`
5909                { echo "$as_me:$LINENO: result: $ac_res" >&5
5910 echo "${ECHO_T}$ac_res" >&6; }
5911 else
5912   # Is the header compilable?
5913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h.  */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h.  */
5921 $ac_includes_default
5922 #include <$ac_header>
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5926 case "(($ac_try" in
5927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928   *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931   (eval "$ac_compile") 2>conftest.er1
5932   ac_status=$?
5933   grep -v '^ *+' conftest.er1 >conftest.err
5934   rm -f conftest.er1
5935   cat conftest.err >&5
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } && {
5938          test -z "$ac_c_werror_flag" ||
5939          test ! -s conftest.err
5940        } && test -s conftest.$ac_objext; then
5941   ac_header_compiler=yes
5942 else
5943   echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946         ac_header_compiler=no
5947 fi
5948
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5951 echo "${ECHO_T}$ac_header_compiler" >&6; }
5952
5953 # Is the header present?
5954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 #include <$ac_header>
5963 _ACEOF
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 case "(($ac_try" in
5966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967   *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971   ac_status=$?
5972   grep -v '^ *+' conftest.er1 >conftest.err
5973   rm -f conftest.er1
5974   cat conftest.err >&5
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); } >/dev/null && {
5977          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5978          test ! -s conftest.err
5979        }; then
5980   ac_header_preproc=yes
5981 else
5982   echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985   ac_header_preproc=no
5986 fi
5987
5988 rm -f conftest.err conftest.$ac_ext
5989 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5990 echo "${ECHO_T}$ac_header_preproc" >&6; }
5991
5992 # So?  What about this header?
5993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5994   yes:no: )
5995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5999     ac_header_preproc=yes
6000     ;;
6001   no:yes:* )
6002     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6004     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6005 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6006     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6008     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6009 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6012     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6014
6015     ;;
6016 esac
6017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   eval "$as_ac_Header=\$ac_header_preproc"
6023 fi
6024 ac_res=`eval echo '${'$as_ac_Header'}'`
6025                { echo "$as_me:$LINENO: result: $ac_res" >&5
6026 echo "${ECHO_T}$ac_res" >&6; }
6027
6028 fi
6029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6030   cat >>confdefs.h <<_ACEOF
6031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032 _ACEOF
6033
6034 fi
6035
6036 done
6037
6038                 if test "$ac_cv_header_netinet_ether_h" = yes; then
6039                         #
6040                         # We have it - does it declare ether_hostton()?
6041                         # Unset ac_cv_have_decl_ether_hostton so we don't
6042                         # treat the previous failure as a cached value and
6043                         # suppress the next test.
6044                         #
6045                         unset ac_cv_have_decl_ether_hostton
6046                         { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6047 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6048 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057
6058 #include <netinet/ether.h>
6059
6060
6061 int
6062 main ()
6063 {
6064 #ifndef ether_hostton
6065   (void) ether_hostton;
6066 #endif
6067
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6074 case "(($ac_try" in
6075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076   *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079   (eval "$ac_compile") 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } && {
6086          test -z "$ac_c_werror_flag" ||
6087          test ! -s conftest.err
6088        } && test -s conftest.$ac_objext; then
6089   ac_cv_have_decl_ether_hostton=yes
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094         ac_cv_have_decl_ether_hostton=no
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6100 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6101 if test $ac_cv_have_decl_ether_hostton = yes; then
6102
6103
6104 cat >>confdefs.h <<\_ACEOF
6105 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6106 _ACEOF
6107
6108
6109 fi
6110
6111                 fi
6112         fi
6113         #
6114         # Is ether_hostton() declared?
6115         #
6116         if test "$ac_cv_have_decl_ether_hostton" != yes; then
6117                 #
6118                 # No, we'll have to declare it ourselves.
6119                 # Do we have "struct ether_addr"?
6120                 #
6121                 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6122 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6123 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132
6133 #include <sys/types.h>
6134 #include <sys/socket.h>
6135 #include <netinet/in.h>
6136 #include <arpa/inet.h>
6137 struct mbuf;
6138 struct rtentry;
6139 #include <net/if.h>
6140 #include <netinet/if_ether.h>
6141
6142
6143 typedef struct ether_addr ac__type_new_;
6144 int
6145 main ()
6146 {
6147 if ((ac__type_new_ *) 0)
6148   return 0;
6149 if (sizeof (ac__type_new_))
6150   return 0;
6151   ;
6152   return 0;
6153 }
6154 _ACEOF
6155 rm -f conftest.$ac_objext
6156 if { (ac_try="$ac_compile"
6157 case "(($ac_try" in
6158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159   *) ac_try_echo=$ac_try;;
6160 esac
6161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6162   (eval "$ac_compile") 2>conftest.er1
6163   ac_status=$?
6164   grep -v '^ *+' conftest.er1 >conftest.err
6165   rm -f conftest.er1
6166   cat conftest.err >&5
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } && {
6169          test -z "$ac_c_werror_flag" ||
6170          test ! -s conftest.err
6171        } && test -s conftest.$ac_objext; then
6172   ac_cv_type_struct_ether_addr=yes
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177         ac_cv_type_struct_ether_addr=no
6178 fi
6179
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 fi
6182 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6183 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6184 if test $ac_cv_type_struct_ether_addr = yes; then
6185
6186 cat >>confdefs.h <<_ACEOF
6187 #define HAVE_STRUCT_ETHER_ADDR 1
6188 _ACEOF
6189
6190
6191 fi
6192
6193
6194 cat >>confdefs.h <<\_ACEOF
6195 #define HAVE_DECL_ETHER_HOSTTON 0
6196 _ACEOF
6197
6198         else
6199
6200 cat >>confdefs.h <<\_ACEOF
6201 #define HAVE_DECL_ETHER_HOSTTON 1
6202 _ACEOF
6203
6204         fi
6205 fi
6206
6207 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6208 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6209 # Check whether --enable-protochain was given.
6210 if test "${enable_protochain+set}" = set; then
6211   enableval=$enable_protochain;
6212 fi
6213
6214 case "x$enable_protochain" in
6215 xyes)   enable_protochain=enabled       ;;
6216 xno)    enable_protochain=disabled      ;;
6217 x)      enable_protochain=enabled       ;;
6218 esac
6219
6220 if test "$enable_protochain" = "disabled"; then
6221
6222 cat >>confdefs.h <<\_ACEOF
6223 #define NO_PROTOCHAIN 1
6224 _ACEOF
6225
6226 fi
6227 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6228 echo "${ECHO_T}${enable_protochain}" >&6; }
6229
6230 #
6231 # SITA support is mutually exclusive with native capture support;
6232 # "--with-sita" selects SITA support.
6233 #
6234
6235 # Check whether --with-sita was given.
6236 if test "${with_sita+set}" = set; then
6237   withval=$with_sita;
6238
6239 cat >>confdefs.h <<\_ACEOF
6240 #define SITA 1
6241 _ACEOF
6242
6243         { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6244 echo "$as_me: Enabling SITA ACN support" >&6;}
6245         V_PCAP=sita
6246         V_FINDALLDEVS=sita
6247
6248 else
6249
6250 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6251         { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6252 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6253    { (exit 1); exit 1; }; }
6254 fi
6255
6256 # Check whether --with-pcap was given.
6257 if test "${with_pcap+set}" = set; then
6258   withval=$with_pcap;
6259 fi
6260
6261 { echo "$as_me:$LINENO: checking packet capture type" >&5
6262 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6263 if test ! -z "$with_pcap" ; then
6264         V_PCAP="$withval"
6265 elif test -r /dev/bpf ; then
6266         #
6267         # Cloning BPF device.
6268         #
6269         V_PCAP=bpf
6270
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_CLONING_BPF 1
6273 _ACEOF
6274
6275 elif test -r /dev/bpf0 ; then
6276         V_PCAP=bpf
6277 elif test -r /usr/include/net/pfilt.h ; then
6278         V_PCAP=pf
6279 elif test -r /dev/enet ; then
6280         V_PCAP=enet
6281 elif test -r /dev/nit ; then
6282         V_PCAP=snit
6283 elif test -r /usr/include/sys/net/nit.h ; then
6284         V_PCAP=nit
6285 elif test -r /usr/include/linux/socket.h ; then
6286         V_PCAP=linux
6287 elif test -r /usr/include/net/raw.h ; then
6288         V_PCAP=snoop
6289 elif test -r /usr/include/odmi.h ; then
6290         #
6291         # On AIX, the BPF devices might not yet be present - they're
6292         # created the first time libpcap runs after booting.
6293         # We check for odmi.h instead.
6294         #
6295         V_PCAP=bpf
6296 elif test -r /usr/include/sys/dlpi.h ; then
6297         V_PCAP=dlpi
6298 elif test -c /dev/bpf0 ; then           # check again in case not readable
6299         V_PCAP=bpf
6300 elif test -c /dev/enet ; then           # check again in case not readable
6301         V_PCAP=enet
6302 elif test -c /dev/nit ; then            # check again in case not readable
6303         V_PCAP=snit
6304 else
6305         V_PCAP=null
6306 fi
6307 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
6308 echo "${ECHO_T}$V_PCAP" >&6; }
6309
6310 #
6311 # Do capture-mechanism-dependent tests.
6312 #
6313 case "$V_PCAP" in
6314 dlpi)
6315         #
6316         # Checks to see if Solaris has the public libdlpi(3LIB) library.
6317         # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6318         # public libdlpi(3LIB) version. Before libdlpi was made public, a
6319         # private version also existed, which did not have the same APIs.
6320         # Due to a gcc bug, the default search path for 32-bit libraries does
6321         # not include /lib, we add it explicitly here.
6322         # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6323         # Also, due to the bug above applications that link to libpcap with
6324         # libdlpi will have to add "-L/lib" option to "configure".
6325         #
6326         saved_ldflags=$LDFLAGS
6327         LDFLAGS="$LIBS -L/lib"
6328         { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6329 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
6330 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   ac_check_lib_save_LIBS=$LIBS
6334 LIBS="-ldlpi  $LIBS"
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341
6342 /* Override any GCC internal prototype to avoid an error.
6343    Use char because int might match the return type of a GCC
6344    builtin and then its argument prototype would still apply.  */
6345 #ifdef __cplusplus
6346 extern "C"
6347 #endif
6348 char dlpi_walk ();
6349 int
6350 main ()
6351 {
6352 return dlpi_walk ();
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (ac_try="$ac_link"
6359 case "(($ac_try" in
6360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361   *) ac_try_echo=$ac_try;;
6362 esac
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364   (eval "$ac_link") 2>conftest.er1
6365   ac_status=$?
6366   grep -v '^ *+' conftest.er1 >conftest.err
6367   rm -f conftest.er1
6368   cat conftest.err >&5
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } && {
6371          test -z "$ac_c_werror_flag" ||
6372          test ! -s conftest.err
6373        } && test -s conftest$ac_exeext &&
6374        $as_test_x conftest$ac_exeext; then
6375   ac_cv_lib_dlpi_dlpi_walk=yes
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380         ac_cv_lib_dlpi_dlpi_walk=no
6381 fi
6382
6383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6384       conftest$ac_exeext conftest.$ac_ext
6385 LIBS=$ac_check_lib_save_LIBS
6386 fi
6387 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
6388 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
6389 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
6390   LIBS="-ldlpi $LIBS"
6391                 V_PCAP=libdlpi
6392
6393 cat >>confdefs.h <<\_ACEOF
6394 #define HAVE_LIBDLPI 1
6395 _ACEOF
6396
6397 else
6398   V_PCAP=dlpi
6399 fi
6400
6401         LDFLAGS=$saved_ldflags
6402
6403         #
6404         # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
6405         # versions of DLPI.
6406         #
6407         { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
6408 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
6409         if test "${ac_cv_sys_dlpi_usable+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h.  */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h.  */
6418
6419                         #include <sys/types.h>
6420                         #include <sys/time.h>
6421                         #include <sys/dlpi.h>
6422
6423 int
6424 main ()
6425 {
6426 int i = DL_PROMISC_PHYS;
6427   ;
6428   return 0;
6429 }
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (ac_try="$ac_compile"
6433 case "(($ac_try" in
6434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435   *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438   (eval "$ac_compile") 2>conftest.er1
6439   ac_status=$?
6440   grep -v '^ *+' conftest.er1 >conftest.err
6441   rm -f conftest.er1
6442   cat conftest.err >&5
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); } && {
6445          test -z "$ac_c_werror_flag" ||
6446          test ! -s conftest.err
6447        } && test -s conftest.$ac_objext; then
6448   ac_cv_sys_dlpi_usable=yes
6449 else
6450   echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453         ac_cv_sys_dlpi_usable=no
6454 fi
6455
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458
6459         { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
6460 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
6461         if test $ac_cv_sys_dlpi_usable = no ; then
6462                 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
6463 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
6464    { (exit 1); exit 1; }; }
6465         fi
6466
6467         #
6468         # Check whether we have a /dev/dlpi device or have multiple devices.
6469         #
6470         { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
6471 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
6472         if test -c /dev/dlpi ; then
6473                 { echo "$as_me:$LINENO: result: yes" >&5
6474 echo "${ECHO_T}yes" >&6; }
6475
6476 cat >>confdefs.h <<\_ACEOF
6477 #define HAVE_DEV_DLPI 1
6478 _ACEOF
6479
6480         else
6481                 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6483                 dir="/dev/dlpi"
6484                 { echo "$as_me:$LINENO: checking for $dir directory" >&5
6485 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
6486                 if test -d $dir ; then
6487                         { echo "$as_me:$LINENO: result: yes" >&5
6488 echo "${ECHO_T}yes" >&6; }
6489
6490 cat >>confdefs.h <<_ACEOF
6491 #define PCAP_DEV_PREFIX "$dir"
6492 _ACEOF
6493
6494                 else
6495                         { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6497                 fi
6498         fi
6499
6500         #
6501         # This check is for Solaris with DLPI support for passive modes.
6502         # See dlpi(7P) for more details.
6503         #
6504         { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
6505 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
6506        if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h.  */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h.  */
6515
6516 #       include <sys/types.h>
6517 #       include <sys/dlpi.h>
6518 int
6519 main ()
6520 {
6521 u_int i = sizeof(dl_passive_req_t)
6522   ;
6523   return 0;
6524 }
6525 _ACEOF
6526 rm -f conftest.$ac_objext
6527 if { (ac_try="$ac_compile"
6528 case "(($ac_try" in
6529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530   *) ac_try_echo=$ac_try;;
6531 esac
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533   (eval "$ac_compile") 2>conftest.er1
6534   ac_status=$?
6535   grep -v '^ *+' conftest.er1 >conftest.err
6536   rm -f conftest.er1
6537   cat conftest.err >&5
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } && {
6540          test -z "$ac_c_werror_flag" ||
6541          test ! -s conftest.err
6542        } && test -s conftest.$ac_objext; then
6543   ac_cv_lbl_has_dl_passive_req_t=yes
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548         ac_cv_lbl_has_dl_passive_req_t=no
6549 fi
6550
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553
6554     { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
6555 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
6556     if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
6557
6558 cat >>confdefs.h <<\_ACEOF
6559 #define HAVE_DLPI_PASSIVE 1
6560 _ACEOF
6561
6562     fi
6563         ;;
6564
6565 linux)
6566         { echo "$as_me:$LINENO: checking Linux kernel version" >&5
6567 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
6568         if test "$cross_compiling" = yes; then
6569                 if test "${ac_cv_linux_vers+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   ac_cv_linux_vers=unknown
6573 fi
6574
6575         else
6576                 if test "${ac_cv_linux_vers+set}" = set; then
6577   echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579   ac_cv_linux_vers=`uname -r 2>&1 | \
6580                         sed -n -e '$s/.* //' -e '$s/\..*//p'`
6581 fi
6582
6583         fi
6584         { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
6585 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
6586         if test $ac_cv_linux_vers = unknown ; then
6587                 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
6588 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
6589    { (exit 1); exit 1; }; }
6590         fi
6591         if test $ac_cv_linux_vers -lt 2 ; then
6592                 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
6593 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
6594    { (exit 1); exit 1; }; }
6595         fi
6596
6597 for ac_header in linux/wireless.h
6598 do
6599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605   cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h.  */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h.  */
6611
6612 #include <sys/socket.h>
6613 #include <net/if.h>
6614 #include <linux/types.h>
6615
6616
6617 #include <$ac_header>
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6621 case "(($ac_try" in
6622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623   *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626   (eval "$ac_compile") 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } && {
6633          test -z "$ac_c_werror_flag" ||
6634          test ! -s conftest.err
6635        } && test -s conftest.$ac_objext; then
6636   eval "$as_ac_Header=yes"
6637 else
6638   echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6640
6641         eval "$as_ac_Header=no"
6642 fi
6643
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646 ac_res=`eval echo '${'$as_ac_Header'}'`
6647                { echo "$as_me:$LINENO: result: $ac_res" >&5
6648 echo "${ECHO_T}$ac_res" >&6; }
6649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6650   cat >>confdefs.h <<_ACEOF
6651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6652 _ACEOF
6653
6654 fi
6655
6656 done
6657
6658         for ac_header in
6659 do
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6662   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 fi
6667 ac_res=`eval echo '${'$as_ac_Header'}'`
6668                { echo "$as_me:$LINENO: result: $ac_res" >&5
6669 echo "${ECHO_T}$ac_res" >&6; }
6670 else
6671   # Is the header compilable?
6672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h.  */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h.  */
6680 $ac_includes_default
6681 #include <$ac_header>
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6685 case "(($ac_try" in
6686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687   *) ac_try_echo=$ac_try;;
6688 esac
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690   (eval "$ac_compile") 2>conftest.er1
6691   ac_status=$?
6692   grep -v '^ *+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } && {
6697          test -z "$ac_c_werror_flag" ||
6698          test ! -s conftest.err
6699        } && test -s conftest.$ac_objext; then
6700   ac_header_compiler=yes
6701 else
6702   echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705         ac_header_compiler=no
6706 fi
6707
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6710 echo "${ECHO_T}$ac_header_compiler" >&6; }
6711
6712 # Is the header present?
6713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721 #include <$ac_header>
6722 _ACEOF
6723 if { (ac_try="$ac_cpp conftest.$ac_ext"
6724 case "(($ac_try" in
6725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726   *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6730   ac_status=$?
6731   grep -v '^ *+' conftest.er1 >conftest.err
6732   rm -f conftest.er1
6733   cat conftest.err >&5
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } >/dev/null && {
6736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6737          test ! -s conftest.err
6738        }; then
6739   ac_header_preproc=yes
6740 else
6741   echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6743
6744   ac_header_preproc=no
6745 fi
6746
6747 rm -f conftest.err conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6749 echo "${ECHO_T}$ac_header_preproc" >&6; }
6750
6751 # So?  What about this header?
6752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6753   yes:no: )
6754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6758     ac_header_preproc=yes
6759     ;;
6760   no:yes:* )
6761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6773
6774     ;;
6775 esac
6776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   eval "$as_ac_Header=\$ac_header_preproc"
6782 fi
6783 ac_res=`eval echo '${'$as_ac_Header'}'`
6784                { echo "$as_me:$LINENO: result: $ac_res" >&5
6785 echo "${ECHO_T}$ac_res" >&6; }
6786
6787 fi
6788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6789   cat >>confdefs.h <<_ACEOF
6790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791 _ACEOF
6792
6793 fi
6794
6795 done
6796
6797         { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
6798 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
6799    if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h.  */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h.  */
6808
6809 #  include <linux/if_packet.h>
6810 int
6811 main ()
6812 {
6813 struct tpacket_stats stats
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6820 case "(($ac_try" in
6821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822   *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825   (eval "$ac_compile") 2>conftest.er1
6826   ac_status=$?
6827   grep -v '^ *+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); } && {
6832          test -z "$ac_c_werror_flag" ||
6833          test ! -s conftest.err
6834        } && test -s conftest.$ac_objext; then
6835   ac_cv_lbl_tpacket_stats=yes
6836 else
6837   echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840         ac_cv_lbl_tpacket_stats=no
6841 fi
6842
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 fi
6845
6846    { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
6847 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
6848    if test $ac_cv_lbl_tpacket_stats = yes; then
6849
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_TPACKET_STATS 1
6852 _ACEOF
6853
6854    fi
6855         { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
6856 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
6857     if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866
6867 #       include <linux/if_packet.h>
6868 int
6869 main ()
6870 {
6871 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6878 case "(($ac_try" in
6879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880   *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883   (eval "$ac_compile") 2>conftest.er1
6884   ac_status=$?
6885   grep -v '^ *+' conftest.er1 >conftest.err
6886   rm -f conftest.er1
6887   cat conftest.err >&5
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); } && {
6890          test -z "$ac_c_werror_flag" ||
6891          test ! -s conftest.err
6892        } && test -s conftest.$ac_objext; then
6893   ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
6894 else
6895   echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898         ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
6899 fi
6900
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903
6904     { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
6905 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
6906     if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
6910 _ACEOF
6911
6912     fi
6913         ;;
6914
6915 bpf)
6916         #
6917         # Check whether we have the *BSD-style ioctls.
6918         #
6919
6920 for ac_header in net/if_media.h
6921 do
6922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6924   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 fi
6929 ac_res=`eval echo '${'$as_ac_Header'}'`
6930                { echo "$as_me:$LINENO: result: $ac_res" >&5
6931 echo "${ECHO_T}$ac_res" >&6; }
6932 else
6933   # Is the header compilable?
6934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 $ac_includes_default
6943 #include <$ac_header>
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (ac_try="$ac_compile"
6947 case "(($ac_try" in
6948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949   *) ac_try_echo=$ac_try;;
6950 esac
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952   (eval "$ac_compile") 2>conftest.er1
6953   ac_status=$?
6954   grep -v '^ *+' conftest.er1 >conftest.err
6955   rm -f conftest.er1
6956   cat conftest.err >&5
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); } && {
6959          test -z "$ac_c_werror_flag" ||
6960          test ! -s conftest.err
6961        } && test -s conftest.$ac_objext; then
6962   ac_header_compiler=yes
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967         ac_header_compiler=no
6968 fi
6969
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6972 echo "${ECHO_T}$ac_header_compiler" >&6; }
6973
6974 # Is the header present?
6975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h.  */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h.  */
6983 #include <$ac_header>
6984 _ACEOF
6985 if { (ac_try="$ac_cpp conftest.$ac_ext"
6986 case "(($ac_try" in
6987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988   *) ac_try_echo=$ac_try;;
6989 esac
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } >/dev/null && {
6998          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6999          test ! -s conftest.err
7000        }; then
7001   ac_header_preproc=yes
7002 else
7003   echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006   ac_header_preproc=no
7007 fi
7008
7009 rm -f conftest.err conftest.$ac_ext
7010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7011 echo "${ECHO_T}$ac_header_preproc" >&6; }
7012
7013 # So?  What about this header?
7014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7015   yes:no: )
7016     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7020     ac_header_preproc=yes
7021     ;;
7022   no:yes:* )
7023     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7025     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7026 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7027     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7029     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7030 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7033     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7035
7036     ;;
7037 esac
7038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   eval "$as_ac_Header=\$ac_header_preproc"
7044 fi
7045 ac_res=`eval echo '${'$as_ac_Header'}'`
7046                { echo "$as_me:$LINENO: result: $ac_res" >&5
7047 echo "${ECHO_T}$ac_res" >&6; }
7048
7049 fi
7050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7051   cat >>confdefs.h <<_ACEOF
7052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053 _ACEOF
7054
7055 fi
7056
7057 done
7058
7059
7060         { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7061 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7062         cat >conftest.$ac_ext <<_ACEOF
7063 /* confdefs.h.  */
7064 _ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h.  */
7068 #include <sys/socket.h>
7069             #include <sys/ioctl.h>
7070             #include <net/if.h>
7071             #include <net/bpf.h>
7072 int
7073 main ()
7074 {
7075 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_compile") 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } && {
7094          test -z "$ac_c_werror_flag" ||
7095          test ! -s conftest.err
7096        } && test -s conftest.$ac_objext; then
7097
7098                 { echo "$as_me:$LINENO: result: yes" >&5
7099 echo "${ECHO_T}yes" >&6; }
7100
7101 cat >>confdefs.h <<\_ACEOF
7102 #define HAVE_ZEROCOPY_BPF 1
7103 _ACEOF
7104
7105
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110         { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7112 fi
7113
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115         ;;
7116
7117 dag)
7118         V_DEFS="$V_DEFS -DDAG_ONLY"
7119         ;;
7120
7121 septel)
7122         V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7123         ;;
7124
7125 null)
7126         { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7127 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7128         { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7129 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7130         ;;
7131 esac
7132
7133 if test "$V_PCAP" = null
7134 then
7135         #
7136         # We can't capture, so we can't open any capture
7137         # devices, so we won't return any interfaces.
7138         #
7139         V_FINDALLDEVS=null
7140 else
7141         { echo "$as_me:$LINENO: checking for getifaddrs" >&5
7142 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7143 if test "${ac_cv_func_getifaddrs+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146   cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h.  */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h.  */
7152 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7154 #define getifaddrs innocuous_getifaddrs
7155
7156 /* System header to define __stub macros and hopefully few prototypes,
7157     which can conflict with char getifaddrs (); below.
7158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7159     <limits.h> exists even on freestanding compilers.  */
7160
7161 #ifdef __STDC__
7162 # include <limits.h>
7163 #else
7164 # include <assert.h>
7165 #endif
7166
7167 #undef getifaddrs
7168
7169 /* Override any GCC internal prototype to avoid an error.
7170    Use char because int might match the return type of a GCC
7171    builtin and then its argument prototype would still apply.  */
7172 #ifdef __cplusplus
7173 extern "C"
7174 #endif
7175 char getifaddrs ();
7176 /* The GNU C library defines this for functions which it implements
7177     to always fail with ENOSYS.  Some functions are actually named
7178     something starting with __ and the normal name is an alias.  */
7179 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7180 choke me
7181 #endif
7182
7183 int
7184 main ()
7185 {
7186 return getifaddrs ();
7187   ;
7188   return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (ac_try="$ac_link"
7193 case "(($ac_try" in
7194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195   *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198   (eval "$ac_link") 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } && {
7205          test -z "$ac_c_werror_flag" ||
7206          test ! -s conftest.err
7207        } && test -s conftest$ac_exeext &&
7208        $as_test_x conftest$ac_exeext; then
7209   ac_cv_func_getifaddrs=yes
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214         ac_cv_func_getifaddrs=no
7215 fi
7216
7217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218       conftest$ac_exeext conftest.$ac_ext
7219 fi
7220 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7221 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7222 if test $ac_cv_func_getifaddrs = yes; then
7223
7224                 #
7225                 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7226                 # as well, just in case some platform is really weird.
7227                 #
7228                 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7229   { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7230 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7231 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 fi
7234 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7235 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7236 else
7237   # Is the header compilable?
7238 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7239 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h.  */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h.  */
7246 $ac_includes_default
7247 #include <ifaddrs.h>
7248 _ACEOF
7249 rm -f conftest.$ac_objext
7250 if { (ac_try="$ac_compile"
7251 case "(($ac_try" in
7252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253   *) ac_try_echo=$ac_try;;
7254 esac
7255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7256   (eval "$ac_compile") 2>conftest.er1
7257   ac_status=$?
7258   grep -v '^ *+' conftest.er1 >conftest.err
7259   rm -f conftest.er1
7260   cat conftest.err >&5
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } && {
7263          test -z "$ac_c_werror_flag" ||
7264          test ! -s conftest.err
7265        } && test -s conftest.$ac_objext; then
7266   ac_header_compiler=yes
7267 else
7268   echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7270
7271         ac_header_compiler=no
7272 fi
7273
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7276 echo "${ECHO_T}$ac_header_compiler" >&6; }
7277
7278 # Is the header present?
7279 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7280 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h.  */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h.  */
7287 #include <ifaddrs.h>
7288 _ACEOF
7289 if { (ac_try="$ac_cpp conftest.$ac_ext"
7290 case "(($ac_try" in
7291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292   *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7296   ac_status=$?
7297   grep -v '^ *+' conftest.er1 >conftest.err
7298   rm -f conftest.er1
7299   cat conftest.err >&5
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); } >/dev/null && {
7302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7303          test ! -s conftest.err
7304        }; then
7305   ac_header_preproc=yes
7306 else
7307   echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310   ac_header_preproc=no
7311 fi
7312
7313 rm -f conftest.err conftest.$ac_ext
7314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7315 echo "${ECHO_T}$ac_header_preproc" >&6; }
7316
7317 # So?  What about this header?
7318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7319   yes:no: )
7320     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7321 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7322     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
7323 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
7324     ac_header_preproc=yes
7325     ;;
7326   no:yes:* )
7327     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
7328 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
7329     { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&5
7330 echo "$as_me: WARNING: ifaddrs.h:     check for missing prerequisite headers?" >&2;}
7331     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
7332 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
7333     { echo "$as_me:$LINENO: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&5
7334 echo "$as_me: WARNING: ifaddrs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7335     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
7336 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
7337     { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
7338 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
7339
7340     ;;
7341 esac
7342 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7343 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7344 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   ac_cv_header_ifaddrs_h=$ac_header_preproc
7348 fi
7349 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7350 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7351
7352 fi
7353 if test $ac_cv_header_ifaddrs_h = yes; then
7354
7355                     #
7356                     # We have the header, so we use "getifaddrs()" to
7357                     # get the list of interfaces.
7358                     #
7359                     V_FINDALLDEVS=getad
7360
7361 else
7362
7363                     #
7364                     # We don't have the header - give up.
7365                     # XXX - we could also fall back on some other
7366                     # mechanism, but, for now, this'll catch this
7367                     # problem so that we can at least try to figure
7368                     # out something to do on systems with "getifaddrs()"
7369                     # but without "ifaddrs.h", if there is something
7370                     # we can do on those systems.
7371                     #
7372                     { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
7373 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
7374    { (exit 1); exit 1; }; }
7375
7376 fi
7377
7378
7379
7380 else
7381
7382                 #
7383                 # Well, we don't have "getifaddrs()", so we have to use
7384                 # some other mechanism; determine what that mechanism is.
7385                 #
7386                 # The first thing we use is the type of capture mechanism,
7387                 # which is somewhat of a proxy for the OS we're using.
7388                 #
7389                 case "$V_PCAP" in
7390
7391                 dlpi|libdlpi)
7392
7393
7394 for ac_header in sys/bufmod.h sys/dlpi_ext.h
7395 do
7396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 fi
7403 ac_res=`eval echo '${'$as_ac_Header'}'`
7404                { echo "$as_me:$LINENO: result: $ac_res" >&5
7405 echo "${ECHO_T}$ac_res" >&6; }
7406 else
7407   # Is the header compilable?
7408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7410 cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h.  */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h.  */
7416 $ac_includes_default
7417 #include <$ac_header>
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423   *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426   (eval "$ac_compile") 2>conftest.er1
7427   ac_status=$?
7428   grep -v '^ *+' conftest.er1 >conftest.err
7429   rm -f conftest.er1
7430   cat conftest.err >&5
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); } && {
7433          test -z "$ac_c_werror_flag" ||
7434          test ! -s conftest.err
7435        } && test -s conftest.$ac_objext; then
7436   ac_header_compiler=yes
7437 else
7438   echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441         ac_header_compiler=no
7442 fi
7443
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7446 echo "${ECHO_T}$ac_header_compiler" >&6; }
7447
7448 # Is the header present?
7449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 #include <$ac_header>
7458 _ACEOF
7459 if { (ac_try="$ac_cpp conftest.$ac_ext"
7460 case "(($ac_try" in
7461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462   *) ac_try_echo=$ac_try;;
7463 esac
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } >/dev/null && {
7472          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7473          test ! -s conftest.err
7474        }; then
7475   ac_header_preproc=yes
7476 else
7477   echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480   ac_header_preproc=no
7481 fi
7482
7483 rm -f conftest.err conftest.$ac_ext
7484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7485 echo "${ECHO_T}$ac_header_preproc" >&6; }
7486
7487 # So?  What about this header?
7488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489   yes:no: )
7490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7494     ac_header_preproc=yes
7495     ;;
7496   no:yes:* )
7497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509
7510     ;;
7511 esac
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   eval "$as_ac_Header=\$ac_header_preproc"
7518 fi
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520                { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7522
7523 fi
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525   cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7528
7529 fi
7530
7531 done
7532
7533                         #
7534                         # This might be Solaris 8 or later, with
7535                         # SIOCGLIFCONF, or it might be some other OS
7536                         # or some older version of Solaris, with
7537                         # just SIOCGIFCONF.
7538                         #
7539                         { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
7540 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
7541                         if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 #include <sys/param.h>
7551                                 #include <sys/file.h>
7552                                 #include <sys/ioctl.h>
7553                                 #include <sys/socket.h>
7554                                 #include <sys/sockio.h>
7555 int
7556 main ()
7557 {
7558 ioctl(0, SIOCGLIFCONF, (char *)0);
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7565 case "(($ac_try" in
7566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567   *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570   (eval "$ac_compile") 2>conftest.er1
7571   ac_status=$?
7572   grep -v '^ *+' conftest.er1 >conftest.err
7573   rm -f conftest.er1
7574   cat conftest.err >&5
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } && {
7577          test -z "$ac_c_werror_flag" ||
7578          test ! -s conftest.err
7579        } && test -s conftest.$ac_objext; then
7580   ac_cv_lbl_have_siocglifconf=yes
7581 else
7582   echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585         ac_cv_lbl_have_siocglifconf=no
7586 fi
7587
7588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589 fi
7590
7591                         { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
7592 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
7593                         if test $ac_cv_lbl_have_siocglifconf = yes ; then
7594                                 V_FINDALLDEVS=glifc
7595                         else
7596                                 V_FINDALLDEVS=gifc
7597                         fi
7598                         #
7599                         # Needed for common functions used by pcap-[dlpi,libdlpi].c
7600                         #
7601                         SSRC="dlpisubs.c"
7602                         ;;
7603
7604                 *)
7605                         #
7606                         # Assume we just have SIOCGIFCONF.
7607                         # (XXX - on at least later Linux kernels, there's
7608                         # another mechanism, and we should be using that
7609                         # instead.)
7610                         #
7611                         V_FINDALLDEVS=gifc
7612                         ;;
7613                 esac
7614 fi
7615
7616 fi
7617
7618 fi
7619
7620
7621 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7622 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629
7630         #include <sys/types.h>
7631         #include <sys/socket.h>
7632
7633 int
7634 main ()
7635 {
7636  socklen_t x;
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645   *) ac_try_echo=$ac_try;;
7646 esac
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648   (eval "$ac_compile") 2>conftest.er1
7649   ac_status=$?
7650   grep -v '^ *+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } && {
7655          test -z "$ac_c_werror_flag" ||
7656          test ! -s conftest.err
7657        } && test -s conftest.$ac_objext; then
7658   have_socklen_t=yes
7659 else
7660   echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7662
7663         have_socklen_t=no
7664 fi
7665
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 if test "x$have_socklen_t" = "xyes"; then
7668
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_SOCKLEN_T 1
7671 _ACEOF
7672
7673 fi
7674 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
7675 echo "${ECHO_T}$have_socklen_t" >&6; }
7676
7677 # Check whether --enable-ipv6 was given.
7678 if test "${enable_ipv6+set}" = set; then
7679   enableval=$enable_ipv6;
7680 else
7681   enable_ipv6=ifavailable
7682 fi
7683
7684 if test "$enable_ipv6" != "no"; then
7685         { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
7686 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
7687 if test "${ac_cv_func_getaddrinfo+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
7697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7698 #define getaddrinfo innocuous_getaddrinfo
7699
7700 /* System header to define __stub macros and hopefully few prototypes,
7701     which can conflict with char getaddrinfo (); below.
7702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7703     <limits.h> exists even on freestanding compilers.  */
7704
7705 #ifdef __STDC__
7706 # include <limits.h>
7707 #else
7708 # include <assert.h>
7709 #endif
7710
7711 #undef getaddrinfo
7712
7713 /* Override any GCC internal prototype to avoid an error.
7714    Use char because int might match the return type of a GCC
7715    builtin and then its argument prototype would still apply.  */
7716 #ifdef __cplusplus
7717 extern "C"
7718 #endif
7719 char getaddrinfo ();
7720 /* The GNU C library defines this for functions which it implements
7721     to always fail with ENOSYS.  Some functions are actually named
7722     something starting with __ and the normal name is an alias.  */
7723 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
7724 choke me
7725 #endif
7726
7727 int
7728 main ()
7729 {
7730 return getaddrinfo ();
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (ac_try="$ac_link"
7737 case "(($ac_try" in
7738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739   *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742   (eval "$ac_link") 2>conftest.er1
7743   ac_status=$?
7744   grep -v '^ *+' conftest.er1 >conftest.err
7745   rm -f conftest.er1
7746   cat conftest.err >&5
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); } && {
7749          test -z "$ac_c_werror_flag" ||
7750          test ! -s conftest.err
7751        } && test -s conftest$ac_exeext &&
7752        $as_test_x conftest$ac_exeext; then
7753   ac_cv_func_getaddrinfo=yes
7754 else
7755   echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758         ac_cv_func_getaddrinfo=no
7759 fi
7760
7761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762       conftest$ac_exeext conftest.$ac_ext
7763 fi
7764 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
7765 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
7766 if test $ac_cv_func_getaddrinfo = yes; then
7767
7768
7769 cat >>confdefs.h <<\_ACEOF
7770 #define INET6 1
7771 _ACEOF
7772
7773
7774 else
7775
7776                 if test "$enable_ipv6" != "ifavailable"; then
7777                         { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
7778 See \`config.log' for more details." >&5
7779 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
7780 See \`config.log' for more details." >&2;}
7781    { (exit 1); exit 1; }; }
7782                 fi
7783
7784 fi
7785
7786 fi
7787
7788 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
7789 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
7790 # Check whether --enable-optimizer-dbg was given.
7791 if test "${enable_optimizer_dbg+set}" = set; then
7792   enableval=$enable_optimizer_dbg;
7793 fi
7794
7795 if test "$enable_optimizer_dbg" = "yes"; then
7796
7797 cat >>confdefs.h <<\_ACEOF
7798 #define BDEBUG 1
7799 _ACEOF
7800
7801 fi
7802 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
7803 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
7804
7805 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
7806 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
7807 # Check whether --enable-yydebug was given.
7808 if test "${enable_yydebug+set}" = set; then
7809   enableval=$enable_yydebug;
7810 fi
7811
7812 if test "$enable_yydebug" = "yes"; then
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define YYDEBUG 1
7816 _ACEOF
7817
7818 fi
7819 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
7820 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
7821
7822 { echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
7823 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
7824 if test -r /proc/net/dev ; then
7825         ac_cv_lbl_proc_net_dev=yes
7826 else
7827         ac_cv_lbl_proc_net_dev=no
7828 fi
7829 if test $ac_cv_lbl_proc_net_dev = yes; then
7830
7831 cat >>confdefs.h <<\_ACEOF
7832 #define HAVE_PROC_NET_DEV 1
7833 _ACEOF
7834
7835 fi
7836 { echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
7837 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
7838
7839 # Check for Endace DAG card support.
7840
7841 # Check whether --with-dag was given.
7842 if test "${with_dag+set}" = set; then
7843   withval=$with_dag;
7844         if test "$withval" = no
7845         then
7846                 # User doesn't want DAG support.
7847                 want_dag=no
7848         elif test "$withval" = yes
7849         then
7850                 # User wants DAG support but hasn't specified a directory.
7851                 want_dag=yes
7852         else
7853                 # User wants DAG support and has specified a directory, so use the provided value.
7854                 want_dag=yes
7855                 dag_root=$withval
7856         fi
7857
7858 else
7859
7860         #
7861         # Use DAG API if present, otherwise don't
7862         #
7863         want_dag=ifpresent
7864
7865 fi
7866
7867
7868
7869 # Check whether --with-dag-includes was given.
7870 if test "${with_dag_includes+set}" = set; then
7871   withval=$with_dag_includes;
7872         # User wants DAG support and has specified a header directory, so use the provided value.
7873         want_dag=yes
7874         dag_include_dir=$withval
7875
7876 fi
7877
7878
7879
7880 # Check whether --with-dag-libraries was given.
7881 if test "${with_dag_libraries+set}" = set; then
7882   withval=$with_dag_libraries;
7883         # User wants DAG support and has specified a library directory, so use the provided value.
7884         want_dag=yes
7885         dag_lib_dir=$withval
7886
7887 fi
7888
7889
7890 case "$V_PCAP" in
7891 linux|bpf|dag)
7892         #
7893         # We support the DAG API if we're on Linux or BSD, or if we're
7894         # building a DAG-only libpcap.
7895         #
7896         ;;
7897 *)
7898         #
7899         # If the user explicitly requested DAG, tell them it's not
7900         # supported.
7901         #
7902         # If they expressed no preference, don't include it.
7903         #
7904         if test $want_dag = yes; then
7905                 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
7906 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
7907    { (exit 1); exit 1; }; }
7908         elif test $want_dag = yes; then
7909                 want_dag=no
7910         fi
7911         ;;
7912 esac
7913
7914 ac_cv_lbl_dag_api=no
7915 if test "$want_dag" != no; then
7916
7917         { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
7918 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
7919
7920         # If necessary, set default paths for DAG API headers and libraries.
7921         if test -z "$dag_root"; then
7922             dag_root=/usr/local
7923         fi
7924
7925         if test -z "$dag_include_dir"; then
7926                 dag_include_dir="$dag_root/include"
7927         fi
7928
7929         if test -z "$dag_lib_dir"; then
7930             dag_lib_dir="$dag_root/lib"
7931         fi
7932
7933         if test -z "$dag_tools_dir"; then
7934             dag_tools_dir="$dag_root/tools"
7935                 fi
7936
7937         if test -r $dag_include_dir/dagapi.h; then
7938                 ac_cv_lbl_dag_api=yes
7939         fi
7940         { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
7941 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
7942 fi
7943
7944 if test $ac_cv_lbl_dag_api = yes; then
7945
7946         { echo "$as_me:$LINENO: checking dagapi.o" >&5
7947 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
7948         dagapi_obj=no
7949         if test -r $dag_tools_dir/dagapi.o; then
7950                 # 2.4.x.
7951                 dagapi_obj=$dag_tools_dir/dagapi.o
7952         elif test -r $dag_lib_dir/dagapi.o; then
7953                 # 2.5.x.
7954                 dagapi_obj=$dag_lib_dir/dagapi.o
7955         elif test -r $dag_lib_dir/libdag.a; then
7956                 # 2.5.x.
7957                 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
7958                 if test -r ./dagapi.o; then
7959                     dagapi_obj=./dagapi.o
7960                 else
7961                     ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
7962                     if test -r ./libdag_la-dagapi.o; then
7963                        dagapi_obj=./libdag_la-dagapi.o
7964                     fi
7965                 fi
7966         fi
7967
7968         if test $dagapi_obj = no; then
7969                 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
7970 echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6; }
7971                         ac_cv_lbl_dag_api=no
7972         else
7973                 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
7974 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
7975         fi
7976 fi
7977
7978 if test $ac_cv_lbl_dag_api = yes; then
7979
7980         { echo "$as_me:$LINENO: checking dagopts.o" >&5
7981 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
7982         dagopts_obj=no
7983         if test -r $dag_tools_dir/dagopts.o; then
7984                 # 2.4.x.
7985                 dagopts_obj=$dag_tools_dir/dagopts.o
7986         elif test -r $dag_lib_dir/dagopts.o; then
7987                 # 2.5.x.
7988                 dagopts_obj=$dag_lib_dir/dagopts.o
7989         elif test -r $dag_lib_dir/libdag.a; then
7990                 # 2.5.x.
7991                 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
7992                 if test -r ./dagopts.o; then
7993                     dagopts_obj=./dagopts.o
7994                 else
7995                     ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
7996                     if test -r ./libdag_la-dagopts.o; then
7997                        dagopts_obj=./libdag_la-dagopts.o
7998                     fi
7999                 fi
8000         fi
8001
8002         if test $dagopts_obj = no; then
8003                 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&5
8004 echo "${ECHO_T}no (checked $dag_lib_dir  $dag_tools_dir  $dag_lib_dir/libdag.a)" >&6; }
8005                 ac_cv_lbl_dag_api=no
8006         else
8007                 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8008 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8009         fi
8010 fi
8011
8012 if test $ac_cv_lbl_dag_api = yes; then
8013         # Under 2.5.x only we need to add dagreg.o.
8014         if test -r $dag_include_dir/dagreg.h; then
8015                 { echo "$as_me:$LINENO: checking dagreg.o" >&5
8016 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8017                 dagreg_obj=no
8018                 if test -r $dag_lib_dir/dagreg.o; then
8019                         # Object file is ready and waiting.
8020                         dagreg_obj=$dag_lib_dir/dagreg.o
8021                 elif test -r $dag_lib_dir/libdag.a; then
8022                         # Extract from libdag.a.
8023                         ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8024                         if test -r ./dagreg.o; then
8025                                 dagreg_obj=./dagreg.o
8026                         else
8027                                 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8028                                 if test -r ./libdag_la-dagreg.o; then
8029                                    dagreg_obj=./libdag_la-dagreg.o
8030                                 fi
8031                         fi
8032                 fi
8033
8034                 if test $dagreg_obj = no; then
8035                         { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&5
8036 echo "${ECHO_T}no (checked $dag_lib_dir  $dag_lib_dir/libdag.a)" >&6; }
8037                         ac_cv_lbl_dag_api=no
8038                 else
8039                         { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8040 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8041                 fi
8042         fi
8043 fi
8044
8045 if test $ac_cv_lbl_dag_api = yes; then
8046         V_INCLS="$V_INCLS -I$dag_include_dir"
8047         V_LIBS="$V_LIBS $dagapi_obj $dagopts_obj $dagreg_obj"
8048         if test $V_PCAP != dag ; then
8049                  SSRC="pcap-dag.c"
8050         fi
8051
8052         # See if we can find a general version string.
8053         # Don't need to save and restore LIBS to prevent -ldag being
8054         # included if there's a found-action (arg 3).
8055         saved_ldflags=$LDFLAGS
8056         LDFLAGS="-L$dag_lib_dir"
8057         { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8058 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8059 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062   ac_check_lib_save_LIBS=$LIBS
8063 LIBS="-ldag  $LIBS"
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070
8071 /* Override any GCC internal prototype to avoid an error.
8072    Use char because int might match the return type of a GCC
8073    builtin and then its argument prototype would still apply.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 char dag_attach_stream ();
8078 int
8079 main ()
8080 {
8081 return dag_attach_stream ();
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8088 case "(($ac_try" in
8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090   *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093   (eval "$ac_link") 2>conftest.er1
8094   ac_status=$?
8095   grep -v '^ *+' conftest.er1 >conftest.err
8096   rm -f conftest.er1
8097   cat conftest.err >&5
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } && {
8100          test -z "$ac_c_werror_flag" ||
8101          test ! -s conftest.err
8102        } && test -s conftest$ac_exeext &&
8103        $as_test_x conftest$ac_exeext; then
8104   ac_cv_lib_dag_dag_attach_stream=yes
8105 else
8106   echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109         ac_cv_lib_dag_dag_attach_stream=no
8110 fi
8111
8112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8113       conftest$ac_exeext conftest.$ac_ext
8114 LIBS=$ac_check_lib_save_LIBS
8115 fi
8116 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8117 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8118 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8119   dag_streams="1"
8120 else
8121   dag_streams="0"
8122 fi
8123
8124         { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8125 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8126 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   ac_check_lib_save_LIBS=$LIBS
8130 LIBS="-ldag  $LIBS"
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137
8138 /* Override any GCC internal prototype to avoid an error.
8139    Use char because int might match the return type of a GCC
8140    builtin and then its argument prototype would still apply.  */
8141 #ifdef __cplusplus
8142 extern "C"
8143 #endif
8144 char dag_get_erf_types ();
8145 int
8146 main ()
8147 {
8148 return dag_get_erf_types ();
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8155 case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_link") 2>conftest.er1
8161   ac_status=$?
8162   grep -v '^ *+' conftest.er1 >conftest.err
8163   rm -f conftest.er1
8164   cat conftest.err >&5
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } && {
8167          test -z "$ac_c_werror_flag" ||
8168          test ! -s conftest.err
8169        } && test -s conftest$ac_exeext &&
8170        $as_test_x conftest$ac_exeext; then
8171   ac_cv_lib_dag_dag_get_erf_types=yes
8172 else
8173   echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176         ac_cv_lib_dag_dag_get_erf_types=no
8177 fi
8178
8179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8180       conftest$ac_exeext conftest.$ac_ext
8181 LIBS=$ac_check_lib_save_LIBS
8182 fi
8183 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8184 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8185 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8186
8187
8188 cat >>confdefs.h <<\_ACEOF
8189 #define HAVE_DAG_GET_ERF_TYPES 1
8190 _ACEOF
8191
8192 fi
8193
8194         { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8195 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8196 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8197   echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199   ac_check_lib_save_LIBS=$LIBS
8200 LIBS="-ldag  $LIBS"
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207
8208 /* Override any GCC internal prototype to avoid an error.
8209    Use char because int might match the return type of a GCC
8210    builtin and then its argument prototype would still apply.  */
8211 #ifdef __cplusplus
8212 extern "C"
8213 #endif
8214 char dag_get_stream_erf_types ();
8215 int
8216 main ()
8217 {
8218 return dag_get_stream_erf_types ();
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8225 case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_link") 2>conftest.er1
8231   ac_status=$?
8232   grep -v '^ *+' conftest.er1 >conftest.err
8233   rm -f conftest.er1
8234   cat conftest.err >&5
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); } && {
8237          test -z "$ac_c_werror_flag" ||
8238          test ! -s conftest.err
8239        } && test -s conftest$ac_exeext &&
8240        $as_test_x conftest$ac_exeext; then
8241   ac_cv_lib_dag_dag_get_stream_erf_types=yes
8242 else
8243   echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8245
8246         ac_cv_lib_dag_dag_get_stream_erf_types=no
8247 fi
8248
8249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8250       conftest$ac_exeext conftest.$ac_ext
8251 LIBS=$ac_check_lib_save_LIBS
8252 fi
8253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8254 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8255 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8256
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8260 _ACEOF
8261
8262 fi
8263
8264         LDFLAGS=$saved_ldflags
8265
8266         if test "$dag_streams" = 1; then
8267
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_DAG_STREAMS_API 1
8270 _ACEOF
8271
8272                 DAGLIBS="-ldag"
8273         fi
8274
8275
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_DAG_API 1
8278 _ACEOF
8279
8280 fi
8281
8282 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
8283 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
8284
8285 if test $ac_cv_lbl_dag_api = no; then
8286         { echo "$as_me:$LINENO: result: no" >&5
8287 echo "${ECHO_T}no" >&6; }
8288         if test "$want_dag" = yes; then
8289                 # User wanted DAG support but we couldn't find it.
8290                 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
8291 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
8292    { (exit 1); exit 1; }; }
8293         fi
8294
8295         if test "$V_PCAP" = dag; then
8296                 # User requested "dag" capture type but the DAG API wasn't
8297                 # found.
8298                 { { 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
8299 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;}
8300    { (exit 1); exit 1; }; }
8301         fi
8302 else
8303         { echo "$as_me:$LINENO: result: yes" >&5
8304 echo "${ECHO_T}yes" >&6; }
8305 fi
8306
8307
8308 # Check whether --with-septel was given.
8309 if test "${with_septel+set}" = set; then
8310   withval=$with_septel;
8311         if test "$withval" = no
8312         then
8313                 want_septel=no
8314         elif test "$withval" = yes
8315         then
8316                 want_septel=yes
8317                 septel_root=
8318         else
8319                 want_septel=yes
8320                 septel_root=$withval
8321         fi
8322
8323 else
8324
8325         #
8326         # Use Septel API if present, otherwise don't
8327         #
8328         want_septel=ifpresent
8329         septel_root=./../septel
8330
8331 fi
8332
8333 ac_cv_lbl_septel_api=no
8334 case "$V_PCAP" in
8335 linux|septel)
8336         #
8337         # We support the Septel API if we're on Linux, or if we're building
8338         # a Septel-only libpcap.
8339         #
8340         ;;
8341 *)
8342         #
8343         # If the user explicitly requested Septel, tell them it's not
8344         # supported.
8345         #
8346         # If they expressed no preference, don't include it.
8347         #
8348         if test $want_septel = yes; then
8349                 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
8350 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
8351    { (exit 1); exit 1; }; }
8352         elif test $want_septel = yes; then
8353                 want_septel=no
8354         fi
8355         ;;
8356 esac
8357
8358 if test "$with_septel" != no; then
8359         { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
8360 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
8361
8362         if test -z "$septel_root"; then
8363                 septel_root=$srcdir/../septel
8364
8365         fi
8366
8367         septel_tools_dir="$septel_root"
8368         septel_include_dir="$septel_root/INC"
8369         DEF="-DHAVE_SEPTEL_API"
8370
8371         ac_cv_lbl_septel_api=no
8372         if test -r "$septel_include_dir/msg.h"; then
8373                 V_INCLS="$V_INCLS -I$septel_include_dir"
8374                 V_DEFS="$V_DEFS $DEF"
8375                 V_LIBS="$V_LIBS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o "
8376
8377                 if test "$V_PCAP" != septel ; then
8378                          SSRC="pcap-septel.c"
8379
8380                 fi
8381                 ac_cv_lbl_septel_api=yes
8382         fi
8383
8384         { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
8385 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
8386         if test $ac_cv_lbl_septel_api = no; then
8387                 if test "$want_septel" = yes; then
8388                         { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
8389 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
8390    { (exit 1); exit 1; }; }
8391                 fi
8392         else
8393
8394 cat >>confdefs.h <<\_ACEOF
8395 #define HAVE_SEPTEL_API 1
8396 _ACEOF
8397
8398         fi
8399 fi
8400
8401 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
8402         { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
8403 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
8404    { (exit 1); exit 1; }; }
8405 fi
8406
8407
8408
8409 # Check whether --with-flex was given.
8410 if test "${with_flex+set}" = set; then
8411   withval=$with_flex;
8412 fi
8413
8414
8415 # Check whether --with-bison was given.
8416 if test "${with_bison+set}" = set; then
8417   withval=$with_bison;
8418 fi
8419
8420     if test "$with_flex" = no ; then
8421             V_LEX=lex
8422     else
8423             for ac_prog in flex
8424 do
8425   # Extract the first word of "$ac_prog", so it can be a program name with args.
8426 set dummy $ac_prog; ac_word=$2
8427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8429 if test "${ac_cv_prog_V_LEX+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   if test -n "$V_LEX"; then
8433   ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440   for ac_exec_ext in '' $ac_executable_extensions; do
8441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442     ac_cv_prog_V_LEX="$ac_prog"
8443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447 done
8448 IFS=$as_save_IFS
8449
8450 fi
8451 fi
8452 V_LEX=$ac_cv_prog_V_LEX
8453 if test -n "$V_LEX"; then
8454   { echo "$as_me:$LINENO: result: $V_LEX" >&5
8455 echo "${ECHO_T}$V_LEX" >&6; }
8456 else
8457   { echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6; }
8459 fi
8460
8461
8462   test -n "$V_LEX" && break
8463 done
8464 test -n "$V_LEX" || V_LEX="lex"
8465
8466     fi
8467     if test "$V_LEX" = flex ; then
8468             # The -V flag was added in 2.4
8469             { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
8470 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
8471             if test "${ac_cv_lbl_flex_v24+set}" = set; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   if flex -V >/dev/null 2>&1; then
8475                         ac_cv_lbl_flex_v24=yes
8476                 else
8477                         ac_cv_lbl_flex_v24=no
8478                 fi
8479 fi
8480
8481             { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
8482 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
8483             if test $ac_cv_lbl_flex_v24 = no ; then
8484                     s="2.4 or higher required"
8485                     { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
8486 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
8487                     V_LEX=lex
8488             fi
8489     fi
8490     if test "$with_bison" = no ; then
8491             V_YACC=yacc
8492     else
8493             for ac_prog in bison
8494 do
8495   # Extract the first word of "$ac_prog", so it can be a program name with args.
8496 set dummy $ac_prog; ac_word=$2
8497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8499 if test "${ac_cv_prog_V_YACC+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   if test -n "$V_YACC"; then
8503   ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
8504 else
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508   IFS=$as_save_IFS
8509   test -z "$as_dir" && as_dir=.
8510   for ac_exec_ext in '' $ac_executable_extensions; do
8511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512     ac_cv_prog_V_YACC="$ac_prog"
8513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514     break 2
8515   fi
8516 done
8517 done
8518 IFS=$as_save_IFS
8519
8520 fi
8521 fi
8522 V_YACC=$ac_cv_prog_V_YACC
8523 if test -n "$V_YACC"; then
8524   { echo "$as_me:$LINENO: result: $V_YACC" >&5
8525 echo "${ECHO_T}$V_YACC" >&6; }
8526 else
8527   { echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6; }
8529 fi
8530
8531
8532   test -n "$V_YACC" && break
8533 done
8534 test -n "$V_YACC" || V_YACC="yacc"
8535
8536     fi
8537     if test "$V_YACC" = bison ; then
8538             V_YACC="$V_YACC -y"
8539     fi
8540     if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
8541             { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
8542 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
8543             V_LEX=lex
8544             V_YACC=yacc
8545     fi
8546     if test "$V_LEX" = flex -a -n "pcap_" ; then
8547             V_LEX="$V_LEX -Ppcap_"
8548             V_YACC="$V_YACC -p pcap_"
8549     fi
8550 if test "$V_LEX" = lex ; then
8551 # Some versions of lex can't handle the definitions section of scanner.l .
8552 # Try lexing it and complain if it can't deal.
8553         { echo "$as_me:$LINENO: checking for capable lex" >&5
8554 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
8555 if test "${tcpdump_cv_capable_lex+set}" = set; then
8556   echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558   if lex -t scanner.l > /dev/null 2>&1; then
8559                         tcpdump_cv_capable_lex=yes
8560                 else
8561                         tcpdump_cv_capable_lex=insufficient
8562                 fi
8563 fi
8564 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
8565 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
8566         if test $tcpdump_cv_capable_lex = insufficient ; then
8567                 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
8568  libpcap.  flex is a lex replacement that has many advantages, including
8569  being able to compile libpcap.  For more information, see
8570  http://www.gnu.org/software/flex/flex.html ." >&5
8571 echo "$as_me: error: Your operating system's lex is insufficient to compile
8572  libpcap.  flex is a lex replacement that has many advantages, including
8573  being able to compile libpcap.  For more information, see
8574  http://www.gnu.org/software/flex/flex.html ." >&2;}
8575    { (exit 1); exit 1; }; }
8576         fi
8577 fi
8578
8579 #
8580 # Assume a.out/ELF convention for shared library names (".so"), and
8581 # V7/BSD convention for man pages (file formats in section 5,
8582 # miscellaneous info in section 7).
8583 #
8584 DYEXT="so"
8585 MAN_FILE_FORMATS=5
8586 MAN_MISC_INFO=7
8587 case "$host_os" in
8588
8589 aix*)
8590
8591 cat >>confdefs.h <<\_ACEOF
8592 #define _SUN 1
8593 _ACEOF
8594
8595
8596         # We need "-lodm" and "-lcfg", as libpcap requires them on
8597         # AIX.
8598         DEPLIBS="-lodm -lcfg"
8599         ;;
8600
8601 darwin*)
8602         DYEXT="dylib"
8603         V_CCOPT="$V_CCOPT -fno-common"
8604         ;;
8605
8606 hpux9*)
8607
8608 cat >>confdefs.h <<\_ACEOF
8609 #define HAVE_HPUX9 1
8610 _ACEOF
8611
8612
8613         #
8614         # Use System V conventions for man pages.
8615         #
8616         MAN_FILE_FORMATS=4
8617         MAN_MISC_INFO=5
8618         ;;
8619
8620 hpux10.0*)
8621
8622         #
8623         # Use System V conventions for man pages.
8624         #
8625         MAN_FILE_FORMATS=4
8626         MAN_MISC_INFO=5
8627         ;;
8628
8629 hpux10.1*)
8630
8631         #
8632         # Use System V conventions for man pages.
8633         #
8634         MAN_FILE_FORMATS=4
8635         MAN_MISC_INFO=5
8636         ;;
8637
8638 hpux*)
8639
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_HPUX10_20_OR_LATER 1
8642 _ACEOF
8643
8644
8645         #
8646         # Use System V conventions for man pages.
8647         #
8648         MAN_FILE_FORMATS=4
8649         MAN_MISC_INFO=5
8650         ;;
8651
8652 irix*)
8653         #
8654         # Use System V conventions for man pages.
8655         #
8656         MAN_FILE_FORMATS=4
8657         MAN_MISC_INFO=5
8658         ;;
8659
8660 linux*)
8661         V_CCOPT="$V_CCOPT -fPIC"
8662         ;;
8663
8664 osf*)
8665         #
8666         # Use System V conventions for man pages.
8667         #
8668         MAN_FILE_FORMATS=4
8669         MAN_MISC_INFO=5
8670         ;;
8671
8672 sinix*)
8673         { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
8674 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
8675         if test "${ac_cv_cc_sinix_defined+set}" = set; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684
8685 int
8686 main ()
8687 {
8688 int i = sinix;
8689   ;
8690   return 0;
8691 }
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_compile") 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } && {
8707          test -z "$ac_c_werror_flag" ||
8708          test ! -s conftest.err
8709        } && test -s conftest.$ac_objext; then
8710   ac_cv_cc_sinix_defined=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715         ac_cv_cc_sinix_defined=no
8716 fi
8717
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 fi
8720
8721             { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
8722 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
8723             if test $ac_cv_cc_sinix_defined = no ; then
8724
8725 cat >>confdefs.h <<\_ACEOF
8726 #define sinix 1
8727 _ACEOF
8728
8729             fi
8730         ;;
8731
8732 solaris*)
8733
8734 cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_SOLARIS 1
8736 _ACEOF
8737
8738
8739         #
8740         # Use System V conventions for man pages.
8741         #
8742         MAN_FILE_FORMATS=4
8743         MAN_MISC_INFO=5
8744         ;;
8745 esac
8746
8747 if test -n "$ac_tool_prefix"; then
8748   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8749 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8752 if test "${ac_cv_prog_RANLIB+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   if test -n "$RANLIB"; then
8756   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8760 do
8761   IFS=$as_save_IFS
8762   test -z "$as_dir" && as_dir=.
8763   for ac_exec_ext in '' $ac_executable_extensions; do
8764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767     break 2
8768   fi
8769 done
8770 done
8771 IFS=$as_save_IFS
8772
8773 fi
8774 fi
8775 RANLIB=$ac_cv_prog_RANLIB
8776 if test -n "$RANLIB"; then
8777   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8778 echo "${ECHO_T}$RANLIB" >&6; }
8779 else
8780   { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8782 fi
8783
8784
8785 fi
8786 if test -z "$ac_cv_prog_RANLIB"; then
8787   ac_ct_RANLIB=$RANLIB
8788   # Extract the first word of "ranlib", so it can be a program name with args.
8789 set dummy ranlib; ac_word=$2
8790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8792 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   if test -n "$ac_ct_RANLIB"; then
8796   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801   IFS=$as_save_IFS
8802   test -z "$as_dir" && as_dir=.
8803   for ac_exec_ext in '' $ac_executable_extensions; do
8804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805     ac_cv_prog_ac_ct_RANLIB="ranlib"
8806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8807     break 2
8808   fi
8809 done
8810 done
8811 IFS=$as_save_IFS
8812
8813 fi
8814 fi
8815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8816 if test -n "$ac_ct_RANLIB"; then
8817   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8818 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8819 else
8820   { echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6; }
8822 fi
8823
8824   if test "x$ac_ct_RANLIB" = x; then
8825     RANLIB=":"
8826   else
8827     case $cross_compiling:$ac_tool_warned in
8828 yes:)
8829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8830 whose name does not start with the host triplet.  If you think this
8831 configuration is useful to you, please write to autoconf@gnu.org." >&5
8832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8833 whose name does not start with the host triplet.  If you think this
8834 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8835 ac_tool_warned=yes ;;
8836 esac
8837     RANLIB=$ac_ct_RANLIB
8838   fi
8839 else
8840   RANLIB="$ac_cv_prog_RANLIB"
8841 fi
8842
8843
8844 rm -f os-proto.h
8845     if test "${LBL_CFLAGS+set}" = set; then
8846             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
8847     fi
8848     if test -f .devel ; then
8849             if test "$GCC" = yes ; then
8850                     if test "${LBL_CFLAGS+set}" != set; then
8851                             if test "$ac_cv_prog_cc_g" = yes ; then
8852                                     V_CCOPT="-g $V_CCOPT"
8853                             fi
8854                             V_CCOPT="$V_CCOPT -Wall"
8855                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
8856                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
8857                             fi
8858                     fi
8859             else
8860                     case "$host_os" in
8861
8862                     irix6*)
8863                             V_CCOPT="$V_CCOPT -n32"
8864                             ;;
8865
8866                     *)
8867                             ;;
8868                     esac
8869             fi
8870             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
8871             name="lbl/os-$os.h"
8872             if test -f $name ; then
8873                     ln -s $name os-proto.h
8874
8875 cat >>confdefs.h <<\_ACEOF
8876 #define HAVE_OS_PROTO_H 1
8877 _ACEOF
8878
8879             else
8880                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
8881 echo "$as_me: WARNING: can't find $name" >&2;}
8882             fi
8883     fi
8884
8885 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8886 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8887     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 #       include <sys/types.h>
8898 #       include <sys/socket.h>
8899 int
8900 main ()
8901 {
8902 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914   (eval "$ac_compile") 2>conftest.er1
8915   ac_status=$?
8916   grep -v '^ *+' conftest.er1 >conftest.err
8917   rm -f conftest.er1
8918   cat conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); } && {
8921          test -z "$ac_c_werror_flag" ||
8922          test ! -s conftest.err
8923        } && test -s conftest.$ac_objext; then
8924   ac_cv_lbl_sockaddr_has_sa_len=yes
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929         ac_cv_lbl_sockaddr_has_sa_len=no
8930 fi
8931
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 fi
8934
8935     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
8936 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
8937     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
8938
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_SOCKADDR_SA_LEN 1
8941 _ACEOF
8942
8943     fi
8944
8945 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
8946 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
8947     if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956
8957 #       include <sys/types.h>
8958 #       include <sys/socket.h>
8959 int
8960 main ()
8961 {
8962 u_int i = sizeof (struct sockaddr_storage)
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext
8968 if { (ac_try="$ac_compile"
8969 case "(($ac_try" in
8970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971   *) ac_try_echo=$ac_try;;
8972 esac
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974   (eval "$ac_compile") 2>conftest.er1
8975   ac_status=$?
8976   grep -v '^ *+' conftest.er1 >conftest.err
8977   rm -f conftest.er1
8978   cat conftest.err >&5
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } && {
8981          test -z "$ac_c_werror_flag" ||
8982          test ! -s conftest.err
8983        } && test -s conftest.$ac_objext; then
8984   ac_cv_lbl_has_sockaddr_storage=yes
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989         ac_cv_lbl_has_sockaddr_storage=no
8990 fi
8991
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 fi
8994
8995     { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
8996 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
8997     if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
8998
8999 cat >>confdefs.h <<\_ACEOF
9000 #define HAVE_SOCKADDR_STORAGE 1
9001 _ACEOF
9002
9003     fi
9004
9005 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
9006 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
9007     if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9008   echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010   cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016
9017 #       include <sys/types.h>
9018 #       include <sys/dlpi.h>
9019 #       include <sys/dlpi_ext.h>
9020 int
9021 main ()
9022 {
9023 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9030 case "(($ac_try" in
9031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032   *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035   (eval "$ac_compile") 2>conftest.er1
9036   ac_status=$?
9037   grep -v '^ *+' conftest.er1 >conftest.err
9038   rm -f conftest.er1
9039   cat conftest.err >&5
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); } && {
9042          test -z "$ac_c_werror_flag" ||
9043          test ! -s conftest.err
9044        } && test -s conftest.$ac_objext; then
9045   ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
9046 else
9047   echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050         ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
9051 fi
9052
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 fi
9055
9056     { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
9057 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
9058     if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
9059
9060 cat >>confdefs.h <<\_ACEOF
9061 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9062 _ACEOF
9063
9064     fi
9065
9066 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9067 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
9068     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9069   echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071   case "$host_cpu" in
9072
9073         #
9074         # These are CPU types where:
9075         #
9076         #       the CPU faults on an unaligned access, but at least some
9077         #       OSes that support that CPU catch the fault and simulate
9078         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9079         #       the simulation is slow, so we don't want to use it;
9080         #
9081         #       the CPU, I infer (from the old
9082         #
9083         # XXX: should also check that they don't do weird things (like on arm)
9084         #
9085         #       comment) doesn't fault on unaligned accesses, but doesn't
9086         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
9087         #
9088         #       for whatever reason, the test program doesn't work
9089         #       (this has been claimed to be the case for several of those
9090         #       CPUs - I don't know what the problem is; the problem
9091         #       was reported as "the test program dumps core" for SuperH,
9092         #       but that's what the test program is *supposed* to do -
9093         #       it dumps core before it writes anything, so the test
9094         #       for an empty output file should find an empty output
9095         #       file and conclude that unaligned accesses don't work).
9096         #
9097         # This run-time test won't work if you're cross-compiling, so
9098         # in order to support cross-compiling for a particular CPU,
9099         # we have to wire in the list of CPU types anyway, as far as
9100         # I know, so perhaps we should just have a set of CPUs on
9101         # which we know it doesn't work, a set of CPUs on which we
9102         # know it does work, and have the script just fail on other
9103         # cpu types and update it when such a failure occurs.
9104         #
9105         alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9106                 ac_cv_lbl_unaligned_fail=yes
9107                 ;;
9108
9109         *)
9110                 cat >conftest.c <<EOF
9111 #               include <sys/types.h>
9112 #               include <sys/wait.h>
9113 #               include <stdio.h>
9114                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9115                 main() {
9116                 unsigned int i;
9117                 pid_t pid;
9118                 int status;
9119                 /* avoid "core dumped" message */
9120                 pid = fork();
9121                 if (pid <  0)
9122                         exit(2);
9123                 if (pid > 0) {
9124                         /* parent */
9125                         pid = waitpid(pid, &status, 0);
9126                         if (pid < 0)
9127                                 exit(3);
9128                         exit(!WIFEXITED(status));
9129                 }
9130                 /* child */
9131                 i = *(unsigned int *)&a[1];
9132                 printf("%d\n", i);
9133                 exit(0);
9134                 }
9135 EOF
9136                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9137                     conftest.c $LIBS >/dev/null 2>&1
9138                 if test ! -x conftest ; then
9139                                                 ac_cv_lbl_unaligned_fail=yes
9140                 else
9141                         ./conftest >conftest.out
9142                         if test ! -s conftest.out ; then
9143                                 ac_cv_lbl_unaligned_fail=yes
9144                         else
9145                                 ac_cv_lbl_unaligned_fail=no
9146                         fi
9147                 fi
9148                 rm -f conftest* core core.conftest
9149                 ;;
9150         esac
9151 fi
9152
9153     { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9154 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9155     if test $ac_cv_lbl_unaligned_fail = yes ; then
9156
9157 cat >>confdefs.h <<\_ACEOF
9158 #define LBL_ALIGN 1
9159 _ACEOF
9160
9161     fi
9162
9163 #
9164 # Makefile.in includes rules to generate version.h, so we assume
9165 # that it will be generated if autoconf is used.
9166 #
9167
9168 cat >>confdefs.h <<\_ACEOF
9169 #define HAVE_VERSION_H 1
9170 _ACEOF
9171
9172
9173 rm -f net
9174 ln -s ${srcdir}/bpf/net net
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
9192 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
9193 case "$host_os" in
9194 linux*)
9195
9196 cat >>confdefs.h <<\_ACEOF
9197 #define PCAP_SUPPORT_USB 1
9198 _ACEOF
9199
9200        USB_SRC=pcap-usb-linux.c
9201        { echo "$as_me:$LINENO: result: yes" >&5
9202 echo "${ECHO_T}yes" >&6; }
9203        ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9204        if test $? -ne 0 ; then
9205                ac_usb_dev_name="usbmon"
9206        fi
9207
9208 cat >>confdefs.h <<_ACEOF
9209 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
9210 _ACEOF
9211
9212        { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
9213 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
9214        ;;
9215 *)
9216        { echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6; }
9218        ;;
9219 esac
9220
9221
9222
9223 case "$host_os" in
9224 linux*)
9225        if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9226   { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
9227 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
9228 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 fi
9231 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
9232 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9233 else
9234   # Is the header compilable?
9235 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
9236 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243 $ac_includes_default
9244 #include <bluetooth/bluetooth.h>
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (ac_try="$ac_compile"
9248 case "(($ac_try" in
9249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250   *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253   (eval "$ac_compile") 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } && {
9260          test -z "$ac_c_werror_flag" ||
9261          test ! -s conftest.err
9262        } && test -s conftest.$ac_objext; then
9263   ac_header_compiler=yes
9264 else
9265   echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268         ac_header_compiler=no
9269 fi
9270
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9273 echo "${ECHO_T}$ac_header_compiler" >&6; }
9274
9275 # Is the header present?
9276 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
9277 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 #include <bluetooth/bluetooth.h>
9285 _ACEOF
9286 if { (ac_try="$ac_cpp conftest.$ac_ext"
9287 case "(($ac_try" in
9288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289   *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9293   ac_status=$?
9294   grep -v '^ *+' conftest.er1 >conftest.err
9295   rm -f conftest.er1
9296   cat conftest.err >&5
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); } >/dev/null && {
9299          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9300          test ! -s conftest.err
9301        }; then
9302   ac_header_preproc=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307   ac_header_preproc=no
9308 fi
9309
9310 rm -f conftest.err conftest.$ac_ext
9311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9312 echo "${ECHO_T}$ac_header_preproc" >&6; }
9313
9314 # So?  What about this header?
9315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9316   yes:no: )
9317     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
9318 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9319     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
9320 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
9321     ac_header_preproc=yes
9322     ;;
9323   no:yes:* )
9324     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
9325 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
9326     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&5
9327 echo "$as_me: WARNING: bluetooth/bluetooth.h:     check for missing prerequisite headers?" >&2;}
9328     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
9329 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
9330     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&5
9331 echo "$as_me: WARNING: bluetooth/bluetooth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9332     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
9333 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
9334     { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
9335 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
9336
9337     ;;
9338 esac
9339 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
9340 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
9341 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344   ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
9345 fi
9346 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
9347 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
9348
9349 fi
9350 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
9351
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define PCAP_SUPPORT_BT 1
9355 _ACEOF
9356
9357           BT_SRC=pcap-bt-linux.c
9358           { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
9359 echo "$as_me: Bluetooth sniffing is supported" >&6;}
9360
9361 else
9362   { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
9363 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
9364
9365 fi
9366
9367
9368        ;;
9369 *)
9370        { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
9371 echo "$as_me: no Bluetooth sniffing support" >&6;}
9372        ;;
9373 esac
9374
9375
9376
9377 # Find a good install program.  We prefer a C program (faster),
9378 # so one script is as good as another.  But avoid the broken or
9379 # incompatible versions:
9380 # SysV /etc/install, /usr/sbin/install
9381 # SunOS /usr/etc/install
9382 # IRIX /sbin/install
9383 # AIX /bin/install
9384 # AmigaOS /C/install, which installs bootblocks on floppy discs
9385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9388 # OS/2's system install, which has a completely different semantic
9389 # ./install, which can be erroneously created by make from ./install.sh.
9390 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9391 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9392 if test -z "$INSTALL"; then
9393 if test "${ac_cv_path_install+set}" = set; then
9394   echo $ECHO_N "(cached) $ECHO_C" >&6
9395 else
9396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9398 do
9399   IFS=$as_save_IFS
9400   test -z "$as_dir" && as_dir=.
9401   # Account for people who put trailing slashes in PATH elements.
9402 case $as_dir/ in
9403   ./ | .// | /cC/* | \
9404   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9405   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9406   /usr/ucb/* ) ;;
9407   *)
9408     # OSF1 and SCO ODT 3.0 have their own names for install.
9409     # Don't use installbsd from OSF since it installs stuff as root
9410     # by default.
9411     for ac_prog in ginstall scoinst install; do
9412       for ac_exec_ext in '' $ac_executable_extensions; do
9413         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9414           if test $ac_prog = install &&
9415             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9416             # AIX install.  It has an incompatible calling convention.
9417             :
9418           elif test $ac_prog = install &&
9419             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9420             # program-specific install script used by HP pwplus--don't use.
9421             :
9422           else
9423             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9424             break 3
9425           fi
9426         fi
9427       done
9428     done
9429     ;;
9430 esac
9431 done
9432 IFS=$as_save_IFS
9433
9434
9435 fi
9436   if test "${ac_cv_path_install+set}" = set; then
9437     INSTALL=$ac_cv_path_install
9438   else
9439     # As a last resort, use the slow shell script.  Don't cache a
9440     # value for INSTALL within a source directory, because that will
9441     # break other packages using the cache if that directory is
9442     # removed, or if the value is a relative name.
9443     INSTALL=$ac_install_sh
9444   fi
9445 fi
9446 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9447 echo "${ECHO_T}$INSTALL" >&6; }
9448
9449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9450 # It thinks the first close brace ends the variable substitution.
9451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9452
9453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9454
9455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9456
9457
9458 ac_config_headers="$ac_config_headers config.h"
9459
9460
9461 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
9462
9463 cat >confcache <<\_ACEOF
9464 # This file is a shell script that caches the results of configure
9465 # tests run on this system so they can be shared between configure
9466 # scripts and configure runs, see configure's option --config-cache.
9467 # It is not useful on other systems.  If it contains results you don't
9468 # want to keep, you may remove or edit it.
9469 #
9470 # config.status only pays attention to the cache file if you give it
9471 # the --recheck option to rerun configure.
9472 #
9473 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9475 # following values.
9476
9477 _ACEOF
9478
9479 # The following way of writing the cache mishandles newlines in values,
9480 # but we know of no workaround that is simple, portable, and efficient.
9481 # So, we kill variables containing newlines.
9482 # Ultrix sh set writes to stderr and can't be redirected directly,
9483 # and sets the high bit in the cache file unless we assign to the vars.
9484 (
9485   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9486     eval ac_val=\$$ac_var
9487     case $ac_val in #(
9488     *${as_nl}*)
9489       case $ac_var in #(
9490       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9491 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9492       esac
9493       case $ac_var in #(
9494       _ | IFS | as_nl) ;; #(
9495       *) $as_unset $ac_var ;;
9496       esac ;;
9497     esac
9498   done
9499
9500   (set) 2>&1 |
9501     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9502     *${as_nl}ac_space=\ *)
9503       # `set' does not quote correctly, so add quotes (double-quote
9504       # substitution turns \\\\ into \\, and sed turns \\ into \).
9505       sed -n \
9506         "s/'/'\\\\''/g;
9507           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9508       ;; #(
9509     *)
9510       # `set' quotes correctly as required by POSIX, so do not add quotes.
9511       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9512       ;;
9513     esac |
9514     sort
9515 ) |
9516   sed '
9517      /^ac_cv_env_/b end
9518      t clear
9519      :clear
9520      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9521      t end
9522      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9523      :end' >>confcache
9524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9525   if test -w "$cache_file"; then
9526     test "x$cache_file" != "x/dev/null" &&
9527       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9528 echo "$as_me: updating cache $cache_file" >&6;}
9529     cat confcache >$cache_file
9530   else
9531     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9532 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9533   fi
9534 fi
9535 rm -f confcache
9536
9537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9538 # Let make expand exec_prefix.
9539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9540
9541 DEFS=-DHAVE_CONFIG_H
9542
9543 ac_libobjs=
9544 ac_ltlibobjs=
9545 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9546   # 1. Remove the extension, and $U if already installed.
9547   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9548   ac_i=`echo "$ac_i" | sed "$ac_script"`
9549   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9550   #    will be set to the directory where LIBOBJS objects are built.
9551   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9552   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9553 done
9554 LIBOBJS=$ac_libobjs
9555
9556 LTLIBOBJS=$ac_ltlibobjs
9557
9558
9559
9560 : ${CONFIG_STATUS=./config.status}
9561 ac_clean_files_save=$ac_clean_files
9562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9563 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9564 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9565 cat >$CONFIG_STATUS <<_ACEOF
9566 #! $SHELL
9567 # Generated by $as_me.
9568 # Run this file to recreate the current configuration.
9569 # Compiler output produced by configure, useful for debugging
9570 # configure, is in config.log if it exists.
9571
9572 debug=false
9573 ac_cs_recheck=false
9574 ac_cs_silent=false
9575 SHELL=\${CONFIG_SHELL-$SHELL}
9576 _ACEOF
9577
9578 cat >>$CONFIG_STATUS <<\_ACEOF
9579 ## --------------------- ##
9580 ## M4sh Initialization.  ##
9581 ## --------------------- ##
9582
9583 # Be more Bourne compatible
9584 DUALCASE=1; export DUALCASE # for MKS sh
9585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9586   emulate sh
9587   NULLCMD=:
9588   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9589   # is contrary to our usage.  Disable this feature.
9590   alias -g '${1+"$@"}'='"$@"'
9591   setopt NO_GLOB_SUBST
9592 else
9593   case `(set -o) 2>/dev/null` in
9594   *posix*) set -o posix ;;
9595 esac
9596
9597 fi
9598
9599
9600
9601
9602 # PATH needs CR
9603 # Avoid depending upon Character Ranges.
9604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9607 as_cr_digits='0123456789'
9608 as_cr_alnum=$as_cr_Letters$as_cr_digits
9609
9610 # The user is always right.
9611 if test "${PATH_SEPARATOR+set}" != set; then
9612   echo "#! /bin/sh" >conf$$.sh
9613   echo  "exit 0"   >>conf$$.sh
9614   chmod +x conf$$.sh
9615   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9616     PATH_SEPARATOR=';'
9617   else
9618     PATH_SEPARATOR=:
9619   fi
9620   rm -f conf$$.sh
9621 fi
9622
9623 # Support unset when possible.
9624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9625   as_unset=unset
9626 else
9627   as_unset=false
9628 fi
9629
9630
9631 # IFS
9632 # We need space, tab and new line, in precisely that order.  Quoting is
9633 # there to prevent editors from complaining about space-tab.
9634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9635 # splitting by setting IFS to empty value.)
9636 as_nl='
9637 '
9638 IFS=" ""        $as_nl"
9639
9640 # Find who we are.  Look in the path if we contain no directory separator.
9641 case $0 in
9642   *[\\/]* ) as_myself=$0 ;;
9643   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9645 do
9646   IFS=$as_save_IFS
9647   test -z "$as_dir" && as_dir=.
9648   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9649 done
9650 IFS=$as_save_IFS
9651
9652      ;;
9653 esac
9654 # We did not find ourselves, most probably we were run as `sh COMMAND'
9655 # in which case we are not to be found in the path.
9656 if test "x$as_myself" = x; then
9657   as_myself=$0
9658 fi
9659 if test ! -f "$as_myself"; then
9660   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9661   { (exit 1); exit 1; }
9662 fi
9663
9664 # Work around bugs in pre-3.0 UWIN ksh.
9665 for as_var in ENV MAIL MAILPATH
9666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9667 done
9668 PS1='$ '
9669 PS2='> '
9670 PS4='+ '
9671
9672 # NLS nuisances.
9673 for as_var in \
9674   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9675   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9676   LC_TELEPHONE LC_TIME
9677 do
9678   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9679     eval $as_var=C; export $as_var
9680   else
9681     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9682   fi
9683 done
9684
9685 # Required to use basename.
9686 if expr a : '\(a\)' >/dev/null 2>&1 &&
9687    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9688   as_expr=expr
9689 else
9690   as_expr=false
9691 fi
9692
9693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9694   as_basename=basename
9695 else
9696   as_basename=false
9697 fi
9698
9699
9700 # Name of the executable.
9701 as_me=`$as_basename -- "$0" ||
9702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9703          X"$0" : 'X\(//\)$' \| \
9704          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9705 echo X/"$0" |
9706     sed '/^.*\/\([^/][^/]*\)\/*$/{
9707             s//\1/
9708             q
9709           }
9710           /^X\/\(\/\/\)$/{
9711             s//\1/
9712             q
9713           }
9714           /^X\/\(\/\).*/{
9715             s//\1/
9716             q
9717           }
9718           s/.*/./; q'`
9719
9720 # CDPATH.
9721 $as_unset CDPATH
9722
9723
9724
9725   as_lineno_1=$LINENO
9726   as_lineno_2=$LINENO
9727   test "x$as_lineno_1" != "x$as_lineno_2" &&
9728   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9729
9730   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9731   # uniformly replaced by the line number.  The first 'sed' inserts a
9732   # line-number line after each line using $LINENO; the second 'sed'
9733   # does the real work.  The second script uses 'N' to pair each
9734   # line-number line with the line containing $LINENO, and appends
9735   # trailing '-' during substitution so that $LINENO is not a special
9736   # case at line end.
9737   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9738   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9739   # E. McMahon (1931-1989) for sed's syntax.  :-)
9740   sed -n '
9741     p
9742     /[$]LINENO/=
9743   ' <$as_myself |
9744     sed '
9745       s/[$]LINENO.*/&-/
9746       t lineno
9747       b
9748       :lineno
9749       N
9750       :loop
9751       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9752       t loop
9753       s/-\n.*//
9754     ' >$as_me.lineno &&
9755   chmod +x "$as_me.lineno" ||
9756     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9757    { (exit 1); exit 1; }; }
9758
9759   # Don't try to exec as it changes $[0], causing all sort of problems
9760   # (the dirname of $[0] is not the place where we might find the
9761   # original and so on.  Autoconf is especially sensitive to this).
9762   . "./$as_me.lineno"
9763   # Exit status is that of the last command.
9764   exit
9765 }
9766
9767
9768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9769   as_dirname=dirname
9770 else
9771   as_dirname=false
9772 fi
9773
9774 ECHO_C= ECHO_N= ECHO_T=
9775 case `echo -n x` in
9776 -n*)
9777   case `echo 'x\c'` in
9778   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9779   *)   ECHO_C='\c';;
9780   esac;;
9781 *)
9782   ECHO_N='-n';;
9783 esac
9784
9785 if expr a : '\(a\)' >/dev/null 2>&1 &&
9786    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9787   as_expr=expr
9788 else
9789   as_expr=false
9790 fi
9791
9792 rm -f conf$$ conf$$.exe conf$$.file
9793 if test -d conf$$.dir; then
9794   rm -f conf$$.dir/conf$$.file
9795 else
9796   rm -f conf$$.dir
9797   mkdir conf$$.dir
9798 fi
9799 echo >conf$$.file
9800 if ln -s conf$$.file conf$$ 2>/dev/null; then
9801   as_ln_s='ln -s'
9802   # ... but there are two gotchas:
9803   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9804   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9805   # In both cases, we have to default to `cp -p'.
9806   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9807     as_ln_s='cp -p'
9808 elif ln conf$$.file conf$$ 2>/dev/null; then
9809   as_ln_s=ln
9810 else
9811   as_ln_s='cp -p'
9812 fi
9813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9814 rmdir conf$$.dir 2>/dev/null
9815
9816 if mkdir -p . 2>/dev/null; then
9817   as_mkdir_p=:
9818 else
9819   test -d ./-p && rmdir ./-p
9820   as_mkdir_p=false
9821 fi
9822
9823 if test -x / >/dev/null 2>&1; then
9824   as_test_x='test -x'
9825 else
9826   if ls -dL / >/dev/null 2>&1; then
9827     as_ls_L_option=L
9828   else
9829     as_ls_L_option=
9830   fi
9831   as_test_x='
9832     eval sh -c '\''
9833       if test -d "$1"; then
9834         test -d "$1/.";
9835       else
9836         case $1 in
9837         -*)set "./$1";;
9838         esac;
9839         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9840         ???[sx]*):;;*)false;;esac;fi
9841     '\'' sh
9842   '
9843 fi
9844 as_executable_p=$as_test_x
9845
9846 # Sed expression to map a string onto a valid CPP name.
9847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9848
9849 # Sed expression to map a string onto a valid variable name.
9850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9851
9852
9853 exec 6>&1
9854
9855 # Save the log message, to keep $[0] and so on meaningful, and to
9856 # report actual input values of CONFIG_FILES etc. instead of their
9857 # values after options handling.
9858 ac_log="
9859 This file was extended by $as_me, which was
9860 generated by GNU Autoconf 2.61.  Invocation command line was
9861
9862   CONFIG_FILES    = $CONFIG_FILES
9863   CONFIG_HEADERS  = $CONFIG_HEADERS
9864   CONFIG_LINKS    = $CONFIG_LINKS
9865   CONFIG_COMMANDS = $CONFIG_COMMANDS
9866   $ $0 $@
9867
9868 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9869 "
9870
9871 _ACEOF
9872
9873 cat >>$CONFIG_STATUS <<_ACEOF
9874 # Files that config.status was made for.
9875 config_files="$ac_config_files"
9876 config_headers="$ac_config_headers"
9877
9878 _ACEOF
9879
9880 cat >>$CONFIG_STATUS <<\_ACEOF
9881 ac_cs_usage="\
9882 \`$as_me' instantiates files from templates according to the
9883 current configuration.
9884
9885 Usage: $0 [OPTIONS] [FILE]...
9886
9887   -h, --help       print this help, then exit
9888   -V, --version    print version number and configuration settings, then exit
9889   -q, --quiet      do not print progress messages
9890   -d, --debug      don't remove temporary files
9891       --recheck    update $as_me by reconfiguring in the same conditions
9892   --file=FILE[:TEMPLATE]
9893                    instantiate the configuration file FILE
9894   --header=FILE[:TEMPLATE]
9895                    instantiate the configuration header FILE
9896
9897 Configuration files:
9898 $config_files
9899
9900 Configuration headers:
9901 $config_headers
9902
9903 Report bugs to <bug-autoconf@gnu.org>."
9904
9905 _ACEOF
9906 cat >>$CONFIG_STATUS <<_ACEOF
9907 ac_cs_version="\\
9908 config.status
9909 configured by $0, generated by GNU Autoconf 2.61,
9910   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9911
9912 Copyright (C) 2006 Free Software Foundation, Inc.
9913 This config.status script is free software; the Free Software Foundation
9914 gives unlimited permission to copy, distribute and modify it."
9915
9916 ac_pwd='$ac_pwd'
9917 srcdir='$srcdir'
9918 INSTALL='$INSTALL'
9919 _ACEOF
9920
9921 cat >>$CONFIG_STATUS <<\_ACEOF
9922 # If no file are specified by the user, then we need to provide default
9923 # value.  By we need to know if files were specified by the user.
9924 ac_need_defaults=:
9925 while test $# != 0
9926 do
9927   case $1 in
9928   --*=*)
9929     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9930     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9931     ac_shift=:
9932     ;;
9933   *)
9934     ac_option=$1
9935     ac_optarg=$2
9936     ac_shift=shift
9937     ;;
9938   esac
9939
9940   case $ac_option in
9941   # Handling of the options.
9942   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9943     ac_cs_recheck=: ;;
9944   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9945     echo "$ac_cs_version"; exit ;;
9946   --debug | --debu | --deb | --de | --d | -d )
9947     debug=: ;;
9948   --file | --fil | --fi | --f )
9949     $ac_shift
9950     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9951     ac_need_defaults=false;;
9952   --header | --heade | --head | --hea )
9953     $ac_shift
9954     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9955     ac_need_defaults=false;;
9956   --he | --h)
9957     # Conflict between --help and --header
9958     { echo "$as_me: error: ambiguous option: $1
9959 Try \`$0 --help' for more information." >&2
9960    { (exit 1); exit 1; }; };;
9961   --help | --hel | -h )
9962     echo "$ac_cs_usage"; exit ;;
9963   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9964   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9965     ac_cs_silent=: ;;
9966
9967   # This is an error.
9968   -*) { echo "$as_me: error: unrecognized option: $1
9969 Try \`$0 --help' for more information." >&2
9970    { (exit 1); exit 1; }; } ;;
9971
9972   *) ac_config_targets="$ac_config_targets $1"
9973      ac_need_defaults=false ;;
9974
9975   esac
9976   shift
9977 done
9978
9979 ac_configure_extra_args=
9980
9981 if $ac_cs_silent; then
9982   exec 6>/dev/null
9983   ac_configure_extra_args="$ac_configure_extra_args --silent"
9984 fi
9985
9986 _ACEOF
9987 cat >>$CONFIG_STATUS <<_ACEOF
9988 if \$ac_cs_recheck; then
9989   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9990   CONFIG_SHELL=$SHELL
9991   export CONFIG_SHELL
9992   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9993 fi
9994
9995 _ACEOF
9996 cat >>$CONFIG_STATUS <<\_ACEOF
9997 exec 5>>config.log
9998 {
9999   echo
10000   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10001 ## Running $as_me. ##
10002 _ASBOX
10003   echo "$ac_log"
10004 } >&5
10005
10006 _ACEOF
10007 cat >>$CONFIG_STATUS <<_ACEOF
10008 _ACEOF
10009
10010 cat >>$CONFIG_STATUS <<\_ACEOF
10011
10012 # Handling of arguments.
10013 for ac_config_target in $ac_config_targets
10014 do
10015   case $ac_config_target in
10016     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10017     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10018     "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
10019     "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
10020     "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
10021     "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
10022     "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
10023     "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
10024     "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
10025     "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
10026     "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
10027     "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
10028
10029   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10031    { (exit 1); exit 1; }; };;
10032   esac
10033 done
10034
10035
10036 # If the user did not use the arguments to specify the items to instantiate,
10037 # then the envvar interface is used.  Set only those that are not.
10038 # We use the long form for the default assignment because of an extremely
10039 # bizarre bug on SunOS 4.1.3.
10040 if $ac_need_defaults; then
10041   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10042   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10043 fi
10044
10045 # Have a temporary directory for convenience.  Make it in the build tree
10046 # simply because there is no reason against having it here, and in addition,
10047 # creating and moving files from /tmp can sometimes cause problems.
10048 # Hook for its removal unless debugging.
10049 # Note that there is a small window in which the directory will not be cleaned:
10050 # after its creation but before its name has been assigned to `$tmp'.
10051 $debug ||
10052 {
10053   tmp=
10054   trap 'exit_status=$?
10055   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10056 ' 0
10057   trap '{ (exit 1); exit 1; }' 1 2 13 15
10058 }
10059 # Create a (secure) tmp directory for tmp files.
10060
10061 {
10062   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10063   test -n "$tmp" && test -d "$tmp"
10064 }  ||
10065 {
10066   tmp=./conf$$-$RANDOM
10067   (umask 077 && mkdir "$tmp")
10068 } ||
10069 {
10070    echo "$me: cannot create a temporary directory in ." >&2
10071    { (exit 1); exit 1; }
10072 }
10073
10074 #
10075 # Set up the sed scripts for CONFIG_FILES section.
10076 #
10077
10078 # No need to generate the scripts if there are no CONFIG_FILES.
10079 # This happens for instance when ./config.status config.h
10080 if test -n "$CONFIG_FILES"; then
10081
10082 _ACEOF
10083
10084
10085
10086 ac_delim='%!_!# '
10087 for ac_last_try in false false false false false :; do
10088   cat >conf$$subs.sed <<_ACEOF
10089 SHELL!$SHELL$ac_delim
10090 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10091 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10092 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10093 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10094 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10095 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10096 exec_prefix!$exec_prefix$ac_delim
10097 prefix!$prefix$ac_delim
10098 program_transform_name!$program_transform_name$ac_delim
10099 bindir!$bindir$ac_delim
10100 sbindir!$sbindir$ac_delim
10101 libexecdir!$libexecdir$ac_delim
10102 datarootdir!$datarootdir$ac_delim
10103 datadir!$datadir$ac_delim
10104 sysconfdir!$sysconfdir$ac_delim
10105 sharedstatedir!$sharedstatedir$ac_delim
10106 localstatedir!$localstatedir$ac_delim
10107 includedir!$includedir$ac_delim
10108 oldincludedir!$oldincludedir$ac_delim
10109 docdir!$docdir$ac_delim
10110 infodir!$infodir$ac_delim
10111 htmldir!$htmldir$ac_delim
10112 dvidir!$dvidir$ac_delim
10113 pdfdir!$pdfdir$ac_delim
10114 psdir!$psdir$ac_delim
10115 libdir!$libdir$ac_delim
10116 localedir!$localedir$ac_delim
10117 mandir!$mandir$ac_delim
10118 DEFS!$DEFS$ac_delim
10119 ECHO_C!$ECHO_C$ac_delim
10120 ECHO_N!$ECHO_N$ac_delim
10121 ECHO_T!$ECHO_T$ac_delim
10122 LIBS!$LIBS$ac_delim
10123 build_alias!$build_alias$ac_delim
10124 host_alias!$host_alias$ac_delim
10125 target_alias!$target_alias$ac_delim
10126 build!$build$ac_delim
10127 build_cpu!$build_cpu$ac_delim
10128 build_vendor!$build_vendor$ac_delim
10129 build_os!$build_os$ac_delim
10130 host!$host$ac_delim
10131 host_cpu!$host_cpu$ac_delim
10132 host_vendor!$host_vendor$ac_delim
10133 host_os!$host_os$ac_delim
10134 target!$target$ac_delim
10135 target_cpu!$target_cpu$ac_delim
10136 target_vendor!$target_vendor$ac_delim
10137 target_os!$target_os$ac_delim
10138 SHLICC2!$SHLICC2$ac_delim
10139 CC!$CC$ac_delim
10140 CFLAGS!$CFLAGS$ac_delim
10141 LDFLAGS!$LDFLAGS$ac_delim
10142 CPPFLAGS!$CPPFLAGS$ac_delim
10143 ac_ct_CC!$ac_ct_CC$ac_delim
10144 EXEEXT!$EXEEXT$ac_delim
10145 OBJEXT!$OBJEXT$ac_delim
10146 CPP!$CPP$ac_delim
10147 GREP!$GREP$ac_delim
10148 EGREP!$EGREP$ac_delim
10149 LIBOBJS!$LIBOBJS$ac_delim
10150 V_LEX!$V_LEX$ac_delim
10151 V_YACC!$V_YACC$ac_delim
10152 RANLIB!$RANLIB$ac_delim
10153 V_CCOPT!$V_CCOPT$ac_delim
10154 V_DEFS!$V_DEFS$ac_delim
10155 V_INCLS!$V_INCLS$ac_delim
10156 V_LIBS!$V_LIBS$ac_delim
10157 V_PCAP!$V_PCAP$ac_delim
10158 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
10159 SSRC!$SSRC$ac_delim
10160 DYEXT!$DYEXT$ac_delim
10161 DAGLIBS!$DAGLIBS$ac_delim
10162 DEPLIBS!$DEPLIBS$ac_delim
10163 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
10164 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
10165 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
10166 USB_SRC!$USB_SRC$ac_delim
10167 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
10168 BT_SRC!$BT_SRC$ac_delim
10169 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10170 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10171 INSTALL_DATA!$INSTALL_DATA$ac_delim
10172 LTLIBOBJS!$LTLIBOBJS$ac_delim
10173 _ACEOF
10174
10175   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
10176     break
10177   elif $ac_last_try; then
10178     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10179 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10180    { (exit 1); exit 1; }; }
10181   else
10182     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10183   fi
10184 done
10185
10186 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10187 if test -n "$ac_eof"; then
10188   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10189   ac_eof=`expr $ac_eof + 1`
10190 fi
10191
10192 cat >>$CONFIG_STATUS <<_ACEOF
10193 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10195 _ACEOF
10196 sed '
10197 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10198 s/^/s,@/; s/!/@,|#_!!_#|/
10199 :n
10200 t n
10201 s/'"$ac_delim"'$/,g/; t
10202 s/$/\\/; p
10203 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10204 ' >>$CONFIG_STATUS <conf$$subs.sed
10205 rm -f conf$$subs.sed
10206 cat >>$CONFIG_STATUS <<_ACEOF
10207 :end
10208 s/|#_!!_#|//g
10209 CEOF$ac_eof
10210 _ACEOF
10211
10212
10213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10215 # trailing colons and then remove the whole line if VPATH becomes empty
10216 # (actually we leave an empty line to preserve line numbers).
10217 if test "x$srcdir" = x.; then
10218   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10219 s/:*\$(srcdir):*/:/
10220 s/:*\${srcdir}:*/:/
10221 s/:*@srcdir@:*/:/
10222 s/^\([^=]*=[     ]*\):*/\1/
10223 s/:*$//
10224 s/^[^=]*=[       ]*$//
10225 }'
10226 fi
10227
10228 cat >>$CONFIG_STATUS <<\_ACEOF
10229 fi # test -n "$CONFIG_FILES"
10230
10231
10232 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10233 do
10234   case $ac_tag in
10235   :[FHLC]) ac_mode=$ac_tag; continue;;
10236   esac
10237   case $ac_mode$ac_tag in
10238   :[FHL]*:*);;
10239   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10240 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10241    { (exit 1); exit 1; }; };;
10242   :[FH]-) ac_tag=-:-;;
10243   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10244   esac
10245   ac_save_IFS=$IFS
10246   IFS=:
10247   set x $ac_tag
10248   IFS=$ac_save_IFS
10249   shift
10250   ac_file=$1
10251   shift
10252
10253   case $ac_mode in
10254   :L) ac_source=$1;;
10255   :[FH])
10256     ac_file_inputs=
10257     for ac_f
10258     do
10259       case $ac_f in
10260       -) ac_f="$tmp/stdin";;
10261       *) # Look for the file first in the build tree, then in the source tree
10262          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10263          # because $ac_f cannot contain `:'.
10264          test -f "$ac_f" ||
10265            case $ac_f in
10266            [\\/$]*) false;;
10267            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10268            esac ||
10269            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10270 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10271    { (exit 1); exit 1; }; };;
10272       esac
10273       ac_file_inputs="$ac_file_inputs $ac_f"
10274     done
10275
10276     # Let's still pretend it is `configure' which instantiates (i.e., don't
10277     # use $as_me), people would be surprised to read:
10278     #    /* config.h.  Generated by config.status.  */
10279     configure_input="Generated from "`IFS=:
10280           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10281     if test x"$ac_file" != x-; then
10282       configure_input="$ac_file.  $configure_input"
10283       { echo "$as_me:$LINENO: creating $ac_file" >&5
10284 echo "$as_me: creating $ac_file" >&6;}
10285     fi
10286
10287     case $ac_tag in
10288     *:-:* | *:-) cat >"$tmp/stdin";;
10289     esac
10290     ;;
10291   esac
10292
10293   ac_dir=`$as_dirname -- "$ac_file" ||
10294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10295          X"$ac_file" : 'X\(//\)[^/]' \| \
10296          X"$ac_file" : 'X\(//\)$' \| \
10297          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10298 echo X"$ac_file" |
10299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10300             s//\1/
10301             q
10302           }
10303           /^X\(\/\/\)[^/].*/{
10304             s//\1/
10305             q
10306           }
10307           /^X\(\/\/\)$/{
10308             s//\1/
10309             q
10310           }
10311           /^X\(\/\).*/{
10312             s//\1/
10313             q
10314           }
10315           s/.*/./; q'`
10316   { as_dir="$ac_dir"
10317   case $as_dir in #(
10318   -*) as_dir=./$as_dir;;
10319   esac
10320   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10321     as_dirs=
10322     while :; do
10323       case $as_dir in #(
10324       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10325       *) as_qdir=$as_dir;;
10326       esac
10327       as_dirs="'$as_qdir' $as_dirs"
10328       as_dir=`$as_dirname -- "$as_dir" ||
10329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10330          X"$as_dir" : 'X\(//\)[^/]' \| \
10331          X"$as_dir" : 'X\(//\)$' \| \
10332          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10333 echo X"$as_dir" |
10334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10335             s//\1/
10336             q
10337           }
10338           /^X\(\/\/\)[^/].*/{
10339             s//\1/
10340             q
10341           }
10342           /^X\(\/\/\)$/{
10343             s//\1/
10344             q
10345           }
10346           /^X\(\/\).*/{
10347             s//\1/
10348             q
10349           }
10350           s/.*/./; q'`
10351       test -d "$as_dir" && break
10352     done
10353     test -z "$as_dirs" || eval "mkdir $as_dirs"
10354   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10355 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10356    { (exit 1); exit 1; }; }; }
10357   ac_builddir=.
10358
10359 case "$ac_dir" in
10360 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10361 *)
10362   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10363   # A ".." for each directory in $ac_dir_suffix.
10364   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10365   case $ac_top_builddir_sub in
10366   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10367   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10368   esac ;;
10369 esac
10370 ac_abs_top_builddir=$ac_pwd
10371 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10372 # for backward compatibility:
10373 ac_top_builddir=$ac_top_build_prefix
10374
10375 case $srcdir in
10376   .)  # We are building in place.
10377     ac_srcdir=.
10378     ac_top_srcdir=$ac_top_builddir_sub
10379     ac_abs_top_srcdir=$ac_pwd ;;
10380   [\\/]* | ?:[\\/]* )  # Absolute name.
10381     ac_srcdir=$srcdir$ac_dir_suffix;
10382     ac_top_srcdir=$srcdir
10383     ac_abs_top_srcdir=$srcdir ;;
10384   *) # Relative name.
10385     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10386     ac_top_srcdir=$ac_top_build_prefix$srcdir
10387     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10388 esac
10389 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10390
10391
10392   case $ac_mode in
10393   :F)
10394   #
10395   # CONFIG_FILE
10396   #
10397
10398   case $INSTALL in
10399   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10400   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10401   esac
10402 _ACEOF
10403
10404 cat >>$CONFIG_STATUS <<\_ACEOF
10405 # If the template does not know about datarootdir, expand it.
10406 # FIXME: This hack should be removed a few years after 2.60.
10407 ac_datarootdir_hack=; ac_datarootdir_seen=
10408
10409 case `sed -n '/datarootdir/ {
10410   p
10411   q
10412 }
10413 /@datadir@/p
10414 /@docdir@/p
10415 /@infodir@/p
10416 /@localedir@/p
10417 /@mandir@/p
10418 ' $ac_file_inputs` in
10419 *datarootdir*) ac_datarootdir_seen=yes;;
10420 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10421   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10422 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10423 _ACEOF
10424 cat >>$CONFIG_STATUS <<_ACEOF
10425   ac_datarootdir_hack='
10426   s&@datadir@&$datadir&g
10427   s&@docdir@&$docdir&g
10428   s&@infodir@&$infodir&g
10429   s&@localedir@&$localedir&g
10430   s&@mandir@&$mandir&g
10431     s&\\\${datarootdir}&$datarootdir&g' ;;
10432 esac
10433 _ACEOF
10434
10435 # Neutralize VPATH when `$srcdir' = `.'.
10436 # Shell code in configure.ac might set extrasub.
10437 # FIXME: do we really want to maintain this feature?
10438 cat >>$CONFIG_STATUS <<_ACEOF
10439   sed "$ac_vpsub
10440 $extrasub
10441 _ACEOF
10442 cat >>$CONFIG_STATUS <<\_ACEOF
10443 :t
10444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10445 s&@configure_input@&$configure_input&;t t
10446 s&@top_builddir@&$ac_top_builddir_sub&;t t
10447 s&@srcdir@&$ac_srcdir&;t t
10448 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10449 s&@top_srcdir@&$ac_top_srcdir&;t t
10450 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10451 s&@builddir@&$ac_builddir&;t t
10452 s&@abs_builddir@&$ac_abs_builddir&;t t
10453 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10454 s&@INSTALL@&$ac_INSTALL&;t t
10455 $ac_datarootdir_hack
10456 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10457
10458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10459   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10460   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10461   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10462 which seems to be undefined.  Please make sure it is defined." >&5
10463 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10464 which seems to be undefined.  Please make sure it is defined." >&2;}
10465
10466   rm -f "$tmp/stdin"
10467   case $ac_file in
10468   -) cat "$tmp/out"; rm -f "$tmp/out";;
10469   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10470   esac
10471  ;;
10472   :H)
10473   #
10474   # CONFIG_HEADER
10475   #
10476 _ACEOF
10477
10478 # Transform confdefs.h into a sed script `conftest.defines', that
10479 # substitutes the proper values into config.h.in to produce config.h.
10480 rm -f conftest.defines conftest.tail
10481 # First, append a space to every undef/define line, to ease matching.
10482 echo 's/$/ /' >conftest.defines
10483 # Then, protect against being on the right side of a sed subst, or in
10484 # an unquoted here document, in config.status.  If some macros were
10485 # called several times there might be several #defines for the same
10486 # symbol, which is useless.  But do not sort them, since the last
10487 # AC_DEFINE must be honored.
10488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10489 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10490 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10491 # PARAMS is the parameter list in the macro definition--in most cases, it's
10492 # just an empty string.
10493 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
10494 ac_dB='\\)[      (].*,\\1define\\2'
10495 ac_dC=' '
10496 ac_dD=' ,'
10497
10498 uniq confdefs.h |
10499   sed -n '
10500         t rset
10501         :rset
10502         s/^[     ]*#[    ]*define[       ][      ]*//
10503         t ok
10504         d
10505         :ok
10506         s/[\\&,]/\\&/g
10507         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10508         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10509   ' >>conftest.defines
10510
10511 # Remove the space that was appended to ease matching.
10512 # Then replace #undef with comments.  This is necessary, for
10513 # example, in the case of _POSIX_SOURCE, which is predefined and required
10514 # on some systems where configure will not decide to define it.
10515 # (The regexp can be short, since the line contains either #define or #undef.)
10516 echo 's/ $//
10517 s,^[     #]*u.*,/* & */,' >>conftest.defines
10518
10519 # Break up conftest.defines:
10520 ac_max_sed_lines=50
10521
10522 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10523 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10524 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10525 # et cetera.
10526 ac_in='$ac_file_inputs'
10527 ac_out='"$tmp/out1"'
10528 ac_nxt='"$tmp/out2"'
10529
10530 while :
10531 do
10532   # Write a here document:
10533     cat >>$CONFIG_STATUS <<_ACEOF
10534     # First, check the format of the line:
10535     cat >"\$tmp/defines.sed" <<\\CEOF
10536 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
10537 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
10538 b
10539 :def
10540 _ACEOF
10541   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10542   echo 'CEOF
10543     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10544   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10545   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10546   grep . conftest.tail >/dev/null || break
10547   rm -f conftest.defines
10548   mv conftest.tail conftest.defines
10549 done
10550 rm -f conftest.defines conftest.tail
10551
10552 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10553 cat >>$CONFIG_STATUS <<\_ACEOF
10554   if test x"$ac_file" != x-; then
10555     echo "/* $configure_input  */" >"$tmp/config.h"
10556     cat "$ac_result" >>"$tmp/config.h"
10557     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10558       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10559 echo "$as_me: $ac_file is unchanged" >&6;}
10560     else
10561       rm -f $ac_file
10562       mv "$tmp/config.h" $ac_file
10563     fi
10564   else
10565     echo "/* $configure_input  */"
10566     cat "$ac_result"
10567   fi
10568   rm -f "$tmp/out12"
10569  ;;
10570
10571
10572   esac
10573
10574 done # for ac_tag
10575
10576
10577 { (exit 0); exit 0; }
10578 _ACEOF
10579 chmod +x $CONFIG_STATUS
10580 ac_clean_files=$ac_clean_files_save
10581
10582
10583 # configure is writing to config.log, and then calls config.status.
10584 # config.status does its own redirection, appending to config.log.
10585 # Unfortunately, on DOS this fails, as config.log is still kept open
10586 # by configure, so config.status won't be able to write to it; its
10587 # output is simply discarded.  So we exec the FD to /dev/null,
10588 # effectively closing config.log, so it can be properly (re)opened and
10589 # appended to by config.status.  When coming back to configure, we
10590 # need to make the FD available again.
10591 if test "$no_create" != yes; then
10592   ac_cs_success=:
10593   ac_config_status_args=
10594   test "$silent" = yes &&
10595     ac_config_status_args="$ac_config_status_args --quiet"
10596   exec 5>/dev/null
10597   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10598   exec 5>>config.log
10599   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10600   # would make configure fail if this is the last instruction.
10601   $ac_cs_success || { (exit 1); exit 1; }
10602 fi
10603
10604
10605 if test -f .devel ; then
10606         make depend
10607 fi
10608 exit 0