]> The Tcpdump Group git mirrors - libpcap/blob - configure
Add support for capturing from Linux iptables NFLOG log groups.
[libpcap] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.168 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="pcap.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 target
663 target_cpu
664 target_vendor
665 target_os
666 SHLICC2
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LIBOBJS
678 HAVE_LINUX_TPACKET_AUXDATA
679 V_LEX
680 V_YACC
681 RANLIB
682 AR
683 V_CCOPT
684 V_DEFS
685 V_FINDALLDEVS
686 V_INCLS
687 V_PCAP
688 V_SHLIB_CMD
689 V_SHLIB_OPT
690 V_SONAME_OPT
691 V_RPATH_OPT
692 ADDLOBJS
693 ADDLARCHIVEOBJS
694 SSRC
695 DYEXT
696 MAN_FILE_FORMATS
697 MAN_MISC_INFO
698 PCAP_SUPPORT_USB
699 USB_SRC
700 PCAP_SUPPORT_NETFILTER
701 NETFILTER_SRC
702 PCAP_SUPPORT_BT
703 BT_SRC
704 PCAP_SUPPORT_CAN
705 CAN_SRC
706 INSTALL_PROGRAM
707 INSTALL_SCRIPT
708 INSTALL_DATA
709 LTLIBOBJS'
710 ac_subst_files=''
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CC
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CPP'
720
721
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
741
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE}'
759 infodir='${datarootdir}/info'
760 htmldir='${docdir}'
761 dvidir='${docdir}'
762 pdfdir='${docdir}'
763 psdir='${docdir}'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
767
768 ac_prev=
769 ac_dashdash=
770 for ac_option
771 do
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
775 ac_prev=
776 continue
777 fi
778
779 case $ac_option in
780 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 *) ac_optarg=yes ;;
782 esac
783
784 # Accept the important Cygnus configure options, so we can diagnose typos.
785
786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
814
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
822 -disable-* | --disable-*)
823 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
826 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
827 { (exit 1); exit 1; }; }
828 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
829 eval enable_$ac_feature=no ;;
830
831 -docdir | --docdir | --docdi | --doc | --do)
832 ac_prev=docdir ;;
833 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 docdir=$ac_optarg ;;
835
836 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 ac_prev=dvidir ;;
838 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 dvidir=$ac_optarg ;;
840
841 -enable-* | --enable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=\$ac_optarg ;;
849
850 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852 | --exec | --exe | --ex)
853 ac_prev=exec_prefix ;;
854 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856 | --exec=* | --exe=* | --ex=*)
857 exec_prefix=$ac_optarg ;;
858
859 -gas | --gas | --ga | --g)
860 # Obsolete; use --with-gas.
861 with_gas=yes ;;
862
863 -help | --help | --hel | --he | -h)
864 ac_init_help=long ;;
865 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866 ac_init_help=recursive ;;
867 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868 ac_init_help=short ;;
869
870 -host | --host | --hos | --ho)
871 ac_prev=host_alias ;;
872 -host=* | --host=* | --hos=* | --ho=*)
873 host_alias=$ac_optarg ;;
874
875 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876 ac_prev=htmldir ;;
877 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878 | --ht=*)
879 htmldir=$ac_optarg ;;
880
881 -includedir | --includedir | --includedi | --included | --include \
882 | --includ | --inclu | --incl | --inc)
883 ac_prev=includedir ;;
884 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885 | --includ=* | --inclu=* | --incl=* | --inc=*)
886 includedir=$ac_optarg ;;
887
888 -infodir | --infodir | --infodi | --infod | --info | --inf)
889 ac_prev=infodir ;;
890 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891 infodir=$ac_optarg ;;
892
893 -libdir | --libdir | --libdi | --libd)
894 ac_prev=libdir ;;
895 -libdir=* | --libdir=* | --libdi=* | --libd=*)
896 libdir=$ac_optarg ;;
897
898 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899 | --libexe | --libex | --libe)
900 ac_prev=libexecdir ;;
901 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902 | --libexe=* | --libex=* | --libe=*)
903 libexecdir=$ac_optarg ;;
904
905 -localedir | --localedir | --localedi | --localed | --locale)
906 ac_prev=localedir ;;
907 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908 localedir=$ac_optarg ;;
909
910 -localstatedir | --localstatedir | --localstatedi | --localstated \
911 | --localstate | --localstat | --localsta | --localst | --locals)
912 ac_prev=localstatedir ;;
913 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915 localstatedir=$ac_optarg ;;
916
917 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918 ac_prev=mandir ;;
919 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920 mandir=$ac_optarg ;;
921
922 -nfp | --nfp | --nf)
923 # Obsolete; use --without-fp.
924 with_fp=no ;;
925
926 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927 | --no-cr | --no-c | -n)
928 no_create=yes ;;
929
930 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932 no_recursion=yes ;;
933
934 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936 | --oldin | --oldi | --old | --ol | --o)
937 ac_prev=oldincludedir ;;
938 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941 oldincludedir=$ac_optarg ;;
942
943 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944 ac_prev=prefix ;;
945 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946 prefix=$ac_optarg ;;
947
948 -program-prefix | --program-prefix | --program-prefi | --program-pref \
949 | --program-pre | --program-pr | --program-p)
950 ac_prev=program_prefix ;;
951 -program-prefix=* | --program-prefix=* | --program-prefi=* \
952 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953 program_prefix=$ac_optarg ;;
954
955 -program-suffix | --program-suffix | --program-suffi | --program-suff \
956 | --program-suf | --program-su | --program-s)
957 ac_prev=program_suffix ;;
958 -program-suffix=* | --program-suffix=* | --program-suffi=* \
959 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960 program_suffix=$ac_optarg ;;
961
962 -program-transform-name | --program-transform-name \
963 | --program-transform-nam | --program-transform-na \
964 | --program-transform-n | --program-transform- \
965 | --program-transform | --program-transfor \
966 | --program-transfo | --program-transf \
967 | --program-trans | --program-tran \
968 | --progr-tra | --program-tr | --program-t)
969 ac_prev=program_transform_name ;;
970 -program-transform-name=* | --program-transform-name=* \
971 | --program-transform-nam=* | --program-transform-na=* \
972 | --program-transform-n=* | --program-transform-=* \
973 | --program-transform=* | --program-transfor=* \
974 | --program-transfo=* | --program-transf=* \
975 | --program-trans=* | --program-tran=* \
976 | --progr-tra=* | --program-tr=* | --program-t=*)
977 program_transform_name=$ac_optarg ;;
978
979 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980 ac_prev=pdfdir ;;
981 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982 pdfdir=$ac_optarg ;;
983
984 -psdir | --psdir | --psdi | --psd | --ps)
985 ac_prev=psdir ;;
986 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987 psdir=$ac_optarg ;;
988
989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990 | -silent | --silent | --silen | --sile | --sil)
991 silent=yes ;;
992
993 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
994 ac_prev=sbindir ;;
995 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
996 | --sbi=* | --sb=*)
997 sbindir=$ac_optarg ;;
998
999 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001 | --sharedst | --shareds | --shared | --share | --shar \
1002 | --sha | --sh)
1003 ac_prev=sharedstatedir ;;
1004 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1007 | --sha=* | --sh=*)
1008 sharedstatedir=$ac_optarg ;;
1009
1010 -site | --site | --sit)
1011 ac_prev=site ;;
1012 -site=* | --site=* | --sit=*)
1013 site=$ac_optarg ;;
1014
1015 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1016 ac_prev=srcdir ;;
1017 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018 srcdir=$ac_optarg ;;
1019
1020 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021 | --syscon | --sysco | --sysc | --sys | --sy)
1022 ac_prev=sysconfdir ;;
1023 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025 sysconfdir=$ac_optarg ;;
1026
1027 -target | --target | --targe | --targ | --tar | --ta | --t)
1028 ac_prev=target_alias ;;
1029 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030 target_alias=$ac_optarg ;;
1031
1032 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1033 verbose=yes ;;
1034
1035 -version | --version | --versio | --versi | --vers | -V)
1036 ac_init_version=: ;;
1037
1038 -with-* | --with-*)
1039 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045 eval with_$ac_package=\$ac_optarg ;;
1046
1047 -without-* | --without-*)
1048 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid package name: $ac_package" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054 eval with_$ac_package=no ;;
1055
1056 --x)
1057 # Obsolete; use --with-x.
1058 with_x=yes ;;
1059
1060 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061 | --x-incl | --x-inc | --x-in | --x-i)
1062 ac_prev=x_includes ;;
1063 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065 x_includes=$ac_optarg ;;
1066
1067 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069 ac_prev=x_libraries ;;
1070 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072 x_libraries=$ac_optarg ;;
1073
1074 -*) { echo "$as_me: error: unrecognized option: $ac_option
1075 Try \`$0 --help' for more information." >&2
1076 { (exit 1); exit 1; }; }
1077 ;;
1078
1079 *=*)
1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1084 { (exit 1); exit 1; }; }
1085 eval $ac_envvar=\$ac_optarg
1086 export $ac_envvar ;;
1087
1088 *)
1089 # FIXME: should be removed in autoconf 3.0.
1090 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 ;;
1095
1096 esac
1097 done
1098
1099 if test -n "$ac_prev"; then
1100 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101 { echo "$as_me: error: missing argument to $ac_option" >&2
1102 { (exit 1); exit 1; }; }
1103 fi
1104
1105 # Be sure to have absolute directory names.
1106 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107 datadir sysconfdir sharedstatedir localstatedir includedir \
1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109 libdir localedir mandir
1110 do
1111 eval ac_val=\$$ac_var
1112 case $ac_val in
1113 [\\/$]* | ?:[\\/]* ) continue;;
1114 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115 esac
1116 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1117 { (exit 1); exit 1; }; }
1118 done
1119
1120 # There might be people who depend on the old broken behavior: `$host'
1121 # used to hold the argument of --host etc.
1122 # FIXME: To remove some day.
1123 build=$build_alias
1124 host=$host_alias
1125 target=$target_alias
1126
1127 # FIXME: To remove some day.
1128 if test "x$host_alias" != x; then
1129 if test "x$build_alias" = x; then
1130 cross_compiling=maybe
1131 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1132 If a cross compiler is detected then cross compile mode will be used." >&2
1133 elif test "x$build_alias" != "x$host_alias"; then
1134 cross_compiling=yes
1135 fi
1136 fi
1137
1138 ac_tool_prefix=
1139 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140
1141 test "$silent" = yes && exec 6>/dev/null
1142
1143
1144 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1145 ac_ls_di=`ls -di .` &&
1146 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1147 { echo "$as_me: error: Working directory cannot be determined" >&2
1148 { (exit 1); exit 1; }; }
1149 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1150 { echo "$as_me: error: pwd does not report name of working directory" >&2
1151 { (exit 1); exit 1; }; }
1152
1153
1154 # Find the source files, if location was not specified.
1155 if test -z "$srcdir"; then
1156 ac_srcdir_defaulted=yes
1157 # Try the directory containing this script, then the parent directory.
1158 ac_confdir=`$as_dirname -- "$0" ||
1159 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160 X"$0" : 'X\(//\)[^/]' \| \
1161 X"$0" : 'X\(//\)$' \| \
1162 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1163 echo X"$0" |
1164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)[^/].*/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\/\)$/{
1173 s//\1/
1174 q
1175 }
1176 /^X\(\/\).*/{
1177 s//\1/
1178 q
1179 }
1180 s/.*/./; q'`
1181 srcdir=$ac_confdir
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 srcdir=..
1184 fi
1185 else
1186 ac_srcdir_defaulted=no
1187 fi
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1191 { (exit 1); exit 1; }; }
1192 fi
1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194 ac_abs_confdir=`(
1195 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1196 { (exit 1); exit 1; }; }
1197 pwd)`
1198 # When building in place, set srcdir=.
1199 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200 srcdir=.
1201 fi
1202 # Remove unnecessary trailing slashes from srcdir.
1203 # Double slashes in file names in object file debugging info
1204 # mess up M-x gdb in Emacs.
1205 case $srcdir in
1206 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207 esac
1208 for ac_var in $ac_precious_vars; do
1209 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_env_${ac_var}_value=\$${ac_var}
1211 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1213 done
1214
1215 #
1216 # Report the --help message.
1217 #
1218 if test "$ac_init_help" = "long"; then
1219 # Omit some internal or obsolete options to make the list less imposing.
1220 # This message is too long to be a string in the A/UX 3.1 sh.
1221 cat <<_ACEOF
1222 \`configure' configures this package to adapt to many kinds of systems.
1223
1224 Usage: $0 [OPTION]... [VAR=VALUE]...
1225
1226 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1227 VAR=VALUE. See below for descriptions of some of the useful variables.
1228
1229 Defaults for the options are specified in brackets.
1230
1231 Configuration:
1232 -h, --help display this help and exit
1233 --help=short display options specific to this package
1234 --help=recursive display the short help of all the included packages
1235 -V, --version display version information and exit
1236 -q, --quiet, --silent do not print \`checking...' messages
1237 --cache-file=FILE cache test results in FILE [disabled]
1238 -C, --config-cache alias for \`--cache-file=config.cache'
1239 -n, --no-create do not create output files
1240 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1241
1242 Installation directories:
1243 --prefix=PREFIX install architecture-independent files in PREFIX
1244 [$ac_default_prefix]
1245 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1246 [PREFIX]
1247
1248 By default, \`make install' will install all the files in
1249 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1250 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1251 for instance \`--prefix=\$HOME'.
1252
1253 For better control, use the options below.
1254
1255 Fine tuning of the installation directories:
1256 --bindir=DIR user executables [EPREFIX/bin]
1257 --sbindir=DIR system admin executables [EPREFIX/sbin]
1258 --libexecdir=DIR program executables [EPREFIX/libexec]
1259 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1260 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1261 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1262 --libdir=DIR object code libraries [EPREFIX/lib]
1263 --includedir=DIR C header files [PREFIX/include]
1264 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1265 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1266 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1267 --infodir=DIR info documentation [DATAROOTDIR/info]
1268 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1269 --mandir=DIR man documentation [DATAROOTDIR/man]
1270 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1271 --htmldir=DIR html documentation [DOCDIR]
1272 --dvidir=DIR dvi documentation [DOCDIR]
1273 --pdfdir=DIR pdf documentation [DOCDIR]
1274 --psdir=DIR ps documentation [DOCDIR]
1275 _ACEOF
1276
1277 cat <<\_ACEOF
1278
1279 System types:
1280 --build=BUILD configure for building on BUILD [guessed]
1281 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1282 --target=TARGET configure for building compilers for TARGET [HOST]
1283 _ACEOF
1284 fi
1285
1286 if test -n "$ac_init_help"; then
1287
1288 cat <<\_ACEOF
1289
1290 Optional Features:
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --disable-largefile omit support for large files
1294 --disable-protochain disable \"protochain\" insn
1295 --enable-ipv6 build IPv6-capable version [default=yes, if
1296 getaddrinfo available]
1297 --enable-optimizer-dbg build optimizer debugging code
1298 --enable-yydebug build parser debugging code
1299 --disable-universal don't build universal on OS X
1300 --enable-bluetooth enable Bluetooth support [default=yes, if support
1301 available]
1302 --enable-can enable CAN support [default=yes, if support
1303 available]
1304
1305 Optional Packages:
1306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1308 --without-gcc don't use gcc
1309 --with-sita include SITA support
1310 --with-pcap=TYPE use packet capture TYPE
1311 --without-libnl disable libnl support [default=yes, on Linux, if
1312 present]
1313 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1314 default="yes" on BSD and Linux if present]
1315 --with-dag-includes=DIR Endace DAG include directory
1316 --with-dag-libraries=DIR
1317 Endace DAG library directory
1318 --with-septel[=DIR] include Septel support (located in directory DIR, if
1319 supplied). [default=yes, on Linux, if present]
1320 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1321 default="yes" on BSD and Linux if present]
1322 --with-snf-includes=DIR Myricom SNF include directory
1323 --with-snf-libraries=DIR
1324 Myricom SNF library directory
1325 --without-flex don't use flex
1326 --without-bison don't use bison
1327
1328 Some influential environment variables:
1329 CC C compiler command
1330 CFLAGS C compiler flags
1331 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1332 nonstandard directory <lib dir>
1333 LIBS libraries to pass to the linker, e.g. -l<library>
1334 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1335 you have headers in a nonstandard directory <include dir>
1336 CPP C preprocessor
1337
1338 Use these variables to override the choices made by `configure' or to help
1339 it to find libraries and programs with nonstandard names/locations.
1340
1341 _ACEOF
1342 ac_status=$?
1343 fi
1344
1345 if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348 test -d "$ac_dir" || continue
1349 ac_builddir=.
1350
1351 case "$ac_dir" in
1352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *)
1354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 esac ;;
1361 esac
1362 ac_abs_top_builddir=$ac_pwd
1363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir=$ac_top_build_prefix
1366
1367 case $srcdir in
1368 .) # We are building in place.
1369 ac_srcdir=.
1370 ac_top_srcdir=$ac_top_builddir_sub
1371 ac_abs_top_srcdir=$ac_pwd ;;
1372 [\\/]* | ?:[\\/]* ) # Absolute name.
1373 ac_srcdir=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir=$srcdir
1375 ac_abs_top_srcdir=$srcdir ;;
1376 *) # Relative name.
1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 esac
1381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383 cd "$ac_dir" || { ac_status=$?; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1386 echo &&
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1391 else
1392 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 fi || ac_status=$?
1394 cd "$ac_pwd" || { ac_status=$?; break; }
1395 done
1396 fi
1397
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1400 cat <<\_ACEOF
1401 configure
1402 generated by GNU Autoconf 2.61
1403
1404 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1405 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1406 This configure script is free software; the Free Software Foundation
1407 gives unlimited permission to copy, distribute and modify it.
1408 _ACEOF
1409 exit
1410 fi
1411 cat >config.log <<_ACEOF
1412 This file contains any messages produced by compilers while
1413 running configure, to aid debugging if configure makes a mistake.
1414
1415 It was created by $as_me, which was
1416 generated by GNU Autoconf 2.61. Invocation command line was
1417
1418 $ $0 $@
1419
1420 _ACEOF
1421 exec 5>>config.log
1422 {
1423 cat <<_ASUNAME
1424 ## --------- ##
1425 ## Platform. ##
1426 ## --------- ##
1427
1428 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1429 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1430 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1431 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1432 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1433
1434 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1435 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1436
1437 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1438 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1439 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1440 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1441 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1442 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1443 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1444
1445 _ASUNAME
1446
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 for as_dir in $PATH
1449 do
1450 IFS=$as_save_IFS
1451 test -z "$as_dir" && as_dir=.
1452 echo "PATH: $as_dir"
1453 done
1454 IFS=$as_save_IFS
1455
1456 } >&5
1457
1458 cat >&5 <<_ACEOF
1459
1460
1461 ## ----------- ##
1462 ## Core tests. ##
1463 ## ----------- ##
1464
1465 _ACEOF
1466
1467
1468 # Keep a trace of the command line.
1469 # Strip out --no-create and --no-recursion so they do not pile up.
1470 # Strip out --silent because we don't want to record it for future runs.
1471 # Also quote any args containing shell meta-characters.
1472 # Make two passes to allow for proper duplicate-argument suppression.
1473 ac_configure_args=
1474 ac_configure_args0=
1475 ac_configure_args1=
1476 ac_must_keep_next=false
1477 for ac_pass in 1 2
1478 do
1479 for ac_arg
1480 do
1481 case $ac_arg in
1482 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1484 | -silent | --silent | --silen | --sile | --sil)
1485 continue ;;
1486 *\'*)
1487 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 esac
1489 case $ac_pass in
1490 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1491 2)
1492 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1493 if test $ac_must_keep_next = true; then
1494 ac_must_keep_next=false # Got value, back to normal.
1495 else
1496 case $ac_arg in
1497 *=* | --config-cache | -C | -disable-* | --disable-* \
1498 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1499 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1500 | -with-* | --with-* | -without-* | --without-* | --x)
1501 case "$ac_configure_args0 " in
1502 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1503 esac
1504 ;;
1505 -* ) ac_must_keep_next=true ;;
1506 esac
1507 fi
1508 ac_configure_args="$ac_configure_args '$ac_arg'"
1509 ;;
1510 esac
1511 done
1512 done
1513 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1514 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1515
1516 # When interrupted or exit'd, cleanup temporary files, and complete
1517 # config.log. We remove comments because anyway the quotes in there
1518 # would cause problems or look ugly.
1519 # WARNING: Use '\'' to represent an apostrophe within the trap.
1520 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1521 trap 'exit_status=$?
1522 # Save into config.log some information that might help in debugging.
1523 {
1524 echo
1525
1526 cat <<\_ASBOX
1527 ## ---------------- ##
1528 ## Cache variables. ##
1529 ## ---------------- ##
1530 _ASBOX
1531 echo
1532 # The following way of writing the cache mishandles newlines in values,
1533 (
1534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1535 eval ac_val=\$$ac_var
1536 case $ac_val in #(
1537 *${as_nl}*)
1538 case $ac_var in #(
1539 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1540 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1541 esac
1542 case $ac_var in #(
1543 _ | IFS | as_nl) ;; #(
1544 *) $as_unset $ac_var ;;
1545 esac ;;
1546 esac
1547 done
1548 (set) 2>&1 |
1549 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1550 *${as_nl}ac_space=\ *)
1551 sed -n \
1552 "s/'\''/'\''\\\\'\'''\''/g;
1553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1554 ;; #(
1555 *)
1556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1557 ;;
1558 esac |
1559 sort
1560 )
1561 echo
1562
1563 cat <<\_ASBOX
1564 ## ----------------- ##
1565 ## Output variables. ##
1566 ## ----------------- ##
1567 _ASBOX
1568 echo
1569 for ac_var in $ac_subst_vars
1570 do
1571 eval ac_val=\$$ac_var
1572 case $ac_val in
1573 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574 esac
1575 echo "$ac_var='\''$ac_val'\''"
1576 done | sort
1577 echo
1578
1579 if test -n "$ac_subst_files"; then
1580 cat <<\_ASBOX
1581 ## ------------------- ##
1582 ## File substitutions. ##
1583 ## ------------------- ##
1584 _ASBOX
1585 echo
1586 for ac_var in $ac_subst_files
1587 do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in
1590 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1591 esac
1592 echo "$ac_var='\''$ac_val'\''"
1593 done | sort
1594 echo
1595 fi
1596
1597 if test -s confdefs.h; then
1598 cat <<\_ASBOX
1599 ## ----------- ##
1600 ## confdefs.h. ##
1601 ## ----------- ##
1602 _ASBOX
1603 echo
1604 cat confdefs.h
1605 echo
1606 fi
1607 test "$ac_signal" != 0 &&
1608 echo "$as_me: caught signal $ac_signal"
1609 echo "$as_me: exit $exit_status"
1610 } >&5
1611 rm -f core *.core core.conftest.* &&
1612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1613 exit $exit_status
1614 ' 0
1615 for ac_signal in 1 2 13 15; do
1616 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1617 done
1618 ac_signal=0
1619
1620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1621 rm -f -r conftest* confdefs.h
1622
1623 # Predefined preprocessor variables.
1624
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_NAME "$PACKAGE_NAME"
1627 _ACEOF
1628
1629
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1632 _ACEOF
1633
1634
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1637 _ACEOF
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_STRING "$PACKAGE_STRING"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1647 _ACEOF
1648
1649
1650 # Let the site file select an alternate cache file if it wants to.
1651 # Prefer explicitly selected file to automatically selected ones.
1652 if test -n "$CONFIG_SITE"; then
1653 set x "$CONFIG_SITE"
1654 elif test "x$prefix" != xNONE; then
1655 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1656 else
1657 set x "$ac_default_prefix/share/config.site" \
1658 "$ac_default_prefix/etc/config.site"
1659 fi
1660 shift
1661 for ac_site_file
1662 do
1663 if test -r "$ac_site_file"; then
1664 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1665 echo "$as_me: loading site script $ac_site_file" >&6;}
1666 sed 's/^/| /' "$ac_site_file" >&5
1667 . "$ac_site_file"
1668 fi
1669 done
1670
1671 if test -r "$cache_file"; then
1672 # Some versions of bash will fail to source /dev/null (special
1673 # files actually), so we avoid doing that.
1674 if test -f "$cache_file"; then
1675 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1676 echo "$as_me: loading cache $cache_file" >&6;}
1677 case $cache_file in
1678 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1679 *) . "./$cache_file";;
1680 esac
1681 fi
1682 else
1683 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1684 echo "$as_me: creating cache $cache_file" >&6;}
1685 >$cache_file
1686 fi
1687
1688 # Check that the precious variables saved in the cache have kept the same
1689 # value.
1690 ac_cache_corrupted=false
1691 for ac_var in $ac_precious_vars; do
1692 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1693 eval ac_new_set=\$ac_env_${ac_var}_set
1694 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1695 eval ac_new_val=\$ac_env_${ac_var}_value
1696 case $ac_old_set,$ac_new_set in
1697 set,)
1698 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1699 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1700 ac_cache_corrupted=: ;;
1701 ,set)
1702 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1703 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1704 ac_cache_corrupted=: ;;
1705 ,);;
1706 *)
1707 if test "x$ac_old_val" != "x$ac_new_val"; then
1708 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1709 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1710 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1711 echo "$as_me: former value: $ac_old_val" >&2;}
1712 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1713 echo "$as_me: current value: $ac_new_val" >&2;}
1714 ac_cache_corrupted=:
1715 fi;;
1716 esac
1717 # Pass precious variables to config.status.
1718 if test "$ac_new_set" = set; then
1719 case $ac_new_val in
1720 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1721 *) ac_arg=$ac_var=$ac_new_val ;;
1722 esac
1723 case " $ac_configure_args " in
1724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1725 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1726 esac
1727 fi
1728 done
1729 if $ac_cache_corrupted; then
1730 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1731 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1732 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1733 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1734 { (exit 1); exit 1; }; }
1735 fi
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753 ac_ext=c
1754 ac_cpp='$CPP $CPPFLAGS'
1755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1758
1759
1760
1761 ac_aux_dir=
1762 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1763 if test -f "$ac_dir/install-sh"; then
1764 ac_aux_dir=$ac_dir
1765 ac_install_sh="$ac_aux_dir/install-sh -c"
1766 break
1767 elif test -f "$ac_dir/install.sh"; then
1768 ac_aux_dir=$ac_dir
1769 ac_install_sh="$ac_aux_dir/install.sh -c"
1770 break
1771 elif test -f "$ac_dir/shtool"; then
1772 ac_aux_dir=$ac_dir
1773 ac_install_sh="$ac_aux_dir/shtool install -c"
1774 break
1775 fi
1776 done
1777 if test -z "$ac_aux_dir"; then
1778 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1779 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1780 { (exit 1); exit 1; }; }
1781 fi
1782
1783 # These three variables are undocumented and unsupported,
1784 # and are intended to be withdrawn in a future Autoconf release.
1785 # They can cause serious problems if a builder's source tree is in a directory
1786 # whose full name contains unusual characters.
1787 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1788 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1789 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1790
1791
1792 # Make sure we can run config.sub.
1793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1794 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1795 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1796 { (exit 1); exit 1; }; }
1797
1798 { echo "$as_me:$LINENO: checking build system type" >&5
1799 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1800 if test "${ac_cv_build+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803 ac_build_alias=$build_alias
1804 test "x$ac_build_alias" = x &&
1805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1806 test "x$ac_build_alias" = x &&
1807 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1809 { (exit 1); exit 1; }; }
1810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1811 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1813 { (exit 1); exit 1; }; }
1814
1815 fi
1816 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1817 echo "${ECHO_T}$ac_cv_build" >&6; }
1818 case $ac_cv_build in
1819 *-*-*) ;;
1820 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1821 echo "$as_me: error: invalid value of canonical build" >&2;}
1822 { (exit 1); exit 1; }; };;
1823 esac
1824 build=$ac_cv_build
1825 ac_save_IFS=$IFS; IFS='-'
1826 set x $ac_cv_build
1827 shift
1828 build_cpu=$1
1829 build_vendor=$2
1830 shift; shift
1831 # Remember, the first character of IFS is used to create $*,
1832 # except with old shells:
1833 build_os=$*
1834 IFS=$ac_save_IFS
1835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1836
1837
1838 { echo "$as_me:$LINENO: checking host system type" >&5
1839 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1840 if test "${ac_cv_host+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test "x$host_alias" = x; then
1844 ac_cv_host=$ac_cv_build
1845 else
1846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1847 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1849 { (exit 1); exit 1; }; }
1850 fi
1851
1852 fi
1853 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1854 echo "${ECHO_T}$ac_cv_host" >&6; }
1855 case $ac_cv_host in
1856 *-*-*) ;;
1857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1858 echo "$as_me: error: invalid value of canonical host" >&2;}
1859 { (exit 1); exit 1; }; };;
1860 esac
1861 host=$ac_cv_host
1862 ac_save_IFS=$IFS; IFS='-'
1863 set x $ac_cv_host
1864 shift
1865 host_cpu=$1
1866 host_vendor=$2
1867 shift; shift
1868 # Remember, the first character of IFS is used to create $*,
1869 # except with old shells:
1870 host_os=$*
1871 IFS=$ac_save_IFS
1872 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1873
1874
1875 { echo "$as_me:$LINENO: checking target system type" >&5
1876 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1877 if test "${ac_cv_target+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test "x$target_alias" = x; then
1881 ac_cv_target=$ac_cv_host
1882 else
1883 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1884 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1886 { (exit 1); exit 1; }; }
1887 fi
1888
1889 fi
1890 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1891 echo "${ECHO_T}$ac_cv_target" >&6; }
1892 case $ac_cv_target in
1893 *-*-*) ;;
1894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1895 echo "$as_me: error: invalid value of canonical target" >&2;}
1896 { (exit 1); exit 1; }; };;
1897 esac
1898 target=$ac_cv_target
1899 ac_save_IFS=$IFS; IFS='-'
1900 set x $ac_cv_target
1901 shift
1902 target_cpu=$1
1903 target_vendor=$2
1904 shift; shift
1905 # Remember, the first character of IFS is used to create $*,
1906 # except with old shells:
1907 target_os=$*
1908 IFS=$ac_save_IFS
1909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1910
1911
1912 # The aliases save the names the user supplied, while $host etc.
1913 # will get canonicalized.
1914 test -n "$target_alias" &&
1915 test "$program_prefix$program_suffix$program_transform_name" = \
1916 NONENONEs,x,x, &&
1917 program_prefix=${target_alias}-
1918
1919
1920
1921
1922
1923
1924
1925 # Check whether --with-gcc was given.
1926 if test "${with_gcc+set}" = set; then
1927 withval=$with_gcc;
1928 fi
1929
1930 V_CCOPT="-O"
1931 V_INCLS=""
1932 if test "${srcdir}" != "." ; then
1933 V_INCLS="-I\$(srcdir)"
1934 fi
1935 if test "${CFLAGS+set}" = set; then
1936 LBL_CFLAGS="$CFLAGS"
1937 fi
1938 if test -z "$CC" ; then
1939 case "$host_os" in
1940
1941 bsdi*)
1942 # Extract the first word of "shlicc2", so it can be a program name with args.
1943 set dummy shlicc2; ac_word=$2
1944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1946 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949 if test -n "$SHLICC2"; then
1950 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1959 ac_cv_prog_SHLICC2="yes"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963 done
1964 done
1965 IFS=$as_save_IFS
1966
1967 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1968 fi
1969 fi
1970 SHLICC2=$ac_cv_prog_SHLICC2
1971 if test -n "$SHLICC2"; then
1972 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1973 echo "${ECHO_T}$SHLICC2" >&6; }
1974 else
1975 { echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6; }
1977 fi
1978
1979
1980 if test $SHLICC2 = yes ; then
1981 CC=shlicc2
1982 export CC
1983 fi
1984 ;;
1985 esac
1986 fi
1987 if test -z "$CC" -a "$with_gcc" = no ; then
1988 CC=cc
1989 export CC
1990 fi
1991
1992 ac_ext=c
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 if test -n "$ac_tool_prefix"; then
1998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2018 fi
2019 done
2020 done
2021 IFS=$as_save_IFS
2022
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027 { echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6; }
2029 else
2030 { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2032 fi
2033
2034
2035 fi
2036 if test -z "$ac_cv_prog_CC"; then
2037 ac_ct_CC=$CC
2038 # Extract the first word of "gcc", so it can be a program name with args.
2039 set dummy gcc; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045 if test -n "$ac_ct_CC"; then
2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_prog_ac_ct_CC="gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 break 2
2058 fi
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063 fi
2064 fi
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6; }
2069 else
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074 if test "x$ac_ct_CC" = x; then
2075 CC=""
2076 else
2077 case $cross_compiling:$ac_tool_warned in
2078 yes:)
2079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2080 whose name does not start with the host triplet. If you think this
2081 configuration is useful to you, please write to autoconf@gnu.org." >&5
2082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2083 whose name does not start with the host triplet. If you think this
2084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2085 ac_tool_warned=yes ;;
2086 esac
2087 CC=$ac_ct_CC
2088 fi
2089 else
2090 CC="$ac_cv_prog_CC"
2091 fi
2092
2093 if test -z "$CC"; then
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}cc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 ac_cv_prog_CC="${ac_tool_prefix}cc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2115 fi
2116 done
2117 done
2118 IFS=$as_save_IFS
2119
2120 fi
2121 fi
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124 { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2126 else
2127 { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2129 fi
2130
2131
2132 fi
2133 fi
2134 if test -z "$CC"; then
2135 # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145 ac_prog_rejected=no
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2154 ac_prog_rejected=yes
2155 continue
2156 fi
2157 ac_cv_prog_CC="cc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2160 fi
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 if test $ac_prog_rejected = yes; then
2166 # We found a bogon in the path, so make sure we never use it.
2167 set dummy $ac_cv_prog_CC
2168 shift
2169 if test $# != 0; then
2170 # We chose a different compiler from the bogus one.
2171 # However, it has the same basename, so the bogon will be chosen
2172 # first if we set CC to just the basename; use the full file name.
2173 shift
2174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2175 fi
2176 fi
2177 fi
2178 fi
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181 { echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6; }
2183 else
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2186 fi
2187
2188
2189 fi
2190 if test -z "$CC"; then
2191 if test -n "$ac_tool_prefix"; then
2192 for ac_prog in cl.exe
2193 do
2194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 break 2
2214 fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 CC=$ac_cv_prog_CC
2222 if test -n "$CC"; then
2223 { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2225 else
2226 { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228 fi
2229
2230
2231 test -n "$CC" && break
2232 done
2233 fi
2234 if test -z "$CC"; then
2235 ac_ct_CC=$CC
2236 for ac_prog in cl.exe
2237 do
2238 # Extract the first word of "$ac_prog", so it can be a program name with args.
2239 set dummy $ac_prog; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$ac_ct_CC"; then
2246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_ac_ct_CC="$ac_prog"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2258 fi
2259 done
2260 done
2261 IFS=$as_save_IFS
2262
2263 fi
2264 fi
2265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266 if test -n "$ac_ct_CC"; then
2267 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268 echo "${ECHO_T}$ac_ct_CC" >&6; }
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 fi
2273
2274
2275 test -n "$ac_ct_CC" && break
2276 done
2277
2278 if test "x$ac_ct_CC" = x; then
2279 CC=""
2280 else
2281 case $cross_compiling:$ac_tool_warned in
2282 yes:)
2283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2284 whose name does not start with the host triplet. If you think this
2285 configuration is useful to you, please write to autoconf@gnu.org." >&5
2286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2287 whose name does not start with the host triplet. If you think this
2288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2289 ac_tool_warned=yes ;;
2290 esac
2291 CC=$ac_ct_CC
2292 fi
2293 fi
2294
2295 fi
2296
2297
2298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: no acceptable C compiler found in \$PATH
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2303
2304 # Provide some information about the compiler.
2305 echo "$as_me:$LINENO: checking for C compiler version" >&5
2306 ac_compiler=`set X $ac_compile; echo $2`
2307 { (ac_try="$ac_compiler --version >&5"
2308 case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311 esac
2312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313 (eval "$ac_compiler --version >&5") 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }
2317 { (ac_try="$ac_compiler -v >&5"
2318 case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321 esac
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_compiler -v >&5") 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (ac_try="$ac_compiler -V >&5"
2328 case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331 esac
2332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333 (eval "$ac_compiler -V >&5") 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2337
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2344
2345 int
2346 main ()
2347 {
2348
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 #
2362 # List of possible output files, starting from the most likely.
2363 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2364 # only as a last resort. b.out is created by i960 compilers.
2365 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2366 #
2367 # The IRIX 6 linker writes into existing files which may not be
2368 # executable, retaining their permissions. Remove them first so a
2369 # subsequent execution test works.
2370 ac_rmfiles=
2371 for ac_file in $ac_files
2372 do
2373 case $ac_file in
2374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2375 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2376 esac
2377 done
2378 rm -f $ac_rmfiles
2379
2380 if { (ac_try="$ac_link_default"
2381 case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_link_default") 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2391 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2392 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2393 # so that the user can short-circuit this test for compilers unknown to
2394 # Autoconf.
2395 for ac_file in $ac_files ''
2396 do
2397 test -f "$ac_file" || continue
2398 case $ac_file in
2399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2400 ;;
2401 [ab].out )
2402 # We found the default executable, but exeext='' is most
2403 # certainly right.
2404 break;;
2405 *.* )
2406 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2407 then :; else
2408 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409 fi
2410 # We set ac_cv_exeext here because the later test for it is not
2411 # safe: cross compilers may not add the suffix if given an `-o'
2412 # argument, so we may need to know it at that point already.
2413 # Even if this section looks crufty: it has the advantage of
2414 # actually working.
2415 break;;
2416 * )
2417 break;;
2418 esac
2419 done
2420 test "$ac_cv_exeext" = no && ac_cv_exeext=
2421
2422 else
2423 ac_file=''
2424 fi
2425
2426 { echo "$as_me:$LINENO: result: $ac_file" >&5
2427 echo "${ECHO_T}$ac_file" >&6; }
2428 if test -z "$ac_file"; then
2429 echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&2;}
2436 { (exit 77); exit 77; }; }
2437 fi
2438
2439 ac_exeext=$ac_cv_exeext
2440
2441 # Check that the compiler produces executables we can run. If not, either
2442 # the compiler is broken, or we cross compile.
2443 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2444 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2445 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2446 # If not cross compiling, check that we can run a simple program.
2447 if test "$cross_compiling" != yes; then
2448 if { ac_try='./$ac_file'
2449 { (case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_try") 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 cross_compiling=no
2459 else
2460 if test "$cross_compiling" = maybe; then
2461 cross_compiling=yes
2462 else
2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2470 fi
2471 fi
2472 fi
2473 { echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6; }
2475
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check that the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2482 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6; }
2484
2485 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2487 if { (ac_try="$ac_link"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_link") 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; then
2497 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2498 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2499 # work properly (i.e., refer to `conftest.exe'), while it won't with
2500 # `rm'.
2501 for ac_file in conftest.exe conftest conftest.*; do
2502 test -f "$ac_file" || continue
2503 case $ac_file in
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506 break;;
2507 * ) break;;
2508 esac
2509 done
2510 else
2511 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&5
2513 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2514 See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2516 fi
2517
2518 rm -f conftest$ac_cv_exeext
2519 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2520 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2521
2522 rm -f conftest.$ac_ext
2523 EXEEXT=$ac_cv_exeext
2524 ac_exeext=$EXEEXT
2525 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2526 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2527 if test "${ac_cv_objext+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2536
2537 int
2538 main ()
2539 {
2540
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.o conftest.obj
2546 if { (ac_try="$ac_compile"
2547 case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552 (eval "$ac_compile") 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; then
2556 for ac_file in conftest.o conftest.obj conftest.*; do
2557 test -f "$ac_file" || continue;
2558 case $ac_file in
2559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2561 break;;
2562 esac
2563 done
2564 else
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2573 fi
2574
2575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2576 fi
2577 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2578 echo "${ECHO_T}$ac_cv_objext" >&6; }
2579 OBJEXT=$ac_cv_objext
2580 ac_objext=$OBJEXT
2581 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2582 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2583 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592
2593 int
2594 main ()
2595 {
2596 #ifndef __GNUC__
2597 choke me
2598 #endif
2599
2600 ;
2601 return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (ac_try="$ac_compile"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_compile") 2>conftest.er1
2612 ac_status=$?
2613 grep -v '^ *+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); } && {
2618 test -z "$ac_c_werror_flag" ||
2619 test ! -s conftest.err
2620 } && test -s conftest.$ac_objext; then
2621 ac_compiler_gnu=yes
2622 else
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 ac_compiler_gnu=no
2627 fi
2628
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2631
2632 fi
2633 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2635 GCC=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CFLAGS=${CFLAGS+set}
2637 ac_save_CFLAGS=$CFLAGS
2638 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2639 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_cc_g+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 ac_save_c_werror_flag=$ac_c_werror_flag
2644 ac_c_werror_flag=yes
2645 ac_cv_prog_cc_g=no
2646 CFLAGS="-g"
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653
2654 int
2655 main ()
2656 {
2657
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (ac_try="$ac_compile"
2664 case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_compile") 2>conftest.er1
2670 ac_status=$?
2671 grep -v '^ *+' conftest.er1 >conftest.err
2672 rm -f conftest.er1
2673 cat conftest.err >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } && {
2676 test -z "$ac_c_werror_flag" ||
2677 test ! -s conftest.err
2678 } && test -s conftest.$ac_objext; then
2679 ac_cv_prog_cc_g=yes
2680 else
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 CFLAGS=""
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691
2692 int
2693 main ()
2694 {
2695
2696 ;
2697 return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2717 :
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 ac_c_werror_flag=$ac_save_c_werror_flag
2723 CFLAGS="-g"
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730
2731 int
2732 main ()
2733 {
2734
2735 ;
2736 return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2741 case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } && {
2753 test -z "$ac_c_werror_flag" ||
2754 test ! -s conftest.err
2755 } && test -s conftest.$ac_objext; then
2756 ac_cv_prog_cc_g=yes
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761
2762 fi
2763
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 fi
2766
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_c_werror_flag=$ac_save_c_werror_flag
2772 fi
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2775 if test "$ac_test_CFLAGS" = set; then
2776 CFLAGS=$ac_save_CFLAGS
2777 elif test $ac_cv_prog_cc_g = yes; then
2778 if test "$GCC" = yes; then
2779 CFLAGS="-g -O2"
2780 else
2781 CFLAGS="-g"
2782 fi
2783 else
2784 if test "$GCC" = yes; then
2785 CFLAGS="-O2"
2786 else
2787 CFLAGS=
2788 fi
2789 fi
2790 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2791 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_cc_c89+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 ac_cv_prog_cc_c89=no
2796 ac_save_CC=$CC
2797 cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h. */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2803 #include <stdarg.h>
2804 #include <stdio.h>
2805 #include <sys/types.h>
2806 #include <sys/stat.h>
2807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2808 struct buf { int x; };
2809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2810 static char *e (p, i)
2811 char **p;
2812 int i;
2813 {
2814 return p[i];
2815 }
2816 static char *f (char * (*g) (char **, int), char **p, ...)
2817 {
2818 char *s;
2819 va_list v;
2820 va_start (v,p);
2821 s = g (p, va_arg (v,int));
2822 va_end (v);
2823 return s;
2824 }
2825
2826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2827 function prototypes and stuff, but not '\xHH' hex character constants.
2828 These don't provoke an error unfortunately, instead are silently treated
2829 as 'x'. The following induces an error, until -std is added to get
2830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2831 array size at least. It's necessary to write '\x00'==0 to get something
2832 that's true only with -std. */
2833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2834
2835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2836 inside strings and character constants. */
2837 #define FOO(x) 'x'
2838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2839
2840 int test (int i, double x);
2841 struct s1 {int (*f) (int a);};
2842 struct s2 {int (*f) (double a);};
2843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2844 int argc;
2845 char **argv;
2846 int
2847 main ()
2848 {
2849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2850 ;
2851 return 0;
2852 }
2853 _ACEOF
2854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856 do
2857 CC="$ac_save_CC $ac_arg"
2858 rm -f conftest.$ac_objext
2859 if { (ac_try="$ac_compile"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compile") 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } && {
2872 test -z "$ac_c_werror_flag" ||
2873 test ! -s conftest.err
2874 } && test -s conftest.$ac_objext; then
2875 ac_cv_prog_cc_c89=$ac_arg
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880
2881 fi
2882
2883 rm -f core conftest.err conftest.$ac_objext
2884 test "x$ac_cv_prog_cc_c89" != "xno" && break
2885 done
2886 rm -f conftest.$ac_ext
2887 CC=$ac_save_CC
2888
2889 fi
2890 # AC_CACHE_VAL
2891 case "x$ac_cv_prog_cc_c89" in
2892 x)
2893 { echo "$as_me:$LINENO: result: none needed" >&5
2894 echo "${ECHO_T}none needed" >&6; } ;;
2895 xno)
2896 { echo "$as_me:$LINENO: result: unsupported" >&5
2897 echo "${ECHO_T}unsupported" >&6; } ;;
2898 *)
2899 CC="$CC $ac_cv_prog_cc_c89"
2900 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2902 esac
2903
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913
2914
2915 if test "$GCC" = yes ; then
2916 if test "$SHLICC2" = yes ; then
2917 ac_cv_lbl_gcc_vers=2
2918 V_CCOPT="-O2"
2919 else
2920 { echo "$as_me:$LINENO: checking gcc version" >&5
2921 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2922 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2926 sed -e '/^gcc version /!d' \
2927 -e 's/^gcc version //' \
2928 -e 's/ .*//' -e 's/^[^0-9]*//' \
2929 -e 's/\..*//'`
2930 fi
2931
2932 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2933 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2934 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2935 V_CCOPT="-O2"
2936 fi
2937 fi
2938 else
2939 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2940 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2941 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h. */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2951 #include <sys/types.h>
2952 int
2953 main ()
2954 {
2955 int frob(int, char *)
2956 ;
2957 return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
2977 ac_cv_lbl_cc_ansi_prototypes=yes
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 ac_cv_lbl_cc_ansi_prototypes=no
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 fi
2987
2988 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2989 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2990 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2991 case "$host_os" in
2992
2993 hpux*)
2994 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2995 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2996 savedcflags="$CFLAGS"
2997 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2998 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3007 #include <sys/types.h>
3008 int
3009 main ()
3010 {
3011 int frob(int, char *)
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3033 ac_cv_lbl_cc_hpux_cc_aa=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 ac_cv_lbl_cc_hpux_cc_aa=no
3039 fi
3040
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 fi
3043
3044 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3045 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3046 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3047 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3048 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3049 { (exit 1); exit 1; }; }
3050 fi
3051 CFLAGS="$savedcflags"
3052 V_CCOPT="-Aa $V_CCOPT"
3053
3054 cat >>confdefs.h <<\_ACEOF
3055 #define _HPUX_SOURCE 1
3056 _ACEOF
3057
3058 ;;
3059
3060 osf*)
3061 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3062 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3063 savedcflags="$CFLAGS"
3064 CFLAGS="-std1"
3065 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <sys/types.h>
3075 int
3076 main ()
3077 {
3078 int frob(int, char *)
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_cv_lbl_cc_osf1_cc_std1=yes
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cv_lbl_cc_osf1_cc_std1=no
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3113 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3114 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3115 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3116 { (exit 1); exit 1; }; }
3117 fi
3118 CFLAGS="$savedcflags"
3119 V_CCOPT="-std1 $V_CCOPT"
3120 ;;
3121
3122 *)
3123 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3124 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3125 { (exit 1); exit 1; }; }
3126 ;;
3127 esac
3128 fi
3129 V_INCLS="$V_INCLS -I/usr/local/include"
3130 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3131
3132 case "$host_os" in
3133
3134 irix*)
3135 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3136 ;;
3137
3138 osf*)
3139 #
3140 # Presumed to be DEC OSF/1, Digital UNIX, or
3141 # Tru64 UNIX.
3142 #
3143 V_CCOPT="$V_CCOPT -g3"
3144 ;;
3145
3146 ultrix*)
3147 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3148 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3149 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3158 #include <sys/types.h>
3159 int
3160 main ()
3161 {
3162 struct a { int b; };
3163 void c(const struct a *)
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
3185 ac_cv_lbl_cc_const_proto=yes
3186 else
3187 echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 ac_cv_lbl_cc_const_proto=no
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3197 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3198 if test $ac_cv_lbl_cc_const_proto = no ; then
3199
3200 cat >>confdefs.h <<\_ACEOF
3201 #define const
3202 _ACEOF
3203
3204 fi
3205 ;;
3206 esac
3207 fi
3208
3209
3210 if test "$GCC" = yes ; then
3211 #
3212 # On platforms where we build a shared library:
3213 #
3214 # add options to generate position-independent code,
3215 # if necessary (it's the default in AIX and Darwin/OS X);
3216 #
3217 # define option to set the soname of the shared library,
3218 # if the OS supports that;
3219 #
3220 # add options to specify, at link time, a directory to
3221 # add to the run-time search path, if that's necessary.
3222 #
3223 V_SHLIB_CMD="\$(CC)"
3224 V_SHLIB_OPT="-shared"
3225 case "$host_os" in
3226
3227 aix*)
3228 ;;
3229
3230 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3231 #
3232 # Platforms where the linker is the GNU linker
3233 # or accepts command-line arguments like
3234 # those the GNU linker accepts.
3235 #
3236 # Some instruction sets require -fPIC on some
3237 # operating systems. Check for them. If you
3238 # have a combination that requires it, add it
3239 # here.
3240 #
3241 PIC_OPT=-fpic
3242 case "$host_cpu" in
3243
3244 sparc64*)
3245 case "$host_os" in
3246
3247 freebsd*)
3248 PIC_OPT=-fPIC
3249 ;;
3250 esac
3251 ;;
3252 esac
3253 V_CCOPT="$V_CCOPT $PIC_OPT"
3254 V_SONAME_OPT="-Wl,-soname,"
3255 V_RPATH_OPT="-Wl,-rpath,"
3256 ;;
3257
3258 hpux*)
3259 V_CCOPT="$V_CCOPT -fpic"
3260 #
3261 # XXX - this assumes GCC is using the HP linker,
3262 # rather than the GNU linker, and that the "+h"
3263 # option is used on all HP-UX platforms, both .sl
3264 # and .so.
3265 #
3266 V_SONAME_OPT="-Wl,+h,"
3267 #
3268 # By default, directories specifed with -L
3269 # are added to the run-time search path, so
3270 # we don't add them in pcap-config.
3271 #
3272 ;;
3273
3274 solaris*)
3275 V_CCOPT="$V_CCOPT -fpic"
3276 #
3277 # XXX - this assumes GCC is using the Sun linker,
3278 # rather than the GNU linker.
3279 #
3280 V_SONAME_OPT="-Wl,-h,"
3281 V_RPATH_OPT="-Wl,-R,"
3282 ;;
3283 esac
3284 else
3285 #
3286 # Set the appropriate compiler flags and, on platforms
3287 # where we build a shared library:
3288 #
3289 # add options to generate position-independent code,
3290 # if necessary (it's the default in Darwin/OS X);
3291 #
3292 # if we generate ".so" shared libraries, define the
3293 # appropriate options for building the shared library;
3294 #
3295 # add options to specify, at link time, a directory to
3296 # add to the run-time search path, if that's necessary.
3297 #
3298 # Note: spaces after V_SONAME_OPT are significant; on
3299 # some platforms the soname is passed with a GCC-like
3300 # "-Wl,-soname,{soname}" option, with the soname part
3301 # of the option, while on other platforms the C compiler
3302 # driver takes it as a regular option with the soname
3303 # following the option. The same applies to V_RPATH_OPT.
3304 #
3305 case "$host_os" in
3306
3307 aix*)
3308 V_SHLIB_CMD="\$(CC)"
3309 V_SHLIB_OPT="-G -bnoentry -bexpall"
3310 ;;
3311
3312 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3313 #
3314 # "cc" is GCC.
3315 #
3316 V_CCOPT="$V_CCOPT -fpic"
3317 V_SHLIB_CMD="\$(CC)"
3318 V_SHLIB_OPT="-shared"
3319 V_SONAME_OPT="-Wl,-soname,"
3320 V_RPATH_OPT="-Wl,-rpath,"
3321 ;;
3322
3323 hpux*)
3324 V_CCOPT="$V_CCOPT +z"
3325 V_SHLIB_CMD="\$(LD)"
3326 V_SHLIB_OPT="-b"
3327 V_SONAME_OPT="+h "
3328 #
3329 # By default, directories specifed with -L
3330 # are added to the run-time search path, so
3331 # we don't add them in pcap-config.
3332 #
3333 ;;
3334
3335 osf*)
3336 #
3337 # Presumed to be DEC OSF/1, Digital UNIX, or
3338 # Tru64 UNIX.
3339 #
3340 V_SHLIB_CMD="\$(CC)"
3341 V_SHLIB_OPT="-shared"
3342 V_SONAME_OPT="-soname "
3343 V_RPATH_OPT="-rpath "
3344 ;;
3345
3346 solaris*)
3347 V_CCOPT="$V_CCOPT -Kpic"
3348 V_SHLIB_CMD="\$(CC)"
3349 V_SHLIB_OPT="-G"
3350 V_SONAME_OPT="-h "
3351 V_RPATH_OPT="-R"
3352 ;;
3353 esac
3354 fi
3355
3356 { echo "$as_me:$LINENO: checking for inline" >&5
3357 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3358 save_CFLAGS="$CFLAGS"
3359 CFLAGS="$V_CCOPT"
3360 if test "${ac_cv_lbl_inline+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363
3364 ac_cv_lbl_inline=""
3365 ac_lbl_cc_inline=no
3366 for ac_lbl_inline in inline __inline__ __inline
3367 do
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #define inline $ac_lbl_inline
3375 static inline struct iltest *foo(void);
3376 struct iltest {
3377 int iltest1;
3378 int iltest2;
3379 };
3380
3381 static inline struct iltest *
3382 foo()
3383 {
3384 static struct iltest xxx;
3385
3386 return &xxx;
3387 }
3388 int
3389 main ()
3390 {
3391
3392 ;
3393 return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3413 ac_lbl_cc_inline=yes
3414 else
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418
3419 fi
3420
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 if test "$ac_lbl_cc_inline" = yes ; then
3423 break;
3424 fi
3425 done
3426 if test "$ac_lbl_cc_inline" = yes ; then
3427 ac_cv_lbl_inline=$ac_lbl_inline
3428 fi
3429 fi
3430
3431 CFLAGS="$save_CFLAGS"
3432 if test ! -z "$ac_cv_lbl_inline" ; then
3433 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3434 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3435 else
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3438 fi
3439
3440 cat >>confdefs.h <<_ACEOF
3441 #define inline $ac_cv_lbl_inline
3442 _ACEOF
3443
3444
3445 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3446 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3447 if test "${ac_cv___attribute__+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457
3458 #include <stdlib.h>
3459
3460 static void foo(void) __attribute__ ((noreturn));
3461
3462 static void
3463 foo(void)
3464 {
3465 exit(1);
3466 }
3467
3468 int
3469 main(int argc, char **argv)
3470 {
3471 foo();
3472 }
3473
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3477 case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_compile") 2>conftest.er1
3483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && {
3489 test -z "$ac_c_werror_flag" ||
3490 test ! -s conftest.err
3491 } && test -s conftest.$ac_objext; then
3492 ac_cv___attribute__=yes
3493 else
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 ac_cv___attribute__=no
3498 fi
3499
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502
3503 if test "$ac_cv___attribute__" = "yes"; then
3504
3505 cat >>confdefs.h <<\_ACEOF
3506 #define HAVE___ATTRIBUTE__ 1
3507 _ACEOF
3508
3509 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3510 else
3511 V_DEFS="$V_DEFS -D_U_=\"\""
3512 fi
3513 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3514 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3515
3516
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3523 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3524 # On Suns, sometimes $CPP names a directory.
3525 if test -n "$CPP" && test -d "$CPP"; then
3526 CPP=
3527 fi
3528 if test -z "$CPP"; then
3529 if test "${ac_cv_prog_CPP+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 # Double quotes because CPP needs to be expanded
3533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3534 do
3535 ac_preproc_ok=false
3536 for ac_c_preproc_warn_flag in '' yes
3537 do
3538 # Use a header file that comes with gcc, so configuring glibc
3539 # with a fresh cross-compiler works.
3540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541 # <limits.h> exists even on freestanding compilers.
3542 # On the NeXT, cc -E runs the code through the compiler's parser,
3543 # not just through cpp. "Syntax error" is here to catch this case.
3544 cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555 Syntax error
3556 _ACEOF
3557 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } >/dev/null && {
3570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 }; then
3573 :
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 # Broken: fails on valid input.
3579 continue
3580 fi
3581
3582 rm -f conftest.err conftest.$ac_ext
3583
3584 # OK, works on sane cases. Now check whether nonexistent headers
3585 # can be detected and how.
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #include <ac_nonexistent.h>
3593 _ACEOF
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 }; then
3610 # Broken: success on invalid input.
3611 continue
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 # Passes both tests.
3617 ac_preproc_ok=:
3618 break
3619 fi
3620
3621 rm -f conftest.err conftest.$ac_ext
3622
3623 done
3624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3625 rm -f conftest.err conftest.$ac_ext
3626 if $ac_preproc_ok; then
3627 break
3628 fi
3629
3630 done
3631 ac_cv_prog_CPP=$CPP
3632
3633 fi
3634 CPP=$ac_cv_prog_CPP
3635 else
3636 ac_cv_prog_CPP=$CPP
3637 fi
3638 { echo "$as_me:$LINENO: result: $CPP" >&5
3639 echo "${ECHO_T}$CPP" >&6; }
3640 ac_preproc_ok=false
3641 for ac_c_preproc_warn_flag in '' yes
3642 do
3643 # Use a header file that comes with gcc, so configuring glibc
3644 # with a fresh cross-compiler works.
3645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646 # <limits.h> exists even on freestanding compilers.
3647 # On the NeXT, cc -E runs the code through the compiler's parser,
3648 # not just through cpp. "Syntax error" is here to catch this case.
3649 cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655 #ifdef __STDC__
3656 # include <limits.h>
3657 #else
3658 # include <assert.h>
3659 #endif
3660 Syntax error
3661 _ACEOF
3662 if { (ac_try="$ac_cpp conftest.$ac_ext"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } >/dev/null && {
3675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 }; then
3678 :
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 # Broken: fails on valid input.
3684 continue
3685 fi
3686
3687 rm -f conftest.err conftest.$ac_ext
3688
3689 # OK, works on sane cases. Now check whether nonexistent headers
3690 # can be detected and how.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #include <ac_nonexistent.h>
3698 _ACEOF
3699 if { (ac_try="$ac_cpp conftest.$ac_ext"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null && {
3712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 }; then
3715 # Broken: success on invalid input.
3716 continue
3717 else
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 # Passes both tests.
3722 ac_preproc_ok=:
3723 break
3724 fi
3725
3726 rm -f conftest.err conftest.$ac_ext
3727
3728 done
3729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730 rm -f conftest.err conftest.$ac_ext
3731 if $ac_preproc_ok; then
3732 :
3733 else
3734 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&2;}
3738 { (exit 1); exit 1; }; }
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750 if test "${ac_cv_path_GREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 # Extract the first word of "grep ggrep" to use in msg output
3754 if test -z "$GREP"; then
3755 set dummy grep ggrep; ac_prog_name=$2
3756 if test "${ac_cv_path_GREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 ac_path_GREP_found=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in grep ggrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3769 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3770 # Check for GNU ac_path_GREP and select it if it is found.
3771 # Check for GNU $ac_path_GREP
3772 case `"$ac_path_GREP" --version 2>&1` in
3773 *GNU*)
3774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3775 *)
3776 ac_count=0
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 while :
3779 do
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'GREP' >> "conftest.nl"
3784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_GREP="$ac_path_GREP"
3790 ac_path_GREP_max=$ac_count
3791 fi
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3794 done
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 esac
3797
3798
3799 $ac_path_GREP_found && break 3
3800 done
3801 done
3802
3803 done
3804 IFS=$as_save_IFS
3805
3806
3807 fi
3808
3809 GREP="$ac_cv_path_GREP"
3810 if test -z "$GREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3814 fi
3815
3816 else
3817 ac_cv_path_GREP=$GREP
3818 fi
3819
3820
3821 fi
3822 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824 GREP="$ac_cv_path_GREP"
3825
3826
3827 { echo "$as_me:$LINENO: checking for egrep" >&5
3828 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829 if test "${ac_cv_path_EGREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833 then ac_cv_path_EGREP="$GREP -E"
3834 else
3835 # Extract the first word of "egrep" to use in msg output
3836 if test -z "$EGREP"; then
3837 set dummy egrep; ac_prog_name=$2
3838 if test "${ac_cv_path_EGREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3855 *GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3857 *)
3858 ac_count=0
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860 while :
3861 do
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 ac_count=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3873 fi
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3879
3880
3881 $ac_path_EGREP_found && break 3
3882 done
3883 done
3884
3885 done
3886 IFS=$as_save_IFS
3887
3888
3889 fi
3890
3891 EGREP="$ac_cv_path_EGREP"
3892 if test -z "$EGREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3896 fi
3897
3898 else
3899 ac_cv_path_EGREP=$EGREP
3900 fi
3901
3902
3903 fi
3904 fi
3905 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3908
3909
3910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912 if test "${ac_cv_header_stdc+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h. */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <stdlib.h>
3922 #include <stdarg.h>
3923 #include <string.h>
3924 #include <float.h>
3925
3926 int
3927 main ()
3928 {
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3951 ac_cv_header_stdc=yes
3952 else
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 ac_cv_header_stdc=no
3957 fi
3958
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961 if test $ac_cv_header_stdc = yes; then
3962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 #include <string.h>
3970
3971 _ACEOF
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973 $EGREP "memchr" >/dev/null 2>&1; then
3974 :
3975 else
3976 ac_cv_header_stdc=no
3977 fi
3978 rm -f -r conftest*
3979
3980 fi
3981
3982 if test $ac_cv_header_stdc = yes; then
3983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3984 cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h. */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990 #include <stdlib.h>
3991
3992 _ACEOF
3993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994 $EGREP "free" >/dev/null 2>&1; then
3995 :
3996 else
3997 ac_cv_header_stdc=no
3998 fi
3999 rm -f -r conftest*
4000
4001 fi
4002
4003 if test $ac_cv_header_stdc = yes; then
4004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4005 if test "$cross_compiling" = yes; then
4006 :
4007 else
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #include <ctype.h>
4015 #include <stdlib.h>
4016 #if ((' ' & 0x0FF) == 0x020)
4017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4019 #else
4020 # define ISLOWER(c) \
4021 (('a' <= (c) && (c) <= 'i') \
4022 || ('j' <= (c) && (c) <= 'r') \
4023 || ('s' <= (c) && (c) <= 'z'))
4024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4025 #endif
4026
4027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4028 int
4029 main ()
4030 {
4031 int i;
4032 for (i = 0; i < 256; i++)
4033 if (XOR (islower (i), ISLOWER (i))
4034 || toupper (i) != TOUPPER (i))
4035 return 2;
4036 return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest$ac_exeext
4040 if { (ac_try="$ac_link"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_link") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4050 { (case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 :
4060 else
4061 echo "$as_me: program exited with status $ac_status" >&5
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 ( exit $ac_status )
4066 ac_cv_header_stdc=no
4067 fi
4068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069 fi
4070
4071
4072 fi
4073 fi
4074 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4075 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4076 if test $ac_cv_header_stdc = yes; then
4077
4078 cat >>confdefs.h <<\_ACEOF
4079 #define STDC_HEADERS 1
4080 _ACEOF
4081
4082 fi
4083
4084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095 inttypes.h stdint.h unistd.h
4096 do
4097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 $ac_includes_default
4110
4111 #include <$ac_header>
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 eval "$as_ac_Header=yes"
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 eval "$as_ac_Header=no"
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 ac_res=`eval echo '${'$as_ac_Header'}'`
4141 { echo "$as_me:$LINENO: result: $ac_res" >&5
4142 echo "${ECHO_T}$ac_res" >&6; }
4143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144 cat >>confdefs.h <<_ACEOF
4145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 _ACEOF
4147
4148 fi
4149
4150 done
4151
4152
4153
4154 for ac_header in sys/bitypes.h
4155 do
4156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 fi
4163 ac_res=`eval echo '${'$as_ac_Header'}'`
4164 { echo "$as_me:$LINENO: result: $ac_res" >&5
4165 echo "${ECHO_T}$ac_res" >&6; }
4166 else
4167 # Is the header compilable?
4168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176 $ac_includes_default
4177 #include <$ac_header>
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_compile") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && {
4193 test -z "$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 } && test -s conftest.$ac_objext; then
4196 ac_header_compiler=yes
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 ac_header_compiler=no
4202 fi
4203
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4206 echo "${ECHO_T}$ac_header_compiler" >&6; }
4207
4208 # Is the header present?
4209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h. */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4217 #include <$ac_header>
4218 _ACEOF
4219 if { (ac_try="$ac_cpp conftest.$ac_ext"
4220 case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 }; then
4235 ac_header_preproc=yes
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ac_header_preproc=no
4241 fi
4242
4243 rm -f conftest.err conftest.$ac_ext
4244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4245 echo "${ECHO_T}$ac_header_preproc" >&6; }
4246
4247 # So? What about this header?
4248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4249 yes:no: )
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4254 ac_header_preproc=yes
4255 ;;
4256 no:yes:* )
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4269
4270 ;;
4271 esac
4272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277 eval "$as_ac_Header=\$ac_header_preproc"
4278 fi
4279 ac_res=`eval echo '${'$as_ac_Header'}'`
4280 { echo "$as_me:$LINENO: result: $ac_res" >&5
4281 echo "${ECHO_T}$ac_res" >&6; }
4282
4283 fi
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 _ACEOF
4288
4289 fi
4290
4291 done
4292
4293
4294 { echo "$as_me:$LINENO: checking for int8_t" >&5
4295 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4296 if test "${ac_cv_type_int8_t+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299 cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h. */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4306 #ifdef HAVE_SYS_BITYPES_H
4307 #include <sys/bitypes.h>
4308 #endif
4309
4310 typedef int8_t ac__type_new_;
4311 int
4312 main ()
4313 {
4314 if ((ac__type_new_ *) 0)
4315 return 0;
4316 if (sizeof (ac__type_new_))
4317 return 0;
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4339 ac_cv_type_int8_t=yes
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ac_cv_type_int8_t=no
4345 fi
4346
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 fi
4349 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4350 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4351 if test $ac_cv_type_int8_t = yes; then
4352 :
4353 else
4354
4355 cat >>confdefs.h <<\_ACEOF
4356 #define int8_t signed char
4357 _ACEOF
4358
4359 fi
4360
4361 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4362 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4363 if test "${ac_cv_type_u_int8_t+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 $ac_includes_default
4373 #ifdef HAVE_SYS_BITYPES_H
4374 #include <sys/bitypes.h>
4375 #endif
4376
4377 typedef u_int8_t ac__type_new_;
4378 int
4379 main ()
4380 {
4381 if ((ac__type_new_ *) 0)
4382 return 0;
4383 if (sizeof (ac__type_new_))
4384 return 0;
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (ac_try="$ac_compile"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_compile") 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } && {
4403 test -z "$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 } && test -s conftest.$ac_objext; then
4406 ac_cv_type_u_int8_t=yes
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411 ac_cv_type_u_int8_t=no
4412 fi
4413
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 fi
4416 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4417 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4418 if test $ac_cv_type_u_int8_t = yes; then
4419 :
4420 else
4421
4422 cat >>confdefs.h <<\_ACEOF
4423 #define u_int8_t unsigned char
4424 _ACEOF
4425
4426 fi
4427
4428 { echo "$as_me:$LINENO: checking for int16_t" >&5
4429 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4430 if test "${ac_cv_type_int16_t+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4440 typedef int16_t ac__type_new_;
4441 int
4442 main ()
4443 {
4444 if ((ac__type_new_ *) 0)
4445 return 0;
4446 if (sizeof (ac__type_new_))
4447 return 0;
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4454 case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 ac_cv_type_int16_t=yes
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_cv_type_int16_t=no
4475 fi
4476
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 fi
4479 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4480 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4481 if test $ac_cv_type_int16_t = yes; then
4482 :
4483 else
4484
4485 cat >>confdefs.h <<\_ACEOF
4486 #define int16_t short
4487 _ACEOF
4488
4489 $ac_includes_default
4490 #ifdef HAVE_SYS_BITYPES_H
4491 #include <sys/bitypes.h>
4492 #endif
4493 fi
4494
4495 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4496 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4497 if test "${ac_cv_type_u_int16_t+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4507 #ifdef HAVE_SYS_BITYPES_H
4508 #include <sys/bitypes.h>
4509 #endif
4510
4511 typedef u_int16_t ac__type_new_;
4512 int
4513 main ()
4514 {
4515 if ((ac__type_new_ *) 0)
4516 return 0;
4517 if (sizeof (ac__type_new_))
4518 return 0;
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (ac_try="$ac_compile"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_compile") 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && {
4537 test -z "$ac_c_werror_flag" ||
4538 test ! -s conftest.err
4539 } && test -s conftest.$ac_objext; then
4540 ac_cv_type_u_int16_t=yes
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 ac_cv_type_u_int16_t=no
4546 fi
4547
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4551 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4552 if test $ac_cv_type_u_int16_t = yes; then
4553 :
4554 else
4555
4556 cat >>confdefs.h <<\_ACEOF
4557 #define u_int16_t unsigned short
4558 _ACEOF
4559
4560 fi
4561
4562 { echo "$as_me:$LINENO: checking for int32_t" >&5
4563 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4564 if test "${ac_cv_type_int32_t+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4574 #ifdef HAVE_SYS_BITYPES_H
4575 #include <sys/bitypes.h>
4576 #endif
4577
4578 typedef int32_t ac__type_new_;
4579 int
4580 main ()
4581 {
4582 if ((ac__type_new_ *) 0)
4583 return 0;
4584 if (sizeof (ac__type_new_))
4585 return 0;
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4592 case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } && {
4604 test -z "$ac_c_werror_flag" ||
4605 test ! -s conftest.err
4606 } && test -s conftest.$ac_objext; then
4607 ac_cv_type_int32_t=yes
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 ac_cv_type_int32_t=no
4613 fi
4614
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 fi
4617 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4618 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4619 if test $ac_cv_type_int32_t = yes; then
4620 :
4621 else
4622
4623 cat >>confdefs.h <<\_ACEOF
4624 #define int32_t int
4625 _ACEOF
4626
4627 fi
4628
4629 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4630 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4631 if test "${ac_cv_type_u_int32_t+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 $ac_includes_default
4641 #ifdef HAVE_SYS_BITYPES_H
4642 #include <sys/bitypes.h>
4643 #endif
4644
4645 typedef u_int32_t ac__type_new_;
4646 int
4647 main ()
4648 {
4649 if ((ac__type_new_ *) 0)
4650 return 0;
4651 if (sizeof (ac__type_new_))
4652 return 0;
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4659 case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest.$ac_objext; then
4674 ac_cv_type_u_int32_t=yes
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 ac_cv_type_u_int32_t=no
4680 fi
4681
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4685 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4686 if test $ac_cv_type_u_int32_t = yes; then
4687 :
4688 else
4689
4690 cat >>confdefs.h <<\_ACEOF
4691 #define u_int32_t unsigned int
4692 _ACEOF
4693
4694 fi
4695
4696 { echo "$as_me:$LINENO: checking for int64_t" >&5
4697 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4698 if test "${ac_cv_type_int64_t+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 $ac_includes_default
4708 #ifdef HAVE_SYS_BITYPES_H
4709 #include <sys/bitypes.h>
4710 #endif
4711
4712 typedef int64_t ac__type_new_;
4713 int
4714 main ()
4715 {
4716 if ((ac__type_new_ *) 0)
4717 return 0;
4718 if (sizeof (ac__type_new_))
4719 return 0;
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (ac_try="$ac_compile"
4726 case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest.$ac_objext; then
4741 ac_cv_type_int64_t=yes
4742 else
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ac_cv_type_int64_t=no
4747 fi
4748
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 fi
4751 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4752 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4753 if test $ac_cv_type_int64_t = yes; then
4754 :
4755 else
4756
4757 cat >>confdefs.h <<\_ACEOF
4758 #define int64_t long long
4759 _ACEOF
4760
4761 fi
4762
4763 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4764 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4765 if test "${ac_cv_type_u_int64_t+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 $ac_includes_default
4775 #ifdef HAVE_SYS_BITYPES_H
4776 #include <sys/bitypes.h>
4777 #endif
4778
4779 typedef u_int64_t ac__type_new_;
4780 int
4781 main ()
4782 {
4783 if ((ac__type_new_ *) 0)
4784 return 0;
4785 if (sizeof (ac__type_new_))
4786 return 0;
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_type_u_int64_t=yes
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 ac_cv_type_u_int64_t=no
4814 fi
4815
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4819 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4820 if test $ac_cv_type_u_int64_t = yes; then
4821 :
4822 else
4823
4824 cat >>confdefs.h <<\_ACEOF
4825 #define u_int64_t unsigned long long
4826 _ACEOF
4827
4828 fi
4829
4830
4831 #
4832 # Try to arrange for large file support.
4833 #
4834 # Check whether --enable-largefile was given.
4835 if test "${enable_largefile+set}" = set; then
4836 enableval=$enable_largefile;
4837 fi
4838
4839 if test "$enable_largefile" != no; then
4840
4841 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4842 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4843 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 ac_cv_sys_largefile_CC=no
4847 if test "$GCC" != yes; then
4848 ac_save_CC=$CC
4849 while :; do
4850 # IRIX 6.2 and later do not support large files by default,
4851 # so use the C compiler's -n32 option if that helps.
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <sys/types.h>
4859 /* Check that off_t can represent 2**63 - 1 correctly.
4860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861 since some C++ compilers masquerading as C compilers
4862 incorrectly reject 9223372036854775807. */
4863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865 && LARGE_OFF_T % 2147483647 == 1)
4866 ? 1 : -1];
4867 int
4868 main ()
4869 {
4870
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (ac_try="$ac_compile"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_compile") 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && {
4889 test -z "$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 } && test -s conftest.$ac_objext; then
4892 break
4893 else
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897
4898 fi
4899
4900 rm -f core conftest.err conftest.$ac_objext
4901 CC="$CC -n32"
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_compile") 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } && {
4916 test -z "$ac_c_werror_flag" ||
4917 test ! -s conftest.err
4918 } && test -s conftest.$ac_objext; then
4919 ac_cv_sys_largefile_CC=' -n32'; break
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924
4925 fi
4926
4927 rm -f core conftest.err conftest.$ac_objext
4928 break
4929 done
4930 CC=$ac_save_CC
4931 rm -f conftest.$ac_ext
4932 fi
4933 fi
4934 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4935 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4936 if test "$ac_cv_sys_largefile_CC" != no; then
4937 CC=$CC$ac_cv_sys_largefile_CC
4938 fi
4939
4940 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4941 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4942 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 while :; do
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <sys/types.h>
4953 /* Check that off_t can represent 2**63 - 1 correctly.
4954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4955 since some C++ compilers masquerading as C compilers
4956 incorrectly reject 9223372036854775807. */
4957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4959 && LARGE_OFF_T % 2147483647 == 1)
4960 ? 1 : -1];
4961 int
4962 main ()
4963 {
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4986 ac_cv_sys_file_offset_bits=no; break
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991
4992 fi
4993
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #define _FILE_OFFSET_BITS 64
5002 #include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005 since some C++ compilers masquerading as C compilers
5006 incorrectly reject 9223372036854775807. */
5007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009 && LARGE_OFF_T % 2147483647 == 1)
5010 ? 1 : -1];
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 ac_cv_sys_file_offset_bits=64; break
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041
5042 fi
5043
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 ac_cv_sys_file_offset_bits=unknown
5046 break
5047 done
5048 fi
5049 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5050 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5051 case $ac_cv_sys_file_offset_bits in #(
5052 no | unknown) ;;
5053 *)
5054 cat >>confdefs.h <<_ACEOF
5055 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5056 _ACEOF
5057 ;;
5058 esac
5059 rm -f -r conftest*
5060 if test $ac_cv_sys_file_offset_bits = unknown; then
5061 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5062 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5063 if test "${ac_cv_sys_large_files+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 while :; do
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <sys/types.h>
5074 /* Check that off_t can represent 2**63 - 1 correctly.
5075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5076 since some C++ compilers masquerading as C compilers
5077 incorrectly reject 9223372036854775807. */
5078 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5080 && LARGE_OFF_T % 2147483647 == 1)
5081 ? 1 : -1];
5082 int
5083 main ()
5084 {
5085
5086 ;
5087 return 0;
5088 }
5089 _ACEOF
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5092 case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compile") 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && {
5104 test -z "$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 } && test -s conftest.$ac_objext; then
5107 ac_cv_sys_large_files=no; break
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112
5113 fi
5114
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #define _LARGE_FILES 1
5123 #include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126 since some C++ compilers masquerading as C compilers
5127 incorrectly reject 9223372036854775807. */
5128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130 && LARGE_OFF_T % 2147483647 == 1)
5131 ? 1 : -1];
5132 int
5133 main ()
5134 {
5135
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 rm -f conftest.$ac_objext
5141 if { (ac_try="$ac_compile"
5142 case "(($ac_try" in
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5145 esac
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_compile") 2>conftest.er1
5148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && {
5154 test -z "$ac_c_werror_flag" ||
5155 test ! -s conftest.err
5156 } && test -s conftest.$ac_objext; then
5157 ac_cv_sys_large_files=1; break
5158 else
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162
5163 fi
5164
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 ac_cv_sys_large_files=unknown
5167 break
5168 done
5169 fi
5170 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5171 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5172 case $ac_cv_sys_large_files in #(
5173 no | unknown) ;;
5174 *)
5175 cat >>confdefs.h <<_ACEOF
5176 #define _LARGE_FILES $ac_cv_sys_large_files
5177 _ACEOF
5178 ;;
5179 esac
5180 rm -f -r conftest*
5181 fi
5182 fi
5183
5184 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5185 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5186 if test "${ac_cv_sys_largefile_source+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 while :; do
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <stdio.h>
5197 int
5198 main ()
5199 {
5200 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5201 ;
5202 return 0;
5203 }
5204 _ACEOF
5205 rm -f conftest.$ac_objext conftest$ac_exeext
5206 if { (ac_try="$ac_link"
5207 case "(($ac_try" in
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_link") 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest$ac_exeext &&
5222 $as_test_x conftest$ac_exeext; then
5223 ac_cv_sys_largefile_source=no; break
5224 else
5225 echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228
5229 fi
5230
5231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5232 conftest$ac_exeext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #define _LARGEFILE_SOURCE 1
5240 #include <stdio.h>
5241 int
5242 main ()
5243 {
5244 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (ac_try="$ac_link"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_link") 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && {
5263 test -z "$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 } && test -s conftest$ac_exeext &&
5266 $as_test_x conftest$ac_exeext; then
5267 ac_cv_sys_largefile_source=1; break
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272
5273 fi
5274
5275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5276 conftest$ac_exeext conftest.$ac_ext
5277 ac_cv_sys_largefile_source=unknown
5278 break
5279 done
5280 fi
5281 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5282 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5283 case $ac_cv_sys_largefile_source in #(
5284 no | unknown) ;;
5285 *)
5286 cat >>confdefs.h <<_ACEOF
5287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5288 _ACEOF
5289 ;;
5290 esac
5291 rm -f -r conftest*
5292
5293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5294 # in glibc 2.1.3, but that breaks too many other things.
5295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5296 if test $ac_cv_sys_largefile_source != unknown; then
5297
5298 cat >>confdefs.h <<\_ACEOF
5299 #define HAVE_FSEEKO 1
5300 _ACEOF
5301
5302 fi
5303
5304
5305
5306
5307
5308
5309 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5310 do
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 fi
5318 ac_res=`eval echo '${'$as_ac_Header'}'`
5319 { echo "$as_me:$LINENO: result: $ac_res" >&5
5320 echo "${ECHO_T}$ac_res" >&6; }
5321 else
5322 # Is the header compilable?
5323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5325 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h. */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5332 #include <$ac_header>
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5336 case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5351 ac_header_compiler=yes
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5355
5356 ac_header_compiler=no
5357 fi
5358
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5361 echo "${ECHO_T}$ac_header_compiler" >&6; }
5362
5363 # Is the header present?
5364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <$ac_header>
5373 _ACEOF
5374 if { (ac_try="$ac_cpp conftest.$ac_ext"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } >/dev/null && {
5387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 }; then
5390 ac_header_preproc=yes
5391 else
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_header_preproc=no
5396 fi
5397
5398 rm -f conftest.err conftest.$ac_ext
5399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5400 echo "${ECHO_T}$ac_header_preproc" >&6; }
5401
5402 # So? What about this header?
5403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5404 yes:no: )
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5409 ac_header_preproc=yes
5410 ;;
5411 no:yes:* )
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5424
5425 ;;
5426 esac
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 eval "$as_ac_Header=\$ac_header_preproc"
5433 fi
5434 ac_res=`eval echo '${'$as_ac_Header'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5437
5438 fi
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442 _ACEOF
5443
5444 fi
5445
5446 done
5447
5448
5449 for ac_header in linux/types.h
5450 do
5451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 fi
5458 ac_res=`eval echo '${'$as_ac_Header'}'`
5459 { echo "$as_me:$LINENO: result: $ac_res" >&5
5460 echo "${ECHO_T}$ac_res" >&6; }
5461 else
5462 # Is the header compilable?
5463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5465 cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h. */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 $ac_includes_default
5472 #include <$ac_header>
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5476 case "(($ac_try" in
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_header_compiler=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_header_compiler=no
5497 fi
5498
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501 echo "${ECHO_T}$ac_header_compiler" >&6; }
5502
5503 # Is the header present?
5504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <$ac_header>
5513 _ACEOF
5514 if { (ac_try="$ac_cpp conftest.$ac_ext"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev/null && {
5527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 }; then
5530 ac_header_preproc=yes
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ac_header_preproc=no
5536 fi
5537
5538 rm -f conftest.err conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5540 echo "${ECHO_T}$ac_header_preproc" >&6; }
5541
5542 # So? What about this header?
5543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5544 yes:no: )
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5549 ac_header_preproc=yes
5550 ;;
5551 no:yes:* )
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5564
5565 ;;
5566 esac
5567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 eval "$as_ac_Header=\$ac_header_preproc"
5573 fi
5574 ac_res=`eval echo '${'$as_ac_Header'}'`
5575 { echo "$as_me:$LINENO: result: $ac_res" >&5
5576 echo "${ECHO_T}$ac_res" >&6; }
5577
5578 fi
5579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582 _ACEOF
5583
5584 fi
5585
5586 done
5587
5588
5589
5590
5591 for ac_header in linux/if_packet.h netpacket/packet.h netpacket/if_packet.h
5592 do
5593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 fi
5600 ac_res=`eval echo '${'$as_ac_Header'}'`
5601 { echo "$as_me:$LINENO: result: $ac_res" >&5
5602 echo "${ECHO_T}$ac_res" >&6; }
5603 else
5604 # Is the header compilable?
5605 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 #include <$ac_header>
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_c_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.$ac_objext; then
5633 ac_header_compiler=yes
5634 else
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_header_compiler=no
5639 fi
5640
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5643 echo "${ECHO_T}$ac_header_compiler" >&6; }
5644
5645 # Is the header present?
5646 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <$ac_header>
5655 _ACEOF
5656 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null && {
5669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 }; then
5672 ac_header_preproc=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 ac_header_preproc=no
5678 fi
5679
5680 rm -f conftest.err conftest.$ac_ext
5681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5682 echo "${ECHO_T}$ac_header_preproc" >&6; }
5683
5684 # So? What about this header?
5685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5686 yes:no: )
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5691 ac_header_preproc=yes
5692 ;;
5693 no:yes:* )
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5706
5707 ;;
5708 esac
5709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714 eval "$as_ac_Header=\$ac_header_preproc"
5715 fi
5716 ac_res=`eval echo '${'$as_ac_Header'}'`
5717 { echo "$as_me:$LINENO: result: $ac_res" >&5
5718 echo "${ECHO_T}$ac_res" >&6; }
5719
5720 fi
5721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5722 cat >>confdefs.h <<_ACEOF
5723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724 _ACEOF
5725
5726 fi
5727
5728 done
5729
5730
5731 for ac_header in net/pfvar.h
5732 do
5733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 #include <sys/socket.h>
5747 #include <net/if.h>
5748
5749 #include <$ac_header>
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 eval "$as_ac_Header=yes"
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 eval "$as_ac_Header=no"
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778 ac_res=`eval echo '${'$as_ac_Header'}'`
5779 { echo "$as_me:$LINENO: result: $ac_res" >&5
5780 echo "${ECHO_T}$ac_res" >&6; }
5781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5782 cat >>confdefs.h <<_ACEOF
5783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5784 _ACEOF
5785
5786 fi
5787
5788 done
5789
5790 if test "$ac_cv_header_net_pfvar_h" = yes; then
5791 #
5792 # Check for various PF actions.
5793 #
5794 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5795 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <sys/types.h>
5803 #include <sys/socket.h>
5804 #include <net/if.h>
5805 #include <net/pfvar.h>
5806 int
5807 main ()
5808 {
5809 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && {
5828 test -z "$ac_c_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.$ac_objext; then
5831
5832 { echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6; }
5834
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5837 _ACEOF
5838
5839
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5846 fi
5847
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 fi
5850
5851 for ac_header in netinet/if_ether.h
5852 do
5853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <sys/types.h>
5866 #include <sys/socket.h>
5867
5868 #include <$ac_header>
5869 _ACEOF
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.$ac_objext; then
5887 eval "$as_ac_Header=yes"
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 eval "$as_ac_Header=no"
5893 fi
5894
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 fi
5897 ac_res=`eval echo '${'$as_ac_Header'}'`
5898 { echo "$as_me:$LINENO: result: $ac_res" >&5
5899 echo "${ECHO_T}$ac_res" >&6; }
5900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 _ACEOF
5904
5905 fi
5906
5907 done
5908
5909 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5910 #
5911 # The simple test didn't work.
5912 # Do we need to include <net/if.h> first?
5913 # Unset ac_cv_header_netinet_if_ether_h so we don't
5914 # treat the previous failure as a cached value and
5915 # suppress the next test.
5916 #
5917 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5918 echo "$as_me: Rechecking with some additional includes" >&6;}
5919 unset ac_cv_header_netinet_if_ether_h
5920
5921 for ac_header in netinet/if_ether.h
5922 do
5923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h. */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #include <sys/types.h>
5936 #include <sys/socket.h>
5937 #include <netinet/in.h>
5938 struct mbuf;
5939 struct rtentry;
5940 #include <net/if.h>
5941
5942 #include <$ac_header>
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.$ac_objext; then
5961 eval "$as_ac_Header=yes"
5962 else
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 eval "$as_ac_Header=no"
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 ac_res=`eval echo '${'$as_ac_Header'}'`
5972 { echo "$as_me:$LINENO: result: $ac_res" >&5
5973 echo "${ECHO_T}$ac_res" >&6; }
5974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5975 cat >>confdefs.h <<_ACEOF
5976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5977 _ACEOF
5978
5979 fi
5980
5981 done
5982
5983 fi
5984
5985 if test "$GCC" = yes ; then
5986 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5987 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5988 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 /*
5998 * This generates a "duplicate case value" when fixincludes
5999 * has not be run.
6000 */
6001 # include <sys/types.h>
6002 # include <sys/time.h>
6003 # include <sys/ioctl.h>
6004 # ifdef HAVE_SYS_IOCCOM_H
6005 # include <sys/ioccom.h>
6006 # endif
6007 int
6008 main ()
6009 {
6010 switch (0) {
6011 case _IO('A', 1):;
6012 case _IO('B', 1):;
6013 }
6014 ;
6015 return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.$ac_objext; then
6035 ac_cv_lbl_gcc_fixincludes=yes
6036 else
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_cv_lbl_gcc_fixincludes=no
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045
6046 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
6047 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
6048 if test $ac_cv_lbl_gcc_fixincludes = no ; then
6049 # Don't cache failure
6050 unset ac_cv_lbl_gcc_fixincludes
6051 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
6052 echo "$as_me: error: see the INSTALL for more info" >&2;}
6053 { (exit 1); exit 1; }; }
6054 fi
6055 fi
6056
6057
6058
6059 for ac_func in strerror strlcpy
6060 do
6061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6075 #define $ac_func innocuous_$ac_func
6076
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char $ac_func (); below.
6079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 <limits.h> exists even on freestanding compilers. */
6081
6082 #ifdef __STDC__
6083 # include <limits.h>
6084 #else
6085 # include <assert.h>
6086 #endif
6087
6088 #undef $ac_func
6089
6090 /* Override any GCC internal prototype to avoid an error.
6091 Use char because int might match the return type of a GCC
6092 builtin and then its argument prototype would still apply. */
6093 #ifdef __cplusplus
6094 extern "C"
6095 #endif
6096 char $ac_func ();
6097 /* The GNU C library defines this for functions which it implements
6098 to always fail with ENOSYS. Some functions are actually named
6099 something starting with __ and the normal name is an alias. */
6100 #if defined __stub_$ac_func || defined __stub___$ac_func
6101 choke me
6102 #endif
6103
6104 int
6105 main ()
6106 {
6107 return $ac_func ();
6108 ;
6109 return 0;
6110 }
6111 _ACEOF
6112 rm -f conftest.$ac_objext conftest$ac_exeext
6113 if { (ac_try="$ac_link"
6114 case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_link") 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest$ac_exeext &&
6129 $as_test_x conftest$ac_exeext; then
6130 eval "$as_ac_var=yes"
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135 eval "$as_ac_var=no"
6136 fi
6137
6138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6139 conftest$ac_exeext conftest.$ac_ext
6140 fi
6141 ac_res=`eval echo '${'$as_ac_var'}'`
6142 { echo "$as_me:$LINENO: result: $ac_res" >&5
6143 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_var'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6147 _ACEOF
6148
6149 fi
6150 done
6151
6152
6153 needsnprintf=no
6154
6155
6156 for ac_func in vsnprintf snprintf
6157 do
6158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6172 #define $ac_func innocuous_$ac_func
6173
6174 /* System header to define __stub macros and hopefully few prototypes,
6175 which can conflict with char $ac_func (); below.
6176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6177 <limits.h> exists even on freestanding compilers. */
6178
6179 #ifdef __STDC__
6180 # include <limits.h>
6181 #else
6182 # include <assert.h>
6183 #endif
6184
6185 #undef $ac_func
6186
6187 /* Override any GCC internal prototype to avoid an error.
6188 Use char because int might match the return type of a GCC
6189 builtin and then its argument prototype would still apply. */
6190 #ifdef __cplusplus
6191 extern "C"
6192 #endif
6193 char $ac_func ();
6194 /* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197 #if defined __stub_$ac_func || defined __stub___$ac_func
6198 choke me
6199 #endif
6200
6201 int
6202 main ()
6203 {
6204 return $ac_func ();
6205 ;
6206 return 0;
6207 }
6208 _ACEOF
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (ac_try="$ac_link"
6211 case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214 esac
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_link") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest$ac_exeext &&
6226 $as_test_x conftest$ac_exeext; then
6227 eval "$as_ac_var=yes"
6228 else
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232 eval "$as_ac_var=no"
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6236 conftest$ac_exeext conftest.$ac_ext
6237 fi
6238 ac_res=`eval echo '${'$as_ac_var'}'`
6239 { echo "$as_me:$LINENO: result: $ac_res" >&5
6240 echo "${ECHO_T}$ac_res" >&6; }
6241 if test `eval echo '${'$as_ac_var'}'` = yes; then
6242 cat >>confdefs.h <<_ACEOF
6243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6244 _ACEOF
6245
6246 else
6247 needsnprintf=yes
6248 fi
6249 done
6250
6251 if test $needsnprintf = yes; then
6252 case " $LIBOBJS " in
6253 *" snprintf.$ac_objext "* ) ;;
6254 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6255 ;;
6256 esac
6257
6258 fi
6259
6260 #
6261 # Do this before checking for ether_hostton(), as it's a
6262 # "gethostbyname() -ish function".
6263 #
6264
6265 # Most operating systems have gethostbyname() in the default searched
6266 # libraries (i.e. libc):
6267 # Some OSes (eg. Solaris) place it in libnsl
6268 # Some strange OSes (SINIX) have it in libsocket:
6269 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6270 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6271 if test "${ac_cv_search_gethostbyname+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274 ac_func_search_save_LIBS=$LIBS
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281
6282 /* Override any GCC internal prototype to avoid an error.
6283 Use char because int might match the return type of a GCC
6284 builtin and then its argument prototype would still apply. */
6285 #ifdef __cplusplus
6286 extern "C"
6287 #endif
6288 char gethostbyname ();
6289 int
6290 main ()
6291 {
6292 return gethostbyname ();
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 for ac_lib in '' nsl socket resolv; do
6298 if test -z "$ac_lib"; then
6299 ac_res="none required"
6300 else
6301 ac_res=-l$ac_lib
6302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6303 fi
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (ac_try="$ac_link"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_link") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest$ac_exeext &&
6321 $as_test_x conftest$ac_exeext; then
6322 ac_cv_search_gethostbyname=$ac_res
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327
6328 fi
6329
6330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6331 conftest$ac_exeext
6332 if test "${ac_cv_search_gethostbyname+set}" = set; then
6333 break
6334 fi
6335 done
6336 if test "${ac_cv_search_gethostbyname+set}" = set; then
6337 :
6338 else
6339 ac_cv_search_gethostbyname=no
6340 fi
6341 rm conftest.$ac_ext
6342 LIBS=$ac_func_search_save_LIBS
6343 fi
6344 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6345 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6346 ac_res=$ac_cv_search_gethostbyname
6347 if test "$ac_res" != no; then
6348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6349
6350 fi
6351
6352 # Unfortunately libsocket sometimes depends on libnsl and
6353 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6354 if test "$ac_cv_search_gethostbyname" = "no"
6355 then
6356 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6357 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6358 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361 ac_check_lib_save_LIBS=$LIBS
6362 LIBS="-lsocket -lnsl $LIBS"
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369
6370 /* Override any GCC internal prototype to avoid an error.
6371 Use char because int might match the return type of a GCC
6372 builtin and then its argument prototype would still apply. */
6373 #ifdef __cplusplus
6374 extern "C"
6375 #endif
6376 char gethostbyname ();
6377 int
6378 main ()
6379 {
6380 return gethostbyname ();
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext conftest$ac_exeext
6386 if { (ac_try="$ac_link"
6387 case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390 esac
6391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_link") 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } && {
6399 test -z "$ac_c_werror_flag" ||
6400 test ! -s conftest.err
6401 } && test -s conftest$ac_exeext &&
6402 $as_test_x conftest$ac_exeext; then
6403 ac_cv_lib_socket_gethostbyname=yes
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6407
6408 ac_cv_lib_socket_gethostbyname=no
6409 fi
6410
6411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6412 conftest$ac_exeext conftest.$ac_ext
6413 LIBS=$ac_check_lib_save_LIBS
6414 fi
6415 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6416 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6417 if test $ac_cv_lib_socket_gethostbyname = yes; then
6418 LIBS="-lsocket -lnsl $LIBS"
6419 fi
6420
6421 fi
6422 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6423 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6424 if test "${ac_cv_search_socket+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 ac_func_search_save_LIBS=$LIBS
6428 cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434
6435 /* Override any GCC internal prototype to avoid an error.
6436 Use char because int might match the return type of a GCC
6437 builtin and then its argument prototype would still apply. */
6438 #ifdef __cplusplus
6439 extern "C"
6440 #endif
6441 char socket ();
6442 int
6443 main ()
6444 {
6445 return socket ();
6446 ;
6447 return 0;
6448 }
6449 _ACEOF
6450 for ac_lib in '' socket; do
6451 if test -z "$ac_lib"; then
6452 ac_res="none required"
6453 else
6454 ac_res=-l$ac_lib
6455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6456 fi
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext &&
6474 $as_test_x conftest$ac_exeext; then
6475 ac_cv_search_socket=$ac_res
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480
6481 fi
6482
6483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6484 conftest$ac_exeext
6485 if test "${ac_cv_search_socket+set}" = set; then
6486 break
6487 fi
6488 done
6489 if test "${ac_cv_search_socket+set}" = set; then
6490 :
6491 else
6492 ac_cv_search_socket=no
6493 fi
6494 rm conftest.$ac_ext
6495 LIBS=$ac_func_search_save_LIBS
6496 fi
6497 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6498 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6499 ac_res=$ac_cv_search_socket
6500 if test "$ac_res" != no; then
6501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6502
6503 else
6504 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6505 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6506 if test "${ac_cv_lib_socket_socket+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 ac_check_lib_save_LIBS=$LIBS
6510 LIBS="-lsocket -lnsl $LIBS"
6511 cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h. */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517
6518 /* Override any GCC internal prototype to avoid an error.
6519 Use char because int might match the return type of a GCC
6520 builtin and then its argument prototype would still apply. */
6521 #ifdef __cplusplus
6522 extern "C"
6523 #endif
6524 char socket ();
6525 int
6526 main ()
6527 {
6528 return socket ();
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest$ac_exeext &&
6550 $as_test_x conftest$ac_exeext; then
6551 ac_cv_lib_socket_socket=yes
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_cv_lib_socket_socket=no
6557 fi
6558
6559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6560 conftest$ac_exeext conftest.$ac_ext
6561 LIBS=$ac_check_lib_save_LIBS
6562 fi
6563 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6564 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6565 if test $ac_cv_lib_socket_socket = yes; then
6566 LIBS="-lsocket -lnsl $LIBS"
6567 fi
6568
6569 fi
6570
6571 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6572 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6573 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6574 if test "${ac_cv_search_putmsg+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 ac_func_search_save_LIBS=$LIBS
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584
6585 /* Override any GCC internal prototype to avoid an error.
6586 Use char because int might match the return type of a GCC
6587 builtin and then its argument prototype would still apply. */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 char putmsg ();
6592 int
6593 main ()
6594 {
6595 return putmsg ();
6596 ;
6597 return 0;
6598 }
6599 _ACEOF
6600 for ac_lib in '' str; do
6601 if test -z "$ac_lib"; then
6602 ac_res="none required"
6603 else
6604 ac_res=-l$ac_lib
6605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6606 fi
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6609 case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest$ac_exeext &&
6624 $as_test_x conftest$ac_exeext; then
6625 ac_cv_search_putmsg=$ac_res
6626 else
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630
6631 fi
6632
6633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6634 conftest$ac_exeext
6635 if test "${ac_cv_search_putmsg+set}" = set; then
6636 break
6637 fi
6638 done
6639 if test "${ac_cv_search_putmsg+set}" = set; then
6640 :
6641 else
6642 ac_cv_search_putmsg=no
6643 fi
6644 rm conftest.$ac_ext
6645 LIBS=$ac_func_search_save_LIBS
6646 fi
6647 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6648 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6649 ac_res=$ac_cv_search_putmsg
6650 if test "$ac_res" != no; then
6651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6652
6653 fi
6654
6655
6656
6657 #
6658 # You are in a twisty little maze of UN*Xes, all different.
6659 # Some might not have ether_hostton().
6660 # Some might have it, but not declare it in any header file.
6661 # Some might have it, but declare it in <netinet/if_ether.h>.
6662 # Some might have it, but declare it in <netinet/ether.h>
6663 # (And some might have it but document it as something declared in
6664 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6665 #
6666 # Before you is a C compiler.
6667 #
6668
6669 for ac_func in ether_hostton
6670 do
6671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6685 #define $ac_func innocuous_$ac_func
6686
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func (); below.
6689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6690 <limits.h> exists even on freestanding compilers. */
6691
6692 #ifdef __STDC__
6693 # include <limits.h>
6694 #else
6695 # include <assert.h>
6696 #endif
6697
6698 #undef $ac_func
6699
6700 /* Override any GCC internal prototype to avoid an error.
6701 Use char because int might match the return type of a GCC
6702 builtin and then its argument prototype would still apply. */
6703 #ifdef __cplusplus
6704 extern "C"
6705 #endif
6706 char $ac_func ();
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined __stub_$ac_func || defined __stub___$ac_func
6711 choke me
6712 #endif
6713
6714 int
6715 main ()
6716 {
6717 return $ac_func ();
6718 ;
6719 return 0;
6720 }
6721 _ACEOF
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest$ac_exeext &&
6739 $as_test_x conftest$ac_exeext; then
6740 eval "$as_ac_var=yes"
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6744
6745 eval "$as_ac_var=no"
6746 fi
6747
6748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749 conftest$ac_exeext conftest.$ac_ext
6750 fi
6751 ac_res=`eval echo '${'$as_ac_var'}'`
6752 { echo "$as_me:$LINENO: result: $ac_res" >&5
6753 echo "${ECHO_T}$ac_res" >&6; }
6754 if test `eval echo '${'$as_ac_var'}'` = yes; then
6755 cat >>confdefs.h <<_ACEOF
6756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6757 _ACEOF
6758
6759 fi
6760 done
6761
6762 if test "$ac_cv_func_ether_hostton" = yes; then
6763 #
6764 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6765 #
6766 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6767 #
6768 # Yes. Does it declare ether_hostton()?
6769 #
6770 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6771 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6772 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775 cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h. */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6781
6782 #include <sys/types.h>
6783 #include <sys/socket.h>
6784 #include <netinet/in.h>
6785 #include <arpa/inet.h>
6786 struct mbuf;
6787 struct rtentry;
6788 #include <net/if.h>
6789 #include <netinet/if_ether.h>
6790
6791
6792 int
6793 main ()
6794 {
6795 #ifndef ether_hostton
6796 (void) ether_hostton;
6797 #endif
6798
6799 ;
6800 return 0;
6801 }
6802 _ACEOF
6803 rm -f conftest.$ac_objext
6804 if { (ac_try="$ac_compile"
6805 case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808 esac
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_compile") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && {
6817 test -z "$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 } && test -s conftest.$ac_objext; then
6820 ac_cv_have_decl_ether_hostton=yes
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 ac_cv_have_decl_ether_hostton=no
6826 fi
6827
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6831 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6832 if test $ac_cv_have_decl_ether_hostton = yes; then
6833
6834
6835 cat >>confdefs.h <<\_ACEOF
6836 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6837 _ACEOF
6838
6839
6840 fi
6841
6842 fi
6843 #
6844 # Did that succeed?
6845 #
6846 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6847 #
6848 # No, how about <netinet/ether.h>, as on Linux?
6849 #
6850
6851 for ac_header in netinet/ether.h
6852 do
6853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 fi
6860 ac_res=`eval echo '${'$as_ac_Header'}'`
6861 { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6863 else
6864 # Is the header compilable?
6865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 $ac_includes_default
6874 #include <$ac_header>
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_header_compiler=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 ac_header_compiler=no
6899 fi
6900
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6903 echo "${ECHO_T}$ac_header_compiler" >&6; }
6904
6905 # Is the header present?
6906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <$ac_header>
6915 _ACEOF
6916 if { (ac_try="$ac_cpp conftest.$ac_ext"
6917 case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } >/dev/null && {
6929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6931 }; then
6932 ac_header_preproc=yes
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_header_preproc=no
6938 fi
6939
6940 rm -f conftest.err conftest.$ac_ext
6941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6942 echo "${ECHO_T}$ac_header_preproc" >&6; }
6943
6944 # So? What about this header?
6945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6946 yes:no: )
6947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6951 ac_header_preproc=yes
6952 ;;
6953 no:yes:* )
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6966
6967 ;;
6968 esac
6969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 eval "$as_ac_Header=\$ac_header_preproc"
6975 fi
6976 ac_res=`eval echo '${'$as_ac_Header'}'`
6977 { echo "$as_me:$LINENO: result: $ac_res" >&5
6978 echo "${ECHO_T}$ac_res" >&6; }
6979
6980 fi
6981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984 _ACEOF
6985
6986 fi
6987
6988 done
6989
6990 if test "$ac_cv_header_netinet_ether_h" = yes; then
6991 #
6992 # We have it - does it declare ether_hostton()?
6993 # Unset ac_cv_have_decl_ether_hostton so we don't
6994 # treat the previous failure as a cached value and
6995 # suppress the next test.
6996 #
6997 unset ac_cv_have_decl_ether_hostton
6998 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6999 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
7000 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009
7010 #include <netinet/ether.h>
7011
7012
7013 int
7014 main ()
7015 {
7016 #ifndef ether_hostton
7017 (void) ether_hostton;
7018 #endif
7019
7020 ;
7021 return 0;
7022 }
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (ac_try="$ac_compile"
7026 case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029 esac
7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 (eval "$ac_compile") 2>conftest.er1
7032 ac_status=$?
7033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } && {
7038 test -z "$ac_c_werror_flag" ||
7039 test ! -s conftest.err
7040 } && test -s conftest.$ac_objext; then
7041 ac_cv_have_decl_ether_hostton=yes
7042 else
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7045
7046 ac_cv_have_decl_ether_hostton=no
7047 fi
7048
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 fi
7051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
7052 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
7053 if test $ac_cv_have_decl_ether_hostton = yes; then
7054
7055
7056 cat >>confdefs.h <<\_ACEOF
7057 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
7058 _ACEOF
7059
7060
7061 fi
7062
7063 fi
7064 fi
7065 #
7066 # Is ether_hostton() declared?
7067 #
7068 if test "$ac_cv_have_decl_ether_hostton" != yes; then
7069 #
7070 # No, we'll have to declare it ourselves.
7071 # Do we have "struct ether_addr"?
7072 #
7073 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
7074 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
7075 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084
7085 #include <sys/types.h>
7086 #include <sys/socket.h>
7087 #include <netinet/in.h>
7088 #include <arpa/inet.h>
7089 struct mbuf;
7090 struct rtentry;
7091 #include <net/if.h>
7092 #include <netinet/if_ether.h>
7093
7094
7095 typedef struct ether_addr ac__type_new_;
7096 int
7097 main ()
7098 {
7099 if ((ac__type_new_ *) 0)
7100 return 0;
7101 if (sizeof (ac__type_new_))
7102 return 0;
7103 ;
7104 return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext
7108 if { (ac_try="$ac_compile"
7109 case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112 esac
7113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
7124 ac_cv_type_struct_ether_addr=yes
7125 else
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7128
7129 ac_cv_type_struct_ether_addr=no
7130 fi
7131
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
7135 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
7136 if test $ac_cv_type_struct_ether_addr = yes; then
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_STRUCT_ETHER_ADDR 1
7140 _ACEOF
7141
7142
7143 fi
7144
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DECL_ETHER_HOSTTON 0
7148 _ACEOF
7149
7150 else
7151
7152 cat >>confdefs.h <<\_ACEOF
7153 #define HAVE_DECL_ETHER_HOSTTON 1
7154 _ACEOF
7155
7156 fi
7157 fi
7158
7159 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
7160 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
7161 # Check whether --enable-protochain was given.
7162 if test "${enable_protochain+set}" = set; then
7163 enableval=$enable_protochain;
7164 fi
7165
7166 case "x$enable_protochain" in
7167 xyes) enable_protochain=enabled ;;
7168 xno) enable_protochain=disabled ;;
7169 x) enable_protochain=enabled ;;
7170 esac
7171
7172 if test "$enable_protochain" = "disabled"; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define NO_PROTOCHAIN 1
7176 _ACEOF
7177
7178 fi
7179 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
7180 echo "${ECHO_T}${enable_protochain}" >&6; }
7181
7182 #
7183 # SITA support is mutually exclusive with native capture support;
7184 # "--with-sita" selects SITA support.
7185 #
7186
7187 # Check whether --with-sita was given.
7188 if test "${with_sita+set}" = set; then
7189 withval=$with_sita;
7190 if test ! "x$withval" = "xno" ; then
7191
7192 cat >>confdefs.h <<\_ACEOF
7193 #define SITA 1
7194 _ACEOF
7195
7196 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
7197 echo "$as_me: Enabling SITA ACN support" >&6;}
7198 V_PCAP=sita
7199 V_FINDALLDEVS=sita
7200 fi
7201
7202 else
7203
7204 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
7205 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
7206 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
7207 { (exit 1); exit 1; }; }
7208 fi
7209
7210 # Check whether --with-pcap was given.
7211 if test "${with_pcap+set}" = set; then
7212 withval=$with_pcap;
7213 fi
7214
7215 { echo "$as_me:$LINENO: checking packet capture type" >&5
7216 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
7217 if test ! -z "$with_pcap" ; then
7218 V_PCAP="$withval"
7219 elif test -r /dev/bpf -o -h /dev/bpf ; then
7220 #
7221 # Cloning BPF device.
7222 #
7223 V_PCAP=bpf
7224
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_CLONING_BPF 1
7227 _ACEOF
7228
7229 elif test -r /dev/bpf0 ; then
7230 V_PCAP=bpf
7231 elif test -r /usr/include/net/pfilt.h ; then
7232 V_PCAP=pf
7233 elif test -r /dev/enet ; then
7234 V_PCAP=enet
7235 elif test -r /dev/nit ; then
7236 V_PCAP=snit
7237 elif test -r /usr/include/sys/net/nit.h ; then
7238 V_PCAP=nit
7239 elif test -r /usr/include/linux/socket.h ; then
7240 V_PCAP=linux
7241 elif test -r /usr/include/net/raw.h ; then
7242 V_PCAP=snoop
7243 elif test -r /usr/include/odmi.h ; then
7244 #
7245 # On AIX, the BPF devices might not yet be present - they're
7246 # created the first time libpcap runs after booting.
7247 # We check for odmi.h instead.
7248 #
7249 V_PCAP=bpf
7250 elif test -c /dev/bpf0 ; then # check again in case not readable
7251 V_PCAP=bpf
7252 elif test -r /usr/include/sys/dlpi.h ; then
7253 V_PCAP=dlpi
7254 elif test -c /dev/enet ; then # check again in case not readable
7255 V_PCAP=enet
7256 elif test -c /dev/nit ; then # check again in case not readable
7257 V_PCAP=snit
7258 else
7259 V_PCAP=null
7260 fi
7261 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
7262 echo "${ECHO_T}$V_PCAP" >&6; }
7263
7264 #
7265 # Do capture-mechanism-dependent tests.
7266 #
7267 case "$V_PCAP" in
7268 dlpi)
7269 #
7270 # Checks to see if Solaris has the public libdlpi(3LIB) library.
7271 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
7272 # public libdlpi(3LIB) version. Before libdlpi was made public, a
7273 # private version also existed, which did not have the same APIs.
7274 # Due to a gcc bug, the default search path for 32-bit libraries does
7275 # not include /lib, we add it explicitly here.
7276 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
7277 # Also, due to the bug above applications that link to libpcap with
7278 # libdlpi will have to add "-L/lib" option to "configure".
7279 #
7280 saved_ldflags=$LDFLAGS
7281 LDFLAGS="$LIBS -L/lib"
7282 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
7283 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7284 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 ac_check_lib_save_LIBS=$LIBS
7288 LIBS="-ldlpi $LIBS"
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h. */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295
7296 /* Override any GCC internal prototype to avoid an error.
7297 Use char because int might match the return type of a GCC
7298 builtin and then its argument prototype would still apply. */
7299 #ifdef __cplusplus
7300 extern "C"
7301 #endif
7302 char dlpi_walk ();
7303 int
7304 main ()
7305 {
7306 return dlpi_walk ();
7307 ;
7308 return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (ac_try="$ac_link"
7313 case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_link") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest$ac_exeext &&
7328 $as_test_x conftest$ac_exeext; then
7329 ac_cv_lib_dlpi_dlpi_walk=yes
7330 else
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7333
7334 ac_cv_lib_dlpi_dlpi_walk=no
7335 fi
7336
7337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7338 conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7340 fi
7341 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7342 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7343 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7344 LIBS="-ldlpi $LIBS"
7345 V_PCAP=libdlpi
7346
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_LIBDLPI 1
7349 _ACEOF
7350
7351 else
7352 V_PCAP=dlpi
7353 fi
7354
7355 LDFLAGS=$saved_ldflags
7356
7357 #
7358 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7359 # versions of DLPI.
7360 #
7361 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7362 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7363 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372
7373 #include <sys/types.h>
7374 #include <sys/time.h>
7375 #include <sys/dlpi.h>
7376
7377 int
7378 main ()
7379 {
7380 int i = DL_PROMISC_PHYS;
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (ac_try="$ac_compile"
7387 case "(($ac_try" in
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.$ac_objext; then
7402 ac_cv_sys_dlpi_usable=yes
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407 ac_cv_sys_dlpi_usable=no
7408 fi
7409
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 fi
7412
7413 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7414 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7415 if test $ac_cv_sys_dlpi_usable = no ; then
7416 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7417 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7418 { (exit 1); exit 1; }; }
7419 fi
7420
7421 #
7422 # Check whether we have a /dev/dlpi device or have multiple devices.
7423 #
7424 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7425 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7426 if test -c /dev/dlpi ; then
7427 { echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6; }
7429
7430 cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_DEV_DLPI 1
7432 _ACEOF
7433
7434 else
7435 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7437 dir="/dev/dlpi"
7438 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7439 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7440 if test -d $dir ; then
7441 { echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6; }
7443
7444 cat >>confdefs.h <<_ACEOF
7445 #define PCAP_DEV_PREFIX "$dir"
7446 _ACEOF
7447
7448 else
7449 { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7451 fi
7452 fi
7453
7454 #
7455 # This check is for Solaris with DLPI support for passive modes.
7456 # See dlpi(7P) for more details.
7457 #
7458 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7459 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7460 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h. */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469
7470 # include <sys/types.h>
7471 # include <sys/dlpi.h>
7472 int
7473 main ()
7474 {
7475 u_int i = sizeof(dl_passive_req_t)
7476 ;
7477 return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7497 ac_cv_lbl_has_dl_passive_req_t=yes
7498 else
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502 ac_cv_lbl_has_dl_passive_req_t=no
7503 fi
7504
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 fi
7507
7508 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7509 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7510 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7511
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_DLPI_PASSIVE 1
7514 _ACEOF
7515
7516 fi
7517 ;;
7518
7519 linux)
7520 #
7521 # Do we have the wireless extensions?
7522 #
7523
7524 for ac_header in linux/wireless.h
7525 do
7526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 else
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538
7539 #include <sys/socket.h>
7540 #include <linux/if.h>
7541 #include <linux/types.h>
7542
7543
7544 #include <$ac_header>
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (ac_try="$ac_compile"
7548 case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551 esac
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553 (eval "$ac_compile") 2>conftest.er1
7554 ac_status=$?
7555 grep -v '^ *+' conftest.er1 >conftest.err
7556 rm -f conftest.er1
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } && {
7560 test -z "$ac_c_werror_flag" ||
7561 test ! -s conftest.err
7562 } && test -s conftest.$ac_objext; then
7563 eval "$as_ac_Header=yes"
7564 else
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568 eval "$as_ac_Header=no"
7569 fi
7570
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 fi
7573 ac_res=`eval echo '${'$as_ac_Header'}'`
7574 { echo "$as_me:$LINENO: result: $ac_res" >&5
7575 echo "${ECHO_T}$ac_res" >&6; }
7576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7577 cat >>confdefs.h <<_ACEOF
7578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7579 _ACEOF
7580
7581 fi
7582
7583 done
7584
7585
7586 #
7587 # Do we have libnl?
7588 #
7589
7590 # Check whether --with-libnl was given.
7591 if test "${with_libnl+set}" = set; then
7592 withval=$with_libnl; with_libnl=$withval
7593 fi
7594
7595
7596 if test x$with_libnl != xno ; then
7597 #
7598 # Try libnl 2.x first.
7599 #
7600 { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7601 echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7602 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 ac_check_lib_save_LIBS=$LIBS
7606 LIBS="-lnl $LIBS"
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613
7614 /* Override any GCC internal prototype to avoid an error.
7615 Use char because int might match the return type of a GCC
7616 builtin and then its argument prototype would still apply. */
7617 #ifdef __cplusplus
7618 extern "C"
7619 #endif
7620 char nl_socket_alloc ();
7621 int
7622 main ()
7623 {
7624 return nl_socket_alloc ();
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_link") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest$ac_exeext &&
7646 $as_test_x conftest$ac_exeext; then
7647 ac_cv_lib_nl_nl_socket_alloc=yes
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 ac_cv_lib_nl_nl_socket_alloc=no
7653 fi
7654
7655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7656 conftest$ac_exeext conftest.$ac_ext
7657 LIBS=$ac_check_lib_save_LIBS
7658 fi
7659 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7660 echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7661 if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7662
7663 #
7664 # Yes, we have libnl 2.x.
7665 #
7666 LIBS="-lnl-genl -lnl $LIBS"
7667
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_LIBNL 1
7670 _ACEOF
7671
7672
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_LIBNL_2_x 1
7675 _ACEOF
7676
7677
7678 else
7679
7680 #
7681 # No, we don't; do we have libnl 1.x?
7682 #
7683 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7684 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7685 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688 ac_check_lib_save_LIBS=$LIBS
7689 LIBS="-lnl $LIBS"
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
7697 /* Override any GCC internal prototype to avoid an error.
7698 Use char because int might match the return type of a GCC
7699 builtin and then its argument prototype would still apply. */
7700 #ifdef __cplusplus
7701 extern "C"
7702 #endif
7703 char nl_handle_alloc ();
7704 int
7705 main ()
7706 {
7707 return nl_handle_alloc ();
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (ac_try="$ac_link"
7714 case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_link") 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_c_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest$ac_exeext &&
7729 $as_test_x conftest$ac_exeext; then
7730 ac_cv_lib_nl_nl_handle_alloc=yes
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7734
7735 ac_cv_lib_nl_nl_handle_alloc=no
7736 fi
7737
7738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7739 conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7741 fi
7742 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7743 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7744 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7745
7746 #
7747 # Yes.
7748 #
7749 LIBS="-lnl $LIBS"
7750
7751 cat >>confdefs.h <<\_ACEOF
7752 #define HAVE_LIBNL 1
7753 _ACEOF
7754
7755
7756 else
7757
7758 #
7759 # No, we don't have libnl at all.
7760 #
7761 if test x$with_libnl = xyes ; then
7762 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7763 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7764 { (exit 1); exit 1; }; }
7765 fi
7766
7767 fi
7768
7769
7770 fi
7771
7772 fi
7773
7774
7775 for ac_header in linux/ethtool.h
7776 do
7777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 fi
7784 ac_res=`eval echo '${'$as_ac_Header'}'`
7785 { echo "$as_me:$LINENO: result: $ac_res" >&5
7786 echo "${ECHO_T}$ac_res" >&6; }
7787 else
7788 # Is the header compilable?
7789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7798 #include <$ac_header>
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
7817 ac_header_compiler=yes
7818 else
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 ac_header_compiler=no
7823 fi
7824
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7827 echo "${ECHO_T}$ac_header_compiler" >&6; }
7828
7829 # Is the header present?
7830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7832 cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h. */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 #include <$ac_header>
7839 _ACEOF
7840 if { (ac_try="$ac_cpp conftest.$ac_ext"
7841 case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844 esac
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } >/dev/null && {
7853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7854 test ! -s conftest.err
7855 }; then
7856 ac_header_preproc=yes
7857 else
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861 ac_header_preproc=no
7862 fi
7863
7864 rm -f conftest.err conftest.$ac_ext
7865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7866 echo "${ECHO_T}$ac_header_preproc" >&6; }
7867
7868 # So? What about this header?
7869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7870 yes:no: )
7871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7875 ac_header_preproc=yes
7876 ;;
7877 no:yes:* )
7878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7890
7891 ;;
7892 esac
7893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 eval "$as_ac_Header=\$ac_header_preproc"
7899 fi
7900 ac_res=`eval echo '${'$as_ac_Header'}'`
7901 { echo "$as_me:$LINENO: result: $ac_res" >&5
7902 echo "${ECHO_T}$ac_res" >&6; }
7903
7904 fi
7905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7908 _ACEOF
7909
7910 fi
7911
7912 done
7913
7914 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7915 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7916 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925
7926 # include <linux/if_packet.h>
7927 int
7928 main ()
7929 {
7930 struct tpacket_stats stats
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_compile") 2>conftest.er1
7943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
7952 ac_cv_lbl_tpacket_stats=yes
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 ac_cv_lbl_tpacket_stats=no
7958 fi
7959
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962
7963 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7964 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7965 if test $ac_cv_lbl_tpacket_stats = yes; then
7966
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_TPACKET_STATS 1
7969 _ACEOF
7970
7971 fi
7972 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7973 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7974 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983
7984 # include <sys/types.h>
7985 # include <linux/if_packet.h>
7986 int
7987 main ()
7988 {
7989 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
8017 fi
8018
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 fi
8021
8022 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
8023 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
8024 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
8025 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
8026
8027
8028 cat >>confdefs.h <<\_ACEOF
8029 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
8030 _ACEOF
8031
8032 fi
8033 ;;
8034
8035 bpf)
8036 #
8037 # Check whether we have the *BSD-style ioctls.
8038 #
8039
8040 for ac_header in net/if_media.h
8041 do
8042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 fi
8049 ac_res=`eval echo '${'$as_ac_Header'}'`
8050 { echo "$as_me:$LINENO: result: $ac_res" >&5
8051 echo "${ECHO_T}$ac_res" >&6; }
8052 else
8053 # Is the header compilable?
8054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8063 #include <$ac_header>
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8067 case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8082 ac_header_compiler=yes
8083 else
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 ac_header_compiler=no
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8092 echo "${ECHO_T}$ac_header_compiler" >&6; }
8093
8094 # Is the header present?
8095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <$ac_header>
8104 _ACEOF
8105 if { (ac_try="$ac_cpp conftest.$ac_ext"
8106 case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109 esac
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8112 ac_status=$?
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null && {
8118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 }; then
8121 ac_header_preproc=yes
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 ac_header_preproc=no
8127 fi
8128
8129 rm -f conftest.err conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8131 echo "${ECHO_T}$ac_header_preproc" >&6; }
8132
8133 # So? What about this header?
8134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8135 yes:no: )
8136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8140 ac_header_preproc=yes
8141 ;;
8142 no:yes:* )
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8155
8156 ;;
8157 esac
8158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163 eval "$as_ac_Header=\$ac_header_preproc"
8164 fi
8165 ac_res=`eval echo '${'$as_ac_Header'}'`
8166 { echo "$as_me:$LINENO: result: $ac_res" >&5
8167 echo "${ECHO_T}$ac_res" >&6; }
8168
8169 fi
8170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8171 cat >>confdefs.h <<_ACEOF
8172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8173 _ACEOF
8174
8175 fi
8176
8177 done
8178
8179
8180 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
8181 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <sys/socket.h>
8189 #include <sys/ioctl.h>
8190 #include <net/if.h>
8191 #include <net/bpf.h>
8192 int
8193 main ()
8194 {
8195 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217
8218 { echo "$as_me:$LINENO: result: yes" >&5
8219 echo "${ECHO_T}yes" >&6; }
8220
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_ZEROCOPY_BPF 1
8223 _ACEOF
8224
8225
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8229
8230 { echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6; }
8232 fi
8233
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235
8236 #
8237 # Check whether we have struct BPF_TIMEVAL.
8238 #
8239 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
8240 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
8241 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250
8251 #include <sys/types.h>
8252 #include <sys/ioctl.h>
8253 #ifdef HAVE_SYS_IOCCOM_H
8254 #include <sys/ioccom.h>
8255 #endif
8256 #include <net/bpf.h>
8257
8258
8259 typedef struct BPF_TIMEVAL ac__type_new_;
8260 int
8261 main ()
8262 {
8263 if ((ac__type_new_ *) 0)
8264 return 0;
8265 if (sizeof (ac__type_new_))
8266 return 0;
8267 ;
8268 return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8273 case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_compile") 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } && {
8285 test -z "$ac_c_werror_flag" ||
8286 test ! -s conftest.err
8287 } && test -s conftest.$ac_objext; then
8288 ac_cv_type_struct_BPF_TIMEVAL=yes
8289 else
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 ac_cv_type_struct_BPF_TIMEVAL=no
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8299 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8300 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8301
8302 cat >>confdefs.h <<_ACEOF
8303 #define HAVE_STRUCT_BPF_TIMEVAL 1
8304 _ACEOF
8305
8306
8307 fi
8308
8309 ;;
8310
8311 dag)
8312 V_DEFS="$V_DEFS -DDAG_ONLY"
8313 ;;
8314
8315 septel)
8316 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8317 ;;
8318
8319 snf)
8320 V_DEFS="$V_DEFS -DSNF_ONLY"
8321 ;;
8322
8323 null)
8324 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8325 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8327 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8328 ;;
8329 esac
8330
8331 if test "$V_PCAP" = null
8332 then
8333 #
8334 # We can't capture, so we can't open any capture
8335 # devices, so we won't return any interfaces.
8336 #
8337 V_FINDALLDEVS=null
8338 else
8339 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
8340 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8341 if test "${ac_cv_func_getifaddrs+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8352 #define getifaddrs innocuous_getifaddrs
8353
8354 /* System header to define __stub macros and hopefully few prototypes,
8355 which can conflict with char getifaddrs (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8358
8359 #ifdef __STDC__
8360 # include <limits.h>
8361 #else
8362 # include <assert.h>
8363 #endif
8364
8365 #undef getifaddrs
8366
8367 /* Override any GCC internal prototype to avoid an error.
8368 Use char because int might match the return type of a GCC
8369 builtin and then its argument prototype would still apply. */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 char getifaddrs ();
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8378 choke me
8379 #endif
8380
8381 int
8382 main ()
8383 {
8384 return getifaddrs ();
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 ac_cv_func_getifaddrs=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_cv_func_getifaddrs=no
8413 fi
8414
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416 conftest$ac_exeext conftest.$ac_ext
8417 fi
8418 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8419 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8420 if test $ac_cv_func_getifaddrs = yes; then
8421
8422 #
8423 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
8424 # as well, just in case some platform is really weird.
8425 #
8426 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8427 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8428 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8429 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 fi
8432 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8433 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8434 else
8435 # Is the header compilable?
8436 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8437 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #include <ifaddrs.h>
8446 _ACEOF
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8449 case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
8464 ac_header_compiler=yes
8465 else
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_header_compiler=no
8470 fi
8471
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8474 echo "${ECHO_T}$ac_header_compiler" >&6; }
8475
8476 # Is the header present?
8477 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8478 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 #include <ifaddrs.h>
8486 _ACEOF
8487 if { (ac_try="$ac_cpp conftest.$ac_ext"
8488 case "(($ac_try" in
8489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8490 *) ac_try_echo=$ac_try;;
8491 esac
8492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } >/dev/null && {
8500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 }; then
8503 ac_header_preproc=yes
8504 else
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ac_header_preproc=no
8509 fi
8510
8511 rm -f conftest.err conftest.$ac_ext
8512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8513 echo "${ECHO_T}$ac_header_preproc" >&6; }
8514
8515 # So? What about this header?
8516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8517 yes:no: )
8518 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8519 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8521 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8522 ac_header_preproc=yes
8523 ;;
8524 no:yes:* )
8525 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8526 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
8528 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8530 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
8532 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8536 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8537
8538 ;;
8539 esac
8540 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8541 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8542 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 ac_cv_header_ifaddrs_h=$ac_header_preproc
8546 fi
8547 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8548 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8549
8550 fi
8551 if test $ac_cv_header_ifaddrs_h = yes; then
8552
8553 #
8554 # We have the header, so we use "getifaddrs()" to
8555 # get the list of interfaces.
8556 #
8557 V_FINDALLDEVS=getad
8558
8559 else
8560
8561 #
8562 # We don't have the header - give up.
8563 # XXX - we could also fall back on some other
8564 # mechanism, but, for now, this'll catch this
8565 # problem so that we can at least try to figure
8566 # out something to do on systems with "getifaddrs()"
8567 # but without "ifaddrs.h", if there is something
8568 # we can do on those systems.
8569 #
8570 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8571 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8572 { (exit 1); exit 1; }; }
8573
8574 fi
8575
8576
8577
8578 else
8579
8580 #
8581 # Well, we don't have "getifaddrs()", so we have to use
8582 # some other mechanism; determine what that mechanism is.
8583 #
8584 # The first thing we use is the type of capture mechanism,
8585 # which is somewhat of a proxy for the OS we're using.
8586 #
8587 case "$V_PCAP" in
8588
8589 dlpi|libdlpi)
8590
8591
8592 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8593 do
8594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 fi
8601 ac_res=`eval echo '${'$as_ac_Header'}'`
8602 { echo "$as_me:$LINENO: result: $ac_res" >&5
8603 echo "${ECHO_T}$ac_res" >&6; }
8604 else
8605 # Is the header compilable?
8606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #include <$ac_header>
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (ac_try="$ac_compile"
8619 case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_compile") 2>conftest.er1
8625 ac_status=$?
8626 grep -v '^ *+' conftest.er1 >conftest.err
8627 rm -f conftest.er1
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } && {
8631 test -z "$ac_c_werror_flag" ||
8632 test ! -s conftest.err
8633 } && test -s conftest.$ac_objext; then
8634 ac_header_compiler=yes
8635 else
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 ac_header_compiler=no
8640 fi
8641
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8644 echo "${ECHO_T}$ac_header_compiler" >&6; }
8645
8646 # Is the header present?
8647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 #include <$ac_header>
8656 _ACEOF
8657 if { (ac_try="$ac_cpp conftest.$ac_ext"
8658 case "(($ac_try" in
8659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8660 *) ac_try_echo=$ac_try;;
8661 esac
8662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } >/dev/null && {
8670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 }; then
8673 ac_header_preproc=yes
8674 else
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 ac_header_preproc=no
8679 fi
8680
8681 rm -f conftest.err conftest.$ac_ext
8682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8683 echo "${ECHO_T}$ac_header_preproc" >&6; }
8684
8685 # So? What about this header?
8686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8687 yes:no: )
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8692 ac_header_preproc=yes
8693 ;;
8694 no:yes:* )
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8707
8708 ;;
8709 esac
8710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715 eval "$as_ac_Header=\$ac_header_preproc"
8716 fi
8717 ac_res=`eval echo '${'$as_ac_Header'}'`
8718 { echo "$as_me:$LINENO: result: $ac_res" >&5
8719 echo "${ECHO_T}$ac_res" >&6; }
8720
8721 fi
8722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8723 cat >>confdefs.h <<_ACEOF
8724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8725 _ACEOF
8726
8727 fi
8728
8729 done
8730
8731 #
8732 # This might be Solaris 8 or later, with
8733 # SIOCGLIFCONF, or it might be some other OS
8734 # or some older version of Solaris, with
8735 # just SIOCGIFCONF.
8736 #
8737 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8738 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8739 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 #include <sys/param.h>
8749 #include <sys/file.h>
8750 #include <sys/ioctl.h>
8751 #include <sys/socket.h>
8752 #include <sys/sockio.h>
8753 int
8754 main ()
8755 {
8756 ioctl(0, SIOCGLIFCONF, (char *)0);
8757 ;
8758 return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8763 case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_lbl_have_siocglifconf=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_cv_lbl_have_siocglifconf=no
8784 fi
8785
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 fi
8788
8789 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8790 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8791 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8792 V_FINDALLDEVS=glifc
8793 else
8794 V_FINDALLDEVS=gifc
8795 fi
8796 #
8797 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8798 #
8799 SSRC="dlpisubs.c"
8800 ;;
8801
8802 *)
8803 #
8804 # Assume we just have SIOCGIFCONF.
8805 # (XXX - on at least later Linux kernels, there's
8806 # another mechanism, and we should be using that
8807 # instead.)
8808 #
8809 V_FINDALLDEVS=gifc
8810 ;;
8811 esac
8812 fi
8813
8814 fi
8815
8816 fi
8817
8818
8819 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8820 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8821 cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h. */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8827
8828 #include <sys/types.h>
8829 #include <sys/socket.h>
8830
8831 int
8832 main ()
8833 {
8834 socklen_t x;
8835 ;
8836 return 0;
8837 }
8838 _ACEOF
8839 rm -f conftest.$ac_objext
8840 if { (ac_try="$ac_compile"
8841 case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844 esac
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 have_socklen_t=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 have_socklen_t=no
8862 fi
8863
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865 if test "x$have_socklen_t" = "xyes"; then
8866
8867 cat >>confdefs.h <<\_ACEOF
8868 #define HAVE_SOCKLEN_T 1
8869 _ACEOF
8870
8871 fi
8872 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8873 echo "${ECHO_T}$have_socklen_t" >&6; }
8874
8875 # Check whether --enable-ipv6 was given.
8876 if test "${enable_ipv6+set}" = set; then
8877 enableval=$enable_ipv6;
8878 else
8879 enable_ipv6=ifavailable
8880 fi
8881
8882 if test "$enable_ipv6" != "no"; then
8883 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8884 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8885 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888 cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h. */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8896 #define getaddrinfo innocuous_getaddrinfo
8897
8898 /* System header to define __stub macros and hopefully few prototypes,
8899 which can conflict with char getaddrinfo (); below.
8900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8901 <limits.h> exists even on freestanding compilers. */
8902
8903 #ifdef __STDC__
8904 # include <limits.h>
8905 #else
8906 # include <assert.h>
8907 #endif
8908
8909 #undef getaddrinfo
8910
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 char getaddrinfo ();
8918 /* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */
8921 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8922 choke me
8923 #endif
8924
8925 int
8926 main ()
8927 {
8928 return getaddrinfo ();
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8935 case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8938 esac
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_link") 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } && {
8947 test -z "$ac_c_werror_flag" ||
8948 test ! -s conftest.err
8949 } && test -s conftest$ac_exeext &&
8950 $as_test_x conftest$ac_exeext; then
8951 ac_cv_func_getaddrinfo=yes
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 ac_cv_func_getaddrinfo=no
8957 fi
8958
8959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8960 conftest$ac_exeext conftest.$ac_ext
8961 fi
8962 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8963 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8964 if test $ac_cv_func_getaddrinfo = yes; then
8965
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define INET6 1
8969 _ACEOF
8970
8971
8972 else
8973
8974 if test "$enable_ipv6" != "ifavailable"; then
8975 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8976 See \`config.log' for more details." >&5
8977 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8978 See \`config.log' for more details." >&2;}
8979 { (exit 1); exit 1; }; }
8980 fi
8981
8982 fi
8983
8984 fi
8985
8986 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8987 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8988 # Check whether --enable-optimizer-dbg was given.
8989 if test "${enable_optimizer_dbg+set}" = set; then
8990 enableval=$enable_optimizer_dbg;
8991 fi
8992
8993 if test "$enable_optimizer_dbg" = "yes"; then
8994
8995 cat >>confdefs.h <<\_ACEOF
8996 #define BDEBUG 1
8997 _ACEOF
8998
8999 fi
9000 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
9001 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
9002
9003 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
9004 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
9005 # Check whether --enable-yydebug was given.
9006 if test "${enable_yydebug+set}" = set; then
9007 enableval=$enable_yydebug;
9008 fi
9009
9010 if test "$enable_yydebug" = "yes"; then
9011
9012 cat >>confdefs.h <<\_ACEOF
9013 #define YYDEBUG 1
9014 _ACEOF
9015
9016 fi
9017 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
9018 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
9019
9020 # Check for Endace DAG card support.
9021
9022 # Check whether --with-dag was given.
9023 if test "${with_dag+set}" = set; then
9024 withval=$with_dag;
9025 if test "$withval" = no
9026 then
9027 # User doesn't want DAG support.
9028 want_dag=no
9029 elif test "$withval" = yes
9030 then
9031 # User wants DAG support but hasn't specified a directory.
9032 want_dag=yes
9033 else
9034 # User wants DAG support and has specified a directory, so use the provided value.
9035 want_dag=yes
9036 dag_root=$withval
9037 fi
9038
9039 else
9040
9041 #
9042 # Use DAG API if present, otherwise don't
9043 #
9044 want_dag=ifpresent
9045
9046 fi
9047
9048
9049
9050 # Check whether --with-dag-includes was given.
9051 if test "${with_dag_includes+set}" = set; then
9052 withval=$with_dag_includes;
9053 # User wants DAG support and has specified a header directory, so use the provided value.
9054 want_dag=yes
9055 dag_include_dir=$withval
9056
9057 fi
9058
9059
9060
9061 # Check whether --with-dag-libraries was given.
9062 if test "${with_dag_libraries+set}" = set; then
9063 withval=$with_dag_libraries;
9064 # User wants DAG support and has specified a library directory, so use the provided value.
9065 want_dag=yes
9066 dag_lib_dir=$withval
9067
9068 fi
9069
9070
9071 case "$V_PCAP" in
9072 linux|bpf|dag)
9073 #
9074 # We support the DAG API if we're on Linux or BSD, or if we're
9075 # building a DAG-only libpcap.
9076 #
9077 ;;
9078 *)
9079 #
9080 # If the user explicitly requested DAG, tell them it's not
9081 # supported.
9082 #
9083 # If they expressed no preference, don't include it.
9084 #
9085 if test $want_dag = yes; then
9086 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
9087 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
9088 { (exit 1); exit 1; }; }
9089 elif test $want_dag = yes; then
9090 want_dag=no
9091 fi
9092 ;;
9093 esac
9094
9095 ac_cv_lbl_dag_api=no
9096 if test "$want_dag" != no; then
9097
9098 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
9099 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
9100
9101 # If necessary, set default paths for DAG API headers and libraries.
9102 if test -z "$dag_root"; then
9103 dag_root=/usr/local
9104 fi
9105
9106 if test -z "$dag_include_dir"; then
9107 dag_include_dir="$dag_root/include"
9108 fi
9109
9110 if test -z "$dag_lib_dir"; then
9111 dag_lib_dir="$dag_root/lib"
9112 fi
9113
9114 if test -z "$dag_tools_dir"; then
9115 dag_tools_dir="$dag_root/tools"
9116 fi
9117
9118 if test -r $dag_include_dir/dagapi.h; then
9119 ac_cv_lbl_dag_api=yes
9120 fi
9121 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
9122 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
9123 fi
9124
9125 if test $ac_cv_lbl_dag_api = yes; then
9126 V_INCLS="$V_INCLS -I$dag_include_dir"
9127
9128 if test $V_PCAP != dag ; then
9129 SSRC="pcap-dag.c"
9130 fi
9131
9132 # See if we can find a general version string.
9133 # Don't need to save and restore LIBS to prevent -ldag being
9134 # included if there's a found-action (arg 3).
9135 saved_ldflags=$LDFLAGS
9136 LDFLAGS="-L$dag_lib_dir"
9137 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
9138 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
9139 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142 ac_check_lib_save_LIBS=$LIBS
9143 LIBS="-ldag $LIBS"
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150
9151 /* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 char dag_attach_stream ();
9158 int
9159 main ()
9160 {
9161 return dag_attach_stream ();
9162 ;
9163 return 0;
9164 }
9165 _ACEOF
9166 rm -f conftest.$ac_objext conftest$ac_exeext
9167 if { (ac_try="$ac_link"
9168 case "(($ac_try" in
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9171 esac
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_link") 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && {
9180 test -z "$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9182 } && test -s conftest$ac_exeext &&
9183 $as_test_x conftest$ac_exeext; then
9184 ac_cv_lib_dag_dag_attach_stream=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 ac_cv_lib_dag_dag_attach_stream=no
9190 fi
9191
9192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9193 conftest$ac_exeext conftest.$ac_ext
9194 LIBS=$ac_check_lib_save_LIBS
9195 fi
9196 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
9197 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
9198 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
9199 dag_streams="1"
9200 else
9201 dag_streams="0"
9202 fi
9203
9204 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
9205 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
9206 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 ac_check_lib_save_LIBS=$LIBS
9210 LIBS="-ldag $LIBS"
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 char dag_get_erf_types ();
9225 int
9226 main ()
9227 {
9228 return dag_get_erf_types ();
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9235 case "(($ac_try" in
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240 (eval "$ac_link") 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest$ac_exeext &&
9250 $as_test_x conftest$ac_exeext; then
9251 ac_cv_lib_dag_dag_get_erf_types=yes
9252 else
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256 ac_cv_lib_dag_dag_get_erf_types=no
9257 fi
9258
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9262 fi
9263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
9264 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
9265 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
9266
9267
9268 cat >>confdefs.h <<\_ACEOF
9269 #define HAVE_DAG_GET_ERF_TYPES 1
9270 _ACEOF
9271
9272 fi
9273
9274 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
9275 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
9276 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279 ac_check_lib_save_LIBS=$LIBS
9280 LIBS="-ldag $LIBS"
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 char dag_get_stream_erf_types ();
9295 int
9296 main ()
9297 {
9298 return dag_get_stream_erf_types ();
9299 ;
9300 return 0;
9301 }
9302 _ACEOF
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9305 case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_link") 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && {
9317 test -z "$ac_c_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest$ac_exeext &&
9320 $as_test_x conftest$ac_exeext; then
9321 ac_cv_lib_dag_dag_get_stream_erf_types=yes
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ac_cv_lib_dag_dag_get_stream_erf_types=no
9327 fi
9328
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9332 fi
9333 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9334 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9335 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9336
9337
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9340 _ACEOF
9341
9342 fi
9343
9344
9345 LDFLAGS=$saved_ldflags
9346
9347 if test "$dag_streams" = 1; then
9348
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_DAG_STREAMS_API 1
9351 _ACEOF
9352
9353 LIBS="$LIBS -ldag"
9354 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9355
9356 { echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9357 echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9358 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361 ac_check_lib_save_LIBS=$LIBS
9362 LIBS="-lvdag $LIBS"
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char vdag_set_device_info ();
9377 int
9378 main ()
9379 {
9380 return vdag_set_device_info ();
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9387 case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_link") 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest$ac_exeext &&
9402 $as_test_x conftest$ac_exeext; then
9403 ac_cv_lib_vdag_vdag_set_device_info=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_lib_vdag_vdag_set_device_info=no
9409 fi
9410
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412 conftest$ac_exeext conftest.$ac_ext
9413 LIBS=$ac_check_lib_save_LIBS
9414 fi
9415 { echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9416 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9417 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9418 ac_dag_have_vdag="1"
9419 else
9420 ac_dag_have_vdag="0"
9421 fi
9422
9423 if test "$ac_dag_have_vdag" = 1; then
9424
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_DAG_VDAG 1
9427 _ACEOF
9428
9429 LIBS="$LIBS -lpthread"
9430 fi
9431 fi
9432
9433
9434 cat >>confdefs.h <<\_ACEOF
9435 #define HAVE_DAG_API 1
9436 _ACEOF
9437
9438 fi
9439
9440 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9441 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9442
9443 if test $ac_cv_lbl_dag_api = no; then
9444 { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9446 if test "$want_dag" = yes; then
9447 # User wanted DAG support but we couldn't find it.
9448 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9449 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9450 { (exit 1); exit 1; }; }
9451 fi
9452
9453 if test "$V_PCAP" = dag; then
9454 # User requested "dag" capture type but the DAG API wasn't
9455 # found.
9456 { { 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
9457 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;}
9458 { (exit 1); exit 1; }; }
9459 fi
9460 else
9461 { echo "$as_me:$LINENO: result: yes" >&5
9462 echo "${ECHO_T}yes" >&6; }
9463 fi
9464
9465
9466 # Check whether --with-septel was given.
9467 if test "${with_septel+set}" = set; then
9468 withval=$with_septel;
9469 if test "$withval" = no
9470 then
9471 want_septel=no
9472 elif test "$withval" = yes
9473 then
9474 want_septel=yes
9475 septel_root=
9476 else
9477 want_septel=yes
9478 septel_root=$withval
9479 fi
9480
9481 else
9482
9483 #
9484 # Use Septel API if present, otherwise don't
9485 #
9486 want_septel=ifpresent
9487 septel_root=./../septel
9488
9489 fi
9490
9491 ac_cv_lbl_septel_api=no
9492 case "$V_PCAP" in
9493 linux|septel)
9494 #
9495 # We support the Septel API if we're on Linux, or if we're building
9496 # a Septel-only libpcap.
9497 #
9498 ;;
9499 *)
9500 #
9501 # If the user explicitly requested Septel, tell them it's not
9502 # supported.
9503 #
9504 # If they expressed no preference, don't include it.
9505 #
9506 if test $want_septel = yes; then
9507 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9508 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9509 { (exit 1); exit 1; }; }
9510 elif test $want_septel = yes; then
9511 want_septel=no
9512 fi
9513 ;;
9514 esac
9515
9516 if test "$with_septel" != no; then
9517 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9518 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9519
9520 if test -z "$septel_root"; then
9521 septel_root=$srcdir/../septel
9522 fi
9523
9524 septel_tools_dir="$septel_root"
9525 septel_include_dir="$septel_root/INC"
9526
9527 ac_cv_lbl_septel_api=no
9528 if test -r "$septel_include_dir/msg.h"; then
9529 V_INCLS="$V_INCLS -I$septel_include_dir"
9530 ADDLOBJS="$ADDLOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9531 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $septel_tools_dir/asciibin.o $septel_tools_dir/bit2byte.o $septel_tools_dir/confirm.o $septel_tools_dir/fmtmsg.o $septel_tools_dir/gct_unix.o $septel_tools_dir/hqueue.o $septel_tools_dir/ident.o $septel_tools_dir/mem.o $septel_tools_dir/pack.o $septel_tools_dir/parse.o $septel_tools_dir/pool.o $septel_tools_dir/sdlsig.o $septel_tools_dir/strtonum.o $septel_tools_dir/timer.o $septel_tools_dir/trace.o"
9532
9533 if test "$V_PCAP" != septel ; then
9534 SSRC="pcap-septel.c"
9535 fi
9536 ac_cv_lbl_septel_api=yes
9537 fi
9538
9539 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9540 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9541 if test $ac_cv_lbl_septel_api = no; then
9542 if test "$want_septel" = yes; then
9543 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9544 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9545 { (exit 1); exit 1; }; }
9546 fi
9547 else
9548
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_SEPTEL_API 1
9551 _ACEOF
9552
9553 fi
9554 fi
9555
9556 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9557 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9558 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9559 { (exit 1); exit 1; }; }
9560 fi
9561
9562 # Check for Myricom SNF support.
9563
9564 # Check whether --with-snf was given.
9565 if test "${with_snf+set}" = set; then
9566 withval=$with_snf;
9567 if test "$withval" = no
9568 then
9569 # User explicitly doesn't want SNF
9570 want_snf=no
9571 elif test "$withval" = yes
9572 then
9573 # User wants SNF support but hasn't specific a directory.
9574 want_snf=yes
9575 else
9576 # User wants SNF support with a specified directory.
9577 want_snf=yes
9578 snf_root=$withval
9579 fi
9580
9581 else
9582
9583 #
9584 # Use Sniffer API if present, otherwise don't
9585 #
9586 want_snf=ifpresent
9587
9588 fi
9589
9590
9591
9592 # Check whether --with-snf-includes was given.
9593 if test "${with_snf_includes+set}" = set; then
9594 withval=$with_snf_includes;
9595 # User wants SNF with specific header directory
9596 want_snf=yes
9597 snf_include_dir=$withval
9598
9599 fi
9600
9601
9602
9603 # Check whether --with-snf-libraries was given.
9604 if test "${with_snf_libraries+set}" = set; then
9605 withval=$with_snf_libraries;
9606 # User wants SNF with specific lib directory
9607 want_snf=yes
9608 snf_lib_dir=$withval
9609
9610 fi
9611
9612
9613 case "$V_PCAP" in
9614 bpf|linux|snf)
9615 #
9616 # We support the Sniffer API if we're on BSD, Linux, or if we're
9617 # building a Sniffer-only libpcap.
9618 #
9619 ;;
9620 *)
9621 #
9622 # If the user explicitly requested Sniffer, tell them it's not
9623 # supported.
9624 #
9625 # If they expressed no preference, don't include it.
9626 #
9627 if test $want_snf = yes; then
9628 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9629 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9630 { (exit 1); exit 1; }; }
9631 elif test $want_snf = yes; then
9632 want_snf=no
9633 fi
9634 ;;
9635 esac
9636
9637 ac_cv_lbl_snf_api=no
9638 if test "$with_snf" != no; then
9639
9640 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9641 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9642
9643 if test -z "$snf_root"; then
9644 snf_root=/opt/snf
9645 fi
9646
9647 if test -z "$snf_include_dir"; then
9648 snf_include_dir="$snf_root/include"
9649 fi
9650
9651 if test -z "$snf_lib_dir"; then
9652 snf_lib_dir="$snf_root/lib"
9653 fi
9654
9655 if test -f "$snf_include_dir/snf.h"; then
9656 ac_cv_lbl_snf_api=yes
9657 fi
9658 { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9659 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9660
9661 if test $ac_cv_lbl_snf_api = no; then
9662 if test "$want_snf" = yes; then
9663 { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9664 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9665 { (exit 1); exit 1; }; }
9666 fi
9667 else
9668 saved_ldflags=$LDFLAGS
9669 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9670 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9671 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9672 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675 ac_check_lib_save_LIBS=$LIBS
9676 LIBS="-lsnf $LIBS"
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9687 #ifdef __cplusplus
9688 extern "C"
9689 #endif
9690 char snf_init ();
9691 int
9692 main ()
9693 {
9694 return snf_init ();
9695 ;
9696 return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9701 case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704 esac
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest$ac_exeext &&
9716 $as_test_x conftest$ac_exeext; then
9717 ac_cv_lib_snf_snf_init=yes
9718 else
9719 echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722 ac_cv_lib_snf_snf_init=no
9723 fi
9724
9725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9728 fi
9729 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9730 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9731 if test $ac_cv_lib_snf_snf_init = yes; then
9732 ac_cv_lbl_snf_api="yes"
9733 else
9734 ac_cv_lbl_snf_api="no"
9735 fi
9736
9737 LDFLAGS="$saved_ldflags"
9738
9739 if test $ac_cv_lbl_snf_api = no; then
9740 if test "$want_snf" = yes; then
9741 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9742 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9743 { (exit 1); exit 1; }; }
9744 fi
9745 else
9746 V_INCLS="$V_INCLS -I$snf_include_dir"
9747 LIBS="$LIBS -lsnf"
9748 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9749 if test "$V_PCAP" != snf ; then
9750 SSRC="pcap-snf.c"
9751 fi
9752
9753 cat >>confdefs.h <<\_ACEOF
9754 #define HAVE_SNF_API 1
9755 _ACEOF
9756
9757 fi
9758 fi
9759 fi
9760
9761 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9762 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9763 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9764 { (exit 1); exit 1; }; }
9765 fi
9766
9767
9768 # Check whether --with-flex was given.
9769 if test "${with_flex+set}" = set; then
9770 withval=$with_flex;
9771 fi
9772
9773
9774 # Check whether --with-bison was given.
9775 if test "${with_bison+set}" = set; then
9776 withval=$with_bison;
9777 fi
9778
9779 if test "$with_flex" = no ; then
9780 V_LEX=lex
9781 else
9782 for ac_prog in flex
9783 do
9784 # Extract the first word of "$ac_prog", so it can be a program name with args.
9785 set dummy $ac_prog; ac_word=$2
9786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9788 if test "${ac_cv_prog_V_LEX+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791 if test -n "$V_LEX"; then
9792 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9793 else
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9796 do
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9801 ac_cv_prog_V_LEX="$ac_prog"
9802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9804 fi
9805 done
9806 done
9807 IFS=$as_save_IFS
9808
9809 fi
9810 fi
9811 V_LEX=$ac_cv_prog_V_LEX
9812 if test -n "$V_LEX"; then
9813 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9814 echo "${ECHO_T}$V_LEX" >&6; }
9815 else
9816 { echo "$as_me:$LINENO: result: no" >&5
9817 echo "${ECHO_T}no" >&6; }
9818 fi
9819
9820
9821 test -n "$V_LEX" && break
9822 done
9823 test -n "$V_LEX" || V_LEX="lex"
9824
9825 fi
9826 if test "$V_LEX" = flex ; then
9827 # The -V flag was added in 2.4
9828 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9829 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9830 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 if flex -V >/dev/null 2>&1; then
9834 ac_cv_lbl_flex_v24=yes
9835 else
9836 ac_cv_lbl_flex_v24=no
9837 fi
9838 fi
9839
9840 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9841 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9842 if test $ac_cv_lbl_flex_v24 = no ; then
9843 s="2.4 or higher required"
9844 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9845 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9846 V_LEX=lex
9847 fi
9848 fi
9849 if test "$with_bison" = no ; then
9850 V_YACC=yacc
9851 else
9852 for ac_prog in bison
9853 do
9854 # Extract the first word of "$ac_prog", so it can be a program name with args.
9855 set dummy $ac_prog; ac_word=$2
9856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9858 if test "${ac_cv_prog_V_YACC+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 if test -n "$V_YACC"; then
9862 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9866 do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_V_YACC="$ac_prog"
9872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875 done
9876 done
9877 IFS=$as_save_IFS
9878
9879 fi
9880 fi
9881 V_YACC=$ac_cv_prog_V_YACC
9882 if test -n "$V_YACC"; then
9883 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9884 echo "${ECHO_T}$V_YACC" >&6; }
9885 else
9886 { echo "$as_me:$LINENO: result: no" >&5
9887 echo "${ECHO_T}no" >&6; }
9888 fi
9889
9890
9891 test -n "$V_YACC" && break
9892 done
9893 test -n "$V_YACC" || V_YACC="yacc"
9894
9895 fi
9896 if test "$V_YACC" = bison ; then
9897 V_YACC="$V_YACC -y"
9898 fi
9899 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9900 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9901 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9902 V_LEX=lex
9903 V_YACC=yacc
9904 fi
9905 if test "$V_LEX" = flex -a -n "pcap_" ; then
9906 V_LEX="$V_LEX -Ppcap_"
9907 V_YACC="$V_YACC -p pcap_"
9908 fi
9909 if test "$V_LEX" = lex ; then
9910 # Some versions of lex can't handle the definitions section of scanner.l .
9911 # Try lexing it and complain if it can't deal.
9912 { echo "$as_me:$LINENO: checking for capable lex" >&5
9913 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9914 if test "${tcpdump_cv_capable_lex+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 if lex -t scanner.l > /dev/null 2>&1; then
9918 tcpdump_cv_capable_lex=yes
9919 else
9920 tcpdump_cv_capable_lex=insufficient
9921 fi
9922 fi
9923 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9924 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9925 if test $tcpdump_cv_capable_lex = insufficient ; then
9926 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9927 libpcap. flex is a lex replacement that has many advantages, including
9928 being able to compile libpcap. For more information, see
9929 http://www.gnu.org/software/flex/flex.html ." >&5
9930 echo "$as_me: error: Your operating system's lex is insufficient to compile
9931 libpcap. flex is a lex replacement that has many advantages, including
9932 being able to compile libpcap. For more information, see
9933 http://www.gnu.org/software/flex/flex.html ." >&2;}
9934 { (exit 1); exit 1; }; }
9935 fi
9936 fi
9937
9938 #
9939 # Assume, by default, no support for shared libraries and V7/BSD convention
9940 # for man pages (file formats in section 5, miscellaneous info in section 7).
9941 # Individual cases can override this.
9942 #
9943 DYEXT="none"
9944 MAN_FILE_FORMATS=5
9945 MAN_MISC_INFO=7
9946 case "$host_os" in
9947
9948 aix*)
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define _SUN 1
9952 _ACEOF
9953
9954
9955 #
9956 # AIX makes it fun to build shared and static libraries,
9957 # because they're *both* ".a" archive libraries. We
9958 # build the static library for the benefit of the traditional
9959 # scheme of building libpcap and tcpdump in subdirectories of
9960 # the same directory, with tcpdump statically linked with the
9961 # libpcap in question, but we also build a shared library as
9962 # "libpcap.shareda" and install *it*, rather than the static
9963 # library, as "libpcap.a".
9964 #
9965 DYEXT="shareda"
9966
9967 case "$V_PCAP" in
9968
9969 dlpi)
9970 #
9971 # If we're using DLPI, applications will need to
9972 # use /lib/pse.exp if present, as we use the
9973 # STREAMS routines.
9974 #
9975 pseexe="/lib/pse.exp"
9976 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9977 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9978 if test -f $pseexe ; then
9979 { echo "$as_me:$LINENO: result: yes" >&5
9980 echo "${ECHO_T}yes" >&6; }
9981 LIBS="-I:$pseexe"
9982 fi
9983 ;;
9984
9985 bpf)
9986 #
9987 # If we're using BPF, we need "-lodm" and "-lcfg", as
9988 # we use them to load the BPF module.
9989 #
9990 LIBS="-lodm -lcfg"
9991 ;;
9992 esac
9993 ;;
9994
9995 darwin*)
9996 DYEXT="dylib"
9997 V_CCOPT="$V_CCOPT -fno-common"
9998 # Check whether --enable-universal was given.
9999 if test "${enable_universal+set}" = set; then
10000 enableval=$enable_universal;
10001 fi
10002
10003 if test "$enable_universal" != "no"; then
10004 case "$host_os" in
10005
10006 darwin9.*)
10007 #
10008 # Leopard. Build for 32-bit PowerPC, 64-bit
10009 # PowerPC, x86, and x86-64, with 32-bit PowerPC
10010 # first. (That's what Apple does.)
10011 #
10012 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10013 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
10014 ;;
10015
10016 darwin10.*)
10017 #
10018 # Snow Leopard. Build for x86-64, x86, and
10019 # 32-bit PowerPC, with x86-64 first. (That's
10020 # what Apple does, even though Snow Leopard
10021 # doesn't run on PPC, so PPC libpcap runs under
10022 # Rosetta, and Rosetta doesn't support BPF
10023 # ioctls, so PPC programs can't do live
10024 # captures.)
10025 #
10026 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
10027 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
10028 ;;
10029 esac
10030 fi
10031 ;;
10032
10033 hpux9*)
10034
10035 cat >>confdefs.h <<\_ACEOF
10036 #define HAVE_HPUX9 1
10037 _ACEOF
10038
10039
10040 #
10041 # Use System V conventions for man pages.
10042 #
10043 MAN_FILE_FORMATS=4
10044 MAN_MISC_INFO=5
10045 ;;
10046
10047 hpux10.0*)
10048
10049 #
10050 # Use System V conventions for man pages.
10051 #
10052 MAN_FILE_FORMATS=4
10053 MAN_MISC_INFO=5
10054 ;;
10055
10056 hpux10.1*)
10057
10058 #
10059 # Use System V conventions for man pages.
10060 #
10061 MAN_FILE_FORMATS=4
10062 MAN_MISC_INFO=5
10063 ;;
10064
10065 hpux*)
10066
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_HPUX10_20_OR_LATER 1
10069 _ACEOF
10070
10071 if test "`uname -m`" = "ia64"; then
10072 DYEXT="so"
10073 else
10074 DYEXT="sl"
10075 fi
10076
10077 #
10078 # "-b" builds a shared library; "+h" sets the soname.
10079 #
10080 SHLIB_OPT="-b"
10081 SONAME_OPT="+h"
10082
10083 #
10084 # Use System V conventions for man pages.
10085 #
10086 MAN_FILE_FORMATS=4
10087 MAN_MISC_INFO=5
10088 ;;
10089
10090 irix*)
10091 #
10092 # Use System V conventions for man pages.
10093 #
10094 MAN_FILE_FORMATS=4
10095 MAN_MISC_INFO=5
10096 ;;
10097
10098 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
10099 DYEXT="so"
10100
10101 #
10102 # Compiler assumed to be GCC; run-time linker may require a -R
10103 # flag.
10104 #
10105 if test "$libdir" != "/usr/lib"; then
10106 V_RFLAGS=-Wl,-R$libdir
10107 fi
10108 ;;
10109
10110 osf*)
10111 DYEXT="so"
10112
10113 #
10114 # Use System V conventions for man pages.
10115 #
10116 MAN_FILE_FORMATS=4
10117 MAN_MISC_INFO=5
10118 ;;
10119
10120 sinix*)
10121 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
10122 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
10123 if test "${ac_cv_cc_sinix_defined+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h. */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132
10133 int
10134 main ()
10135 {
10136 int i = sinix;
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest.$ac_objext
10142 if { (ac_try="$ac_compile"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146 esac
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_compile") 2>conftest.er1
10149 ac_status=$?
10150 grep -v '^ *+' conftest.er1 >conftest.err
10151 rm -f conftest.er1
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } && {
10155 test -z "$ac_c_werror_flag" ||
10156 test ! -s conftest.err
10157 } && test -s conftest.$ac_objext; then
10158 ac_cv_cc_sinix_defined=yes
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 ac_cv_cc_sinix_defined=no
10164 fi
10165
10166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10167 fi
10168
10169 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
10170 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
10171 if test $ac_cv_cc_sinix_defined = no ; then
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define sinix 1
10175 _ACEOF
10176
10177 fi
10178 ;;
10179
10180 solaris*)
10181
10182 cat >>confdefs.h <<\_ACEOF
10183 #define HAVE_SOLARIS 1
10184 _ACEOF
10185
10186
10187 DYEXT="so"
10188 #
10189 # Use System V conventions for man pages.
10190 #
10191 MAN_FILE_FORMATS=4
10192 MAN_MISC_INFO=5
10193 ;;
10194 esac
10195
10196 if test -n "$ac_tool_prefix"; then
10197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10201 if test "${ac_cv_prog_RANLIB+set}" = set; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204 if test -n "$RANLIB"; then
10205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218 done
10219 done
10220 IFS=$as_save_IFS
10221
10222 fi
10223 fi
10224 RANLIB=$ac_cv_prog_RANLIB
10225 if test -n "$RANLIB"; then
10226 { echo "$as_me:$LINENO: result: $RANLIB" >&5
10227 echo "${ECHO_T}$RANLIB" >&6; }
10228 else
10229 { echo "$as_me:$LINENO: result: no" >&5
10230 echo "${ECHO_T}no" >&6; }
10231 fi
10232
10233
10234 fi
10235 if test -z "$ac_cv_prog_RANLIB"; then
10236 ac_ct_RANLIB=$RANLIB
10237 # Extract the first word of "ranlib", so it can be a program name with args.
10238 set dummy ranlib; ac_word=$2
10239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10241 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 if test -n "$ac_ct_RANLIB"; then
10245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10246 else
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10249 do
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_ac_ct_RANLIB="ranlib"
10255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10257 fi
10258 done
10259 done
10260 IFS=$as_save_IFS
10261
10262 fi
10263 fi
10264 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10265 if test -n "$ac_ct_RANLIB"; then
10266 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10267 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
10268 else
10269 { echo "$as_me:$LINENO: result: no" >&5
10270 echo "${ECHO_T}no" >&6; }
10271 fi
10272
10273 if test "x$ac_ct_RANLIB" = x; then
10274 RANLIB=":"
10275 else
10276 case $cross_compiling:$ac_tool_warned in
10277 yes:)
10278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10279 whose name does not start with the host triplet. If you think this
10280 configuration is useful to you, please write to autoconf@gnu.org." >&5
10281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10282 whose name does not start with the host triplet. If you think this
10283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10284 ac_tool_warned=yes ;;
10285 esac
10286 RANLIB=$ac_ct_RANLIB
10287 fi
10288 else
10289 RANLIB="$ac_cv_prog_RANLIB"
10290 fi
10291
10292 if test -n "$ac_tool_prefix"; then
10293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10294 set dummy ${ac_tool_prefix}ar; ac_word=$2
10295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10297 if test "${ac_cv_prog_AR+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 if test -n "$AR"; then
10301 ac_cv_prog_AR="$AR" # Let the user override the test.
10302 else
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10305 do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_prog_AR="${ac_tool_prefix}ar"
10311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 break 2
10313 fi
10314 done
10315 done
10316 IFS=$as_save_IFS
10317
10318 fi
10319 fi
10320 AR=$ac_cv_prog_AR
10321 if test -n "$AR"; then
10322 { echo "$as_me:$LINENO: result: $AR" >&5
10323 echo "${ECHO_T}$AR" >&6; }
10324 else
10325 { echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6; }
10327 fi
10328
10329
10330 fi
10331 if test -z "$ac_cv_prog_AR"; then
10332 ac_ct_AR=$AR
10333 # Extract the first word of "ar", so it can be a program name with args.
10334 set dummy ar; ac_word=$2
10335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10337 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 if test -n "$ac_ct_AR"; then
10341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10342 else
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10345 do
10346 IFS=$as_save_IFS
10347 test -z "$as_dir" && as_dir=.
10348 for ac_exec_ext in '' $ac_executable_extensions; do
10349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10350 ac_cv_prog_ac_ct_AR="ar"
10351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 break 2
10353 fi
10354 done
10355 done
10356 IFS=$as_save_IFS
10357
10358 fi
10359 fi
10360 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10361 if test -n "$ac_ct_AR"; then
10362 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10363 echo "${ECHO_T}$ac_ct_AR" >&6; }
10364 else
10365 { echo "$as_me:$LINENO: result: no" >&5
10366 echo "${ECHO_T}no" >&6; }
10367 fi
10368
10369 if test "x$ac_ct_AR" = x; then
10370 AR=""
10371 else
10372 case $cross_compiling:$ac_tool_warned in
10373 yes:)
10374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10375 whose name does not start with the host triplet. If you think this
10376 configuration is useful to you, please write to autoconf@gnu.org." >&5
10377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10378 whose name does not start with the host triplet. If you think this
10379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10380 ac_tool_warned=yes ;;
10381 esac
10382 AR=$ac_ct_AR
10383 fi
10384 else
10385 AR="$ac_cv_prog_AR"
10386 fi
10387
10388
10389 rm -f os-proto.h
10390 if test "${LBL_CFLAGS+set}" = set; then
10391 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10392 fi
10393 if test -f .devel ; then
10394 if test "$GCC" = yes ; then
10395 if test "${LBL_CFLAGS+set}" != set; then
10396 if test "$ac_cv_prog_cc_g" = yes ; then
10397 V_CCOPT="-g $V_CCOPT"
10398 fi
10399 V_CCOPT="$V_CCOPT -Wall"
10400 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10401 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10402 fi
10403 fi
10404 else
10405 case "$host_os" in
10406
10407 irix6*)
10408 V_CCOPT="$V_CCOPT -n32"
10409 ;;
10410
10411 *)
10412 ;;
10413 esac
10414 fi
10415 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10416 name="lbl/os-$os.h"
10417 if test -f $name ; then
10418 ln -s $name os-proto.h
10419
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_OS_PROTO_H 1
10422 _ACEOF
10423
10424 else
10425 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10426 echo "$as_me: WARNING: can't find $name" >&2;}
10427 fi
10428 fi
10429
10430 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10431 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10432 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441
10442 # include <sys/types.h>
10443 # include <sys/socket.h>
10444 int
10445 main ()
10446 {
10447 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext
10453 if { (ac_try="$ac_compile"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_compile") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest.$ac_objext; then
10469 ac_cv_lbl_sockaddr_has_sa_len=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_cv_lbl_sockaddr_has_sa_len=no
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10478 fi
10479
10480 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10481 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10482 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10483
10484 cat >>confdefs.h <<\_ACEOF
10485 #define HAVE_SOCKADDR_SA_LEN 1
10486 _ACEOF
10487
10488 fi
10489
10490 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10491 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10492 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 else
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501
10502 # include <sys/types.h>
10503 # include <sys/socket.h>
10504 int
10505 main ()
10506 {
10507 u_int i = sizeof (struct sockaddr_storage)
10508 ;
10509 return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext
10513 if { (ac_try="$ac_compile"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517 esac
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_compile") 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest.$ac_objext; then
10529 ac_cv_lbl_has_sockaddr_storage=yes
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534 ac_cv_lbl_has_sockaddr_storage=no
10535 fi
10536
10537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10538 fi
10539
10540 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10541 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10542 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10543
10544 cat >>confdefs.h <<\_ACEOF
10545 #define HAVE_SOCKADDR_STORAGE 1
10546 _ACEOF
10547
10548 fi
10549
10550 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10551 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10552 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561
10562 # include <sys/types.h>
10563 # include <sys/dlpi.h>
10564 # include <sys/dlpi_ext.h>
10565 int
10566 main ()
10567 {
10568 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext
10574 if { (ac_try="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_compile") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest.$ac_objext; then
10590 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10591 else
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10596 fi
10597
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 fi
10600
10601 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10602 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10603 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10604
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10607 _ACEOF
10608
10609 fi
10610
10611 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10612 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10613 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616 case "$host_cpu" in
10617
10618 #
10619 # These are CPU types where:
10620 #
10621 # the CPU faults on an unaligned access, but at least some
10622 # OSes that support that CPU catch the fault and simulate
10623 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10624 # the simulation is slow, so we don't want to use it;
10625 #
10626 # the CPU, I infer (from the old
10627 #
10628 # XXX: should also check that they don't do weird things (like on arm)
10629 #
10630 # comment) doesn't fault on unaligned accesses, but doesn't
10631 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10632 #
10633 # for whatever reason, the test program doesn't work
10634 # (this has been claimed to be the case for several of those
10635 # CPUs - I don't know what the problem is; the problem
10636 # was reported as "the test program dumps core" for SuperH,
10637 # but that's what the test program is *supposed* to do -
10638 # it dumps core before it writes anything, so the test
10639 # for an empty output file should find an empty output
10640 # file and conclude that unaligned accesses don't work).
10641 #
10642 # This run-time test won't work if you're cross-compiling, so
10643 # in order to support cross-compiling for a particular CPU,
10644 # we have to wire in the list of CPU types anyway, as far as
10645 # I know, so perhaps we should just have a set of CPUs on
10646 # which we know it doesn't work, a set of CPUs on which we
10647 # know it does work, and have the script just fail on other
10648 # cpu types and update it when such a failure occurs.
10649 #
10650 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10651 ac_cv_lbl_unaligned_fail=yes
10652 ;;
10653
10654 *)
10655 cat >conftest.c <<EOF
10656 # include <sys/types.h>
10657 # include <sys/wait.h>
10658 # include <stdio.h>
10659 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10660 main() {
10661 unsigned int i;
10662 pid_t pid;
10663 int status;
10664 /* avoid "core dumped" message */
10665 pid = fork();
10666 if (pid < 0)
10667 exit(2);
10668 if (pid > 0) {
10669 /* parent */
10670 pid = waitpid(pid, &status, 0);
10671 if (pid < 0)
10672 exit(3);
10673 exit(!WIFEXITED(status));
10674 }
10675 /* child */
10676 i = *(unsigned int *)&a[1];
10677 printf("%d\n", i);
10678 exit(0);
10679 }
10680 EOF
10681 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10682 conftest.c $LIBS >/dev/null 2>&1
10683 if test ! -x conftest ; then
10684 ac_cv_lbl_unaligned_fail=yes
10685 else
10686 ./conftest >conftest.out
10687 if test ! -s conftest.out ; then
10688 ac_cv_lbl_unaligned_fail=yes
10689 else
10690 ac_cv_lbl_unaligned_fail=no
10691 fi
10692 fi
10693 rm -f -r conftest* core core.conftest
10694 ;;
10695 esac
10696 fi
10697
10698 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10699 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10700 if test $ac_cv_lbl_unaligned_fail = yes ; then
10701
10702 cat >>confdefs.h <<\_ACEOF
10703 #define LBL_ALIGN 1
10704 _ACEOF
10705
10706 fi
10707
10708 #
10709 # Makefile.in includes rules to generate version.h, so we assume
10710 # that it will be generated if autoconf is used.
10711 #
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define HAVE_VERSION_H 1
10715 _ACEOF
10716
10717
10718 rm -f net
10719 ln -s ${srcdir}/bpf/net net
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10740 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10741 case "$host_os" in
10742 linux*)
10743
10744 cat >>confdefs.h <<\_ACEOF
10745 #define PCAP_SUPPORT_USB 1
10746 _ACEOF
10747
10748 USB_SRC=pcap-usb-linux.c
10749 { echo "$as_me:$LINENO: result: yes" >&5
10750 echo "${ECHO_T}yes" >&6; }
10751 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10752 if test $? -ne 0 ; then
10753 ac_usb_dev_name="usbmon"
10754 fi
10755
10756 cat >>confdefs.h <<_ACEOF
10757 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10758 _ACEOF
10759
10760 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10761 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10762 #
10763 # Do we have a version of <linux/compiler.h> available?
10764 # If so, we might need it for <linux/usbdevice_fs.h>.
10765 #
10766
10767 for ac_header in linux/compiler.h
10768 do
10769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 fi
10776 ac_res=`eval echo '${'$as_ac_Header'}'`
10777 { echo "$as_me:$LINENO: result: $ac_res" >&5
10778 echo "${ECHO_T}$ac_res" >&6; }
10779 else
10780 # Is the header compilable?
10781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10783 cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h. */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 #include <$ac_header>
10791 _ACEOF
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest.$ac_objext; then
10809 ac_header_compiler=yes
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 ac_header_compiler=no
10815 fi
10816
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10819 echo "${ECHO_T}$ac_header_compiler" >&6; }
10820
10821 # Is the header present?
10822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10824 cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h. */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <$ac_header>
10831 _ACEOF
10832 if { (ac_try="$ac_cpp conftest.$ac_ext"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } >/dev/null && {
10845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 }; then
10848 ac_header_preproc=yes
10849 else
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_header_preproc=no
10854 fi
10855
10856 rm -f conftest.err conftest.$ac_ext
10857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10858 echo "${ECHO_T}$ac_header_preproc" >&6; }
10859
10860 # So? What about this header?
10861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10862 yes:no: )
10863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10867 ac_header_preproc=yes
10868 ;;
10869 no:yes:* )
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10882
10883 ;;
10884 esac
10885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890 eval "$as_ac_Header=\$ac_header_preproc"
10891 fi
10892 ac_res=`eval echo '${'$as_ac_Header'}'`
10893 { echo "$as_me:$LINENO: result: $ac_res" >&5
10894 echo "${ECHO_T}$ac_res" >&6; }
10895
10896 fi
10897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10900 _ACEOF
10901
10902 fi
10903
10904 done
10905
10906 if test "$ac_cv_header_linux_compiler_h" = yes; then
10907 #
10908 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10909 #
10910
10911 for ac_header in linux/usbdevice_fs.h
10912 do
10913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h. */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <linux/compiler.h>
10926
10927 #include <$ac_header>
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10937 ac_status=$?
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest.$ac_objext; then
10946 eval "$as_ac_Header=yes"
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 eval "$as_ac_Header=no"
10952 fi
10953
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955 fi
10956 ac_res=`eval echo '${'$as_ac_Header'}'`
10957 { echo "$as_me:$LINENO: result: $ac_res" >&5
10958 echo "${ECHO_T}$ac_res" >&6; }
10959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960 cat >>confdefs.h <<_ACEOF
10961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10962 _ACEOF
10963
10964 fi
10965
10966 done
10967
10968 else
10969
10970 for ac_header in linux/usbdevice_fs.h
10971 do
10972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 fi
10979 ac_res=`eval echo '${'$as_ac_Header'}'`
10980 { echo "$as_me:$LINENO: result: $ac_res" >&5
10981 echo "${ECHO_T}$ac_res" >&6; }
10982 else
10983 # Is the header compilable?
10984 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 $ac_includes_default
10993 #include <$ac_header>
10994 _ACEOF
10995 rm -f conftest.$ac_objext
10996 if { (ac_try="$ac_compile"
10997 case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11000 esac
11001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11002 (eval "$ac_compile") 2>conftest.er1
11003 ac_status=$?
11004 grep -v '^ *+' conftest.er1 >conftest.err
11005 rm -f conftest.er1
11006 cat conftest.err >&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } && {
11009 test -z "$ac_c_werror_flag" ||
11010 test ! -s conftest.err
11011 } && test -s conftest.$ac_objext; then
11012 ac_header_compiler=yes
11013 else
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017 ac_header_compiler=no
11018 fi
11019
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11022 echo "${ECHO_T}$ac_header_compiler" >&6; }
11023
11024 # Is the header present?
11025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 #include <$ac_header>
11034 _ACEOF
11035 if { (ac_try="$ac_cpp conftest.$ac_ext"
11036 case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } >/dev/null && {
11048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 }; then
11051 ac_header_preproc=yes
11052 else
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_header_preproc=no
11057 fi
11058
11059 rm -f conftest.err conftest.$ac_ext
11060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11061 echo "${ECHO_T}$ac_header_preproc" >&6; }
11062
11063 # So? What about this header?
11064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11065 yes:no: )
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11070 ac_header_preproc=yes
11071 ;;
11072 no:yes:* )
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11085
11086 ;;
11087 esac
11088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 eval "$as_ac_Header=\$ac_header_preproc"
11094 fi
11095 ac_res=`eval echo '${'$as_ac_Header'}'`
11096 { echo "$as_me:$LINENO: result: $ac_res" >&5
11097 echo "${ECHO_T}$ac_res" >&6; }
11098
11099 fi
11100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11103 _ACEOF
11104
11105 fi
11106
11107 done
11108
11109 fi
11110 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
11111 #
11112 # OK, does it define bRequestType? Older versions of the kernel
11113 # define fields with names like "requesttype, "request", and
11114 # "value", rather than "bRequestType", "bRequest", and
11115 # "wValue".
11116 #
11117 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
11118 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
11119 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h. */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128
11129 $ac_includes_default
11130 #ifdef HAVE_SYS_BITYPES_H
11131 #include <sys/bitypes.h>
11132 #endif
11133 #ifdef HAVE_LINUX_COMPILER_H
11134 #include <linux/compiler.h>
11135 #endif
11136 # include <linux/usbdevice_fs.h>
11137 int
11138 main ()
11139 {
11140 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
11141 ;
11142 return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_c_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest.$ac_objext; then
11162 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
11163 else
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
11168 fi
11169
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 fi
11172
11173 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
11174 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
11175 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
11176
11177 cat >>confdefs.h <<\_ACEOF
11178 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
11179 _ACEOF
11180
11181 fi
11182 fi
11183 ;;
11184 *)
11185 { echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6; }
11187 ;;
11188 esac
11189
11190
11191
11192 { echo "$as_me:$LINENO: checking for netfilter sniffing support" >&5
11193 echo $ECHO_N "checking for netfilter sniffing support... $ECHO_C" >&6; }
11194 case "$host_os" in
11195 linux*)
11196
11197 cat >>confdefs.h <<\_ACEOF
11198 #define PCAP_SUPPORT_NETFILTER 1
11199 _ACEOF
11200
11201 NETFILTER_SRC=pcap-netfilter-linux.c
11202 { echo "$as_me:$LINENO: result: yes" >&5
11203 echo "${ECHO_T}yes" >&6; }
11204 ;;
11205 *)
11206 { echo "$as_me:$LINENO: result: no" >&5
11207 echo "${ECHO_T}no" >&6; }
11208 ;;
11209 esac
11210
11211
11212
11213 # Check whether --enable-bluetooth was given.
11214 if test "${enable_bluetooth+set}" = set; then
11215 enableval=$enable_bluetooth;
11216 else
11217 enable_bluetooth=yes
11218 fi
11219
11220
11221 if test "x$enable_bluetooth" != "xno" ; then
11222 case "$host_os" in
11223 linux*)
11224 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11225 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11226 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11227 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 fi
11230 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11231 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11232 else
11233 # Is the header compilable?
11234 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
11235 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 $ac_includes_default
11243 #include <bluetooth/bluetooth.h>
11244 _ACEOF
11245 rm -f conftest.$ac_objext
11246 if { (ac_try="$ac_compile"
11247 case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_compile") 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } && {
11259 test -z "$ac_c_werror_flag" ||
11260 test ! -s conftest.err
11261 } && test -s conftest.$ac_objext; then
11262 ac_header_compiler=yes
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11266
11267 ac_header_compiler=no
11268 fi
11269
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11272 echo "${ECHO_T}$ac_header_compiler" >&6; }
11273
11274 # Is the header present?
11275 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
11276 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 #include <bluetooth/bluetooth.h>
11284 _ACEOF
11285 if { (ac_try="$ac_cpp conftest.$ac_ext"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } >/dev/null && {
11298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 }; then
11301 ac_header_preproc=yes
11302 else
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306 ac_header_preproc=no
11307 fi
11308
11309 rm -f conftest.err conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11311 echo "${ECHO_T}$ac_header_preproc" >&6; }
11312
11313 # So? What about this header?
11314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11315 yes:no: )
11316 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11317 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11319 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11320 ac_header_preproc=yes
11321 ;;
11322 no:yes:* )
11323 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11324 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
11326 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11328 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
11330 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11332 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11334 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11335
11336 ;;
11337 esac
11338 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11339 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11340 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11344 fi
11345 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11346 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11347
11348 fi
11349 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11350
11351
11352 cat >>confdefs.h <<\_ACEOF
11353 #define PCAP_SUPPORT_BT 1
11354 _ACEOF
11355
11356 BT_SRC=pcap-bt-linux.c
11357 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11358 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11359
11360 else
11361 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11362 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11363
11364 fi
11365
11366
11367 ;;
11368 *)
11369 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11370 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11371 ;;
11372 esac
11373
11374
11375 fi
11376
11377 # Check whether --enable-can was given.
11378 if test "${enable_can+set}" = set; then
11379 enableval=$enable_can;
11380 else
11381 enable_can=yes
11382 fi
11383
11384
11385 if test "x$enable_can" != "xno" ; then
11386 case "$host_os" in
11387 linux*)
11388 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11389 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11390 if test "${ac_cv_header_linux_can_h+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #include <sys/socket.h>
11400
11401
11402 #include <linux/can.h>
11403 _ACEOF
11404 rm -f conftest.$ac_objext
11405 if { (ac_try="$ac_compile"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_compile") 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest.$ac_objext; then
11421 ac_cv_header_linux_can_h=yes
11422 else
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 ac_cv_header_linux_can_h=no
11427 fi
11428
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 fi
11431 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11432 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11433 if test $ac_cv_header_linux_can_h = yes; then
11434
11435 cat >>confdefs.h <<\_ACEOF
11436 #define PCAP_SUPPORT_CAN 1
11437 _ACEOF
11438
11439 CAN_SRC=pcap-can-linux.c
11440 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11441 echo "$as_me: CAN sniffing is supported" >&6;}
11442 else
11443 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11444 echo "$as_me: CAN sniffing is not supported" >&6;}
11445 fi
11446
11447
11448 ;;
11449 *)
11450 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11451 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11452 ;;
11453 esac
11454
11455
11456 fi
11457
11458 case "$host_os" in
11459 linux*)
11460
11461 for ac_header in linux/net_tstamp.h
11462 do
11463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 fi
11470 ac_res=`eval echo '${'$as_ac_Header'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11473 else
11474 # Is the header compilable?
11475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 $ac_includes_default
11484 #include <$ac_header>
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (ac_try="$ac_compile"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11503 ac_header_compiler=yes
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 ac_header_compiler=no
11509 fi
11510
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 echo "${ECHO_T}$ac_header_compiler" >&6; }
11514
11515 # Is the header present?
11516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <$ac_header>
11525 _ACEOF
11526 if { (ac_try="$ac_cpp conftest.$ac_ext"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } >/dev/null && {
11539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11540 test ! -s conftest.err
11541 }; then
11542 ac_header_preproc=yes
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_header_preproc=no
11548 fi
11549
11550 rm -f conftest.err conftest.$ac_ext
11551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552 echo "${ECHO_T}$ac_header_preproc" >&6; }
11553
11554 # So? What about this header?
11555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11556 yes:no: )
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11561 ac_header_preproc=yes
11562 ;;
11563 no:yes:* )
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11576
11577 ;;
11578 esac
11579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584 eval "$as_ac_Header=\$ac_header_preproc"
11585 fi
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11589
11590 fi
11591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11594 _ACEOF
11595
11596 fi
11597
11598 done
11599
11600 ;;
11601 *)
11602 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11603 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11604 ;;
11605 esac
11606
11607 # Find a good install program. We prefer a C program (faster),
11608 # so one script is as good as another. But avoid the broken or
11609 # incompatible versions:
11610 # SysV /etc/install, /usr/sbin/install
11611 # SunOS /usr/etc/install
11612 # IRIX /sbin/install
11613 # AIX /bin/install
11614 # AmigaOS /C/install, which installs bootblocks on floppy discs
11615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11618 # OS/2's system install, which has a completely different semantic
11619 # ./install, which can be erroneously created by make from ./install.sh.
11620 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11621 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11622 if test -z "$INSTALL"; then
11623 if test "${ac_cv_path_install+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11628 do
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 # Account for people who put trailing slashes in PATH elements.
11632 case $as_dir/ in
11633 ./ | .// | /cC/* | \
11634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11635 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11636 /usr/ucb/* ) ;;
11637 *)
11638 # OSF1 and SCO ODT 3.0 have their own names for install.
11639 # Don't use installbsd from OSF since it installs stuff as root
11640 # by default.
11641 for ac_prog in ginstall scoinst install; do
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11644 if test $ac_prog = install &&
11645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11646 # AIX install. It has an incompatible calling convention.
11647 :
11648 elif test $ac_prog = install &&
11649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11650 # program-specific install script used by HP pwplus--don't use.
11651 :
11652 else
11653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11654 break 3
11655 fi
11656 fi
11657 done
11658 done
11659 ;;
11660 esac
11661 done
11662 IFS=$as_save_IFS
11663
11664
11665 fi
11666 if test "${ac_cv_path_install+set}" = set; then
11667 INSTALL=$ac_cv_path_install
11668 else
11669 # As a last resort, use the slow shell script. Don't cache a
11670 # value for INSTALL within a source directory, because that will
11671 # break other packages using the cache if that directory is
11672 # removed, or if the value is a relative name.
11673 INSTALL=$ac_install_sh
11674 fi
11675 fi
11676 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11677 echo "${ECHO_T}$INSTALL" >&6; }
11678
11679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11680 # It thinks the first close brace ends the variable substitution.
11681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11682
11683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11684
11685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11686
11687
11688 ac_config_headers="$ac_config_headers config.h"
11689
11690
11691 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_list_tstamp_types.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap pcap_set_tstamp_type.3pcap"
11692
11693 cat >confcache <<\_ACEOF
11694 # This file is a shell script that caches the results of configure
11695 # tests run on this system so they can be shared between configure
11696 # scripts and configure runs, see configure's option --config-cache.
11697 # It is not useful on other systems. If it contains results you don't
11698 # want to keep, you may remove or edit it.
11699 #
11700 # config.status only pays attention to the cache file if you give it
11701 # the --recheck option to rerun configure.
11702 #
11703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11705 # following values.
11706
11707 _ACEOF
11708
11709 # The following way of writing the cache mishandles newlines in values,
11710 # but we know of no workaround that is simple, portable, and efficient.
11711 # So, we kill variables containing newlines.
11712 # Ultrix sh set writes to stderr and can't be redirected directly,
11713 # and sets the high bit in the cache file unless we assign to the vars.
11714 (
11715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11716 eval ac_val=\$$ac_var
11717 case $ac_val in #(
11718 *${as_nl}*)
11719 case $ac_var in #(
11720 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11721 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11722 esac
11723 case $ac_var in #(
11724 _ | IFS | as_nl) ;; #(
11725 *) $as_unset $ac_var ;;
11726 esac ;;
11727 esac
11728 done
11729
11730 (set) 2>&1 |
11731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11732 *${as_nl}ac_space=\ *)
11733 # `set' does not quote correctly, so add quotes (double-quote
11734 # substitution turns \\\\ into \\, and sed turns \\ into \).
11735 sed -n \
11736 "s/'/'\\\\''/g;
11737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11738 ;; #(
11739 *)
11740 # `set' quotes correctly as required by POSIX, so do not add quotes.
11741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11742 ;;
11743 esac |
11744 sort
11745 ) |
11746 sed '
11747 /^ac_cv_env_/b end
11748 t clear
11749 :clear
11750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11751 t end
11752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11753 :end' >>confcache
11754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11755 if test -w "$cache_file"; then
11756 test "x$cache_file" != "x/dev/null" &&
11757 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11758 echo "$as_me: updating cache $cache_file" >&6;}
11759 cat confcache >$cache_file
11760 else
11761 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11762 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11763 fi
11764 fi
11765 rm -f confcache
11766
11767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11768 # Let make expand exec_prefix.
11769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11770
11771 DEFS=-DHAVE_CONFIG_H
11772
11773 ac_libobjs=
11774 ac_ltlibobjs=
11775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11776 # 1. Remove the extension, and $U if already installed.
11777 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11778 ac_i=`echo "$ac_i" | sed "$ac_script"`
11779 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11780 # will be set to the directory where LIBOBJS objects are built.
11781 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11782 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11783 done
11784 LIBOBJS=$ac_libobjs
11785
11786 LTLIBOBJS=$ac_ltlibobjs
11787
11788
11789
11790 : ${CONFIG_STATUS=./config.status}
11791 ac_clean_files_save=$ac_clean_files
11792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11795 cat >$CONFIG_STATUS <<_ACEOF
11796 #! $SHELL
11797 # Generated by $as_me.
11798 # Run this file to recreate the current configuration.
11799 # Compiler output produced by configure, useful for debugging
11800 # configure, is in config.log if it exists.
11801
11802 debug=false
11803 ac_cs_recheck=false
11804 ac_cs_silent=false
11805 SHELL=\${CONFIG_SHELL-$SHELL}
11806 _ACEOF
11807
11808 cat >>$CONFIG_STATUS <<\_ACEOF
11809 ## --------------------- ##
11810 ## M4sh Initialization. ##
11811 ## --------------------- ##
11812
11813 # Be more Bourne compatible
11814 DUALCASE=1; export DUALCASE # for MKS sh
11815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11816 emulate sh
11817 NULLCMD=:
11818 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11819 # is contrary to our usage. Disable this feature.
11820 alias -g '${1+"$@"}'='"$@"'
11821 setopt NO_GLOB_SUBST
11822 else
11823 case `(set -o) 2>/dev/null` in
11824 *posix*) set -o posix ;;
11825 esac
11826
11827 fi
11828
11829
11830
11831
11832 # PATH needs CR
11833 # Avoid depending upon Character Ranges.
11834 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11835 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11836 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11837 as_cr_digits='0123456789'
11838 as_cr_alnum=$as_cr_Letters$as_cr_digits
11839
11840 # The user is always right.
11841 if test "${PATH_SEPARATOR+set}" != set; then
11842 echo "#! /bin/sh" >conf$$.sh
11843 echo "exit 0" >>conf$$.sh
11844 chmod +x conf$$.sh
11845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11846 PATH_SEPARATOR=';'
11847 else
11848 PATH_SEPARATOR=:
11849 fi
11850 rm -f conf$$.sh
11851 fi
11852
11853 # Support unset when possible.
11854 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11855 as_unset=unset
11856 else
11857 as_unset=false
11858 fi
11859
11860
11861 # IFS
11862 # We need space, tab and new line, in precisely that order. Quoting is
11863 # there to prevent editors from complaining about space-tab.
11864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11865 # splitting by setting IFS to empty value.)
11866 as_nl='
11867 '
11868 IFS=" "" $as_nl"
11869
11870 # Find who we are. Look in the path if we contain no directory separator.
11871 case $0 in
11872 *[\\/]* ) as_myself=$0 ;;
11873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11879 done
11880 IFS=$as_save_IFS
11881
11882 ;;
11883 esac
11884 # We did not find ourselves, most probably we were run as `sh COMMAND'
11885 # in which case we are not to be found in the path.
11886 if test "x$as_myself" = x; then
11887 as_myself=$0
11888 fi
11889 if test ! -f "$as_myself"; then
11890 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11891 { (exit 1); exit 1; }
11892 fi
11893
11894 # Work around bugs in pre-3.0 UWIN ksh.
11895 for as_var in ENV MAIL MAILPATH
11896 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11897 done
11898 PS1='$ '
11899 PS2='> '
11900 PS4='+ '
11901
11902 # NLS nuisances.
11903 for as_var in \
11904 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11905 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11906 LC_TELEPHONE LC_TIME
11907 do
11908 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11909 eval $as_var=C; export $as_var
11910 else
11911 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11912 fi
11913 done
11914
11915 # Required to use basename.
11916 if expr a : '\(a\)' >/dev/null 2>&1 &&
11917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11918 as_expr=expr
11919 else
11920 as_expr=false
11921 fi
11922
11923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11924 as_basename=basename
11925 else
11926 as_basename=false
11927 fi
11928
11929
11930 # Name of the executable.
11931 as_me=`$as_basename -- "$0" ||
11932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11933 X"$0" : 'X\(//\)$' \| \
11934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11935 echo X/"$0" |
11936 sed '/^.*\/\([^/][^/]*\)\/*$/{
11937 s//\1/
11938 q
11939 }
11940 /^X\/\(\/\/\)$/{
11941 s//\1/
11942 q
11943 }
11944 /^X\/\(\/\).*/{
11945 s//\1/
11946 q
11947 }
11948 s/.*/./; q'`
11949
11950 # CDPATH.
11951 $as_unset CDPATH
11952
11953
11954
11955 as_lineno_1=$LINENO
11956 as_lineno_2=$LINENO
11957 test "x$as_lineno_1" != "x$as_lineno_2" &&
11958 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11959
11960 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11961 # uniformly replaced by the line number. The first 'sed' inserts a
11962 # line-number line after each line using $LINENO; the second 'sed'
11963 # does the real work. The second script uses 'N' to pair each
11964 # line-number line with the line containing $LINENO, and appends
11965 # trailing '-' during substitution so that $LINENO is not a special
11966 # case at line end.
11967 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11968 # scripts with optimization help from Paolo Bonzini. Blame Lee
11969 # E. McMahon (1931-1989) for sed's syntax. :-)
11970 sed -n '
11971 p
11972 /[$]LINENO/=
11973 ' <$as_myself |
11974 sed '
11975 s/[$]LINENO.*/&-/
11976 t lineno
11977 b
11978 :lineno
11979 N
11980 :loop
11981 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11982 t loop
11983 s/-\n.*//
11984 ' >$as_me.lineno &&
11985 chmod +x "$as_me.lineno" ||
11986 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11987 { (exit 1); exit 1; }; }
11988
11989 # Don't try to exec as it changes $[0], causing all sort of problems
11990 # (the dirname of $[0] is not the place where we might find the
11991 # original and so on. Autoconf is especially sensitive to this).
11992 . "./$as_me.lineno"
11993 # Exit status is that of the last command.
11994 exit
11995 }
11996
11997
11998 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11999 as_dirname=dirname
12000 else
12001 as_dirname=false
12002 fi
12003
12004 ECHO_C= ECHO_N= ECHO_T=
12005 case `echo -n x` in
12006 -n*)
12007 case `echo 'x\c'` in
12008 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12009 *) ECHO_C='\c';;
12010 esac;;
12011 *)
12012 ECHO_N='-n';;
12013 esac
12014
12015 if expr a : '\(a\)' >/dev/null 2>&1 &&
12016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12017 as_expr=expr
12018 else
12019 as_expr=false
12020 fi
12021
12022 rm -f conf$$ conf$$.exe conf$$.file
12023 if test -d conf$$.dir; then
12024 rm -f conf$$.dir/conf$$.file
12025 else
12026 rm -f conf$$.dir
12027 mkdir conf$$.dir
12028 fi
12029 echo >conf$$.file
12030 if ln -s conf$$.file conf$$ 2>/dev/null; then
12031 as_ln_s='ln -s'
12032 # ... but there are two gotchas:
12033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12035 # In both cases, we have to default to `cp -p'.
12036 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12037 as_ln_s='cp -p'
12038 elif ln conf$$.file conf$$ 2>/dev/null; then
12039 as_ln_s=ln
12040 else
12041 as_ln_s='cp -p'
12042 fi
12043 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12044 rmdir conf$$.dir 2>/dev/null
12045
12046 if mkdir -p . 2>/dev/null; then
12047 as_mkdir_p=:
12048 else
12049 test -d ./-p && rmdir ./-p
12050 as_mkdir_p=false
12051 fi
12052
12053 if test -x / >/dev/null 2>&1; then
12054 as_test_x='test -x'
12055 else
12056 if ls -dL / >/dev/null 2>&1; then
12057 as_ls_L_option=L
12058 else
12059 as_ls_L_option=
12060 fi
12061 as_test_x='
12062 eval sh -c '\''
12063 if test -d "$1"; then
12064 test -d "$1/.";
12065 else
12066 case $1 in
12067 -*)set "./$1";;
12068 esac;
12069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12070 ???[sx]*):;;*)false;;esac;fi
12071 '\'' sh
12072 '
12073 fi
12074 as_executable_p=$as_test_x
12075
12076 # Sed expression to map a string onto a valid CPP name.
12077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12078
12079 # Sed expression to map a string onto a valid variable name.
12080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12081
12082
12083 exec 6>&1
12084
12085 # Save the log message, to keep $[0] and so on meaningful, and to
12086 # report actual input values of CONFIG_FILES etc. instead of their
12087 # values after options handling.
12088 ac_log="
12089 This file was extended by $as_me, which was
12090 generated by GNU Autoconf 2.61. Invocation command line was
12091
12092 CONFIG_FILES = $CONFIG_FILES
12093 CONFIG_HEADERS = $CONFIG_HEADERS
12094 CONFIG_LINKS = $CONFIG_LINKS
12095 CONFIG_COMMANDS = $CONFIG_COMMANDS
12096 $ $0 $@
12097
12098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12099 "
12100
12101 _ACEOF
12102
12103 cat >>$CONFIG_STATUS <<_ACEOF
12104 # Files that config.status was made for.
12105 config_files="$ac_config_files"
12106 config_headers="$ac_config_headers"
12107
12108 _ACEOF
12109
12110 cat >>$CONFIG_STATUS <<\_ACEOF
12111 ac_cs_usage="\
12112 \`$as_me' instantiates files from templates according to the
12113 current configuration.
12114
12115 Usage: $0 [OPTIONS] [FILE]...
12116
12117 -h, --help print this help, then exit
12118 -V, --version print version number and configuration settings, then exit
12119 -q, --quiet do not print progress messages
12120 -d, --debug don't remove temporary files
12121 --recheck update $as_me by reconfiguring in the same conditions
12122 --file=FILE[:TEMPLATE]
12123 instantiate the configuration file FILE
12124 --header=FILE[:TEMPLATE]
12125 instantiate the configuration header FILE
12126
12127 Configuration files:
12128 $config_files
12129
12130 Configuration headers:
12131 $config_headers
12132
12133 Report bugs to <bug-autoconf@gnu.org>."
12134
12135 _ACEOF
12136 cat >>$CONFIG_STATUS <<_ACEOF
12137 ac_cs_version="\\
12138 config.status
12139 configured by $0, generated by GNU Autoconf 2.61,
12140 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12141
12142 Copyright (C) 2006 Free Software Foundation, Inc.
12143 This config.status script is free software; the Free Software Foundation
12144 gives unlimited permission to copy, distribute and modify it."
12145
12146 ac_pwd='$ac_pwd'
12147 srcdir='$srcdir'
12148 INSTALL='$INSTALL'
12149 _ACEOF
12150
12151 cat >>$CONFIG_STATUS <<\_ACEOF
12152 # If no file are specified by the user, then we need to provide default
12153 # value. By we need to know if files were specified by the user.
12154 ac_need_defaults=:
12155 while test $# != 0
12156 do
12157 case $1 in
12158 --*=*)
12159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12160 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12161 ac_shift=:
12162 ;;
12163 *)
12164 ac_option=$1
12165 ac_optarg=$2
12166 ac_shift=shift
12167 ;;
12168 esac
12169
12170 case $ac_option in
12171 # Handling of the options.
12172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12173 ac_cs_recheck=: ;;
12174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12175 echo "$ac_cs_version"; exit ;;
12176 --debug | --debu | --deb | --de | --d | -d )
12177 debug=: ;;
12178 --file | --fil | --fi | --f )
12179 $ac_shift
12180 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12181 ac_need_defaults=false;;
12182 --header | --heade | --head | --hea )
12183 $ac_shift
12184 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12185 ac_need_defaults=false;;
12186 --he | --h)
12187 # Conflict between --help and --header
12188 { echo "$as_me: error: ambiguous option: $1
12189 Try \`$0 --help' for more information." >&2
12190 { (exit 1); exit 1; }; };;
12191 --help | --hel | -h )
12192 echo "$ac_cs_usage"; exit ;;
12193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12194 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12195 ac_cs_silent=: ;;
12196
12197 # This is an error.
12198 -*) { echo "$as_me: error: unrecognized option: $1
12199 Try \`$0 --help' for more information." >&2
12200 { (exit 1); exit 1; }; } ;;
12201
12202 *) ac_config_targets="$ac_config_targets $1"
12203 ac_need_defaults=false ;;
12204
12205 esac
12206 shift
12207 done
12208
12209 ac_configure_extra_args=
12210
12211 if $ac_cs_silent; then
12212 exec 6>/dev/null
12213 ac_configure_extra_args="$ac_configure_extra_args --silent"
12214 fi
12215
12216 _ACEOF
12217 cat >>$CONFIG_STATUS <<_ACEOF
12218 if \$ac_cs_recheck; then
12219 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12220 CONFIG_SHELL=$SHELL
12221 export CONFIG_SHELL
12222 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12223 fi
12224
12225 _ACEOF
12226 cat >>$CONFIG_STATUS <<\_ACEOF
12227 exec 5>>config.log
12228 {
12229 echo
12230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12231 ## Running $as_me. ##
12232 _ASBOX
12233 echo "$ac_log"
12234 } >&5
12235
12236 _ACEOF
12237 cat >>$CONFIG_STATUS <<_ACEOF
12238 _ACEOF
12239
12240 cat >>$CONFIG_STATUS <<\_ACEOF
12241
12242 # Handling of arguments.
12243 for ac_config_target in $ac_config_targets
12244 do
12245 case $ac_config_target in
12246 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12248 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
12249 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
12250 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
12251 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
12252 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
12253 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
12254 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
12255 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
12256 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
12257 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
12258 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
12259 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
12260 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
12261
12262 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12263 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12264 { (exit 1); exit 1; }; };;
12265 esac
12266 done
12267
12268
12269 # If the user did not use the arguments to specify the items to instantiate,
12270 # then the envvar interface is used. Set only those that are not.
12271 # We use the long form for the default assignment because of an extremely
12272 # bizarre bug on SunOS 4.1.3.
12273 if $ac_need_defaults; then
12274 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12275 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12276 fi
12277
12278 # Have a temporary directory for convenience. Make it in the build tree
12279 # simply because there is no reason against having it here, and in addition,
12280 # creating and moving files from /tmp can sometimes cause problems.
12281 # Hook for its removal unless debugging.
12282 # Note that there is a small window in which the directory will not be cleaned:
12283 # after its creation but before its name has been assigned to `$tmp'.
12284 $debug ||
12285 {
12286 tmp=
12287 trap 'exit_status=$?
12288 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12289 ' 0
12290 trap '{ (exit 1); exit 1; }' 1 2 13 15
12291 }
12292 # Create a (secure) tmp directory for tmp files.
12293
12294 {
12295 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12296 test -n "$tmp" && test -d "$tmp"
12297 } ||
12298 {
12299 tmp=./conf$$-$RANDOM
12300 (umask 077 && mkdir "$tmp")
12301 } ||
12302 {
12303 echo "$me: cannot create a temporary directory in ." >&2
12304 { (exit 1); exit 1; }
12305 }
12306
12307 #
12308 # Set up the sed scripts for CONFIG_FILES section.
12309 #
12310
12311 # No need to generate the scripts if there are no CONFIG_FILES.
12312 # This happens for instance when ./config.status config.h
12313 if test -n "$CONFIG_FILES"; then
12314
12315 _ACEOF
12316
12317
12318
12319 ac_delim='%!_!# '
12320 for ac_last_try in false false false false false :; do
12321 cat >conf$$subs.sed <<_ACEOF
12322 SHELL!$SHELL$ac_delim
12323 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12324 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12325 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12326 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12327 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12328 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12329 exec_prefix!$exec_prefix$ac_delim
12330 prefix!$prefix$ac_delim
12331 program_transform_name!$program_transform_name$ac_delim
12332 bindir!$bindir$ac_delim
12333 sbindir!$sbindir$ac_delim
12334 libexecdir!$libexecdir$ac_delim
12335 datarootdir!$datarootdir$ac_delim
12336 datadir!$datadir$ac_delim
12337 sysconfdir!$sysconfdir$ac_delim
12338 sharedstatedir!$sharedstatedir$ac_delim
12339 localstatedir!$localstatedir$ac_delim
12340 includedir!$includedir$ac_delim
12341 oldincludedir!$oldincludedir$ac_delim
12342 docdir!$docdir$ac_delim
12343 infodir!$infodir$ac_delim
12344 htmldir!$htmldir$ac_delim
12345 dvidir!$dvidir$ac_delim
12346 pdfdir!$pdfdir$ac_delim
12347 psdir!$psdir$ac_delim
12348 libdir!$libdir$ac_delim
12349 localedir!$localedir$ac_delim
12350 mandir!$mandir$ac_delim
12351 DEFS!$DEFS$ac_delim
12352 ECHO_C!$ECHO_C$ac_delim
12353 ECHO_N!$ECHO_N$ac_delim
12354 ECHO_T!$ECHO_T$ac_delim
12355 LIBS!$LIBS$ac_delim
12356 build_alias!$build_alias$ac_delim
12357 host_alias!$host_alias$ac_delim
12358 target_alias!$target_alias$ac_delim
12359 build!$build$ac_delim
12360 build_cpu!$build_cpu$ac_delim
12361 build_vendor!$build_vendor$ac_delim
12362 build_os!$build_os$ac_delim
12363 host!$host$ac_delim
12364 host_cpu!$host_cpu$ac_delim
12365 host_vendor!$host_vendor$ac_delim
12366 host_os!$host_os$ac_delim
12367 target!$target$ac_delim
12368 target_cpu!$target_cpu$ac_delim
12369 target_vendor!$target_vendor$ac_delim
12370 target_os!$target_os$ac_delim
12371 SHLICC2!$SHLICC2$ac_delim
12372 CC!$CC$ac_delim
12373 CFLAGS!$CFLAGS$ac_delim
12374 LDFLAGS!$LDFLAGS$ac_delim
12375 CPPFLAGS!$CPPFLAGS$ac_delim
12376 ac_ct_CC!$ac_ct_CC$ac_delim
12377 EXEEXT!$EXEEXT$ac_delim
12378 OBJEXT!$OBJEXT$ac_delim
12379 CPP!$CPP$ac_delim
12380 GREP!$GREP$ac_delim
12381 EGREP!$EGREP$ac_delim
12382 LIBOBJS!$LIBOBJS$ac_delim
12383 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12384 V_LEX!$V_LEX$ac_delim
12385 V_YACC!$V_YACC$ac_delim
12386 RANLIB!$RANLIB$ac_delim
12387 AR!$AR$ac_delim
12388 V_CCOPT!$V_CCOPT$ac_delim
12389 V_DEFS!$V_DEFS$ac_delim
12390 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12391 V_INCLS!$V_INCLS$ac_delim
12392 V_PCAP!$V_PCAP$ac_delim
12393 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12394 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12395 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12396 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12397 ADDLOBJS!$ADDLOBJS$ac_delim
12398 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12399 SSRC!$SSRC$ac_delim
12400 DYEXT!$DYEXT$ac_delim
12401 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12402 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12403 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12404 USB_SRC!$USB_SRC$ac_delim
12405 PCAP_SUPPORT_NETFILTER!$PCAP_SUPPORT_NETFILTER$ac_delim
12406 NETFILTER_SRC!$NETFILTER_SRC$ac_delim
12407 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12408 BT_SRC!$BT_SRC$ac_delim
12409 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12410 CAN_SRC!$CAN_SRC$ac_delim
12411 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12412 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12413 INSTALL_DATA!$INSTALL_DATA$ac_delim
12414 LTLIBOBJS!$LTLIBOBJS$ac_delim
12415 _ACEOF
12416
12417 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
12418 break
12419 elif $ac_last_try; then
12420 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12421 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12422 { (exit 1); exit 1; }; }
12423 else
12424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12425 fi
12426 done
12427
12428 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12429 if test -n "$ac_eof"; then
12430 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12431 ac_eof=`expr $ac_eof + 1`
12432 fi
12433
12434 cat >>$CONFIG_STATUS <<_ACEOF
12435 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12437 _ACEOF
12438 sed '
12439 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12440 s/^/s,@/; s/!/@,|#_!!_#|/
12441 :n
12442 t n
12443 s/'"$ac_delim"'$/,g/; t
12444 s/$/\\/; p
12445 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12446 ' >>$CONFIG_STATUS <conf$$subs.sed
12447 rm -f conf$$subs.sed
12448 cat >>$CONFIG_STATUS <<_ACEOF
12449 :end
12450 s/|#_!!_#|//g
12451 CEOF$ac_eof
12452 _ACEOF
12453
12454
12455 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12456 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12457 # trailing colons and then remove the whole line if VPATH becomes empty
12458 # (actually we leave an empty line to preserve line numbers).
12459 if test "x$srcdir" = x.; then
12460 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12461 s/:*\$(srcdir):*/:/
12462 s/:*\${srcdir}:*/:/
12463 s/:*@srcdir@:*/:/
12464 s/^\([^=]*=[ ]*\):*/\1/
12465 s/:*$//
12466 s/^[^=]*=[ ]*$//
12467 }'
12468 fi
12469
12470 cat >>$CONFIG_STATUS <<\_ACEOF
12471 fi # test -n "$CONFIG_FILES"
12472
12473
12474 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12475 do
12476 case $ac_tag in
12477 :[FHLC]) ac_mode=$ac_tag; continue;;
12478 esac
12479 case $ac_mode$ac_tag in
12480 :[FHL]*:*);;
12481 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12482 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12483 { (exit 1); exit 1; }; };;
12484 :[FH]-) ac_tag=-:-;;
12485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12486 esac
12487 ac_save_IFS=$IFS
12488 IFS=:
12489 set x $ac_tag
12490 IFS=$ac_save_IFS
12491 shift
12492 ac_file=$1
12493 shift
12494
12495 case $ac_mode in
12496 :L) ac_source=$1;;
12497 :[FH])
12498 ac_file_inputs=
12499 for ac_f
12500 do
12501 case $ac_f in
12502 -) ac_f="$tmp/stdin";;
12503 *) # Look for the file first in the build tree, then in the source tree
12504 # (if the path is not absolute). The absolute path cannot be DOS-style,
12505 # because $ac_f cannot contain `:'.
12506 test -f "$ac_f" ||
12507 case $ac_f in
12508 [\\/$]*) false;;
12509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12510 esac ||
12511 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12512 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12513 { (exit 1); exit 1; }; };;
12514 esac
12515 ac_file_inputs="$ac_file_inputs $ac_f"
12516 done
12517
12518 # Let's still pretend it is `configure' which instantiates (i.e., don't
12519 # use $as_me), people would be surprised to read:
12520 # /* config.h. Generated by config.status. */
12521 configure_input="Generated from "`IFS=:
12522 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12523 if test x"$ac_file" != x-; then
12524 configure_input="$ac_file. $configure_input"
12525 { echo "$as_me:$LINENO: creating $ac_file" >&5
12526 echo "$as_me: creating $ac_file" >&6;}
12527 fi
12528
12529 case $ac_tag in
12530 *:-:* | *:-) cat >"$tmp/stdin";;
12531 esac
12532 ;;
12533 esac
12534
12535 ac_dir=`$as_dirname -- "$ac_file" ||
12536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12537 X"$ac_file" : 'X\(//\)[^/]' \| \
12538 X"$ac_file" : 'X\(//\)$' \| \
12539 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12540 echo X"$ac_file" |
12541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12542 s//\1/
12543 q
12544 }
12545 /^X\(\/\/\)[^/].*/{
12546 s//\1/
12547 q
12548 }
12549 /^X\(\/\/\)$/{
12550 s//\1/
12551 q
12552 }
12553 /^X\(\/\).*/{
12554 s//\1/
12555 q
12556 }
12557 s/.*/./; q'`
12558 { as_dir="$ac_dir"
12559 case $as_dir in #(
12560 -*) as_dir=./$as_dir;;
12561 esac
12562 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12563 as_dirs=
12564 while :; do
12565 case $as_dir in #(
12566 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12567 *) as_qdir=$as_dir;;
12568 esac
12569 as_dirs="'$as_qdir' $as_dirs"
12570 as_dir=`$as_dirname -- "$as_dir" ||
12571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12572 X"$as_dir" : 'X\(//\)[^/]' \| \
12573 X"$as_dir" : 'X\(//\)$' \| \
12574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12575 echo X"$as_dir" |
12576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12577 s//\1/
12578 q
12579 }
12580 /^X\(\/\/\)[^/].*/{
12581 s//\1/
12582 q
12583 }
12584 /^X\(\/\/\)$/{
12585 s//\1/
12586 q
12587 }
12588 /^X\(\/\).*/{
12589 s//\1/
12590 q
12591 }
12592 s/.*/./; q'`
12593 test -d "$as_dir" && break
12594 done
12595 test -z "$as_dirs" || eval "mkdir $as_dirs"
12596 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12597 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12598 { (exit 1); exit 1; }; }; }
12599 ac_builddir=.
12600
12601 case "$ac_dir" in
12602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12603 *)
12604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12605 # A ".." for each directory in $ac_dir_suffix.
12606 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12607 case $ac_top_builddir_sub in
12608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12610 esac ;;
12611 esac
12612 ac_abs_top_builddir=$ac_pwd
12613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12614 # for backward compatibility:
12615 ac_top_builddir=$ac_top_build_prefix
12616
12617 case $srcdir in
12618 .) # We are building in place.
12619 ac_srcdir=.
12620 ac_top_srcdir=$ac_top_builddir_sub
12621 ac_abs_top_srcdir=$ac_pwd ;;
12622 [\\/]* | ?:[\\/]* ) # Absolute name.
12623 ac_srcdir=$srcdir$ac_dir_suffix;
12624 ac_top_srcdir=$srcdir
12625 ac_abs_top_srcdir=$srcdir ;;
12626 *) # Relative name.
12627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12628 ac_top_srcdir=$ac_top_build_prefix$srcdir
12629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12630 esac
12631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12632
12633
12634 case $ac_mode in
12635 :F)
12636 #
12637 # CONFIG_FILE
12638 #
12639
12640 case $INSTALL in
12641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12643 esac
12644 _ACEOF
12645
12646 cat >>$CONFIG_STATUS <<\_ACEOF
12647 # If the template does not know about datarootdir, expand it.
12648 # FIXME: This hack should be removed a few years after 2.60.
12649 ac_datarootdir_hack=; ac_datarootdir_seen=
12650
12651 case `sed -n '/datarootdir/ {
12652 p
12653 q
12654 }
12655 /@datadir@/p
12656 /@docdir@/p
12657 /@infodir@/p
12658 /@localedir@/p
12659 /@mandir@/p
12660 ' $ac_file_inputs` in
12661 *datarootdir*) ac_datarootdir_seen=yes;;
12662 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12663 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12664 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12665 _ACEOF
12666 cat >>$CONFIG_STATUS <<_ACEOF
12667 ac_datarootdir_hack='
12668 s&@datadir@&$datadir&g
12669 s&@docdir@&$docdir&g
12670 s&@infodir@&$infodir&g
12671 s&@localedir@&$localedir&g
12672 s&@mandir@&$mandir&g
12673 s&\\\${datarootdir}&$datarootdir&g' ;;
12674 esac
12675 _ACEOF
12676
12677 # Neutralize VPATH when `$srcdir' = `.'.
12678 # Shell code in configure.ac might set extrasub.
12679 # FIXME: do we really want to maintain this feature?
12680 cat >>$CONFIG_STATUS <<_ACEOF
12681 sed "$ac_vpsub
12682 $extrasub
12683 _ACEOF
12684 cat >>$CONFIG_STATUS <<\_ACEOF
12685 :t
12686 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12687 s&@configure_input@&$configure_input&;t t
12688 s&@top_builddir@&$ac_top_builddir_sub&;t t
12689 s&@srcdir@&$ac_srcdir&;t t
12690 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12691 s&@top_srcdir@&$ac_top_srcdir&;t t
12692 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12693 s&@builddir@&$ac_builddir&;t t
12694 s&@abs_builddir@&$ac_abs_builddir&;t t
12695 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12696 s&@INSTALL@&$ac_INSTALL&;t t
12697 $ac_datarootdir_hack
12698 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12699
12700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12701 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12703 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12704 which seems to be undefined. Please make sure it is defined." >&5
12705 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12706 which seems to be undefined. Please make sure it is defined." >&2;}
12707
12708 rm -f "$tmp/stdin"
12709 case $ac_file in
12710 -) cat "$tmp/out"; rm -f "$tmp/out";;
12711 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12712 esac
12713 ;;
12714 :H)
12715 #
12716 # CONFIG_HEADER
12717 #
12718 _ACEOF
12719
12720 # Transform confdefs.h into a sed script `conftest.defines', that
12721 # substitutes the proper values into config.h.in to produce config.h.
12722 rm -f conftest.defines conftest.tail
12723 # First, append a space to every undef/define line, to ease matching.
12724 echo 's/$/ /' >conftest.defines
12725 # Then, protect against being on the right side of a sed subst, or in
12726 # an unquoted here document, in config.status. If some macros were
12727 # called several times there might be several #defines for the same
12728 # symbol, which is useless. But do not sort them, since the last
12729 # AC_DEFINE must be honored.
12730 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12731 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12732 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12733 # PARAMS is the parameter list in the macro definition--in most cases, it's
12734 # just an empty string.
12735 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12736 ac_dB='\\)[ (].*,\\1define\\2'
12737 ac_dC=' '
12738 ac_dD=' ,'
12739
12740 uniq confdefs.h |
12741 sed -n '
12742 t rset
12743 :rset
12744 s/^[ ]*#[ ]*define[ ][ ]*//
12745 t ok
12746 d
12747 :ok
12748 s/[\\&,]/\\&/g
12749 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12750 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12751 ' >>conftest.defines
12752
12753 # Remove the space that was appended to ease matching.
12754 # Then replace #undef with comments. This is necessary, for
12755 # example, in the case of _POSIX_SOURCE, which is predefined and required
12756 # on some systems where configure will not decide to define it.
12757 # (The regexp can be short, since the line contains either #define or #undef.)
12758 echo 's/ $//
12759 s,^[ #]*u.*,/* & */,' >>conftest.defines
12760
12761 # Break up conftest.defines:
12762 ac_max_sed_lines=50
12763
12764 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12765 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12766 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12767 # et cetera.
12768 ac_in='$ac_file_inputs'
12769 ac_out='"$tmp/out1"'
12770 ac_nxt='"$tmp/out2"'
12771
12772 while :
12773 do
12774 # Write a here document:
12775 cat >>$CONFIG_STATUS <<_ACEOF
12776 # First, check the format of the line:
12777 cat >"\$tmp/defines.sed" <<\\CEOF
12778 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12779 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12780 b
12781 :def
12782 _ACEOF
12783 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12784 echo 'CEOF
12785 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12786 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12787 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12788 grep . conftest.tail >/dev/null || break
12789 rm -f conftest.defines
12790 mv conftest.tail conftest.defines
12791 done
12792 rm -f conftest.defines conftest.tail
12793
12794 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12795 cat >>$CONFIG_STATUS <<\_ACEOF
12796 if test x"$ac_file" != x-; then
12797 echo "/* $configure_input */" >"$tmp/config.h"
12798 cat "$ac_result" >>"$tmp/config.h"
12799 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12800 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12801 echo "$as_me: $ac_file is unchanged" >&6;}
12802 else
12803 rm -f $ac_file
12804 mv "$tmp/config.h" $ac_file
12805 fi
12806 else
12807 echo "/* $configure_input */"
12808 cat "$ac_result"
12809 fi
12810 rm -f "$tmp/out12"
12811 ;;
12812
12813
12814 esac
12815
12816 done # for ac_tag
12817
12818
12819 { (exit 0); exit 0; }
12820 _ACEOF
12821 chmod +x $CONFIG_STATUS
12822 ac_clean_files=$ac_clean_files_save
12823
12824
12825 # configure is writing to config.log, and then calls config.status.
12826 # config.status does its own redirection, appending to config.log.
12827 # Unfortunately, on DOS this fails, as config.log is still kept open
12828 # by configure, so config.status won't be able to write to it; its
12829 # output is simply discarded. So we exec the FD to /dev/null,
12830 # effectively closing config.log, so it can be properly (re)opened and
12831 # appended to by config.status. When coming back to configure, we
12832 # need to make the FD available again.
12833 if test "$no_create" != yes; then
12834 ac_cs_success=:
12835 ac_config_status_args=
12836 test "$silent" = yes &&
12837 ac_config_status_args="$ac_config_status_args --quiet"
12838 exec 5>/dev/null
12839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12840 exec 5>>config.log
12841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12842 # would make configure fail if this is the last instruction.
12843 $ac_cs_success || { (exit 1); exit 1; }
12844 fi
12845
12846
12847 if test -f .devel ; then
12848 make depend
12849 fi
12850 exit 0