]> The Tcpdump Group git mirrors - libpcap/blob - configure
EOPNOTSUPP from an ethtool ioctl should not be a fatal error.
[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_BT
701 BT_SRC
702 PCAP_SUPPORT_CAN
703 CAN_SRC
704 INSTALL_PROGRAM
705 INSTALL_SCRIPT
706 INSTALL_DATA
707 LTLIBOBJS'
708 ac_subst_files=''
709 ac_precious_vars='build_alias
710 host_alias
711 target_alias
712 CC
713 CFLAGS
714 LDFLAGS
715 LIBS
716 CPPFLAGS
717 CPP'
718
719
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
739
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
765
766 ac_prev=
767 ac_dashdash=
768 for ac_option
769 do
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
775 fi
776
777 case $ac_option in
778 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *) ac_optarg=yes ;;
780 esac
781
782 # Accept the important Cygnus configure options, so we can diagnose typos.
783
784 case $ac_dashdash$ac_option in
785 --)
786 ac_dashdash=yes ;;
787
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
792
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
797
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
804
805 --config-cache | -C)
806 cache_file=config.cache ;;
807
808 -datadir | --datadir | --datadi | --datad)
809 ac_prev=datadir ;;
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir=$ac_optarg ;;
812
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
819
820 -disable-* | --disable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=no ;;
828
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
833
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
838
839 -enable-* | --enable-*)
840 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_$ac_feature=\$ac_optarg ;;
847
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix=$ac_optarg ;;
856
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
860
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
867
868 -host | --host | --hos | --ho)
869 ac_prev=host_alias ;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias=$ac_optarg ;;
872
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
878
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir=$ac_optarg ;;
885
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir=$ac_optarg ;;
890
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
894 libdir=$ac_optarg ;;
895
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir=$ac_optarg ;;
902
903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
907
908 -localstatedir | --localstatedir | --localstatedi | --localstated \
909 | --localstate | --localstat | --localsta | --localst | --locals)
910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913 localstatedir=$ac_optarg ;;
914
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918 mandir=$ac_optarg ;;
919
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
923
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
926 no_create=yes ;;
927
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
931
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir=$ac_optarg ;;
940
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944 prefix=$ac_optarg ;;
945
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix=$ac_optarg ;;
952
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix=$ac_optarg ;;
959
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name=$ac_optarg ;;
976
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
981
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
986
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
990
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 ac_prev=sbindir ;;
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 | --sbi=* | --sb=*)
995 sbindir=$ac_optarg ;;
996
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1000 | --sha | --sh)
1001 ac_prev=sharedstatedir ;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 | --sha=* | --sh=*)
1006 sharedstatedir=$ac_optarg ;;
1007
1008 -site | --site | --sit)
1009 ac_prev=site ;;
1010 -site=* | --site=* | --sit=*)
1011 site=$ac_optarg ;;
1012
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 ac_prev=srcdir ;;
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016 srcdir=$ac_optarg ;;
1017
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev=sysconfdir ;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023 sysconfdir=$ac_optarg ;;
1024
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
1026 ac_prev=target_alias ;;
1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028 target_alias=$ac_optarg ;;
1029
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031 verbose=yes ;;
1032
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version=: ;;
1035
1036 -with-* | --with-*)
1037 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_$ac_package=\$ac_optarg ;;
1044
1045 -without-* | --without-*)
1046 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=no ;;
1053
1054 --x)
1055 # Obsolete; use --with-x.
1056 with_x=yes ;;
1057
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev=x_includes ;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1063 x_includes=$ac_optarg ;;
1064
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev=x_libraries ;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1070 x_libraries=$ac_optarg ;;
1071
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1075 ;;
1076
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\$ac_optarg
1084 export $ac_envvar ;;
1085
1086 *)
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1092 ;;
1093
1094 esac
1095 done
1096
1097 if test -n "$ac_prev"; then
1098 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1101 fi
1102
1103 # Be sure to have absolute directory names.
1104 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1108 do
1109 eval ac_val=\$$ac_var
1110 case $ac_val in
1111 [\\/$]* | ?:[\\/]* ) continue;;
1112 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1113 esac
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1116 done
1117
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1121 build=$build_alias
1122 host=$host_alias
1123 target=$target_alias
1124
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1133 fi
1134 fi
1135
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138
1139 test "$silent" = yes && exec 6>/dev/null
1140
1141
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1150
1151
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 echo X"$0" |
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\/\)$/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\).*/{
1175 s//\1/
1176 q
1177 }
1178 s/.*/./; q'`
1179 srcdir=$ac_confdir
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 srcdir=..
1182 fi
1183 else
1184 ac_srcdir_defaulted=no
1185 fi
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1190 fi
1191 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 ac_abs_confdir=`(
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1199 fi
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1212
1213 #
1214 # Report the --help message.
1215 #
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures this package to adapt to many kinds of systems.
1221
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1223
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1226
1227 Defaults for the options are specified in brackets.
1228
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1245
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1250
1251 For better control, use the options below.
1252
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1273 _ACEOF
1274
1275 cat <<\_ACEOF
1276
1277 System types:
1278 --build=BUILD configure for building on BUILD [guessed]
1279 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1280 --target=TARGET configure for building compilers for TARGET [HOST]
1281 _ACEOF
1282 fi
1283
1284 if test -n "$ac_init_help"; then
1285
1286 cat <<\_ACEOF
1287
1288 Optional Features:
1289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1291 --disable-largefile omit support for large files
1292 --disable-protochain disable \"protochain\" insn
1293 --enable-ipv6 build IPv6-capable version [default=yes, if
1294 getaddrinfo available]
1295 --enable-optimizer-dbg build optimizer debugging code
1296 --enable-yydebug build parser debugging code
1297 --disable-universal don't build universal on OS X
1298 --enable-bluetooth enable Bluetooth support [default=yes, if support
1299 available]
1300 --enable-can enable CAN support [default=yes, if support
1301 available]
1302
1303 Optional Packages:
1304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1306 --without-gcc don't use gcc
1307 --with-sita include SITA support
1308 --with-pcap=TYPE use packet capture TYPE
1309 --without-libnl disable libnl support [default=yes, on Linux, if
1310 present]
1311 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1312 default="yes" on BSD and Linux if present]
1313 --with-dag-includes=DIR Endace DAG include directory
1314 --with-dag-libraries=DIR
1315 Endace DAG library directory
1316 --with-septel[=DIR] include Septel support (located in directory DIR, if
1317 supplied). [default=yes, on Linux, if present]
1318 --with-snf[=DIR] include Myricom SNF support ["yes", "no" or DIR;
1319 default="yes" on BSD and Linux if present]
1320 --with-snf-includes=DIR Myricom SNF include directory
1321 --with-snf-libraries=DIR
1322 Myricom SNF library directory
1323 --without-flex don't use flex
1324 --without-bison don't use bison
1325
1326 Some influential environment variables:
1327 CC C compiler command
1328 CFLAGS C compiler flags
1329 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1330 nonstandard directory <lib dir>
1331 LIBS libraries to pass to the linker, e.g. -l<library>
1332 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1333 you have headers in a nonstandard directory <include dir>
1334 CPP C preprocessor
1335
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1338
1339 _ACEOF
1340 ac_status=$?
1341 fi
1342
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" || continue
1347 ac_builddir=.
1348
1349 case "$ac_dir" in
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 *)
1352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358 esac ;;
1359 esac
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1364
1365 case $srcdir in
1366 .) # We are building in place.
1367 ac_srcdir=.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1374 *) # Relative name.
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1378 esac
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1380
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1384 echo &&
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1387 echo &&
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1389 else
1390 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1391 fi || ac_status=$?
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1393 done
1394 fi
1395
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1398 cat <<\_ACEOF
1399 configure
1400 generated by GNU Autoconf 2.61
1401
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1406 _ACEOF
1407 exit
1408 fi
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1412
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.61. Invocation command line was
1415
1416 $ $0 $@
1417
1418 _ACEOF
1419 exec 5>>config.log
1420 {
1421 cat <<_ASUNAME
1422 ## --------- ##
1423 ## Platform. ##
1424 ## --------- ##
1425
1426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1431
1432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1434
1435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1442
1443 _ASUNAME
1444
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 echo "PATH: $as_dir"
1451 done
1452 IFS=$as_save_IFS
1453
1454 } >&5
1455
1456 cat >&5 <<_ACEOF
1457
1458
1459 ## ----------- ##
1460 ## Core tests. ##
1461 ## ----------- ##
1462
1463 _ACEOF
1464
1465
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1471 ac_configure_args=
1472 ac_configure_args0=
1473 ac_configure_args1=
1474 ac_must_keep_next=false
1475 for ac_pass in 1 2
1476 do
1477 for ac_arg
1478 do
1479 case $ac_arg in
1480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1483 continue ;;
1484 *\'*)
1485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 esac
1487 case $ac_pass in
1488 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1489 2)
1490 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491 if test $ac_must_keep_next = true; then
1492 ac_must_keep_next=false # Got value, back to normal.
1493 else
1494 case $ac_arg in
1495 *=* | --config-cache | -C | -disable-* | --disable-* \
1496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498 | -with-* | --with-* | -without-* | --without-* | --x)
1499 case "$ac_configure_args0 " in
1500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1501 esac
1502 ;;
1503 -* ) ac_must_keep_next=true ;;
1504 esac
1505 fi
1506 ac_configure_args="$ac_configure_args '$ac_arg'"
1507 ;;
1508 esac
1509 done
1510 done
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1513
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log. We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520 # Save into config.log some information that might help in debugging.
1521 {
1522 echo
1523
1524 cat <<\_ASBOX
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1528 _ASBOX
1529 echo
1530 # The following way of writing the cache mishandles newlines in values,
1531 (
1532 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1533 eval ac_val=\$$ac_var
1534 case $ac_val in #(
1535 *${as_nl}*)
1536 case $ac_var in #(
1537 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1539 esac
1540 case $ac_var in #(
1541 _ | IFS | as_nl) ;; #(
1542 *) $as_unset $ac_var ;;
1543 esac ;;
1544 esac
1545 done
1546 (set) 2>&1 |
1547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1548 *${as_nl}ac_space=\ *)
1549 sed -n \
1550 "s/'\''/'\''\\\\'\'''\''/g;
1551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1552 ;; #(
1553 *)
1554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1555 ;;
1556 esac |
1557 sort
1558 )
1559 echo
1560
1561 cat <<\_ASBOX
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1565 _ASBOX
1566 echo
1567 for ac_var in $ac_subst_vars
1568 do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in
1571 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572 esac
1573 echo "$ac_var='\''$ac_val'\''"
1574 done | sort
1575 echo
1576
1577 if test -n "$ac_subst_files"; then
1578 cat <<\_ASBOX
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1582 _ASBOX
1583 echo
1584 for ac_var in $ac_subst_files
1585 do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in
1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1589 esac
1590 echo "$ac_var='\''$ac_val'\''"
1591 done | sort
1592 echo
1593 fi
1594
1595 if test -s confdefs.h; then
1596 cat <<\_ASBOX
1597 ## ----------- ##
1598 ## confdefs.h. ##
1599 ## ----------- ##
1600 _ASBOX
1601 echo
1602 cat confdefs.h
1603 echo
1604 fi
1605 test "$ac_signal" != 0 &&
1606 echo "$as_me: caught signal $ac_signal"
1607 echo "$as_me: exit $exit_status"
1608 } >&5
1609 rm -f core *.core core.conftest.* &&
1610 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1611 exit $exit_status
1612 ' 0
1613 for ac_signal in 1 2 13 15; do
1614 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1615 done
1616 ac_signal=0
1617
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1620
1621 # Predefined preprocessor variables.
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1635 _ACEOF
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1640 _ACEOF
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1645 _ACEOF
1646
1647
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651 set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1654 else
1655 set x "$ac_default_prefix/share/config.site" \
1656 "$ac_default_prefix/etc/config.site"
1657 fi
1658 shift
1659 for ac_site_file
1660 do
1661 if test -r "$ac_site_file"; then
1662 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664 sed 's/^/| /' "$ac_site_file" >&5
1665 . "$ac_site_file"
1666 fi
1667 done
1668
1669 if test -r "$cache_file"; then
1670 # Some versions of bash will fail to source /dev/null (special
1671 # files actually), so we avoid doing that.
1672 if test -f "$cache_file"; then
1673 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1675 case $cache_file in
1676 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677 *) . "./$cache_file";;
1678 esac
1679 fi
1680 else
1681 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1683 >$cache_file
1684 fi
1685
1686 # Check that the precious variables saved in the cache have kept the same
1687 # value.
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691 eval ac_new_set=\$ac_env_${ac_var}_set
1692 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693 eval ac_new_val=\$ac_env_${ac_var}_value
1694 case $ac_old_set,$ac_new_set in
1695 set,)
1696 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1697 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698 ac_cache_corrupted=: ;;
1699 ,set)
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1703 ,);;
1704 *)
1705 if test "x$ac_old_val" != "x$ac_new_val"; then
1706 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1708 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1709 echo "$as_me: former value: $ac_old_val" >&2;}
1710 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1711 echo "$as_me: current value: $ac_new_val" >&2;}
1712 ac_cache_corrupted=:
1713 fi;;
1714 esac
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1717 case $ac_new_val in
1718 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1720 esac
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1724 esac
1725 fi
1726 done
1727 if $ac_cache_corrupted; then
1728 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1729 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1730 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1732 { (exit 1); exit 1; }; }
1733 fi
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751 ac_ext=c
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756
1757
1758
1759 ac_aux_dir=
1760 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1761 if test -f "$ac_dir/install-sh"; then
1762 ac_aux_dir=$ac_dir
1763 ac_install_sh="$ac_aux_dir/install-sh -c"
1764 break
1765 elif test -f "$ac_dir/install.sh"; then
1766 ac_aux_dir=$ac_dir
1767 ac_install_sh="$ac_aux_dir/install.sh -c"
1768 break
1769 elif test -f "$ac_dir/shtool"; then
1770 ac_aux_dir=$ac_dir
1771 ac_install_sh="$ac_aux_dir/shtool install -c"
1772 break
1773 fi
1774 done
1775 if test -z "$ac_aux_dir"; then
1776 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1777 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1778 { (exit 1); exit 1; }; }
1779 fi
1780
1781 # These three variables are undocumented and unsupported,
1782 # and are intended to be withdrawn in a future Autoconf release.
1783 # They can cause serious problems if a builder's source tree is in a directory
1784 # whose full name contains unusual characters.
1785 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1786 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1787 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1788
1789
1790 # Make sure we can run config.sub.
1791 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1792 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1793 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1794 { (exit 1); exit 1; }; }
1795
1796 { echo "$as_me:$LINENO: checking build system type" >&5
1797 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_build+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 ac_build_alias=$build_alias
1802 test "x$ac_build_alias" = x &&
1803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1804 test "x$ac_build_alias" = x &&
1805 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1806 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1807 { (exit 1); exit 1; }; }
1808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1809 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1810 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1811 { (exit 1); exit 1; }; }
1812
1813 fi
1814 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1815 echo "${ECHO_T}$ac_cv_build" >&6; }
1816 case $ac_cv_build in
1817 *-*-*) ;;
1818 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1819 echo "$as_me: error: invalid value of canonical build" >&2;}
1820 { (exit 1); exit 1; }; };;
1821 esac
1822 build=$ac_cv_build
1823 ac_save_IFS=$IFS; IFS='-'
1824 set x $ac_cv_build
1825 shift
1826 build_cpu=$1
1827 build_vendor=$2
1828 shift; shift
1829 # Remember, the first character of IFS is used to create $*,
1830 # except with old shells:
1831 build_os=$*
1832 IFS=$ac_save_IFS
1833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1834
1835
1836 { echo "$as_me:$LINENO: checking host system type" >&5
1837 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1838 if test "${ac_cv_host+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 if test "x$host_alias" = x; then
1842 ac_cv_host=$ac_cv_build
1843 else
1844 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1845 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1846 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1847 { (exit 1); exit 1; }; }
1848 fi
1849
1850 fi
1851 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1852 echo "${ECHO_T}$ac_cv_host" >&6; }
1853 case $ac_cv_host in
1854 *-*-*) ;;
1855 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1856 echo "$as_me: error: invalid value of canonical host" >&2;}
1857 { (exit 1); exit 1; }; };;
1858 esac
1859 host=$ac_cv_host
1860 ac_save_IFS=$IFS; IFS='-'
1861 set x $ac_cv_host
1862 shift
1863 host_cpu=$1
1864 host_vendor=$2
1865 shift; shift
1866 # Remember, the first character of IFS is used to create $*,
1867 # except with old shells:
1868 host_os=$*
1869 IFS=$ac_save_IFS
1870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1871
1872
1873 { echo "$as_me:$LINENO: checking target system type" >&5
1874 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1875 if test "${ac_cv_target+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 if test "x$target_alias" = x; then
1879 ac_cv_target=$ac_cv_host
1880 else
1881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1882 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1884 { (exit 1); exit 1; }; }
1885 fi
1886
1887 fi
1888 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1889 echo "${ECHO_T}$ac_cv_target" >&6; }
1890 case $ac_cv_target in
1891 *-*-*) ;;
1892 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1893 echo "$as_me: error: invalid value of canonical target" >&2;}
1894 { (exit 1); exit 1; }; };;
1895 esac
1896 target=$ac_cv_target
1897 ac_save_IFS=$IFS; IFS='-'
1898 set x $ac_cv_target
1899 shift
1900 target_cpu=$1
1901 target_vendor=$2
1902 shift; shift
1903 # Remember, the first character of IFS is used to create $*,
1904 # except with old shells:
1905 target_os=$*
1906 IFS=$ac_save_IFS
1907 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1908
1909
1910 # The aliases save the names the user supplied, while $host etc.
1911 # will get canonicalized.
1912 test -n "$target_alias" &&
1913 test "$program_prefix$program_suffix$program_transform_name" = \
1914 NONENONEs,x,x, &&
1915 program_prefix=${target_alias}-
1916
1917
1918
1919
1920
1921
1922
1923 # Check whether --with-gcc was given.
1924 if test "${with_gcc+set}" = set; then
1925 withval=$with_gcc;
1926 fi
1927
1928 V_CCOPT="-O"
1929 V_INCLS=""
1930 if test "${srcdir}" != "." ; then
1931 V_INCLS="-I\$(srcdir)"
1932 fi
1933 if test "${CFLAGS+set}" = set; then
1934 LBL_CFLAGS="$CFLAGS"
1935 fi
1936 if test -z "$CC" ; then
1937 case "$host_os" in
1938
1939 bsdi*)
1940 # Extract the first word of "shlicc2", so it can be a program name with args.
1941 set dummy shlicc2; ac_word=$2
1942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1944 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$SHLICC2"; then
1948 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1957 ac_cv_prog_SHLICC2="yes"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1960 fi
1961 done
1962 done
1963 IFS=$as_save_IFS
1964
1965 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1966 fi
1967 fi
1968 SHLICC2=$ac_cv_prog_SHLICC2
1969 if test -n "$SHLICC2"; then
1970 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1971 echo "${ECHO_T}$SHLICC2" >&6; }
1972 else
1973 { echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6; }
1975 fi
1976
1977
1978 if test $SHLICC2 = yes ; then
1979 CC=shlicc2
1980 export CC
1981 fi
1982 ;;
1983 esac
1984 fi
1985 if test -z "$CC" -a "$with_gcc" = no ; then
1986 CC=cc
1987 export CC
1988 fi
1989
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2016 fi
2017 done
2018 done
2019 IFS=$as_save_IFS
2020
2021 fi
2022 fi
2023 CC=$ac_cv_prog_CC
2024 if test -n "$CC"; then
2025 { echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6; }
2027 else
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2030 fi
2031
2032
2033 fi
2034 if test -z "$ac_cv_prog_CC"; then
2035 ac_ct_CC=$CC
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037 set dummy gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 else
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049 IFS=$as_save_IFS
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2056 fi
2057 done
2058 done
2059 IFS=$as_save_IFS
2060
2061 fi
2062 fi
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
2067 else
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2070 fi
2071
2072 if test "x$ac_ct_CC" = x; then
2073 CC=""
2074 else
2075 case $cross_compiling:$ac_tool_warned in
2076 yes:)
2077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&5
2080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2083 ac_tool_warned=yes ;;
2084 esac
2085 CC=$ac_ct_CC
2086 fi
2087 else
2088 CC="$ac_cv_prog_CC"
2089 fi
2090
2091 if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2113 fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118 fi
2119 fi
2120 CC=$ac_cv_prog_CC
2121 if test -n "$CC"; then
2122 { echo "$as_me:$LINENO: result: $CC" >&5
2123 echo "${ECHO_T}$CC" >&6; }
2124 else
2125 { echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6; }
2127 fi
2128
2129
2130 fi
2131 fi
2132 if test -z "$CC"; then
2133 # Extract the first word of "cc", so it can be a program name with args.
2134 set dummy cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 ac_prog_rejected=no
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2152 ac_prog_rejected=yes
2153 continue
2154 fi
2155 ac_cv_prog_CC="cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2158 fi
2159 done
2160 done
2161 IFS=$as_save_IFS
2162
2163 if test $ac_prog_rejected = yes; then
2164 # We found a bogon in the path, so make sure we never use it.
2165 set dummy $ac_cv_prog_CC
2166 shift
2167 if test $# != 0; then
2168 # We chose a different compiler from the bogus one.
2169 # However, it has the same basename, so the bogon will be chosen
2170 # first if we set CC to just the basename; use the full file name.
2171 shift
2172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2173 fi
2174 fi
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179 { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2181 else
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187 fi
2188 if test -z "$CC"; then
2189 if test -n "$ac_tool_prefix"; then
2190 for ac_prog in cl.exe
2191 do
2192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213 done
2214 done
2215 IFS=$as_save_IFS
2216
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2223 else
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2226 fi
2227
2228
2229 test -n "$CC" && break
2230 done
2231 fi
2232 if test -z "$CC"; then
2233 ac_ct_CC=$CC
2234 for ac_prog in cl.exe
2235 do
2236 # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_ac_ct_CC="$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2256 fi
2257 done
2258 done
2259 IFS=$as_save_IFS
2260
2261 fi
2262 fi
2263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264 if test -n "$ac_ct_CC"; then
2265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266 echo "${ECHO_T}$ac_ct_CC" >&6; }
2267 else
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270 fi
2271
2272
2273 test -n "$ac_ct_CC" && break
2274 done
2275
2276 if test "x$ac_ct_CC" = x; then
2277 CC=""
2278 else
2279 case $cross_compiling:$ac_tool_warned in
2280 yes:)
2281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2282 whose name does not start with the host triplet. If you think this
2283 configuration is useful to you, please write to autoconf@gnu.org." >&5
2284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2285 whose name does not start with the host triplet. If you think this
2286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2287 ac_tool_warned=yes ;;
2288 esac
2289 CC=$ac_ct_CC
2290 fi
2291 fi
2292
2293 fi
2294
2295
2296 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2301
2302 # Provide some information about the compiler.
2303 echo "$as_me:$LINENO: checking for C compiler version" >&5
2304 ac_compiler=`set X $ac_compile; echo $2`
2305 { (ac_try="$ac_compiler --version >&5"
2306 case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309 esac
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compiler --version >&5") 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }
2315 { (ac_try="$ac_compiler -v >&5"
2316 case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compiler -v >&5") 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }
2325 { (ac_try="$ac_compiler -V >&5"
2326 case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_compiler -V >&5") 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }
2335
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342
2343 int
2344 main ()
2345 {
2346
2347 ;
2348 return 0;
2349 }
2350 _ACEOF
2351 ac_clean_files_save=$ac_clean_files
2352 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2353 # Try to create an executable without -o first, disregard a.out.
2354 # It will help us diagnose broken compilers, and finding out an intuition
2355 # of exeext.
2356 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2357 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2358 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2359 #
2360 # List of possible output files, starting from the most likely.
2361 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2362 # only as a last resort. b.out is created by i960 compilers.
2363 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2364 #
2365 # The IRIX 6 linker writes into existing files which may not be
2366 # executable, retaining their permissions. Remove them first so a
2367 # subsequent execution test works.
2368 ac_rmfiles=
2369 for ac_file in $ac_files
2370 do
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2374 esac
2375 done
2376 rm -f $ac_rmfiles
2377
2378 if { (ac_try="$ac_link_default"
2379 case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382 esac
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_link_default") 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; then
2388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2391 # so that the user can short-circuit this test for compilers unknown to
2392 # Autoconf.
2393 for ac_file in $ac_files ''
2394 do
2395 test -f "$ac_file" || continue
2396 case $ac_file in
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2398 ;;
2399 [ab].out )
2400 # We found the default executable, but exeext='' is most
2401 # certainly right.
2402 break;;
2403 *.* )
2404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2405 then :; else
2406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2407 fi
2408 # We set ac_cv_exeext here because the later test for it is not
2409 # safe: cross compilers may not add the suffix if given an `-o'
2410 # argument, so we may need to know it at that point already.
2411 # Even if this section looks crufty: it has the advantage of
2412 # actually working.
2413 break;;
2414 * )
2415 break;;
2416 esac
2417 done
2418 test "$ac_cv_exeext" = no && ac_cv_exeext=
2419
2420 else
2421 ac_file=''
2422 fi
2423
2424 { echo "$as_me:$LINENO: result: $ac_file" >&5
2425 echo "${ECHO_T}$ac_file" >&6; }
2426 if test -z "$ac_file"; then
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: C compiler cannot create executables
2433 See \`config.log' for more details." >&2;}
2434 { (exit 77); exit 77; }; }
2435 fi
2436
2437 ac_exeext=$ac_cv_exeext
2438
2439 # Check that the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2442 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446 if { ac_try='./$ac_file'
2447 { (case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_try") 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 cross_compiling=no
2457 else
2458 if test "$cross_compiling" = maybe; then
2459 cross_compiling=yes
2460 else
2461 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2462 If you meant to cross compile, use \`--host'.
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2468 fi
2469 fi
2470 fi
2471 { echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2473
2474 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2475 ac_clean_files=$ac_clean_files_save
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2480 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481 echo "${ECHO_T}$cross_compiling" >&6; }
2482
2483 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2485 if { (ac_try="$ac_link"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_link") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; then
2495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2496 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2497 # work properly (i.e., refer to `conftest.exe'), while it won't with
2498 # `rm'.
2499 for ac_file in conftest.exe conftest conftest.*; do
2500 test -f "$ac_file" || continue
2501 case $ac_file in
2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504 break;;
2505 * ) break;;
2506 esac
2507 done
2508 else
2509 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512 See \`config.log' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2514 fi
2515
2516 rm -f conftest$ac_cv_exeext
2517 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2519
2520 rm -f conftest.$ac_ext
2521 EXEEXT=$ac_cv_exeext
2522 ac_exeext=$EXEEXT
2523 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534
2535 int
2536 main ()
2537 {
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (ac_try="$ac_compile"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compile") 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 for ac_file in conftest.o conftest.obj conftest.*; do
2555 test -f "$ac_file" || continue;
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559 break;;
2560 esac
2561 done
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574 fi
2575 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6; }
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h. */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2590
2591 int
2592 main ()
2593 {
2594 #ifndef __GNUC__
2595 choke me
2596 #endif
2597
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (ac_try="$ac_compile"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_compile") 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } && {
2616 test -z "$ac_c_werror_flag" ||
2617 test ! -s conftest.err
2618 } && test -s conftest.$ac_objext; then
2619 ac_compiler_gnu=yes
2620 else
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 ac_compiler_gnu=no
2625 fi
2626
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629
2630 fi
2631 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2633 GCC=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CFLAGS=${CFLAGS+set}
2635 ac_save_CFLAGS=$CFLAGS
2636 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2637 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_g+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 ac_save_c_werror_flag=$ac_c_werror_flag
2642 ac_c_werror_flag=yes
2643 ac_cv_prog_cc_g=no
2644 CFLAGS="-g"
2645 cat >conftest.$ac_ext <<_ACEOF
2646 /* confdefs.h. */
2647 _ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2651
2652 int
2653 main ()
2654 {
2655
2656 ;
2657 return 0;
2658 }
2659 _ACEOF
2660 rm -f conftest.$ac_objext
2661 if { (ac_try="$ac_compile"
2662 case "(($ac_try" in
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2665 esac
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compile") 2>conftest.er1
2668 ac_status=$?
2669 grep -v '^ *+' conftest.er1 >conftest.err
2670 rm -f conftest.er1
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); } && {
2674 test -z "$ac_c_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest.$ac_objext; then
2677 ac_cv_prog_cc_g=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 CFLAGS=""
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689
2690 int
2691 main ()
2692 {
2693
2694 ;
2695 return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
2715 :
2716 else
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 ac_c_werror_flag=$ac_save_c_werror_flag
2721 CFLAGS="-g"
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728
2729 int
2730 main ()
2731 {
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2754 ac_cv_prog_cc_g=yes
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 fi
2764
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 fi
2767
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 ac_c_werror_flag=$ac_save_c_werror_flag
2770 fi
2771 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2772 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2773 if test "$ac_test_CFLAGS" = set; then
2774 CFLAGS=$ac_save_CFLAGS
2775 elif test $ac_cv_prog_cc_g = yes; then
2776 if test "$GCC" = yes; then
2777 CFLAGS="-g -O2"
2778 else
2779 CFLAGS="-g"
2780 fi
2781 else
2782 if test "$GCC" = yes; then
2783 CFLAGS="-O2"
2784 else
2785 CFLAGS=
2786 fi
2787 fi
2788 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2789 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_cc_c89+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 ac_cv_prog_cc_c89=no
2794 ac_save_CC=$CC
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2801 #include <stdarg.h>
2802 #include <stdio.h>
2803 #include <sys/types.h>
2804 #include <sys/stat.h>
2805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2806 struct buf { int x; };
2807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2808 static char *e (p, i)
2809 char **p;
2810 int i;
2811 {
2812 return p[i];
2813 }
2814 static char *f (char * (*g) (char **, int), char **p, ...)
2815 {
2816 char *s;
2817 va_list v;
2818 va_start (v,p);
2819 s = g (p, va_arg (v,int));
2820 va_end (v);
2821 return s;
2822 }
2823
2824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2825 function prototypes and stuff, but not '\xHH' hex character constants.
2826 These don't provoke an error unfortunately, instead are silently treated
2827 as 'x'. The following induces an error, until -std is added to get
2828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2829 array size at least. It's necessary to write '\x00'==0 to get something
2830 that's true only with -std. */
2831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2832
2833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2834 inside strings and character constants. */
2835 #define FOO(x) 'x'
2836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2837
2838 int test (int i, double x);
2839 struct s1 {int (*f) (int a);};
2840 struct s2 {int (*f) (double a);};
2841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2842 int argc;
2843 char **argv;
2844 int
2845 main ()
2846 {
2847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2854 do
2855 CC="$ac_save_CC $ac_arg"
2856 rm -f conftest.$ac_objext
2857 if { (ac_try="$ac_compile"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_compile") 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } && {
2870 test -z "$ac_c_werror_flag" ||
2871 test ! -s conftest.err
2872 } && test -s conftest.$ac_objext; then
2873 ac_cv_prog_cc_c89=$ac_arg
2874 else
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878
2879 fi
2880
2881 rm -f core conftest.err conftest.$ac_objext
2882 test "x$ac_cv_prog_cc_c89" != "xno" && break
2883 done
2884 rm -f conftest.$ac_ext
2885 CC=$ac_save_CC
2886
2887 fi
2888 # AC_CACHE_VAL
2889 case "x$ac_cv_prog_cc_c89" in
2890 x)
2891 { echo "$as_me:$LINENO: result: none needed" >&5
2892 echo "${ECHO_T}none needed" >&6; } ;;
2893 xno)
2894 { echo "$as_me:$LINENO: result: unsupported" >&5
2895 echo "${ECHO_T}unsupported" >&6; } ;;
2896 *)
2897 CC="$CC $ac_cv_prog_cc_c89"
2898 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2899 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2900 esac
2901
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910
2911
2912
2913 if test "$GCC" = yes ; then
2914 if test "$SHLICC2" = yes ; then
2915 ac_cv_lbl_gcc_vers=2
2916 V_CCOPT="-O2"
2917 else
2918 { echo "$as_me:$LINENO: checking gcc version" >&5
2919 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2920 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2924 sed -e '/^gcc version /!d' \
2925 -e 's/^gcc version //' \
2926 -e 's/ .*//' -e 's/^[^0-9]*//' \
2927 -e 's/\..*//'`
2928 fi
2929
2930 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2931 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2932 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2933 V_CCOPT="-O2"
2934 fi
2935 fi
2936 else
2937 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2938 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2939 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <sys/types.h>
2950 int
2951 main ()
2952 {
2953 int frob(int, char *)
2954 ;
2955 return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2960 case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2966 ac_status=$?
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_c_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2975 ac_cv_lbl_cc_ansi_prototypes=yes
2976 else
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 ac_cv_lbl_cc_ansi_prototypes=no
2981 fi
2982
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 fi
2985
2986 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2987 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2988 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2989 case "$host_os" in
2990
2991 hpux*)
2992 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2993 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2994 savedcflags="$CFLAGS"
2995 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2996 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 cat >conftest.$ac_ext <<_ACEOF
3000 /* confdefs.h. */
3001 _ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <sys/types.h>
3006 int
3007 main ()
3008 {
3009 int frob(int, char *)
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3022 ac_status=$?
3023 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && {
3028 test -z "$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3030 } && test -s conftest.$ac_objext; then
3031 ac_cv_lbl_cc_hpux_cc_aa=yes
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 ac_cv_lbl_cc_hpux_cc_aa=no
3037 fi
3038
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 fi
3041
3042 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3043 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3044 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3045 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3046 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3047 { (exit 1); exit 1; }; }
3048 fi
3049 CFLAGS="$savedcflags"
3050 V_CCOPT="-Aa $V_CCOPT"
3051
3052 cat >>confdefs.h <<\_ACEOF
3053 #define _HPUX_SOURCE 1
3054 _ACEOF
3055
3056 ;;
3057
3058 osf*)
3059 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3060 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3061 savedcflags="$CFLAGS"
3062 CFLAGS="-std1"
3063 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072 #include <sys/types.h>
3073 int
3074 main ()
3075 {
3076 int frob(int, char *)
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_lbl_cc_osf1_cc_std1=yes
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 ac_cv_lbl_cc_osf1_cc_std1=no
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 fi
3108
3109 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3110 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3111 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3112 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3113 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3114 { (exit 1); exit 1; }; }
3115 fi
3116 CFLAGS="$savedcflags"
3117 V_CCOPT="-std1 $V_CCOPT"
3118 ;;
3119
3120 *)
3121 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3122 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3123 { (exit 1); exit 1; }; }
3124 ;;
3125 esac
3126 fi
3127 V_INCLS="$V_INCLS -I/usr/local/include"
3128 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3129
3130 case "$host_os" in
3131
3132 irix*)
3133 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3134 ;;
3135
3136 osf*)
3137 #
3138 # Presumed to be DEC OSF/1, Digital UNIX, or
3139 # Tru64 UNIX.
3140 #
3141 V_CCOPT="$V_CCOPT -g3"
3142 ;;
3143
3144 ultrix*)
3145 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3146 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3147 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3156 #include <sys/types.h>
3157 int
3158 main ()
3159 {
3160 struct a { int b; };
3161 void c(const struct a *)
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && {
3180 test -z "$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 } && test -s conftest.$ac_objext; then
3183 ac_cv_lbl_cc_const_proto=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_cv_lbl_cc_const_proto=no
3189 fi
3190
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193
3194 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3195 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3196 if test $ac_cv_lbl_cc_const_proto = no ; then
3197
3198 cat >>confdefs.h <<\_ACEOF
3199 #define const
3200 _ACEOF
3201
3202 fi
3203 ;;
3204 esac
3205 fi
3206
3207
3208 if test "$GCC" = yes ; then
3209 #
3210 # On platforms where we build a shared library:
3211 #
3212 # add options to generate position-independent code,
3213 # if necessary (it's the default in AIX and Darwin/OS X);
3214 #
3215 # define option to set the soname of the shared library,
3216 # if the OS supports that;
3217 #
3218 # add options to specify, at link time, a directory to
3219 # add to the run-time search path, if that's necessary.
3220 #
3221 V_SHLIB_CMD="\$(CC)"
3222 V_SHLIB_OPT="-shared"
3223 case "$host_os" in
3224
3225 aix*)
3226 ;;
3227
3228 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
3229 #
3230 # Platforms where the linker is the GNU linker
3231 # or accepts command-line arguments like
3232 # those the GNU linker accepts.
3233 #
3234 # Some instruction sets require -fPIC on some
3235 # operating systems. Check for them. If you
3236 # have a combination that requires it, add it
3237 # here.
3238 #
3239 PIC_OPT=-fpic
3240 case "$host_cpu" in
3241
3242 sparc64*)
3243 case "$host_os" in
3244
3245 freebsd*)
3246 PIC_OPT=-fPIC
3247 ;;
3248 esac
3249 ;;
3250 esac
3251 V_CCOPT="$V_CCOPT $PIC_OPT"
3252 V_SONAME_OPT="-Wl,-soname,"
3253 V_RPATH_OPT="-Wl,-rpath,"
3254 ;;
3255
3256 hpux*)
3257 V_CCOPT="$V_CCOPT -fpic"
3258 #
3259 # XXX - this assumes GCC is using the HP linker,
3260 # rather than the GNU linker, and that the "+h"
3261 # option is used on all HP-UX platforms, both .sl
3262 # and .so.
3263 #
3264 V_SONAME_OPT="-Wl,+h,"
3265 #
3266 # By default, directories specifed with -L
3267 # are added to the run-time search path, so
3268 # we don't add them in pcap-config.
3269 #
3270 ;;
3271
3272 solaris*)
3273 V_CCOPT="$V_CCOPT -fpic"
3274 #
3275 # XXX - this assumes GCC is using the Sun linker,
3276 # rather than the GNU linker.
3277 #
3278 V_SONAME_OPT="-Wl,-h,"
3279 V_RPATH_OPT="-Wl,-R,"
3280 ;;
3281 esac
3282 else
3283 #
3284 # Set the appropriate compiler flags and, on platforms
3285 # where we build a shared library:
3286 #
3287 # add options to generate position-independent code,
3288 # if necessary (it's the default in Darwin/OS X);
3289 #
3290 # if we generate ".so" shared libraries, define the
3291 # appropriate options for building the shared library;
3292 #
3293 # add options to specify, at link time, a directory to
3294 # add to the run-time search path, if that's necessary.
3295 #
3296 # Note: spaces after V_SONAME_OPT are significant; on
3297 # some platforms the soname is passed with a GCC-like
3298 # "-Wl,-soname,{soname}" option, with the soname part
3299 # of the option, while on other platforms the C compiler
3300 # driver takes it as a regular option with the soname
3301 # following the option. The same applies to V_RPATH_OPT.
3302 #
3303 case "$host_os" in
3304
3305 aix*)
3306 V_SHLIB_CMD="\$(CC)"
3307 V_SHLIB_OPT="-G -bnoentry -bexpall"
3308 ;;
3309
3310 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3311 #
3312 # "cc" is GCC.
3313 #
3314 V_CCOPT="$V_CCOPT -fpic"
3315 V_SHLIB_CMD="\$(CC)"
3316 V_SHLIB_OPT="-shared"
3317 V_SONAME_OPT="-Wl,-soname,"
3318 V_RPATH_OPT="-Wl,-rpath,"
3319 ;;
3320
3321 hpux*)
3322 V_CCOPT="$V_CCOPT +z"
3323 V_SHLIB_CMD="\$(LD)"
3324 V_SHLIB_OPT="-b"
3325 V_SONAME_OPT="+h "
3326 #
3327 # By default, directories specifed with -L
3328 # are added to the run-time search path, so
3329 # we don't add them in pcap-config.
3330 #
3331 ;;
3332
3333 osf*)
3334 #
3335 # Presumed to be DEC OSF/1, Digital UNIX, or
3336 # Tru64 UNIX.
3337 #
3338 V_SHLIB_CMD="\$(CC)"
3339 V_SHLIB_OPT="-shared"
3340 V_SONAME_OPT="-soname "
3341 V_RPATH_OPT="-rpath "
3342 ;;
3343
3344 solaris*)
3345 V_CCOPT="$V_CCOPT -Kpic"
3346 V_SHLIB_CMD="\$(CC)"
3347 V_SHLIB_OPT="-G"
3348 V_SONAME_OPT="-h "
3349 V_RPATH_OPT="-R"
3350 ;;
3351 esac
3352 fi
3353
3354 { echo "$as_me:$LINENO: checking for inline" >&5
3355 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3356 save_CFLAGS="$CFLAGS"
3357 CFLAGS="$V_CCOPT"
3358 if test "${ac_cv_lbl_inline+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361
3362 ac_cv_lbl_inline=""
3363 ac_lbl_cc_inline=no
3364 for ac_lbl_inline in inline __inline__ __inline
3365 do
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #define inline $ac_lbl_inline
3373 static inline struct iltest *foo(void);
3374 struct iltest {
3375 int iltest1;
3376 int iltest2;
3377 };
3378
3379 static inline struct iltest *
3380 foo()
3381 {
3382 static struct iltest xxx;
3383
3384 return &xxx;
3385 }
3386 int
3387 main ()
3388 {
3389
3390 ;
3391 return 0;
3392 }
3393 _ACEOF
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3411 ac_lbl_cc_inline=yes
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417 fi
3418
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 if test "$ac_lbl_cc_inline" = yes ; then
3421 break;
3422 fi
3423 done
3424 if test "$ac_lbl_cc_inline" = yes ; then
3425 ac_cv_lbl_inline=$ac_lbl_inline
3426 fi
3427 fi
3428
3429 CFLAGS="$save_CFLAGS"
3430 if test ! -z "$ac_cv_lbl_inline" ; then
3431 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3432 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3433 else
3434 { echo "$as_me:$LINENO: result: no" >&5
3435 echo "${ECHO_T}no" >&6; }
3436 fi
3437
3438 cat >>confdefs.h <<_ACEOF
3439 #define inline $ac_cv_lbl_inline
3440 _ACEOF
3441
3442
3443 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3444 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3445 if test "${ac_cv___attribute__+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455
3456 #include <stdlib.h>
3457
3458 static void foo(void) __attribute__ ((noreturn));
3459
3460 static void
3461 foo(void)
3462 {
3463 exit(1);
3464 }
3465
3466 int
3467 main(int argc, char **argv)
3468 {
3469 foo();
3470 }
3471
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_cv___attribute__=yes
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 ac_cv___attribute__=no
3496 fi
3497
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500
3501 if test "$ac_cv___attribute__" = "yes"; then
3502
3503 cat >>confdefs.h <<\_ACEOF
3504 #define HAVE___ATTRIBUTE__ 1
3505 _ACEOF
3506
3507 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3508 else
3509 V_DEFS="$V_DEFS -D_U_=\"\""
3510 fi
3511 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3512 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3513
3514
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3522 # On Suns, sometimes $CPP names a directory.
3523 if test -n "$CPP" && test -d "$CPP"; then
3524 CPP=
3525 fi
3526 if test -z "$CPP"; then
3527 if test "${ac_cv_prog_CPP+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 # Double quotes because CPP needs to be expanded
3531 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3532 do
3533 ac_preproc_ok=false
3534 for ac_c_preproc_warn_flag in '' yes
3535 do
3536 # Use a header file that comes with gcc, so configuring glibc
3537 # with a fresh cross-compiler works.
3538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539 # <limits.h> exists even on freestanding compilers.
3540 # On the NeXT, cc -E runs the code through the compiler's parser,
3541 # not just through cpp. "Syntax error" is here to catch this case.
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 #ifdef __STDC__
3549 # include <limits.h>
3550 #else
3551 # include <assert.h>
3552 #endif
3553 Syntax error
3554 _ACEOF
3555 if { (ac_try="$ac_cpp conftest.$ac_ext"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null && {
3568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 }; then
3571 :
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 # Broken: fails on valid input.
3577 continue
3578 fi
3579
3580 rm -f conftest.err conftest.$ac_ext
3581
3582 # OK, works on sane cases. Now check whether nonexistent headers
3583 # can be detected and how.
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <ac_nonexistent.h>
3591 _ACEOF
3592 if { (ac_try="$ac_cpp conftest.$ac_ext"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } >/dev/null && {
3605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3606 test ! -s conftest.err
3607 }; then
3608 # Broken: success on invalid input.
3609 continue
3610 else
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 # Passes both tests.
3615 ac_preproc_ok=:
3616 break
3617 fi
3618
3619 rm -f conftest.err conftest.$ac_ext
3620
3621 done
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then
3625 break
3626 fi
3627
3628 done
3629 ac_cv_prog_CPP=$CPP
3630
3631 fi
3632 CPP=$ac_cv_prog_CPP
3633 else
3634 ac_cv_prog_CPP=$CPP
3635 fi
3636 { echo "$as_me:$LINENO: result: $CPP" >&5
3637 echo "${ECHO_T}$CPP" >&6; }
3638 ac_preproc_ok=false
3639 for ac_c_preproc_warn_flag in '' yes
3640 do
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653 #ifdef __STDC__
3654 # include <limits.h>
3655 #else
3656 # include <assert.h>
3657 #endif
3658 Syntax error
3659 _ACEOF
3660 if { (ac_try="$ac_cpp conftest.$ac_ext"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev/null && {
3673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 }; then
3676 :
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 # Broken: fails on valid input.
3682 continue
3683 fi
3684
3685 rm -f conftest.err conftest.$ac_ext
3686
3687 # OK, works on sane cases. Now check whether nonexistent headers
3688 # can be detected and how.
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <ac_nonexistent.h>
3696 _ACEOF
3697 if { (ac_try="$ac_cpp conftest.$ac_ext"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev/null && {
3710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 }; then
3713 # Broken: success on invalid input.
3714 continue
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 # Passes both tests.
3720 ac_preproc_ok=:
3721 break
3722 fi
3723
3724 rm -f conftest.err conftest.$ac_ext
3725
3726 done
3727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3728 rm -f conftest.err conftest.$ac_ext
3729 if $ac_preproc_ok; then
3730 :
3731 else
3732 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&5
3734 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3735 See \`config.log' for more details." >&2;}
3736 { (exit 1); exit 1; }; }
3737 fi
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745
3746 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3747 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3748 if test "${ac_cv_path_GREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 # Extract the first word of "grep ggrep" to use in msg output
3752 if test -z "$GREP"; then
3753 set dummy grep ggrep; ac_prog_name=$2
3754 if test "${ac_cv_path_GREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 ac_path_GREP_found=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_prog in grep ggrep; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3768 # Check for GNU ac_path_GREP and select it if it is found.
3769 # Check for GNU $ac_path_GREP
3770 case `"$ac_path_GREP" --version 2>&1` in
3771 *GNU*)
3772 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3773 *)
3774 ac_count=0
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3776 while :
3777 do
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'GREP' >> "conftest.nl"
3782 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784 ac_count=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_GREP="$ac_path_GREP"
3788 ac_path_GREP_max=$ac_count
3789 fi
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3792 done
3793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794 esac
3795
3796
3797 $ac_path_GREP_found && break 3
3798 done
3799 done
3800
3801 done
3802 IFS=$as_save_IFS
3803
3804
3805 fi
3806
3807 GREP="$ac_cv_path_GREP"
3808 if test -z "$GREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3812 fi
3813
3814 else
3815 ac_cv_path_GREP=$GREP
3816 fi
3817
3818
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3821 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3822 GREP="$ac_cv_path_GREP"
3823
3824
3825 { echo "$as_me:$LINENO: checking for egrep" >&5
3826 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3827 if test "${ac_cv_path_EGREP+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3831 then ac_cv_path_EGREP="$GREP -E"
3832 else
3833 # Extract the first word of "egrep" to use in msg output
3834 if test -z "$EGREP"; then
3835 set dummy egrep; ac_prog_name=$2
3836 if test "${ac_cv_path_EGREP+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839 ac_path_EGREP_found=false
3840 # Loop through the user's path and test for each of PROGNAME-LIST
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3843 do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_prog in egrep; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3849 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3850 # Check for GNU ac_path_EGREP and select it if it is found.
3851 # Check for GNU $ac_path_EGREP
3852 case `"$ac_path_EGREP" --version 2>&1` in
3853 *GNU*)
3854 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3855 *)
3856 ac_count=0
3857 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3858 while :
3859 do
3860 cat "conftest.in" "conftest.in" >"conftest.tmp"
3861 mv "conftest.tmp" "conftest.in"
3862 cp "conftest.in" "conftest.nl"
3863 echo 'EGREP' >> "conftest.nl"
3864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3866 ac_count=`expr $ac_count + 1`
3867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3868 # Best one so far, save it but keep looking for a better one
3869 ac_cv_path_EGREP="$ac_path_EGREP"
3870 ac_path_EGREP_max=$ac_count
3871 fi
3872 # 10*(2^10) chars as input seems more than enough
3873 test $ac_count -gt 10 && break
3874 done
3875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3876 esac
3877
3878
3879 $ac_path_EGREP_found && break 3
3880 done
3881 done
3882
3883 done
3884 IFS=$as_save_IFS
3885
3886
3887 fi
3888
3889 EGREP="$ac_cv_path_EGREP"
3890 if test -z "$EGREP"; then
3891 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3892 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3893 { (exit 1); exit 1; }; }
3894 fi
3895
3896 else
3897 ac_cv_path_EGREP=$EGREP
3898 fi
3899
3900
3901 fi
3902 fi
3903 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3904 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3905 EGREP="$ac_cv_path_EGREP"
3906
3907
3908 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3910 if test "${ac_cv_header_stdc+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <stdlib.h>
3920 #include <stdarg.h>
3921 #include <string.h>
3922 #include <float.h>
3923
3924 int
3925 main ()
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3949 ac_cv_header_stdc=yes
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 ac_cv_header_stdc=no
3955 fi
3956
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958
3959 if test $ac_cv_header_stdc = yes; then
3960 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 #include <string.h>
3968
3969 _ACEOF
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971 $EGREP "memchr" >/dev/null 2>&1; then
3972 :
3973 else
3974 ac_cv_header_stdc=no
3975 fi
3976 rm -f -r conftest*
3977
3978 fi
3979
3980 if test $ac_cv_header_stdc = yes; then
3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <stdlib.h>
3989
3990 _ACEOF
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "free" >/dev/null 2>&1; then
3993 :
3994 else
3995 ac_cv_header_stdc=no
3996 fi
3997 rm -f -r conftest*
3998
3999 fi
4000
4001 if test $ac_cv_header_stdc = yes; then
4002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4003 if test "$cross_compiling" = yes; then
4004 :
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <ctype.h>
4013 #include <stdlib.h>
4014 #if ((' ' & 0x0FF) == 0x020)
4015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4017 #else
4018 # define ISLOWER(c) \
4019 (('a' <= (c) && (c) <= 'i') \
4020 || ('j' <= (c) && (c) <= 'r') \
4021 || ('s' <= (c) && (c) <= 'z'))
4022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4023 #endif
4024
4025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4026 int
4027 main ()
4028 {
4029 int i;
4030 for (i = 0; i < 256; i++)
4031 if (XOR (islower (i), ISLOWER (i))
4032 || toupper (i) != TOUPPER (i))
4033 return 2;
4034 return 0;
4035 }
4036 _ACEOF
4037 rm -f conftest$ac_exeext
4038 if { (ac_try="$ac_link"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_link") 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 :
4058 else
4059 echo "$as_me: program exited with status $ac_status" >&5
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ( exit $ac_status )
4064 ac_cv_header_stdc=no
4065 fi
4066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4067 fi
4068
4069
4070 fi
4071 fi
4072 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4073 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4074 if test $ac_cv_header_stdc = yes; then
4075
4076 cat >>confdefs.h <<\_ACEOF
4077 #define STDC_HEADERS 1
4078 _ACEOF
4079
4080 fi
4081
4082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4093 inttypes.h stdint.h unistd.h
4094 do
4095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 $ac_includes_default
4108
4109 #include <$ac_header>
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && {
4125 test -z "$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 } && test -s conftest.$ac_objext; then
4128 eval "$as_ac_Header=yes"
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 eval "$as_ac_Header=no"
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 ac_res=`eval echo '${'$as_ac_Header'}'`
4139 { echo "$as_me:$LINENO: result: $ac_res" >&5
4140 echo "${ECHO_T}$ac_res" >&6; }
4141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4142 cat >>confdefs.h <<_ACEOF
4143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4144 _ACEOF
4145
4146 fi
4147
4148 done
4149
4150
4151
4152 for ac_header in sys/bitypes.h
4153 do
4154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 fi
4161 ac_res=`eval echo '${'$as_ac_Header'}'`
4162 { echo "$as_me:$LINENO: result: $ac_res" >&5
4163 echo "${ECHO_T}$ac_res" >&6; }
4164 else
4165 # Is the header compilable?
4166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4168 cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h. */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4174 $ac_includes_default
4175 #include <$ac_header>
4176 _ACEOF
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4179 case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4194 ac_header_compiler=yes
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ac_header_compiler=no
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4204 echo "${ECHO_T}$ac_header_compiler" >&6; }
4205
4206 # Is the header present?
4207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <$ac_header>
4216 _ACEOF
4217 if { (ac_try="$ac_cpp conftest.$ac_ext"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 }; then
4233 ac_header_preproc=yes
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 ac_header_preproc=no
4239 fi
4240
4241 rm -f conftest.err conftest.$ac_ext
4242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4243 echo "${ECHO_T}$ac_header_preproc" >&6; }
4244
4245 # So? What about this header?
4246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4247 yes:no: )
4248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4252 ac_header_preproc=yes
4253 ;;
4254 no:yes:* )
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4267
4268 ;;
4269 esac
4270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 eval "$as_ac_Header=\$ac_header_preproc"
4276 fi
4277 ac_res=`eval echo '${'$as_ac_Header'}'`
4278 { echo "$as_me:$LINENO: result: $ac_res" >&5
4279 echo "${ECHO_T}$ac_res" >&6; }
4280
4281 fi
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4285 _ACEOF
4286
4287 fi
4288
4289 done
4290
4291
4292 { echo "$as_me:$LINENO: checking for int8_t" >&5
4293 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4294 if test "${ac_cv_type_int8_t+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 $ac_includes_default
4304 #ifdef HAVE_SYS_BITYPES_H
4305 #include <sys/bitypes.h>
4306 #endif
4307
4308 typedef int8_t ac__type_new_;
4309 int
4310 main ()
4311 {
4312 if ((ac__type_new_ *) 0)
4313 return 0;
4314 if (sizeof (ac__type_new_))
4315 return 0;
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (ac_try="$ac_compile"
4322 case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4337 ac_cv_type_int8_t=yes
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ac_cv_type_int8_t=no
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4348 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4349 if test $ac_cv_type_int8_t = yes; then
4350 :
4351 else
4352
4353 cat >>confdefs.h <<\_ACEOF
4354 #define int8_t signed char
4355 _ACEOF
4356
4357 fi
4358
4359 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4360 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4361 if test "${ac_cv_type_u_int8_t+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h. */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 $ac_includes_default
4371 #ifdef HAVE_SYS_BITYPES_H
4372 #include <sys/bitypes.h>
4373 #endif
4374
4375 typedef u_int8_t ac__type_new_;
4376 int
4377 main ()
4378 {
4379 if ((ac__type_new_ *) 0)
4380 return 0;
4381 if (sizeof (ac__type_new_))
4382 return 0;
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.$ac_objext; then
4404 ac_cv_type_u_int8_t=yes
4405 else
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_cv_type_u_int8_t=no
4410 fi
4411
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 fi
4414 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4415 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4416 if test $ac_cv_type_u_int8_t = yes; then
4417 :
4418 else
4419
4420 cat >>confdefs.h <<\_ACEOF
4421 #define u_int8_t unsigned char
4422 _ACEOF
4423
4424 fi
4425
4426 { echo "$as_me:$LINENO: checking for int16_t" >&5
4427 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4428 if test "${ac_cv_type_int16_t+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4438 typedef int16_t ac__type_new_;
4439 int
4440 main ()
4441 {
4442 if ((ac__type_new_ *) 0)
4443 return 0;
4444 if (sizeof (ac__type_new_))
4445 return 0;
4446 ;
4447 return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && {
4464 test -z "$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 } && test -s conftest.$ac_objext; then
4467 ac_cv_type_int16_t=yes
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 ac_cv_type_int16_t=no
4473 fi
4474
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 fi
4477 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4478 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4479 if test $ac_cv_type_int16_t = yes; then
4480 :
4481 else
4482
4483 cat >>confdefs.h <<\_ACEOF
4484 #define int16_t short
4485 _ACEOF
4486
4487 $ac_includes_default
4488 #ifdef HAVE_SYS_BITYPES_H
4489 #include <sys/bitypes.h>
4490 #endif
4491 fi
4492
4493 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4494 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4495 if test "${ac_cv_type_u_int16_t+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 $ac_includes_default
4505 #ifdef HAVE_SYS_BITYPES_H
4506 #include <sys/bitypes.h>
4507 #endif
4508
4509 typedef u_int16_t ac__type_new_;
4510 int
4511 main ()
4512 {
4513 if ((ac__type_new_ *) 0)
4514 return 0;
4515 if (sizeof (ac__type_new_))
4516 return 0;
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest.$ac_objext
4522 if { (ac_try="$ac_compile"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_compile") 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && {
4535 test -z "$ac_c_werror_flag" ||
4536 test ! -s conftest.err
4537 } && test -s conftest.$ac_objext; then
4538 ac_cv_type_u_int16_t=yes
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 ac_cv_type_u_int16_t=no
4544 fi
4545
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 fi
4548 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4549 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4550 if test $ac_cv_type_u_int16_t = yes; then
4551 :
4552 else
4553
4554 cat >>confdefs.h <<\_ACEOF
4555 #define u_int16_t unsigned short
4556 _ACEOF
4557
4558 fi
4559
4560 { echo "$as_me:$LINENO: checking for int32_t" >&5
4561 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4562 if test "${ac_cv_type_int32_t+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 #ifdef HAVE_SYS_BITYPES_H
4573 #include <sys/bitypes.h>
4574 #endif
4575
4576 typedef int32_t ac__type_new_;
4577 int
4578 main ()
4579 {
4580 if ((ac__type_new_ *) 0)
4581 return 0;
4582 if (sizeof (ac__type_new_))
4583 return 0;
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_cv_type_int32_t=yes
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 ac_cv_type_int32_t=no
4611 fi
4612
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4616 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4617 if test $ac_cv_type_int32_t = yes; then
4618 :
4619 else
4620
4621 cat >>confdefs.h <<\_ACEOF
4622 #define int32_t int
4623 _ACEOF
4624
4625 fi
4626
4627 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4628 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4629 if test "${ac_cv_type_u_int32_t+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 $ac_includes_default
4639 #ifdef HAVE_SYS_BITYPES_H
4640 #include <sys/bitypes.h>
4641 #endif
4642
4643 typedef u_int32_t ac__type_new_;
4644 int
4645 main ()
4646 {
4647 if ((ac__type_new_ *) 0)
4648 return 0;
4649 if (sizeof (ac__type_new_))
4650 return 0;
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_compile") 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest.$ac_objext; then
4672 ac_cv_type_u_int32_t=yes
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 ac_cv_type_u_int32_t=no
4678 fi
4679
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 fi
4682 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4683 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4684 if test $ac_cv_type_u_int32_t = yes; then
4685 :
4686 else
4687
4688 cat >>confdefs.h <<\_ACEOF
4689 #define u_int32_t unsigned int
4690 _ACEOF
4691
4692 fi
4693
4694 { echo "$as_me:$LINENO: checking for int64_t" >&5
4695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4696 if test "${ac_cv_type_int64_t+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #ifdef HAVE_SYS_BITYPES_H
4707 #include <sys/bitypes.h>
4708 #endif
4709
4710 typedef int64_t ac__type_new_;
4711 int
4712 main ()
4713 {
4714 if ((ac__type_new_ *) 0)
4715 return 0;
4716 if (sizeof (ac__type_new_))
4717 return 0;
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 rm -f conftest.$ac_objext
4723 if { (ac_try="$ac_compile"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && {
4736 test -z "$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
4739 ac_cv_type_int64_t=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 ac_cv_type_int64_t=no
4745 fi
4746
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4750 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4751 if test $ac_cv_type_int64_t = yes; then
4752 :
4753 else
4754
4755 cat >>confdefs.h <<\_ACEOF
4756 #define int64_t long long
4757 _ACEOF
4758
4759 fi
4760
4761 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4762 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4763 if test "${ac_cv_type_u_int64_t+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #ifdef HAVE_SYS_BITYPES_H
4774 #include <sys/bitypes.h>
4775 #endif
4776
4777 typedef u_int64_t ac__type_new_;
4778 int
4779 main ()
4780 {
4781 if ((ac__type_new_ *) 0)
4782 return 0;
4783 if (sizeof (ac__type_new_))
4784 return 0;
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4806 ac_cv_type_u_int64_t=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 ac_cv_type_u_int64_t=no
4812 fi
4813
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4817 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4818 if test $ac_cv_type_u_int64_t = yes; then
4819 :
4820 else
4821
4822 cat >>confdefs.h <<\_ACEOF
4823 #define u_int64_t unsigned long long
4824 _ACEOF
4825
4826 fi
4827
4828
4829 #
4830 # Try to arrange for large file support.
4831 #
4832 # Check whether --enable-largefile was given.
4833 if test "${enable_largefile+set}" = set; then
4834 enableval=$enable_largefile;
4835 fi
4836
4837 if test "$enable_largefile" != no; then
4838
4839 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4840 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4841 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 ac_cv_sys_largefile_CC=no
4845 if test "$GCC" != yes; then
4846 ac_save_CC=$CC
4847 while :; do
4848 # IRIX 6.2 and later do not support large files by default,
4849 # so use the C compiler's -n32 option if that helps.
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #include <sys/types.h>
4857 /* Check that off_t can represent 2**63 - 1 correctly.
4858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4859 since some C++ compilers masquerading as C compilers
4860 incorrectly reject 9223372036854775807. */
4861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4863 && LARGE_OFF_T % 2147483647 == 1)
4864 ? 1 : -1];
4865 int
4866 main ()
4867 {
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4890 break
4891 else
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895
4896 fi
4897
4898 rm -f core conftest.err conftest.$ac_objext
4899 CC="$CC -n32"
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4917 ac_cv_sys_largefile_CC=' -n32'; break
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922
4923 fi
4924
4925 rm -f core conftest.err conftest.$ac_objext
4926 break
4927 done
4928 CC=$ac_save_CC
4929 rm -f conftest.$ac_ext
4930 fi
4931 fi
4932 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4934 if test "$ac_cv_sys_largefile_CC" != no; then
4935 CC=$CC$ac_cv_sys_largefile_CC
4936 fi
4937
4938 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 while :; do
4944 cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h. */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4958 ? 1 : -1];
4959 int
4960 main ()
4961 {
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest.$ac_objext
4968 if { (ac_try="$ac_compile"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4984 ac_cv_sys_file_offset_bits=no; break
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4988
4989
4990 fi
4991
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #define _FILE_OFFSET_BITS 64
5000 #include <sys/types.h>
5001 /* Check that off_t can represent 2**63 - 1 correctly.
5002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5003 since some C++ compilers masquerading as C compilers
5004 incorrectly reject 9223372036854775807. */
5005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5007 && LARGE_OFF_T % 2147483647 == 1)
5008 ? 1 : -1];
5009 int
5010 main ()
5011 {
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (ac_try="$ac_compile"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_compile") 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest.$ac_objext; then
5034 ac_cv_sys_file_offset_bits=64; break
5035 else
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5038
5039
5040 fi
5041
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5043 ac_cv_sys_file_offset_bits=unknown
5044 break
5045 done
5046 fi
5047 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5048 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5049 case $ac_cv_sys_file_offset_bits in #(
5050 no | unknown) ;;
5051 *)
5052 cat >>confdefs.h <<_ACEOF
5053 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5054 _ACEOF
5055 ;;
5056 esac
5057 rm -f -r conftest*
5058 if test $ac_cv_sys_file_offset_bits = unknown; then
5059 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5060 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5061 if test "${ac_cv_sys_large_files+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 while :; do
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5079 ? 1 : -1];
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest.$ac_objext
5089 if { (ac_try="$ac_compile"
5090 case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093 esac
5094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095 (eval "$ac_compile") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest.$ac_objext; then
5105 ac_cv_sys_large_files=no; break
5106 else
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110
5111 fi
5112
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #define _LARGE_FILES 1
5121 #include <sys/types.h>
5122 /* Check that off_t can represent 2**63 - 1 correctly.
5123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5124 since some C++ compilers masquerading as C compilers
5125 incorrectly reject 9223372036854775807. */
5126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5128 && LARGE_OFF_T % 2147483647 == 1)
5129 ? 1 : -1];
5130 int
5131 main ()
5132 {
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5155 ac_cv_sys_large_files=1; break
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160
5161 fi
5162
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 ac_cv_sys_large_files=unknown
5165 break
5166 done
5167 fi
5168 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5169 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5170 case $ac_cv_sys_large_files in #(
5171 no | unknown) ;;
5172 *)
5173 cat >>confdefs.h <<_ACEOF
5174 #define _LARGE_FILES $ac_cv_sys_large_files
5175 _ACEOF
5176 ;;
5177 esac
5178 rm -f -r conftest*
5179 fi
5180 fi
5181
5182 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5183 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5184 if test "${ac_cv_sys_largefile_source+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 while :; do
5188 cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h. */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 #include <stdio.h>
5195 int
5196 main ()
5197 {
5198 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5199 ;
5200 return 0;
5201 }
5202 _ACEOF
5203 rm -f conftest.$ac_objext conftest$ac_exeext
5204 if { (ac_try="$ac_link"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest$ac_exeext &&
5220 $as_test_x conftest$ac_exeext; then
5221 ac_cv_sys_largefile_source=no; break
5222 else
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226
5227 fi
5228
5229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5230 conftest$ac_exeext conftest.$ac_ext
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 #define _LARGEFILE_SOURCE 1
5238 #include <stdio.h>
5239 int
5240 main ()
5241 {
5242 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (ac_try="$ac_link"
5249 case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_link") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest$ac_exeext &&
5264 $as_test_x conftest$ac_exeext; then
5265 ac_cv_sys_largefile_source=1; break
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270
5271 fi
5272
5273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5274 conftest$ac_exeext conftest.$ac_ext
5275 ac_cv_sys_largefile_source=unknown
5276 break
5277 done
5278 fi
5279 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5280 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5281 case $ac_cv_sys_largefile_source in #(
5282 no | unknown) ;;
5283 *)
5284 cat >>confdefs.h <<_ACEOF
5285 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5286 _ACEOF
5287 ;;
5288 esac
5289 rm -f -r conftest*
5290
5291 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5292 # in glibc 2.1.3, but that breaks too many other things.
5293 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5294 if test $ac_cv_sys_largefile_source != unknown; then
5295
5296 cat >>confdefs.h <<\_ACEOF
5297 #define HAVE_FSEEKO 1
5298 _ACEOF
5299
5300 fi
5301
5302
5303
5304
5305
5306
5307 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5308 do
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 fi
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5319 else
5320 # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_header_compiler=no
5355 fi
5356
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5360
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 }; then
5388 ac_header_preproc=yes
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_header_preproc=no
5394 fi
5395
5396 rm -f conftest.err conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5399
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5402 yes:no: )
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5408 ;;
5409 no:yes:* )
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5422
5423 ;;
5424 esac
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 eval "$as_ac_Header=\$ac_header_preproc"
5431 fi
5432 ac_res=`eval echo '${'$as_ac_Header'}'`
5433 { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5435
5436 fi
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5440 _ACEOF
5441
5442 fi
5443
5444 done
5445
5446
5447 for ac_header in net/pfvar.h
5448 do
5449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #include <sys/types.h>
5462 #include <sys/socket.h>
5463 #include <net/if.h>
5464
5465 #include <$ac_header>
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5484 eval "$as_ac_Header=yes"
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 eval "$as_ac_Header=no"
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 fi
5494 ac_res=`eval echo '${'$as_ac_Header'}'`
5495 { echo "$as_me:$LINENO: result: $ac_res" >&5
5496 echo "${ECHO_T}$ac_res" >&6; }
5497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5498 cat >>confdefs.h <<_ACEOF
5499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 _ACEOF
5501
5502 fi
5503
5504 done
5505
5506 if test "$ac_cv_header_net_pfvar_h" = yes; then
5507 #
5508 # Check for various PF actions.
5509 #
5510 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5511 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 #include <sys/socket.h>
5520 #include <net/if.h>
5521 #include <net/pfvar.h>
5522 int
5523 main ()
5524 {
5525 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5532 case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5547
5548 { echo "$as_me:$LINENO: result: yes" >&5
5549 echo "${ECHO_T}yes" >&6; }
5550
5551 cat >>confdefs.h <<\_ACEOF
5552 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5553 _ACEOF
5554
5555
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 fi
5566
5567 for ac_header in netinet/if_ether.h
5568 do
5569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <sys/types.h>
5582 #include <sys/socket.h>
5583
5584 #include <$ac_header>
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 eval "$as_ac_Header=yes"
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 eval "$as_ac_Header=no"
5609 fi
5610
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615 echo "${ECHO_T}$ac_res" >&6; }
5616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5617 cat >>confdefs.h <<_ACEOF
5618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5619 _ACEOF
5620
5621 fi
5622
5623 done
5624
5625 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5626 #
5627 # The simple test didn't work.
5628 # Do we need to include <net/if.h> first?
5629 # Unset ac_cv_header_netinet_if_ether_h so we don't
5630 # treat the previous failure as a cached value and
5631 # suppress the next test.
5632 #
5633 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5634 echo "$as_me: Rechecking with some additional includes" >&6;}
5635 unset ac_cv_header_netinet_if_ether_h
5636
5637 for ac_header in netinet/if_ether.h
5638 do
5639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 #include <sys/types.h>
5652 #include <sys/socket.h>
5653 #include <netinet/in.h>
5654 struct mbuf;
5655 struct rtentry;
5656 #include <net/if.h>
5657
5658 #include <$ac_header>
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.$ac_objext; then
5677 eval "$as_ac_Header=yes"
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 eval "$as_ac_Header=no"
5683 fi
5684
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 fi
5687 ac_res=`eval echo '${'$as_ac_Header'}'`
5688 { echo "$as_me:$LINENO: result: $ac_res" >&5
5689 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h <<_ACEOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF
5694
5695 fi
5696
5697 done
5698
5699 fi
5700
5701 if test "$GCC" = yes ; then
5702 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5703 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5704 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 /*
5714 * This generates a "duplicate case value" when fixincludes
5715 * has not be run.
5716 */
5717 # include <sys/types.h>
5718 # include <sys/time.h>
5719 # include <sys/ioctl.h>
5720 # ifdef HAVE_SYS_IOCCOM_H
5721 # include <sys/ioccom.h>
5722 # endif
5723 int
5724 main ()
5725 {
5726 switch (0) {
5727 case _IO('A', 1):;
5728 case _IO('B', 1):;
5729 }
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_lbl_gcc_fixincludes=yes
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_cv_lbl_gcc_fixincludes=no
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 fi
5761
5762 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5763 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5764 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5765 # Don't cache failure
5766 unset ac_cv_lbl_gcc_fixincludes
5767 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5768 echo "$as_me: error: see the INSTALL for more info" >&2;}
5769 { (exit 1); exit 1; }; }
5770 fi
5771 fi
5772
5773
5774
5775 for ac_func in strerror strlcpy
5776 do
5777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5791 #define $ac_func innocuous_$ac_func
5792
5793 /* System header to define __stub macros and hopefully few prototypes,
5794 which can conflict with char $ac_func (); below.
5795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 <limits.h> exists even on freestanding compilers. */
5797
5798 #ifdef __STDC__
5799 # include <limits.h>
5800 #else
5801 # include <assert.h>
5802 #endif
5803
5804 #undef $ac_func
5805
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 #ifdef __cplusplus
5810 extern "C"
5811 #endif
5812 char $ac_func ();
5813 /* The GNU C library defines this for functions which it implements
5814 to always fail with ENOSYS. Some functions are actually named
5815 something starting with __ and the normal name is an alias. */
5816 #if defined __stub_$ac_func || defined __stub___$ac_func
5817 choke me
5818 #endif
5819
5820 int
5821 main ()
5822 {
5823 return $ac_func ();
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (ac_try="$ac_link"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_link") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest$ac_exeext &&
5845 $as_test_x conftest$ac_exeext; then
5846 eval "$as_ac_var=yes"
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 eval "$as_ac_var=no"
5852 fi
5853
5854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5855 conftest$ac_exeext conftest.$ac_ext
5856 fi
5857 ac_res=`eval echo '${'$as_ac_var'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_var'}'` = yes; then
5861 cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5863 _ACEOF
5864
5865 fi
5866 done
5867
5868
5869 needsnprintf=no
5870
5871
5872 for ac_func in vsnprintf snprintf
5873 do
5874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5888 #define $ac_func innocuous_$ac_func
5889
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func (); below.
5892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893 <limits.h> exists even on freestanding compilers. */
5894
5895 #ifdef __STDC__
5896 # include <limits.h>
5897 #else
5898 # include <assert.h>
5899 #endif
5900
5901 #undef $ac_func
5902
5903 /* Override any GCC internal prototype to avoid an error.
5904 Use char because int might match the return type of a GCC
5905 builtin and then its argument prototype would still apply. */
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 char $ac_func ();
5910 /* The GNU C library defines this for functions which it implements
5911 to always fail with ENOSYS. Some functions are actually named
5912 something starting with __ and the normal name is an alias. */
5913 #if defined __stub_$ac_func || defined __stub___$ac_func
5914 choke me
5915 #endif
5916
5917 int
5918 main ()
5919 {
5920 return $ac_func ();
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest$ac_exeext &&
5942 $as_test_x conftest$ac_exeext; then
5943 eval "$as_ac_var=yes"
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 eval "$as_ac_var=no"
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext conftest.$ac_ext
5953 fi
5954 ac_res=`eval echo '${'$as_ac_var'}'`
5955 { echo "$as_me:$LINENO: result: $ac_res" >&5
5956 echo "${ECHO_T}$ac_res" >&6; }
5957 if test `eval echo '${'$as_ac_var'}'` = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5960 _ACEOF
5961
5962 else
5963 needsnprintf=yes
5964 fi
5965 done
5966
5967 if test $needsnprintf = yes; then
5968 case " $LIBOBJS " in
5969 *" snprintf.$ac_objext "* ) ;;
5970 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5971 ;;
5972 esac
5973
5974 fi
5975
5976 #
5977 # Do this before checking for ether_hostton(), as it's a
5978 # "gethostbyname() -ish function".
5979 #
5980
5981 # Most operating systems have gethostbyname() in the default searched
5982 # libraries (i.e. libc):
5983 # Some OSes (eg. Solaris) place it in libnsl
5984 # Some strange OSes (SINIX) have it in libsocket:
5985 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5986 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5987 if test "${ac_cv_search_gethostbyname+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 ac_func_search_save_LIBS=$LIBS
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 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6001 #ifdef __cplusplus
6002 extern "C"
6003 #endif
6004 char gethostbyname ();
6005 int
6006 main ()
6007 {
6008 return gethostbyname ();
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 for ac_lib in '' nsl socket resolv; do
6014 if test -z "$ac_lib"; then
6015 ac_res="none required"
6016 else
6017 ac_res=-l$ac_lib
6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6019 fi
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (ac_try="$ac_link"
6022 case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest$ac_exeext &&
6037 $as_test_x conftest$ac_exeext; then
6038 ac_cv_search_gethostbyname=$ac_res
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043
6044 fi
6045
6046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6047 conftest$ac_exeext
6048 if test "${ac_cv_search_gethostbyname+set}" = set; then
6049 break
6050 fi
6051 done
6052 if test "${ac_cv_search_gethostbyname+set}" = set; then
6053 :
6054 else
6055 ac_cv_search_gethostbyname=no
6056 fi
6057 rm conftest.$ac_ext
6058 LIBS=$ac_func_search_save_LIBS
6059 fi
6060 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6061 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6062 ac_res=$ac_cv_search_gethostbyname
6063 if test "$ac_res" != no; then
6064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6065
6066 fi
6067
6068 # Unfortunately libsocket sometimes depends on libnsl and
6069 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6070 if test "$ac_cv_search_gethostbyname" = "no"
6071 then
6072 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6073 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6074 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 ac_check_lib_save_LIBS=$LIBS
6078 LIBS="-lsocket -lnsl $LIBS"
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085
6086 /* Override any GCC internal prototype to avoid an error.
6087 Use char because int might match the return type of a GCC
6088 builtin and then its argument prototype would still apply. */
6089 #ifdef __cplusplus
6090 extern "C"
6091 #endif
6092 char gethostbyname ();
6093 int
6094 main ()
6095 {
6096 return gethostbyname ();
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (ac_try="$ac_link"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest$ac_exeext &&
6118 $as_test_x conftest$ac_exeext; then
6119 ac_cv_lib_socket_gethostbyname=yes
6120 else
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 ac_cv_lib_socket_gethostbyname=no
6125 fi
6126
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128 conftest$ac_exeext conftest.$ac_ext
6129 LIBS=$ac_check_lib_save_LIBS
6130 fi
6131 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6132 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6133 if test $ac_cv_lib_socket_gethostbyname = yes; then
6134 LIBS="-lsocket -lnsl $LIBS"
6135 fi
6136
6137 fi
6138 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6139 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6140 if test "${ac_cv_search_socket+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 ac_func_search_save_LIBS=$LIBS
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 char socket ();
6158 int
6159 main ()
6160 {
6161 return socket ();
6162 ;
6163 return 0;
6164 }
6165 _ACEOF
6166 for ac_lib in '' socket; do
6167 if test -z "$ac_lib"; then
6168 ac_res="none required"
6169 else
6170 ac_res=-l$ac_lib
6171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6172 fi
6173 rm -f conftest.$ac_objext conftest$ac_exeext
6174 if { (ac_try="$ac_link"
6175 case "(($ac_try" in
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6178 esac
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_link") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext &&
6190 $as_test_x conftest$ac_exeext; then
6191 ac_cv_search_socket=$ac_res
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196
6197 fi
6198
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200 conftest$ac_exeext
6201 if test "${ac_cv_search_socket+set}" = set; then
6202 break
6203 fi
6204 done
6205 if test "${ac_cv_search_socket+set}" = set; then
6206 :
6207 else
6208 ac_cv_search_socket=no
6209 fi
6210 rm conftest.$ac_ext
6211 LIBS=$ac_func_search_save_LIBS
6212 fi
6213 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6214 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6215 ac_res=$ac_cv_search_socket
6216 if test "$ac_res" != no; then
6217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6218
6219 else
6220 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6221 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_socket_socket+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lsocket -lnsl $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6237 #ifdef __cplusplus
6238 extern "C"
6239 #endif
6240 char socket ();
6241 int
6242 main ()
6243 {
6244 return socket ();
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest$ac_exeext &&
6266 $as_test_x conftest$ac_exeext; then
6267 ac_cv_lib_socket_socket=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_cv_lib_socket_socket=no
6273 fi
6274
6275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_check_lib_save_LIBS
6278 fi
6279 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6280 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6281 if test $ac_cv_lib_socket_socket = yes; then
6282 LIBS="-lsocket -lnsl $LIBS"
6283 fi
6284
6285 fi
6286
6287 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6288 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6289 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6290 if test "${ac_cv_search_putmsg+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 ac_func_search_save_LIBS=$LIBS
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300
6301 /* Override any GCC internal prototype to avoid an error.
6302 Use char because int might match the return type of a GCC
6303 builtin and then its argument prototype would still apply. */
6304 #ifdef __cplusplus
6305 extern "C"
6306 #endif
6307 char putmsg ();
6308 int
6309 main ()
6310 {
6311 return putmsg ();
6312 ;
6313 return 0;
6314 }
6315 _ACEOF
6316 for ac_lib in '' str; do
6317 if test -z "$ac_lib"; then
6318 ac_res="none required"
6319 else
6320 ac_res=-l$ac_lib
6321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6322 fi
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (ac_try="$ac_link"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_link") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest$ac_exeext &&
6340 $as_test_x conftest$ac_exeext; then
6341 ac_cv_search_putmsg=$ac_res
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6345
6346
6347 fi
6348
6349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6350 conftest$ac_exeext
6351 if test "${ac_cv_search_putmsg+set}" = set; then
6352 break
6353 fi
6354 done
6355 if test "${ac_cv_search_putmsg+set}" = set; then
6356 :
6357 else
6358 ac_cv_search_putmsg=no
6359 fi
6360 rm conftest.$ac_ext
6361 LIBS=$ac_func_search_save_LIBS
6362 fi
6363 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6364 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6365 ac_res=$ac_cv_search_putmsg
6366 if test "$ac_res" != no; then
6367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6368
6369 fi
6370
6371
6372
6373 #
6374 # You are in a twisty little maze of UN*Xes, all different.
6375 # Some might not have ether_hostton().
6376 # Some might have it, but not declare it in any header file.
6377 # Some might have it, but declare it in <netinet/if_ether.h>.
6378 # Some might have it, but declare it in <netinet/ether.h>
6379 # (And some might have it but document it as something declared in
6380 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6381 #
6382 # Before you is a C compiler.
6383 #
6384
6385 for ac_func in ether_hostton
6386 do
6387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h. */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define $ac_func innocuous_$ac_func
6402
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char $ac_func (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6407
6408 #ifdef __STDC__
6409 # include <limits.h>
6410 #else
6411 # include <assert.h>
6412 #endif
6413
6414 #undef $ac_func
6415
6416 /* Override any GCC internal prototype to avoid an error.
6417 Use char because int might match the return type of a GCC
6418 builtin and then its argument prototype would still apply. */
6419 #ifdef __cplusplus
6420 extern "C"
6421 #endif
6422 char $ac_func ();
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined __stub_$ac_func || defined __stub___$ac_func
6427 choke me
6428 #endif
6429
6430 int
6431 main ()
6432 {
6433 return $ac_func ();
6434 ;
6435 return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (ac_try="$ac_link"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext &&
6455 $as_test_x conftest$ac_exeext; then
6456 eval "$as_ac_var=yes"
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461 eval "$as_ac_var=no"
6462 fi
6463
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465 conftest$ac_exeext conftest.$ac_ext
6466 fi
6467 ac_res=`eval echo '${'$as_ac_var'}'`
6468 { echo "$as_me:$LINENO: result: $ac_res" >&5
6469 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_var'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6473 _ACEOF
6474
6475 fi
6476 done
6477
6478 if test "$ac_cv_func_ether_hostton" = yes; then
6479 #
6480 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6481 #
6482 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6483 #
6484 # Yes. Does it declare ether_hostton()?
6485 #
6486 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6487 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6488 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497
6498 #include <sys/types.h>
6499 #include <sys/socket.h>
6500 #include <netinet/in.h>
6501 #include <arpa/inet.h>
6502 struct mbuf;
6503 struct rtentry;
6504 #include <net/if.h>
6505 #include <netinet/if_ether.h>
6506
6507
6508 int
6509 main ()
6510 {
6511 #ifndef ether_hostton
6512 (void) ether_hostton;
6513 #endif
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6521 case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 ac_cv_have_decl_ether_hostton=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 ac_cv_have_decl_ether_hostton=no
6542 fi
6543
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6547 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6548 if test $ac_cv_have_decl_ether_hostton = yes; then
6549
6550
6551 cat >>confdefs.h <<\_ACEOF
6552 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6553 _ACEOF
6554
6555
6556 fi
6557
6558 fi
6559 #
6560 # Did that succeed?
6561 #
6562 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6563 #
6564 # No, how about <netinet/ether.h>, as on Linux?
6565 #
6566
6567 for ac_header in netinet/ether.h
6568 do
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 fi
6576 ac_res=`eval echo '${'$as_ac_Header'}'`
6577 { echo "$as_me:$LINENO: result: $ac_res" >&5
6578 echo "${ECHO_T}$ac_res" >&6; }
6579 else
6580 # Is the header compilable?
6581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 $ac_includes_default
6590 #include <$ac_header>
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_header_compiler=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_header_compiler=no
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6; }
6620
6621 # Is the header present?
6622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <$ac_header>
6631 _ACEOF
6632 if { (ac_try="$ac_cpp conftest.$ac_ext"
6633 case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636 esac
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev/null && {
6645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 }; then
6648 ac_header_preproc=yes
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 ac_header_preproc=no
6654 fi
6655
6656 rm -f conftest.err conftest.$ac_ext
6657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658 echo "${ECHO_T}$ac_header_preproc" >&6; }
6659
6660 # So? What about this header?
6661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662 yes:no: )
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc=yes
6668 ;;
6669 no:yes:* )
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6682
6683 ;;
6684 esac
6685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 eval "$as_ac_Header=\$ac_header_preproc"
6691 fi
6692 ac_res=`eval echo '${'$as_ac_Header'}'`
6693 { echo "$as_me:$LINENO: result: $ac_res" >&5
6694 echo "${ECHO_T}$ac_res" >&6; }
6695
6696 fi
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698 cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700 _ACEOF
6701
6702 fi
6703
6704 done
6705
6706 if test "$ac_cv_header_netinet_ether_h" = yes; then
6707 #
6708 # We have it - does it declare ether_hostton()?
6709 # Unset ac_cv_have_decl_ether_hostton so we don't
6710 # treat the previous failure as a cached value and
6711 # suppress the next test.
6712 #
6713 unset ac_cv_have_decl_ether_hostton
6714 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6715 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6716 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725
6726 #include <netinet/ether.h>
6727
6728
6729 int
6730 main ()
6731 {
6732 #ifndef ether_hostton
6733 (void) ether_hostton;
6734 #endif
6735
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (ac_try="$ac_compile"
6742 case "(($ac_try" in
6743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6744 *) ac_try_echo=$ac_try;;
6745 esac
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_compile") 2>conftest.er1
6748 ac_status=$?
6749 grep -v '^ *+' conftest.er1 >conftest.err
6750 rm -f conftest.er1
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } && {
6754 test -z "$ac_c_werror_flag" ||
6755 test ! -s conftest.err
6756 } && test -s conftest.$ac_objext; then
6757 ac_cv_have_decl_ether_hostton=yes
6758 else
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 ac_cv_have_decl_ether_hostton=no
6763 fi
6764
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6768 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6769 if test $ac_cv_have_decl_ether_hostton = yes; then
6770
6771
6772 cat >>confdefs.h <<\_ACEOF
6773 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6774 _ACEOF
6775
6776
6777 fi
6778
6779 fi
6780 fi
6781 #
6782 # Is ether_hostton() declared?
6783 #
6784 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6785 #
6786 # No, we'll have to declare it ourselves.
6787 # Do we have "struct ether_addr"?
6788 #
6789 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6790 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6791 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800
6801 #include <sys/types.h>
6802 #include <sys/socket.h>
6803 #include <netinet/in.h>
6804 #include <arpa/inet.h>
6805 struct mbuf;
6806 struct rtentry;
6807 #include <net/if.h>
6808 #include <netinet/if_ether.h>
6809
6810
6811 typedef struct ether_addr ac__type_new_;
6812 int
6813 main ()
6814 {
6815 if ((ac__type_new_ *) 0)
6816 return 0;
6817 if (sizeof (ac__type_new_))
6818 return 0;
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_type_struct_ether_addr=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_cv_type_struct_ether_addr=no
6846 fi
6847
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 fi
6850 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6851 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6852 if test $ac_cv_type_struct_ether_addr = yes; then
6853
6854 cat >>confdefs.h <<_ACEOF
6855 #define HAVE_STRUCT_ETHER_ADDR 1
6856 _ACEOF
6857
6858
6859 fi
6860
6861
6862 cat >>confdefs.h <<\_ACEOF
6863 #define HAVE_DECL_ETHER_HOSTTON 0
6864 _ACEOF
6865
6866 else
6867
6868 cat >>confdefs.h <<\_ACEOF
6869 #define HAVE_DECL_ETHER_HOSTTON 1
6870 _ACEOF
6871
6872 fi
6873 fi
6874
6875 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6876 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6877 # Check whether --enable-protochain was given.
6878 if test "${enable_protochain+set}" = set; then
6879 enableval=$enable_protochain;
6880 fi
6881
6882 case "x$enable_protochain" in
6883 xyes) enable_protochain=enabled ;;
6884 xno) enable_protochain=disabled ;;
6885 x) enable_protochain=enabled ;;
6886 esac
6887
6888 if test "$enable_protochain" = "disabled"; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define NO_PROTOCHAIN 1
6892 _ACEOF
6893
6894 fi
6895 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6896 echo "${ECHO_T}${enable_protochain}" >&6; }
6897
6898 #
6899 # SITA support is mutually exclusive with native capture support;
6900 # "--with-sita" selects SITA support.
6901 #
6902
6903 # Check whether --with-sita was given.
6904 if test "${with_sita+set}" = set; then
6905 withval=$with_sita;
6906 if test ! "x$withval" = "xno" ; then
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define SITA 1
6910 _ACEOF
6911
6912 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6913 echo "$as_me: Enabling SITA ACN support" >&6;}
6914 V_PCAP=sita
6915 V_FINDALLDEVS=sita
6916 fi
6917
6918 else
6919
6920 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6921 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6922 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6923 { (exit 1); exit 1; }; }
6924 fi
6925
6926 # Check whether --with-pcap was given.
6927 if test "${with_pcap+set}" = set; then
6928 withval=$with_pcap;
6929 fi
6930
6931 { echo "$as_me:$LINENO: checking packet capture type" >&5
6932 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6933 if test ! -z "$with_pcap" ; then
6934 V_PCAP="$withval"
6935 elif test -r /dev/bpf -o -h /dev/bpf ; then
6936 #
6937 # Cloning BPF device.
6938 #
6939 V_PCAP=bpf
6940
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_CLONING_BPF 1
6943 _ACEOF
6944
6945 elif test -r /dev/bpf0 ; then
6946 V_PCAP=bpf
6947 elif test -r /usr/include/net/pfilt.h ; then
6948 V_PCAP=pf
6949 elif test -r /dev/enet ; then
6950 V_PCAP=enet
6951 elif test -r /dev/nit ; then
6952 V_PCAP=snit
6953 elif test -r /usr/include/sys/net/nit.h ; then
6954 V_PCAP=nit
6955 elif test -r /usr/include/linux/socket.h ; then
6956 V_PCAP=linux
6957 elif test -r /usr/include/net/raw.h ; then
6958 V_PCAP=snoop
6959 elif test -r /usr/include/odmi.h ; then
6960 #
6961 # On AIX, the BPF devices might not yet be present - they're
6962 # created the first time libpcap runs after booting.
6963 # We check for odmi.h instead.
6964 #
6965 V_PCAP=bpf
6966 elif test -c /dev/bpf0 ; then # check again in case not readable
6967 V_PCAP=bpf
6968 elif test -r /usr/include/sys/dlpi.h ; then
6969 V_PCAP=dlpi
6970 elif test -c /dev/enet ; then # check again in case not readable
6971 V_PCAP=enet
6972 elif test -c /dev/nit ; then # check again in case not readable
6973 V_PCAP=snit
6974 else
6975 V_PCAP=null
6976 fi
6977 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
6978 echo "${ECHO_T}$V_PCAP" >&6; }
6979
6980 #
6981 # Do capture-mechanism-dependent tests.
6982 #
6983 case "$V_PCAP" in
6984 dlpi)
6985 #
6986 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6987 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6988 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6989 # private version also existed, which did not have the same APIs.
6990 # Due to a gcc bug, the default search path for 32-bit libraries does
6991 # not include /lib, we add it explicitly here.
6992 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6993 # Also, due to the bug above applications that link to libpcap with
6994 # libdlpi will have to add "-L/lib" option to "configure".
6995 #
6996 saved_ldflags=$LDFLAGS
6997 LDFLAGS="$LIBS -L/lib"
6998 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6999 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
7000 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 ac_check_lib_save_LIBS=$LIBS
7004 LIBS="-ldlpi $LIBS"
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h. */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011
7012 /* Override any GCC internal prototype to avoid an error.
7013 Use char because int might match the return type of a GCC
7014 builtin and then its argument prototype would still apply. */
7015 #ifdef __cplusplus
7016 extern "C"
7017 #endif
7018 char dlpi_walk ();
7019 int
7020 main ()
7021 {
7022 return dlpi_walk ();
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (ac_try="$ac_link"
7029 case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7032 esac
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_link") 2>conftest.er1
7035 ac_status=$?
7036 grep -v '^ *+' conftest.er1 >conftest.err
7037 rm -f conftest.er1
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest$ac_exeext &&
7044 $as_test_x conftest$ac_exeext; then
7045 ac_cv_lib_dlpi_dlpi_walk=yes
7046 else
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ac_cv_lib_dlpi_dlpi_walk=no
7051 fi
7052
7053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7054 conftest$ac_exeext conftest.$ac_ext
7055 LIBS=$ac_check_lib_save_LIBS
7056 fi
7057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7058 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7059 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7060 LIBS="-ldlpi $LIBS"
7061 V_PCAP=libdlpi
7062
7063 cat >>confdefs.h <<\_ACEOF
7064 #define HAVE_LIBDLPI 1
7065 _ACEOF
7066
7067 else
7068 V_PCAP=dlpi
7069 fi
7070
7071 LDFLAGS=$saved_ldflags
7072
7073 #
7074 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7075 # versions of DLPI.
7076 #
7077 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7078 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7079 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088
7089 #include <sys/types.h>
7090 #include <sys/time.h>
7091 #include <sys/dlpi.h>
7092
7093 int
7094 main ()
7095 {
7096 int i = DL_PROMISC_PHYS;
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7103 case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106 esac
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7118 ac_cv_sys_dlpi_usable=yes
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 ac_cv_sys_dlpi_usable=no
7124 fi
7125
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 fi
7128
7129 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7130 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7131 if test $ac_cv_sys_dlpi_usable = no ; then
7132 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7133 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7134 { (exit 1); exit 1; }; }
7135 fi
7136
7137 #
7138 # Check whether we have a /dev/dlpi device or have multiple devices.
7139 #
7140 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7141 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7142 if test -c /dev/dlpi ; then
7143 { echo "$as_me:$LINENO: result: yes" >&5
7144 echo "${ECHO_T}yes" >&6; }
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_DEV_DLPI 1
7148 _ACEOF
7149
7150 else
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 dir="/dev/dlpi"
7154 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7155 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7156 if test -d $dir ; then
7157 { echo "$as_me:$LINENO: result: yes" >&5
7158 echo "${ECHO_T}yes" >&6; }
7159
7160 cat >>confdefs.h <<_ACEOF
7161 #define PCAP_DEV_PREFIX "$dir"
7162 _ACEOF
7163
7164 else
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7167 fi
7168 fi
7169
7170 #
7171 # This check is for Solaris with DLPI support for passive modes.
7172 # See dlpi(7P) for more details.
7173 #
7174 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7175 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7176 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185
7186 # include <sys/types.h>
7187 # include <sys/dlpi.h>
7188 int
7189 main ()
7190 {
7191 u_int i = sizeof(dl_passive_req_t)
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_lbl_has_dl_passive_req_t=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 ac_cv_lbl_has_dl_passive_req_t=no
7219 fi
7220
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 fi
7223
7224 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7225 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7226 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7227
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_DLPI_PASSIVE 1
7230 _ACEOF
7231
7232 fi
7233 ;;
7234
7235 linux)
7236 #
7237 # Do we have the wireless extensions?
7238 #
7239
7240 for ac_header in linux/wireless.h
7241 do
7242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254
7255 #include <sys/socket.h>
7256 #include <linux/if.h>
7257 #include <linux/types.h>
7258
7259
7260 #include <$ac_header>
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267 esac
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_compile") 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest.$ac_objext; then
7279 eval "$as_ac_Header=yes"
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 eval "$as_ac_Header=no"
7285 fi
7286
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 fi
7289 ac_res=`eval echo '${'$as_ac_Header'}'`
7290 { echo "$as_me:$LINENO: result: $ac_res" >&5
7291 echo "${ECHO_T}$ac_res" >&6; }
7292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 _ACEOF
7296
7297 fi
7298
7299 done
7300
7301
7302 #
7303 # Do we have libnl?
7304 #
7305
7306 # Check whether --with-libnl was given.
7307 if test "${with_libnl+set}" = set; then
7308 withval=$with_libnl; with_libnl=$withval
7309 fi
7310
7311
7312 if test x$with_libnl != xno ; then
7313 #
7314 # Try libnl 2.x first.
7315 #
7316 { echo "$as_me:$LINENO: checking for nl_socket_alloc in -lnl" >&5
7317 echo $ECHO_N "checking for nl_socket_alloc in -lnl... $ECHO_C" >&6; }
7318 if test "${ac_cv_lib_nl_nl_socket_alloc+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321 ac_check_lib_save_LIBS=$LIBS
7322 LIBS="-lnl $LIBS"
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329
7330 /* Override any GCC internal prototype to avoid an error.
7331 Use char because int might match the return type of a GCC
7332 builtin and then its argument prototype would still apply. */
7333 #ifdef __cplusplus
7334 extern "C"
7335 #endif
7336 char nl_socket_alloc ();
7337 int
7338 main ()
7339 {
7340 return nl_socket_alloc ();
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (ac_try="$ac_link"
7347 case "(($ac_try" in
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7350 esac
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_link") 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest$ac_exeext &&
7362 $as_test_x conftest$ac_exeext; then
7363 ac_cv_lib_nl_nl_socket_alloc=yes
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_cv_lib_nl_nl_socket_alloc=no
7369 fi
7370
7371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7372 conftest$ac_exeext conftest.$ac_ext
7373 LIBS=$ac_check_lib_save_LIBS
7374 fi
7375 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_socket_alloc" >&5
7376 echo "${ECHO_T}$ac_cv_lib_nl_nl_socket_alloc" >&6; }
7377 if test $ac_cv_lib_nl_nl_socket_alloc = yes; then
7378
7379 #
7380 # Yes, we have libnl 2.x.
7381 #
7382 LIBS="-lnl-genl -lnl $LIBS"
7383
7384 cat >>confdefs.h <<\_ACEOF
7385 #define HAVE_LIBNL 1
7386 _ACEOF
7387
7388
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_LIBNL_2_x 1
7391 _ACEOF
7392
7393
7394 else
7395
7396 #
7397 # No, we don't; do we have libnl 1.x?
7398 #
7399 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7400 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7401 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 ac_check_lib_save_LIBS=$LIBS
7405 LIBS="-lnl $LIBS"
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412
7413 /* Override any GCC internal prototype to avoid an error.
7414 Use char because int might match the return type of a GCC
7415 builtin and then its argument prototype would still apply. */
7416 #ifdef __cplusplus
7417 extern "C"
7418 #endif
7419 char nl_handle_alloc ();
7420 int
7421 main ()
7422 {
7423 return nl_handle_alloc ();
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (ac_try="$ac_link"
7430 case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_link") 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest$ac_exeext &&
7445 $as_test_x conftest$ac_exeext; then
7446 ac_cv_lib_nl_nl_handle_alloc=yes
7447 else
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451 ac_cv_lib_nl_nl_handle_alloc=no
7452 fi
7453
7454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7455 conftest$ac_exeext conftest.$ac_ext
7456 LIBS=$ac_check_lib_save_LIBS
7457 fi
7458 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7459 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7460 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7461
7462 #
7463 # Yes.
7464 #
7465 LIBS="-lnl $LIBS"
7466
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_LIBNL 1
7469 _ACEOF
7470
7471
7472 else
7473
7474 #
7475 # No, we don't have libnl at all.
7476 #
7477 if test x$with_libnl = xyes ; then
7478 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7479 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7480 { (exit 1); exit 1; }; }
7481 fi
7482
7483 fi
7484
7485
7486 fi
7487
7488 fi
7489
7490
7491 for ac_header in linux/ethtool.h
7492 do
7493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 fi
7500 ac_res=`eval echo '${'$as_ac_Header'}'`
7501 { echo "$as_me:$LINENO: result: $ac_res" >&5
7502 echo "${ECHO_T}$ac_res" >&6; }
7503 else
7504 # Is the header compilable?
7505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 #include <$ac_header>
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (ac_try="$ac_compile"
7518 case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521 esac
7522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7533 ac_header_compiler=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 ac_header_compiler=no
7539 fi
7540
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7543 echo "${ECHO_T}$ac_header_compiler" >&6; }
7544
7545 # Is the header present?
7546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <$ac_header>
7555 _ACEOF
7556 if { (ac_try="$ac_cpp conftest.$ac_ext"
7557 case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7560 esac
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } >/dev/null && {
7569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 }; then
7572 ac_header_preproc=yes
7573 else
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 ac_header_preproc=no
7578 fi
7579
7580 rm -f conftest.err conftest.$ac_ext
7581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6; }
7583
7584 # So? What about this header?
7585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7586 yes:no: )
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7591 ac_header_preproc=yes
7592 ;;
7593 no:yes:* )
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7606
7607 ;;
7608 esac
7609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 eval "$as_ac_Header=\$ac_header_preproc"
7615 fi
7616 ac_res=`eval echo '${'$as_ac_Header'}'`
7617 { echo "$as_me:$LINENO: result: $ac_res" >&5
7618 echo "${ECHO_T}$ac_res" >&6; }
7619
7620 fi
7621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7622 cat >>confdefs.h <<_ACEOF
7623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 _ACEOF
7625
7626 fi
7627
7628 done
7629
7630 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7631 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7632 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641
7642 # include <linux/if_packet.h>
7643 int
7644 main ()
7645 {
7646 struct tpacket_stats stats
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7653 case "(($ac_try" in
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7656 esac
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_compile") 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && {
7665 test -z "$ac_c_werror_flag" ||
7666 test ! -s conftest.err
7667 } && test -s conftest.$ac_objext; then
7668 ac_cv_lbl_tpacket_stats=yes
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 ac_cv_lbl_tpacket_stats=no
7674 fi
7675
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 fi
7678
7679 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7680 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7681 if test $ac_cv_lbl_tpacket_stats = yes; then
7682
7683 cat >>confdefs.h <<\_ACEOF
7684 #define HAVE_TPACKET_STATS 1
7685 _ACEOF
7686
7687 fi
7688 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7689 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7690 if test "${ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699
7700 # include <sys/types.h>
7701 # include <linux/if_packet.h>
7702 int
7703 main ()
7704 {
7705 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7728 else
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7733 fi
7734
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737
7738 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7739 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7740 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7741 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7742
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7746 _ACEOF
7747
7748 fi
7749 ;;
7750
7751 bpf)
7752 #
7753 # Check whether we have the *BSD-style ioctls.
7754 #
7755
7756 for ac_header in net/if_media.h
7757 do
7758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 fi
7765 ac_res=`eval echo '${'$as_ac_Header'}'`
7766 { echo "$as_me:$LINENO: result: $ac_res" >&5
7767 echo "${ECHO_T}$ac_res" >&6; }
7768 else
7769 # Is the header compilable?
7770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 $ac_includes_default
7779 #include <$ac_header>
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (ac_try="$ac_compile"
7783 case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7798 ac_header_compiler=yes
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ac_header_compiler=no
7804 fi
7805
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7808 echo "${ECHO_T}$ac_header_compiler" >&6; }
7809
7810 # Is the header present?
7811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <$ac_header>
7820 _ACEOF
7821 if { (ac_try="$ac_cpp conftest.$ac_ext"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } >/dev/null && {
7834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 }; then
7837 ac_header_preproc=yes
7838 else
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_header_preproc=no
7843 fi
7844
7845 rm -f conftest.err conftest.$ac_ext
7846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7847 echo "${ECHO_T}$ac_header_preproc" >&6; }
7848
7849 # So? What about this header?
7850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7851 yes:no: )
7852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7856 ac_header_preproc=yes
7857 ;;
7858 no:yes:* )
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7871
7872 ;;
7873 esac
7874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879 eval "$as_ac_Header=\$ac_header_preproc"
7880 fi
7881 ac_res=`eval echo '${'$as_ac_Header'}'`
7882 { echo "$as_me:$LINENO: result: $ac_res" >&5
7883 echo "${ECHO_T}$ac_res" >&6; }
7884
7885 fi
7886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887 cat >>confdefs.h <<_ACEOF
7888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889 _ACEOF
7890
7891 fi
7892
7893 done
7894
7895
7896 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7897 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <sys/socket.h>
7905 #include <sys/ioctl.h>
7906 #include <net/if.h>
7907 #include <net/bpf.h>
7908 int
7909 main ()
7910 {
7911 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7912 ;
7913 return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7918 case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7933
7934 { echo "$as_me:$LINENO: result: yes" >&5
7935 echo "${ECHO_T}yes" >&6; }
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define HAVE_ZEROCOPY_BPF 1
7939 _ACEOF
7940
7941
7942 else
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 { echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6; }
7948 fi
7949
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951
7952 #
7953 # Check whether we have struct BPF_TIMEVAL.
7954 #
7955 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
7956 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
7957 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966
7967 #include <sys/types.h>
7968 #include <sys/ioctl.h>
7969 #ifdef HAVE_SYS_IOCCOM_H
7970 #include <sys/ioccom.h>
7971 #endif
7972 #include <net/bpf.h>
7973
7974
7975 typedef struct BPF_TIMEVAL ac__type_new_;
7976 int
7977 main ()
7978 {
7979 if ((ac__type_new_ *) 0)
7980 return 0;
7981 if (sizeof (ac__type_new_))
7982 return 0;
7983 ;
7984 return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 ac_cv_type_struct_BPF_TIMEVAL=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ac_cv_type_struct_BPF_TIMEVAL=no
8010 fi
8011
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 fi
8014 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
8015 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
8016 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
8017
8018 cat >>confdefs.h <<_ACEOF
8019 #define HAVE_STRUCT_BPF_TIMEVAL 1
8020 _ACEOF
8021
8022
8023 fi
8024
8025 ;;
8026
8027 dag)
8028 V_DEFS="$V_DEFS -DDAG_ONLY"
8029 ;;
8030
8031 septel)
8032 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
8033 ;;
8034
8035 snf)
8036 V_DEFS="$V_DEFS -DSNF_ONLY"
8037 ;;
8038
8039 null)
8040 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
8041 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
8043 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
8044 ;;
8045 esac
8046
8047 if test "$V_PCAP" = null
8048 then
8049 #
8050 # We can't capture, so we can't open any capture
8051 # devices, so we won't return any interfaces.
8052 #
8053 V_FINDALLDEVS=null
8054 else
8055 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
8056 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
8057 if test "${ac_cv_func_getifaddrs+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
8067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8068 #define getifaddrs innocuous_getifaddrs
8069
8070 /* System header to define __stub macros and hopefully few prototypes,
8071 which can conflict with char getifaddrs (); below.
8072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8073 <limits.h> exists even on freestanding compilers. */
8074
8075 #ifdef __STDC__
8076 # include <limits.h>
8077 #else
8078 # include <assert.h>
8079 #endif
8080
8081 #undef getifaddrs
8082
8083 /* Override any GCC internal prototype to avoid an error.
8084 Use char because int might match the return type of a GCC
8085 builtin and then its argument prototype would still apply. */
8086 #ifdef __cplusplus
8087 extern "C"
8088 #endif
8089 char getifaddrs ();
8090 /* The GNU C library defines this for functions which it implements
8091 to always fail with ENOSYS. Some functions are actually named
8092 something starting with __ and the normal name is an alias. */
8093 #if defined __stub_getifaddrs || defined __stub___getifaddrs
8094 choke me
8095 #endif
8096
8097 int
8098 main ()
8099 {
8100 return getifaddrs ();
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (ac_try="$ac_link"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_link") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest$ac_exeext &&
8122 $as_test_x conftest$ac_exeext; then
8123 ac_cv_func_getifaddrs=yes
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ac_cv_func_getifaddrs=no
8129 fi
8130
8131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8132 conftest$ac_exeext conftest.$ac_ext
8133 fi
8134 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
8135 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
8136 if test $ac_cv_func_getifaddrs = yes; then
8137
8138 #
8139 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
8140 # as well, just in case some platform is really weird.
8141 #
8142 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8143 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8144 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8145 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 fi
8148 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8149 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8150 else
8151 # Is the header compilable?
8152 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
8153 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8161 #include <ifaddrs.h>
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8165 case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest.$ac_objext; then
8180 ac_header_compiler=yes
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ac_header_compiler=no
8186 fi
8187
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8190 echo "${ECHO_T}$ac_header_compiler" >&6; }
8191
8192 # Is the header present?
8193 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
8194 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
8195 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h. */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 #include <ifaddrs.h>
8202 _ACEOF
8203 if { (ac_try="$ac_cpp conftest.$ac_ext"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } >/dev/null && {
8216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 }; then
8219 ac_header_preproc=yes
8220 else
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 ac_header_preproc=no
8225 fi
8226
8227 rm -f conftest.err conftest.$ac_ext
8228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8229 echo "${ECHO_T}$ac_header_preproc" >&6; }
8230
8231 # So? What about this header?
8232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8233 yes:no: )
8234 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
8235 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8236 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
8237 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
8238 ac_header_preproc=yes
8239 ;;
8240 no:yes:* )
8241 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
8242 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
8243 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
8244 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
8245 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
8246 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
8248 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
8250 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
8251 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
8252 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
8253
8254 ;;
8255 esac
8256 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8257 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8258 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 ac_cv_header_ifaddrs_h=$ac_header_preproc
8262 fi
8263 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8264 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8265
8266 fi
8267 if test $ac_cv_header_ifaddrs_h = yes; then
8268
8269 #
8270 # We have the header, so we use "getifaddrs()" to
8271 # get the list of interfaces.
8272 #
8273 V_FINDALLDEVS=getad
8274
8275 else
8276
8277 #
8278 # We don't have the header - give up.
8279 # XXX - we could also fall back on some other
8280 # mechanism, but, for now, this'll catch this
8281 # problem so that we can at least try to figure
8282 # out something to do on systems with "getifaddrs()"
8283 # but without "ifaddrs.h", if there is something
8284 # we can do on those systems.
8285 #
8286 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8287 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8288 { (exit 1); exit 1; }; }
8289
8290 fi
8291
8292
8293
8294 else
8295
8296 #
8297 # Well, we don't have "getifaddrs()", so we have to use
8298 # some other mechanism; determine what that mechanism is.
8299 #
8300 # The first thing we use is the type of capture mechanism,
8301 # which is somewhat of a proxy for the OS we're using.
8302 #
8303 case "$V_PCAP" in
8304
8305 dlpi|libdlpi)
8306
8307
8308 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8309 do
8310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 fi
8317 ac_res=`eval echo '${'$as_ac_Header'}'`
8318 { echo "$as_me:$LINENO: result: $ac_res" >&5
8319 echo "${ECHO_T}$ac_res" >&6; }
8320 else
8321 # Is the header compilable?
8322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8324 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8331 #include <$ac_header>
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.$ac_objext; then
8350 ac_header_compiler=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 ac_header_compiler=no
8356 fi
8357
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8360 echo "${ECHO_T}$ac_header_compiler" >&6; }
8361
8362 # Is the header present?
8363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 #include <$ac_header>
8372 _ACEOF
8373 if { (ac_try="$ac_cpp conftest.$ac_ext"
8374 case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } >/dev/null && {
8386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8387 test ! -s conftest.err
8388 }; then
8389 ac_header_preproc=yes
8390 else
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 ac_header_preproc=no
8395 fi
8396
8397 rm -f conftest.err conftest.$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399 echo "${ECHO_T}$ac_header_preproc" >&6; }
8400
8401 # So? What about this header?
8402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8403 yes:no: )
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8408 ac_header_preproc=yes
8409 ;;
8410 no:yes:* )
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8423
8424 ;;
8425 esac
8426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431 eval "$as_ac_Header=\$ac_header_preproc"
8432 fi
8433 ac_res=`eval echo '${'$as_ac_Header'}'`
8434 { echo "$as_me:$LINENO: result: $ac_res" >&5
8435 echo "${ECHO_T}$ac_res" >&6; }
8436
8437 fi
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8441 _ACEOF
8442
8443 fi
8444
8445 done
8446
8447 #
8448 # This might be Solaris 8 or later, with
8449 # SIOCGLIFCONF, or it might be some other OS
8450 # or some older version of Solaris, with
8451 # just SIOCGIFCONF.
8452 #
8453 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8454 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8455 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 #include <sys/param.h>
8465 #include <sys/file.h>
8466 #include <sys/ioctl.h>
8467 #include <sys/socket.h>
8468 #include <sys/sockio.h>
8469 int
8470 main ()
8471 {
8472 ioctl(0, SIOCGLIFCONF, (char *)0);
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.$ac_objext; then
8494 ac_cv_lbl_have_siocglifconf=yes
8495 else
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499 ac_cv_lbl_have_siocglifconf=no
8500 fi
8501
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504
8505 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8506 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8507 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8508 V_FINDALLDEVS=glifc
8509 else
8510 V_FINDALLDEVS=gifc
8511 fi
8512 #
8513 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8514 #
8515 SSRC="dlpisubs.c"
8516 ;;
8517
8518 *)
8519 #
8520 # Assume we just have SIOCGIFCONF.
8521 # (XXX - on at least later Linux kernels, there's
8522 # another mechanism, and we should be using that
8523 # instead.)
8524 #
8525 V_FINDALLDEVS=gifc
8526 ;;
8527 esac
8528 fi
8529
8530 fi
8531
8532 fi
8533
8534
8535 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8536 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543
8544 #include <sys/types.h>
8545 #include <sys/socket.h>
8546
8547 int
8548 main ()
8549 {
8550 socklen_t x;
8551 ;
8552 return 0;
8553 }
8554 _ACEOF
8555 rm -f conftest.$ac_objext
8556 if { (ac_try="$ac_compile"
8557 case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560 esac
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 have_socklen_t=yes
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 have_socklen_t=no
8578 fi
8579
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 if test "x$have_socklen_t" = "xyes"; then
8582
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_SOCKLEN_T 1
8585 _ACEOF
8586
8587 fi
8588 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8589 echo "${ECHO_T}$have_socklen_t" >&6; }
8590
8591 # Check whether --enable-ipv6 was given.
8592 if test "${enable_ipv6+set}" = set; then
8593 enableval=$enable_ipv6;
8594 else
8595 enable_ipv6=ifavailable
8596 fi
8597
8598 if test "$enable_ipv6" != "no"; then
8599 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8600 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8601 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8612 #define getaddrinfo innocuous_getaddrinfo
8613
8614 /* System header to define __stub macros and hopefully few prototypes,
8615 which can conflict with char getaddrinfo (); below.
8616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8617 <limits.h> exists even on freestanding compilers. */
8618
8619 #ifdef __STDC__
8620 # include <limits.h>
8621 #else
8622 # include <assert.h>
8623 #endif
8624
8625 #undef getaddrinfo
8626
8627 /* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 char getaddrinfo ();
8634 /* The GNU C library defines this for functions which it implements
8635 to always fail with ENOSYS. Some functions are actually named
8636 something starting with __ and the normal name is an alias. */
8637 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8638 choke me
8639 #endif
8640
8641 int
8642 main ()
8643 {
8644 return getaddrinfo ();
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext conftest$ac_exeext
8650 if { (ac_try="$ac_link"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_link") 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest$ac_exeext &&
8666 $as_test_x conftest$ac_exeext; then
8667 ac_cv_func_getaddrinfo=yes
8668 else
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_cv_func_getaddrinfo=no
8673 fi
8674
8675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext
8677 fi
8678 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8679 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8680 if test $ac_cv_func_getaddrinfo = yes; then
8681
8682
8683 cat >>confdefs.h <<\_ACEOF
8684 #define INET6 1
8685 _ACEOF
8686
8687
8688 else
8689
8690 if test "$enable_ipv6" != "ifavailable"; then
8691 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8692 See \`config.log' for more details." >&5
8693 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8694 See \`config.log' for more details." >&2;}
8695 { (exit 1); exit 1; }; }
8696 fi
8697
8698 fi
8699
8700 fi
8701
8702 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8703 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8704 # Check whether --enable-optimizer-dbg was given.
8705 if test "${enable_optimizer_dbg+set}" = set; then
8706 enableval=$enable_optimizer_dbg;
8707 fi
8708
8709 if test "$enable_optimizer_dbg" = "yes"; then
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define BDEBUG 1
8713 _ACEOF
8714
8715 fi
8716 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8717 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8718
8719 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8720 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8721 # Check whether --enable-yydebug was given.
8722 if test "${enable_yydebug+set}" = set; then
8723 enableval=$enable_yydebug;
8724 fi
8725
8726 if test "$enable_yydebug" = "yes"; then
8727
8728 cat >>confdefs.h <<\_ACEOF
8729 #define YYDEBUG 1
8730 _ACEOF
8731
8732 fi
8733 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8734 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8735
8736 # Check for Endace DAG card support.
8737
8738 # Check whether --with-dag was given.
8739 if test "${with_dag+set}" = set; then
8740 withval=$with_dag;
8741 if test "$withval" = no
8742 then
8743 # User doesn't want DAG support.
8744 want_dag=no
8745 elif test "$withval" = yes
8746 then
8747 # User wants DAG support but hasn't specified a directory.
8748 want_dag=yes
8749 else
8750 # User wants DAG support and has specified a directory, so use the provided value.
8751 want_dag=yes
8752 dag_root=$withval
8753 fi
8754
8755 else
8756
8757 #
8758 # Use DAG API if present, otherwise don't
8759 #
8760 want_dag=ifpresent
8761
8762 fi
8763
8764
8765
8766 # Check whether --with-dag-includes was given.
8767 if test "${with_dag_includes+set}" = set; then
8768 withval=$with_dag_includes;
8769 # User wants DAG support and has specified a header directory, so use the provided value.
8770 want_dag=yes
8771 dag_include_dir=$withval
8772
8773 fi
8774
8775
8776
8777 # Check whether --with-dag-libraries was given.
8778 if test "${with_dag_libraries+set}" = set; then
8779 withval=$with_dag_libraries;
8780 # User wants DAG support and has specified a library directory, so use the provided value.
8781 want_dag=yes
8782 dag_lib_dir=$withval
8783
8784 fi
8785
8786
8787 case "$V_PCAP" in
8788 linux|bpf|dag)
8789 #
8790 # We support the DAG API if we're on Linux or BSD, or if we're
8791 # building a DAG-only libpcap.
8792 #
8793 ;;
8794 *)
8795 #
8796 # If the user explicitly requested DAG, tell them it's not
8797 # supported.
8798 #
8799 # If they expressed no preference, don't include it.
8800 #
8801 if test $want_dag = yes; then
8802 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
8803 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
8804 { (exit 1); exit 1; }; }
8805 elif test $want_dag = yes; then
8806 want_dag=no
8807 fi
8808 ;;
8809 esac
8810
8811 ac_cv_lbl_dag_api=no
8812 if test "$want_dag" != no; then
8813
8814 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
8815 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
8816
8817 # If necessary, set default paths for DAG API headers and libraries.
8818 if test -z "$dag_root"; then
8819 dag_root=/usr/local
8820 fi
8821
8822 if test -z "$dag_include_dir"; then
8823 dag_include_dir="$dag_root/include"
8824 fi
8825
8826 if test -z "$dag_lib_dir"; then
8827 dag_lib_dir="$dag_root/lib"
8828 fi
8829
8830 if test -z "$dag_tools_dir"; then
8831 dag_tools_dir="$dag_root/tools"
8832 fi
8833
8834 if test -r $dag_include_dir/dagapi.h; then
8835 ac_cv_lbl_dag_api=yes
8836 fi
8837 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8838 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8839 fi
8840
8841 if test $ac_cv_lbl_dag_api = yes; then
8842 V_INCLS="$V_INCLS -I$dag_include_dir"
8843
8844 if test $V_PCAP != dag ; then
8845 SSRC="pcap-dag.c"
8846 fi
8847
8848 # See if we can find a general version string.
8849 # Don't need to save and restore LIBS to prevent -ldag being
8850 # included if there's a found-action (arg 3).
8851 saved_ldflags=$LDFLAGS
8852 LDFLAGS="-L$dag_lib_dir"
8853 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8854 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8855 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 ac_check_lib_save_LIBS=$LIBS
8859 LIBS="-ldag $LIBS"
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h. */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8866
8867 /* Override any GCC internal prototype to avoid an error.
8868 Use char because int might match the return type of a GCC
8869 builtin and then its argument prototype would still apply. */
8870 #ifdef __cplusplus
8871 extern "C"
8872 #endif
8873 char dag_attach_stream ();
8874 int
8875 main ()
8876 {
8877 return dag_attach_stream ();
8878 ;
8879 return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8884 case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_link") 2>conftest.er1
8890 ac_status=$?
8891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && {
8896 test -z "$ac_c_werror_flag" ||
8897 test ! -s conftest.err
8898 } && test -s conftest$ac_exeext &&
8899 $as_test_x conftest$ac_exeext; then
8900 ac_cv_lib_dag_dag_attach_stream=yes
8901 else
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 ac_cv_lib_dag_dag_attach_stream=no
8906 fi
8907
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909 conftest$ac_exeext conftest.$ac_ext
8910 LIBS=$ac_check_lib_save_LIBS
8911 fi
8912 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8913 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8914 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8915 dag_streams="1"
8916 else
8917 dag_streams="0"
8918 fi
8919
8920 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8921 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8922 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 ac_check_lib_save_LIBS=$LIBS
8926 LIBS="-ldag $LIBS"
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h. */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char dag_get_erf_types ();
8941 int
8942 main ()
8943 {
8944 return dag_get_erf_types ();
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (ac_try="$ac_link"
8951 case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_link") 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } && {
8963 test -z "$ac_c_werror_flag" ||
8964 test ! -s conftest.err
8965 } && test -s conftest$ac_exeext &&
8966 $as_test_x conftest$ac_exeext; then
8967 ac_cv_lib_dag_dag_get_erf_types=yes
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_cv_lib_dag_dag_get_erf_types=no
8973 fi
8974
8975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8976 conftest$ac_exeext conftest.$ac_ext
8977 LIBS=$ac_check_lib_save_LIBS
8978 fi
8979 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8980 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8981 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8982
8983
8984 cat >>confdefs.h <<\_ACEOF
8985 #define HAVE_DAG_GET_ERF_TYPES 1
8986 _ACEOF
8987
8988 fi
8989
8990 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8991 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8992 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-ldag $LIBS"
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char dag_get_stream_erf_types ();
9011 int
9012 main ()
9013 {
9014 return dag_get_stream_erf_types ();
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9021 case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_link") 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } && {
9033 test -z "$ac_c_werror_flag" ||
9034 test ! -s conftest.err
9035 } && test -s conftest$ac_exeext &&
9036 $as_test_x conftest$ac_exeext; then
9037 ac_cv_lib_dag_dag_get_stream_erf_types=yes
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 ac_cv_lib_dag_dag_get_stream_erf_types=no
9043 fi
9044
9045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9046 conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_check_lib_save_LIBS
9048 fi
9049 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
9050 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
9051 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
9052
9053
9054 cat >>confdefs.h <<\_ACEOF
9055 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
9056 _ACEOF
9057
9058 fi
9059
9060
9061 LDFLAGS=$saved_ldflags
9062
9063 if test "$dag_streams" = 1; then
9064
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_DAG_STREAMS_API 1
9067 _ACEOF
9068
9069 LIBS="$LIBS -ldag"
9070 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
9071
9072 { echo "$as_me:$LINENO: checking for vdag_set_device_info in -lvdag" >&5
9073 echo $ECHO_N "checking for vdag_set_device_info in -lvdag... $ECHO_C" >&6; }
9074 if test "${ac_cv_lib_vdag_vdag_set_device_info+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 else
9077 ac_check_lib_save_LIBS=$LIBS
9078 LIBS="-lvdag $LIBS"
9079 cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h. */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085
9086 /* Override any GCC internal prototype to avoid an error.
9087 Use char because int might match the return type of a GCC
9088 builtin and then its argument prototype would still apply. */
9089 #ifdef __cplusplus
9090 extern "C"
9091 #endif
9092 char vdag_set_device_info ();
9093 int
9094 main ()
9095 {
9096 return vdag_set_device_info ();
9097 ;
9098 return 0;
9099 }
9100 _ACEOF
9101 rm -f conftest.$ac_objext conftest$ac_exeext
9102 if { (ac_try="$ac_link"
9103 case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9106 esac
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_link") 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_c_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest$ac_exeext &&
9118 $as_test_x conftest$ac_exeext; then
9119 ac_cv_lib_vdag_vdag_set_device_info=yes
9120 else
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124 ac_cv_lib_vdag_vdag_set_device_info=no
9125 fi
9126
9127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9128 conftest$ac_exeext conftest.$ac_ext
9129 LIBS=$ac_check_lib_save_LIBS
9130 fi
9131 { echo "$as_me:$LINENO: result: $ac_cv_lib_vdag_vdag_set_device_info" >&5
9132 echo "${ECHO_T}$ac_cv_lib_vdag_vdag_set_device_info" >&6; }
9133 if test $ac_cv_lib_vdag_vdag_set_device_info = yes; then
9134 ac_dag_have_vdag="1"
9135 else
9136 ac_dag_have_vdag="0"
9137 fi
9138
9139 if test "$ac_dag_have_vdag" = 1; then
9140
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_DAG_VDAG 1
9143 _ACEOF
9144
9145 LIBS="$LIBS -lpthread"
9146 fi
9147 fi
9148
9149
9150 cat >>confdefs.h <<\_ACEOF
9151 #define HAVE_DAG_API 1
9152 _ACEOF
9153
9154 fi
9155
9156 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
9157 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
9158
9159 if test $ac_cv_lbl_dag_api = no; then
9160 { echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6; }
9162 if test "$want_dag" = yes; then
9163 # User wanted DAG support but we couldn't find it.
9164 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
9165 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
9166 { (exit 1); exit 1; }; }
9167 fi
9168
9169 if test "$V_PCAP" = dag; then
9170 # User requested "dag" capture type but the DAG API wasn't
9171 # found.
9172 { { 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
9173 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;}
9174 { (exit 1); exit 1; }; }
9175 fi
9176 else
9177 { echo "$as_me:$LINENO: result: yes" >&5
9178 echo "${ECHO_T}yes" >&6; }
9179 fi
9180
9181
9182 # Check whether --with-septel was given.
9183 if test "${with_septel+set}" = set; then
9184 withval=$with_septel;
9185 if test "$withval" = no
9186 then
9187 want_septel=no
9188 elif test "$withval" = yes
9189 then
9190 want_septel=yes
9191 septel_root=
9192 else
9193 want_septel=yes
9194 septel_root=$withval
9195 fi
9196
9197 else
9198
9199 #
9200 # Use Septel API if present, otherwise don't
9201 #
9202 want_septel=ifpresent
9203 septel_root=./../septel
9204
9205 fi
9206
9207 ac_cv_lbl_septel_api=no
9208 case "$V_PCAP" in
9209 linux|septel)
9210 #
9211 # We support the Septel API if we're on Linux, or if we're building
9212 # a Septel-only libpcap.
9213 #
9214 ;;
9215 *)
9216 #
9217 # If the user explicitly requested Septel, tell them it's not
9218 # supported.
9219 #
9220 # If they expressed no preference, don't include it.
9221 #
9222 if test $want_septel = yes; then
9223 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9224 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9225 { (exit 1); exit 1; }; }
9226 elif test $want_septel = yes; then
9227 want_septel=no
9228 fi
9229 ;;
9230 esac
9231
9232 if test "$with_septel" != no; then
9233 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9234 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9235
9236 if test -z "$septel_root"; then
9237 septel_root=$srcdir/../septel
9238 fi
9239
9240 septel_tools_dir="$septel_root"
9241 septel_include_dir="$septel_root/INC"
9242
9243 ac_cv_lbl_septel_api=no
9244 if test -r "$septel_include_dir/msg.h"; then
9245 V_INCLS="$V_INCLS -I$septel_include_dir"
9246 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"
9247 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"
9248
9249 if test "$V_PCAP" != septel ; then
9250 SSRC="pcap-septel.c"
9251 fi
9252 ac_cv_lbl_septel_api=yes
9253 fi
9254
9255 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9256 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9257 if test $ac_cv_lbl_septel_api = no; then
9258 if test "$want_septel" = yes; then
9259 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9260 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9261 { (exit 1); exit 1; }; }
9262 fi
9263 else
9264
9265 cat >>confdefs.h <<\_ACEOF
9266 #define HAVE_SEPTEL_API 1
9267 _ACEOF
9268
9269 fi
9270 fi
9271
9272 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9273 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9274 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9275 { (exit 1); exit 1; }; }
9276 fi
9277
9278 # Check for Myricom SNF support.
9279
9280 # Check whether --with-snf was given.
9281 if test "${with_snf+set}" = set; then
9282 withval=$with_snf;
9283 if test "$withval" = no
9284 then
9285 # User explicitly doesn't want SNF
9286 want_snf=no
9287 elif test "$withval" = yes
9288 then
9289 # User wants SNF support but hasn't specific a directory.
9290 want_snf=yes
9291 else
9292 # User wants SNF support with a specified directory.
9293 want_snf=yes
9294 snf_root=$withval
9295 fi
9296
9297 else
9298
9299 #
9300 # Use Sniffer API if present, otherwise don't
9301 #
9302 want_snf=ifpresent
9303
9304 fi
9305
9306
9307
9308 # Check whether --with-snf-includes was given.
9309 if test "${with_snf_includes+set}" = set; then
9310 withval=$with_snf_includes;
9311 # User wants SNF with specific header directory
9312 want_snf=yes
9313 snf_include_dir=$withval
9314
9315 fi
9316
9317
9318
9319 # Check whether --with-snf-libraries was given.
9320 if test "${with_snf_libraries+set}" = set; then
9321 withval=$with_snf_libraries;
9322 # User wants SNF with specific lib directory
9323 want_snf=yes
9324 snf_lib_dir=$withval
9325
9326 fi
9327
9328
9329 case "$V_PCAP" in
9330 bpf|linux|snf)
9331 #
9332 # We support the Sniffer API if we're on BSD, Linux, or if we're
9333 # building a Sniffer-only libpcap.
9334 #
9335 ;;
9336 *)
9337 #
9338 # If the user explicitly requested Sniffer, tell them it's not
9339 # supported.
9340 #
9341 # If they expressed no preference, don't include it.
9342 #
9343 if test $want_snf = yes; then
9344 { { echo "$as_me:$LINENO: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&5
9345 echo "$as_me: error: Myricom SNF support only available with 'bpf' 'linux' and 'snf' packet capture types" >&2;}
9346 { (exit 1); exit 1; }; }
9347 elif test $want_snf = yes; then
9348 want_snf=no
9349 fi
9350 ;;
9351 esac
9352
9353 ac_cv_lbl_snf_api=no
9354 if test "$with_snf" != no; then
9355
9356 { echo "$as_me:$LINENO: checking whether we have Myricom Sniffer API" >&5
9357 echo $ECHO_N "checking whether we have Myricom Sniffer API... $ECHO_C" >&6; }
9358
9359 if test -z "$snf_root"; then
9360 snf_root=/opt/snf
9361 fi
9362
9363 if test -z "$snf_include_dir"; then
9364 snf_include_dir="$snf_root/include"
9365 fi
9366
9367 if test -z "$snf_lib_dir"; then
9368 snf_lib_dir="$snf_root/lib"
9369 fi
9370
9371 if test -f "$snf_include_dir/snf.h"; then
9372 ac_cv_lbl_snf_api=yes
9373 fi
9374 { echo "$as_me:$LINENO: result: $ac_cv_lbl_snf_api ($snf_root)" >&5
9375 echo "${ECHO_T}$ac_cv_lbl_snf_api ($snf_root)" >&6; }
9376
9377 if test $ac_cv_lbl_snf_api = no; then
9378 if test "$want_snf" = yes; then
9379 { { echo "$as_me:$LINENO: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&5
9380 echo "$as_me: error: SNF API headers not found under $snf_include_dir; use --without-snf" >&2;}
9381 { (exit 1); exit 1; }; }
9382 fi
9383 else
9384 saved_ldflags=$LDFLAGS
9385 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9386 { echo "$as_me:$LINENO: checking for snf_init in -lsnf" >&5
9387 echo $ECHO_N "checking for snf_init in -lsnf... $ECHO_C" >&6; }
9388 if test "${ac_cv_lib_snf_snf_init+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391 ac_check_lib_save_LIBS=$LIBS
9392 LIBS="-lsnf $LIBS"
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char snf_init ();
9407 int
9408 main ()
9409 {
9410 return snf_init ();
9411 ;
9412 return 0;
9413 }
9414 _ACEOF
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (ac_try="$ac_link"
9417 case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9420 esac
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_link") 2>conftest.er1
9423 ac_status=$?
9424 grep -v '^ *+' conftest.er1 >conftest.err
9425 rm -f conftest.er1
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && {
9429 test -z "$ac_c_werror_flag" ||
9430 test ! -s conftest.err
9431 } && test -s conftest$ac_exeext &&
9432 $as_test_x conftest$ac_exeext; then
9433 ac_cv_lib_snf_snf_init=yes
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9437
9438 ac_cv_lib_snf_snf_init=no
9439 fi
9440
9441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LIBS=$ac_check_lib_save_LIBS
9444 fi
9445 { echo "$as_me:$LINENO: result: $ac_cv_lib_snf_snf_init" >&5
9446 echo "${ECHO_T}$ac_cv_lib_snf_snf_init" >&6; }
9447 if test $ac_cv_lib_snf_snf_init = yes; then
9448 ac_cv_lbl_snf_api="yes"
9449 else
9450 ac_cv_lbl_snf_api="no"
9451 fi
9452
9453 LDFLAGS="$saved_ldflags"
9454
9455 if test $ac_cv_lbl_snf_api = no; then
9456 if test "$want_snf" = yes; then
9457 { { echo "$as_me:$LINENO: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&5
9458 echo "$as_me: error: SNF API cannot correctly be linked check config.log; use --without-snf" >&2;}
9459 { (exit 1); exit 1; }; }
9460 fi
9461 else
9462 V_INCLS="$V_INCLS -I$snf_include_dir"
9463 LIBS="$LIBS -lsnf"
9464 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
9465 if test "$V_PCAP" != snf ; then
9466 SSRC="pcap-snf.c"
9467 fi
9468
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_SNF_API 1
9471 _ACEOF
9472
9473 fi
9474 fi
9475 fi
9476
9477 if test "$V_PCAP" = snf -a "$ac_cv_lbl_snf_api" = no; then
9478 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&5
9479 echo "$as_me: error: Specifying the capture type as 'snf' requires the Myricom Sniffer API to be present; use --with-snf=DIR" >&2;}
9480 { (exit 1); exit 1; }; }
9481 fi
9482
9483
9484 # Check whether --with-flex was given.
9485 if test "${with_flex+set}" = set; then
9486 withval=$with_flex;
9487 fi
9488
9489
9490 # Check whether --with-bison was given.
9491 if test "${with_bison+set}" = set; then
9492 withval=$with_bison;
9493 fi
9494
9495 if test "$with_flex" = no ; then
9496 V_LEX=lex
9497 else
9498 for ac_prog in flex
9499 do
9500 # Extract the first word of "$ac_prog", so it can be a program name with args.
9501 set dummy $ac_prog; ac_word=$2
9502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9504 if test "${ac_cv_prog_V_LEX+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507 if test -n "$V_LEX"; then
9508 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9509 else
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 for as_dir in $PATH
9512 do
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9517 ac_cv_prog_V_LEX="$ac_prog"
9518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 break 2
9520 fi
9521 done
9522 done
9523 IFS=$as_save_IFS
9524
9525 fi
9526 fi
9527 V_LEX=$ac_cv_prog_V_LEX
9528 if test -n "$V_LEX"; then
9529 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9530 echo "${ECHO_T}$V_LEX" >&6; }
9531 else
9532 { echo "$as_me:$LINENO: result: no" >&5
9533 echo "${ECHO_T}no" >&6; }
9534 fi
9535
9536
9537 test -n "$V_LEX" && break
9538 done
9539 test -n "$V_LEX" || V_LEX="lex"
9540
9541 fi
9542 if test "$V_LEX" = flex ; then
9543 # The -V flag was added in 2.4
9544 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9545 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9546 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549 if flex -V >/dev/null 2>&1; then
9550 ac_cv_lbl_flex_v24=yes
9551 else
9552 ac_cv_lbl_flex_v24=no
9553 fi
9554 fi
9555
9556 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9557 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9558 if test $ac_cv_lbl_flex_v24 = no ; then
9559 s="2.4 or higher required"
9560 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9561 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9562 V_LEX=lex
9563 fi
9564 fi
9565 if test "$with_bison" = no ; then
9566 V_YACC=yacc
9567 else
9568 for ac_prog in bison
9569 do
9570 # Extract the first word of "$ac_prog", so it can be a program name with args.
9571 set dummy $ac_prog; ac_word=$2
9572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9574 if test "${ac_cv_prog_V_YACC+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 if test -n "$V_YACC"; then
9578 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9579 else
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9582 do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_prog_V_YACC="$ac_prog"
9588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591 done
9592 done
9593 IFS=$as_save_IFS
9594
9595 fi
9596 fi
9597 V_YACC=$ac_cv_prog_V_YACC
9598 if test -n "$V_YACC"; then
9599 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9600 echo "${ECHO_T}$V_YACC" >&6; }
9601 else
9602 { echo "$as_me:$LINENO: result: no" >&5
9603 echo "${ECHO_T}no" >&6; }
9604 fi
9605
9606
9607 test -n "$V_YACC" && break
9608 done
9609 test -n "$V_YACC" || V_YACC="yacc"
9610
9611 fi
9612 if test "$V_YACC" = bison ; then
9613 V_YACC="$V_YACC -y"
9614 fi
9615 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9616 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9617 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9618 V_LEX=lex
9619 V_YACC=yacc
9620 fi
9621 if test "$V_LEX" = flex -a -n "pcap_" ; then
9622 V_LEX="$V_LEX -Ppcap_"
9623 V_YACC="$V_YACC -p pcap_"
9624 fi
9625 if test "$V_LEX" = lex ; then
9626 # Some versions of lex can't handle the definitions section of scanner.l .
9627 # Try lexing it and complain if it can't deal.
9628 { echo "$as_me:$LINENO: checking for capable lex" >&5
9629 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9630 if test "${tcpdump_cv_capable_lex+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633 if lex -t scanner.l > /dev/null 2>&1; then
9634 tcpdump_cv_capable_lex=yes
9635 else
9636 tcpdump_cv_capable_lex=insufficient
9637 fi
9638 fi
9639 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9640 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9641 if test $tcpdump_cv_capable_lex = insufficient ; then
9642 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9643 libpcap. flex is a lex replacement that has many advantages, including
9644 being able to compile libpcap. For more information, see
9645 http://www.gnu.org/software/flex/flex.html ." >&5
9646 echo "$as_me: error: Your operating system's lex is insufficient to compile
9647 libpcap. flex is a lex replacement that has many advantages, including
9648 being able to compile libpcap. For more information, see
9649 http://www.gnu.org/software/flex/flex.html ." >&2;}
9650 { (exit 1); exit 1; }; }
9651 fi
9652 fi
9653
9654 #
9655 # Assume, by default, no support for shared libraries and V7/BSD convention
9656 # for man pages (file formats in section 5, miscellaneous info in section 7).
9657 # Individual cases can override this.
9658 #
9659 DYEXT="none"
9660 MAN_FILE_FORMATS=5
9661 MAN_MISC_INFO=7
9662 case "$host_os" in
9663
9664 aix*)
9665
9666 cat >>confdefs.h <<\_ACEOF
9667 #define _SUN 1
9668 _ACEOF
9669
9670
9671 #
9672 # AIX makes it fun to build shared and static libraries,
9673 # because they're *both* ".a" archive libraries. We
9674 # build the static library for the benefit of the traditional
9675 # scheme of building libpcap and tcpdump in subdirectories of
9676 # the same directory, with tcpdump statically linked with the
9677 # libpcap in question, but we also build a shared library as
9678 # "libpcap.shareda" and install *it*, rather than the static
9679 # library, as "libpcap.a".
9680 #
9681 DYEXT="shareda"
9682
9683 case "$V_PCAP" in
9684
9685 dlpi)
9686 #
9687 # If we're using DLPI, applications will need to
9688 # use /lib/pse.exp if present, as we use the
9689 # STREAMS routines.
9690 #
9691 pseexe="/lib/pse.exp"
9692 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9693 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9694 if test -f $pseexe ; then
9695 { echo "$as_me:$LINENO: result: yes" >&5
9696 echo "${ECHO_T}yes" >&6; }
9697 LIBS="-I:$pseexe"
9698 fi
9699 ;;
9700
9701 bpf)
9702 #
9703 # If we're using BPF, we need "-lodm" and "-lcfg", as
9704 # we use them to load the BPF module.
9705 #
9706 LIBS="-lodm -lcfg"
9707 ;;
9708 esac
9709 ;;
9710
9711 darwin*)
9712 DYEXT="dylib"
9713 V_CCOPT="$V_CCOPT -fno-common"
9714 # Check whether --enable-universal was given.
9715 if test "${enable_universal+set}" = set; then
9716 enableval=$enable_universal;
9717 fi
9718
9719 if test "$enable_universal" != "no"; then
9720 case "$host_os" in
9721
9722 darwin9.*)
9723 #
9724 # Leopard. Build for 32-bit PowerPC, 64-bit
9725 # PowerPC, x86, and x86-64, with 32-bit PowerPC
9726 # first. (That's what Apple does.)
9727 #
9728 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9729 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
9730 ;;
9731
9732 darwin10.*)
9733 #
9734 # Snow Leopard. Build for x86-64, x86, and
9735 # 32-bit PowerPC, with x86-64 first. (That's
9736 # what Apple does, even though Snow Leopard
9737 # doesn't run on PPC, so PPC libpcap runs under
9738 # Rosetta, and Rosetta doesn't support BPF
9739 # ioctls, so PPC programs can't do live
9740 # captures.)
9741 #
9742 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
9743 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
9744 ;;
9745 esac
9746 fi
9747 ;;
9748
9749 hpux9*)
9750
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_HPUX9 1
9753 _ACEOF
9754
9755
9756 #
9757 # Use System V conventions for man pages.
9758 #
9759 MAN_FILE_FORMATS=4
9760 MAN_MISC_INFO=5
9761 ;;
9762
9763 hpux10.0*)
9764
9765 #
9766 # Use System V conventions for man pages.
9767 #
9768 MAN_FILE_FORMATS=4
9769 MAN_MISC_INFO=5
9770 ;;
9771
9772 hpux10.1*)
9773
9774 #
9775 # Use System V conventions for man pages.
9776 #
9777 MAN_FILE_FORMATS=4
9778 MAN_MISC_INFO=5
9779 ;;
9780
9781 hpux*)
9782
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_HPUX10_20_OR_LATER 1
9785 _ACEOF
9786
9787 if test "`uname -m`" = "ia64"; then
9788 DYEXT="so"
9789 else
9790 DYEXT="sl"
9791 fi
9792
9793 #
9794 # "-b" builds a shared library; "+h" sets the soname.
9795 #
9796 SHLIB_OPT="-b"
9797 SONAME_OPT="+h"
9798
9799 #
9800 # Use System V conventions for man pages.
9801 #
9802 MAN_FILE_FORMATS=4
9803 MAN_MISC_INFO=5
9804 ;;
9805
9806 irix*)
9807 #
9808 # Use System V conventions for man pages.
9809 #
9810 MAN_FILE_FORMATS=4
9811 MAN_MISC_INFO=5
9812 ;;
9813
9814 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9815 DYEXT="so"
9816
9817 #
9818 # Compiler assumed to be GCC; run-time linker may require a -R
9819 # flag.
9820 #
9821 if test "$libdir" != "/usr/lib"; then
9822 V_RFLAGS=-Wl,-R$libdir
9823 fi
9824 ;;
9825
9826 osf*)
9827 DYEXT="so"
9828
9829 #
9830 # Use System V conventions for man pages.
9831 #
9832 MAN_FILE_FORMATS=4
9833 MAN_MISC_INFO=5
9834 ;;
9835
9836 sinix*)
9837 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
9838 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
9839 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848
9849 int
9850 main ()
9851 {
9852 int i = sinix;
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (ac_try="$ac_compile"
9859 case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_compile") 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest.$ac_objext; then
9874 ac_cv_cc_sinix_defined=yes
9875 else
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 ac_cv_cc_sinix_defined=no
9880 fi
9881
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 fi
9884
9885 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
9886 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9887 if test $ac_cv_cc_sinix_defined = no ; then
9888
9889 cat >>confdefs.h <<\_ACEOF
9890 #define sinix 1
9891 _ACEOF
9892
9893 fi
9894 ;;
9895
9896 solaris*)
9897
9898 cat >>confdefs.h <<\_ACEOF
9899 #define HAVE_SOLARIS 1
9900 _ACEOF
9901
9902
9903 DYEXT="so"
9904 #
9905 # Use System V conventions for man pages.
9906 #
9907 MAN_FILE_FORMATS=4
9908 MAN_MISC_INFO=5
9909 ;;
9910 esac
9911
9912 if test -n "$ac_tool_prefix"; then
9913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9917 if test "${ac_cv_prog_RANLIB+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920 if test -n "$RANLIB"; then
9921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9922 else
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9925 do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9933 fi
9934 done
9935 done
9936 IFS=$as_save_IFS
9937
9938 fi
9939 fi
9940 RANLIB=$ac_cv_prog_RANLIB
9941 if test -n "$RANLIB"; then
9942 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9943 echo "${ECHO_T}$RANLIB" >&6; }
9944 else
9945 { echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6; }
9947 fi
9948
9949
9950 fi
9951 if test -z "$ac_cv_prog_RANLIB"; then
9952 ac_ct_RANLIB=$RANLIB
9953 # Extract the first word of "ranlib", so it can be a program name with args.
9954 set dummy ranlib; ac_word=$2
9955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9957 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960 if test -n "$ac_ct_RANLIB"; then
9961 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9962 else
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9965 do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_prog_ac_ct_RANLIB="ranlib"
9971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9973 fi
9974 done
9975 done
9976 IFS=$as_save_IFS
9977
9978 fi
9979 fi
9980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9981 if test -n "$ac_ct_RANLIB"; then
9982 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9983 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9984 else
9985 { echo "$as_me:$LINENO: result: no" >&5
9986 echo "${ECHO_T}no" >&6; }
9987 fi
9988
9989 if test "x$ac_ct_RANLIB" = x; then
9990 RANLIB=":"
9991 else
9992 case $cross_compiling:$ac_tool_warned in
9993 yes:)
9994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9995 whose name does not start with the host triplet. If you think this
9996 configuration is useful to you, please write to autoconf@gnu.org." >&5
9997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9998 whose name does not start with the host triplet. If you think this
9999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10000 ac_tool_warned=yes ;;
10001 esac
10002 RANLIB=$ac_ct_RANLIB
10003 fi
10004 else
10005 RANLIB="$ac_cv_prog_RANLIB"
10006 fi
10007
10008 if test -n "$ac_tool_prefix"; then
10009 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10010 set dummy ${ac_tool_prefix}ar; ac_word=$2
10011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10013 if test "${ac_cv_prog_AR+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 if test -n "$AR"; then
10017 ac_cv_prog_AR="$AR" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10021 do
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026 ac_cv_prog_AR="${ac_tool_prefix}ar"
10027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 break 2
10029 fi
10030 done
10031 done
10032 IFS=$as_save_IFS
10033
10034 fi
10035 fi
10036 AR=$ac_cv_prog_AR
10037 if test -n "$AR"; then
10038 { echo "$as_me:$LINENO: result: $AR" >&5
10039 echo "${ECHO_T}$AR" >&6; }
10040 else
10041 { echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6; }
10043 fi
10044
10045
10046 fi
10047 if test -z "$ac_cv_prog_AR"; then
10048 ac_ct_AR=$AR
10049 # Extract the first word of "ar", so it can be a program name with args.
10050 set dummy ar; ac_word=$2
10051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10053 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056 if test -n "$ac_ct_AR"; then
10057 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10061 do
10062 IFS=$as_save_IFS
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066 ac_cv_prog_ac_ct_AR="ar"
10067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 break 2
10069 fi
10070 done
10071 done
10072 IFS=$as_save_IFS
10073
10074 fi
10075 fi
10076 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10077 if test -n "$ac_ct_AR"; then
10078 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10079 echo "${ECHO_T}$ac_ct_AR" >&6; }
10080 else
10081 { echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6; }
10083 fi
10084
10085 if test "x$ac_ct_AR" = x; then
10086 AR=""
10087 else
10088 case $cross_compiling:$ac_tool_warned in
10089 yes:)
10090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10091 whose name does not start with the host triplet. If you think this
10092 configuration is useful to you, please write to autoconf@gnu.org." >&5
10093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10094 whose name does not start with the host triplet. If you think this
10095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10096 ac_tool_warned=yes ;;
10097 esac
10098 AR=$ac_ct_AR
10099 fi
10100 else
10101 AR="$ac_cv_prog_AR"
10102 fi
10103
10104
10105 rm -f os-proto.h
10106 if test "${LBL_CFLAGS+set}" = set; then
10107 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10108 fi
10109 if test -f .devel ; then
10110 if test "$GCC" = yes ; then
10111 if test "${LBL_CFLAGS+set}" != set; then
10112 if test "$ac_cv_prog_cc_g" = yes ; then
10113 V_CCOPT="-g $V_CCOPT"
10114 fi
10115 V_CCOPT="$V_CCOPT -Wall"
10116 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10117 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
10118 fi
10119 fi
10120 else
10121 case "$host_os" in
10122
10123 irix6*)
10124 V_CCOPT="$V_CCOPT -n32"
10125 ;;
10126
10127 *)
10128 ;;
10129 esac
10130 fi
10131 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10132 name="lbl/os-$os.h"
10133 if test -f $name ; then
10134 ln -s $name os-proto.h
10135
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_OS_PROTO_H 1
10138 _ACEOF
10139
10140 else
10141 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10142 echo "$as_me: WARNING: can't find $name" >&2;}
10143 fi
10144 fi
10145
10146 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
10147 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
10148 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157
10158 # include <sys/types.h>
10159 # include <sys/socket.h>
10160 int
10161 main ()
10162 {
10163 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10164 ;
10165 return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_compile") 2>conftest.er1
10176 ac_status=$?
10177 grep -v '^ *+' conftest.er1 >conftest.err
10178 rm -f conftest.er1
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } && {
10182 test -z "$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10184 } && test -s conftest.$ac_objext; then
10185 ac_cv_lbl_sockaddr_has_sa_len=yes
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10189
10190 ac_cv_lbl_sockaddr_has_sa_len=no
10191 fi
10192
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 fi
10195
10196 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10197 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
10198 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10199
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_SOCKADDR_SA_LEN 1
10202 _ACEOF
10203
10204 fi
10205
10206 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
10207 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
10208 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217
10218 # include <sys/types.h>
10219 # include <sys/socket.h>
10220 int
10221 main ()
10222 {
10223 u_int i = sizeof (struct sockaddr_storage)
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext
10229 if { (ac_try="$ac_compile"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_compile") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest.$ac_objext; then
10245 ac_cv_lbl_has_sockaddr_storage=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_lbl_has_sockaddr_storage=no
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254 fi
10255
10256 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
10257 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
10258 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
10259
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_SOCKADDR_STORAGE 1
10262 _ACEOF
10263
10264 fi
10265
10266 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
10267 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
10268 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h. */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277
10278 # include <sys/types.h>
10279 # include <sys/dlpi.h>
10280 # include <sys/dlpi_ext.h>
10281 int
10282 main ()
10283 {
10284 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
10285 ;
10286 return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (ac_try="$ac_compile"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_compile") 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest.$ac_objext; then
10306 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
10307 else
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
10312 fi
10313
10314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10315 fi
10316
10317 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
10318 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
10319 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
10320
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
10323 _ACEOF
10324
10325 fi
10326
10327 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10328 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
10329 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332 case "$host_cpu" in
10333
10334 #
10335 # These are CPU types where:
10336 #
10337 # the CPU faults on an unaligned access, but at least some
10338 # OSes that support that CPU catch the fault and simulate
10339 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10340 # the simulation is slow, so we don't want to use it;
10341 #
10342 # the CPU, I infer (from the old
10343 #
10344 # XXX: should also check that they don't do weird things (like on arm)
10345 #
10346 # comment) doesn't fault on unaligned accesses, but doesn't
10347 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10348 #
10349 # for whatever reason, the test program doesn't work
10350 # (this has been claimed to be the case for several of those
10351 # CPUs - I don't know what the problem is; the problem
10352 # was reported as "the test program dumps core" for SuperH,
10353 # but that's what the test program is *supposed* to do -
10354 # it dumps core before it writes anything, so the test
10355 # for an empty output file should find an empty output
10356 # file and conclude that unaligned accesses don't work).
10357 #
10358 # This run-time test won't work if you're cross-compiling, so
10359 # in order to support cross-compiling for a particular CPU,
10360 # we have to wire in the list of CPU types anyway, as far as
10361 # I know, so perhaps we should just have a set of CPUs on
10362 # which we know it doesn't work, a set of CPUs on which we
10363 # know it does work, and have the script just fail on other
10364 # cpu types and update it when such a failure occurs.
10365 #
10366 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
10367 ac_cv_lbl_unaligned_fail=yes
10368 ;;
10369
10370 *)
10371 cat >conftest.c <<EOF
10372 # include <sys/types.h>
10373 # include <sys/wait.h>
10374 # include <stdio.h>
10375 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10376 main() {
10377 unsigned int i;
10378 pid_t pid;
10379 int status;
10380 /* avoid "core dumped" message */
10381 pid = fork();
10382 if (pid < 0)
10383 exit(2);
10384 if (pid > 0) {
10385 /* parent */
10386 pid = waitpid(pid, &status, 0);
10387 if (pid < 0)
10388 exit(3);
10389 exit(!WIFEXITED(status));
10390 }
10391 /* child */
10392 i = *(unsigned int *)&a[1];
10393 printf("%d\n", i);
10394 exit(0);
10395 }
10396 EOF
10397 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10398 conftest.c $LIBS >/dev/null 2>&1
10399 if test ! -x conftest ; then
10400 ac_cv_lbl_unaligned_fail=yes
10401 else
10402 ./conftest >conftest.out
10403 if test ! -s conftest.out ; then
10404 ac_cv_lbl_unaligned_fail=yes
10405 else
10406 ac_cv_lbl_unaligned_fail=no
10407 fi
10408 fi
10409 rm -f -r conftest* core core.conftest
10410 ;;
10411 esac
10412 fi
10413
10414 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10415 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
10416 if test $ac_cv_lbl_unaligned_fail = yes ; then
10417
10418 cat >>confdefs.h <<\_ACEOF
10419 #define LBL_ALIGN 1
10420 _ACEOF
10421
10422 fi
10423
10424 #
10425 # Makefile.in includes rules to generate version.h, so we assume
10426 # that it will be generated if autoconf is used.
10427 #
10428
10429 cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_VERSION_H 1
10431 _ACEOF
10432
10433
10434 rm -f net
10435 ln -s ${srcdir}/bpf/net net
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
10456 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
10457 case "$host_os" in
10458 linux*)
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define PCAP_SUPPORT_USB 1
10462 _ACEOF
10463
10464 USB_SRC=pcap-usb-linux.c
10465 { echo "$as_me:$LINENO: result: yes" >&5
10466 echo "${ECHO_T}yes" >&6; }
10467 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
10468 if test $? -ne 0 ; then
10469 ac_usb_dev_name="usbmon"
10470 fi
10471
10472 cat >>confdefs.h <<_ACEOF
10473 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
10474 _ACEOF
10475
10476 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
10477 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
10478 #
10479 # Do we have a version of <linux/compiler.h> available?
10480 # If so, we might need it for <linux/usbdevice_fs.h>.
10481 #
10482
10483 for ac_header in linux/compiler.h
10484 do
10485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 fi
10492 ac_res=`eval echo '${'$as_ac_Header'}'`
10493 { echo "$as_me:$LINENO: result: $ac_res" >&5
10494 echo "${ECHO_T}$ac_res" >&6; }
10495 else
10496 # Is the header compilable?
10497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 $ac_includes_default
10506 #include <$ac_header>
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_compile") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest.$ac_objext; then
10525 ac_header_compiler=yes
10526 else
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530 ac_header_compiler=no
10531 fi
10532
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10535 echo "${ECHO_T}$ac_header_compiler" >&6; }
10536
10537 # Is the header present?
10538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h. */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10546 #include <$ac_header>
10547 _ACEOF
10548 if { (ac_try="$ac_cpp conftest.$ac_ext"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } >/dev/null && {
10561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 }; then
10564 ac_header_preproc=yes
10565 else
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_preproc=no
10570 fi
10571
10572 rm -f conftest.err conftest.$ac_ext
10573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10574 echo "${ECHO_T}$ac_header_preproc" >&6; }
10575
10576 # So? What about this header?
10577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10578 yes:no: )
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10583 ac_header_preproc=yes
10584 ;;
10585 no:yes:* )
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10598
10599 ;;
10600 esac
10601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 eval "$as_ac_Header=\$ac_header_preproc"
10607 fi
10608 ac_res=`eval echo '${'$as_ac_Header'}'`
10609 { echo "$as_me:$LINENO: result: $ac_res" >&5
10610 echo "${ECHO_T}$ac_res" >&6; }
10611
10612 fi
10613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10614 cat >>confdefs.h <<_ACEOF
10615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10616 _ACEOF
10617
10618 fi
10619
10620 done
10621
10622 if test "$ac_cv_header_linux_compiler_h" = yes; then
10623 #
10624 # Yes - include it when testing for <linux/usbdevice_fs.h>.
10625 #
10626
10627 for ac_header in linux/usbdevice_fs.h
10628 do
10629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <linux/compiler.h>
10642
10643 #include <$ac_header>
10644 _ACEOF
10645 rm -f conftest.$ac_objext
10646 if { (ac_try="$ac_compile"
10647 case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650 esac
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10653 ac_status=$?
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } && {
10659 test -z "$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 } && test -s conftest.$ac_objext; then
10662 eval "$as_ac_Header=yes"
10663 else
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 eval "$as_ac_Header=no"
10668 fi
10669
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 fi
10672 ac_res=`eval echo '${'$as_ac_Header'}'`
10673 { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10676 cat >>confdefs.h <<_ACEOF
10677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10678 _ACEOF
10679
10680 fi
10681
10682 done
10683
10684 else
10685
10686 for ac_header in linux/usbdevice_fs.h
10687 do
10688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 fi
10695 ac_res=`eval echo '${'$as_ac_Header'}'`
10696 { echo "$as_me:$LINENO: result: $ac_res" >&5
10697 echo "${ECHO_T}$ac_res" >&6; }
10698 else
10699 # Is the header compilable?
10700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10702 cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h. */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 $ac_includes_default
10709 #include <$ac_header>
10710 _ACEOF
10711 rm -f conftest.$ac_objext
10712 if { (ac_try="$ac_compile"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_compile") 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest.$ac_objext; then
10728 ac_header_compiler=yes
10729 else
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733 ac_header_compiler=no
10734 fi
10735
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10738 echo "${ECHO_T}$ac_header_compiler" >&6; }
10739
10740 # Is the header present?
10741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 #include <$ac_header>
10750 _ACEOF
10751 if { (ac_try="$ac_cpp conftest.$ac_ext"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755 esac
10756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } >/dev/null && {
10764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 }; then
10767 ac_header_preproc=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_header_preproc=no
10773 fi
10774
10775 rm -f conftest.err conftest.$ac_ext
10776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10777 echo "${ECHO_T}$ac_header_preproc" >&6; }
10778
10779 # So? What about this header?
10780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10781 yes:no: )
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10786 ac_header_preproc=yes
10787 ;;
10788 no:yes:* )
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10801
10802 ;;
10803 esac
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809 eval "$as_ac_Header=\$ac_header_preproc"
10810 fi
10811 ac_res=`eval echo '${'$as_ac_Header'}'`
10812 { echo "$as_me:$LINENO: result: $ac_res" >&5
10813 echo "${ECHO_T}$ac_res" >&6; }
10814
10815 fi
10816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10819 _ACEOF
10820
10821 fi
10822
10823 done
10824
10825 fi
10826 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10827 #
10828 # OK, does it define bRequestType? Older versions of the kernel
10829 # define fields with names like "requesttype, "request", and
10830 # "value", rather than "bRequestType", "bRequest", and
10831 # "wValue".
10832 #
10833 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10834 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10835 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844
10845 $ac_includes_default
10846 #ifdef HAVE_SYS_BITYPES_H
10847 #include <sys/bitypes.h>
10848 #endif
10849 #ifdef HAVE_LINUX_COMPILER_H
10850 #include <linux/compiler.h>
10851 #endif
10852 # include <linux/usbdevice_fs.h>
10853 int
10854 main ()
10855 {
10856 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest.$ac_objext
10862 if { (ac_try="$ac_compile"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_compile") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest.$ac_objext; then
10878 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10879 else
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10884 fi
10885
10886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887 fi
10888
10889 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10890 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10891 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10892
10893 cat >>confdefs.h <<\_ACEOF
10894 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10895 _ACEOF
10896
10897 fi
10898 fi
10899 ;;
10900 *)
10901 { echo "$as_me:$LINENO: result: no" >&5
10902 echo "${ECHO_T}no" >&6; }
10903 ;;
10904 esac
10905
10906
10907
10908 # Check whether --enable-bluetooth was given.
10909 if test "${enable_bluetooth+set}" = set; then
10910 enableval=$enable_bluetooth;
10911 else
10912 enable_bluetooth=yes
10913 fi
10914
10915
10916 if test "x$enable_bluetooth" != "xno" ; then
10917 case "$host_os" in
10918 linux*)
10919 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10920 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10921 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10922 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 fi
10925 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10926 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10927 else
10928 # Is the header compilable?
10929 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10930 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h. */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 $ac_includes_default
10938 #include <bluetooth/bluetooth.h>
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
10957 ac_header_compiler=yes
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962 ac_header_compiler=no
10963 fi
10964
10965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10967 echo "${ECHO_T}$ac_header_compiler" >&6; }
10968
10969 # Is the header present?
10970 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10971 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h. */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 #include <bluetooth/bluetooth.h>
10979 _ACEOF
10980 if { (ac_try="$ac_cpp conftest.$ac_ext"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } >/dev/null && {
10993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 }; then
10996 ac_header_preproc=yes
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ac_header_preproc=no
11002 fi
11003
11004 rm -f conftest.err conftest.$ac_ext
11005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006 echo "${ECHO_T}$ac_header_preproc" >&6; }
11007
11008 # So? What about this header?
11009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11010 yes:no: )
11011 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
11012 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
11014 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
11015 ac_header_preproc=yes
11016 ;;
11017 no:yes:* )
11018 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
11019 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
11021 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
11023 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
11025 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
11027 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
11029 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
11030
11031 ;;
11032 esac
11033 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
11034 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
11035 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 else
11038 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
11039 fi
11040 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
11041 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
11042
11043 fi
11044 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
11045
11046
11047 cat >>confdefs.h <<\_ACEOF
11048 #define PCAP_SUPPORT_BT 1
11049 _ACEOF
11050
11051 BT_SRC=pcap-bt-linux.c
11052 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
11053 echo "$as_me: Bluetooth sniffing is supported" >&6;}
11054
11055 else
11056 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
11057 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
11058
11059 fi
11060
11061
11062 ;;
11063 *)
11064 { echo "$as_me:$LINENO: no Bluetooth sniffing support implemented for $host_os" >&5
11065 echo "$as_me: no Bluetooth sniffing support implemented for $host_os" >&6;}
11066 ;;
11067 esac
11068
11069
11070 fi
11071
11072 # Check whether --enable-can was given.
11073 if test "${enable_can+set}" = set; then
11074 enableval=$enable_can;
11075 else
11076 enable_can=yes
11077 fi
11078
11079
11080 if test "x$enable_can" != "xno" ; then
11081 case "$host_os" in
11082 linux*)
11083 { echo "$as_me:$LINENO: checking for linux/can.h" >&5
11084 echo $ECHO_N "checking for linux/can.h... $ECHO_C" >&6; }
11085 if test "${ac_cv_header_linux_can_h+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #include <sys/socket.h>
11095
11096
11097 #include <linux/can.h>
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11104 esac
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11116 ac_cv_header_linux_can_h=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ac_cv_header_linux_can_h=no
11122 fi
11123
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 fi
11126 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_h" >&5
11127 echo "${ECHO_T}$ac_cv_header_linux_can_h" >&6; }
11128 if test $ac_cv_header_linux_can_h = yes; then
11129
11130 cat >>confdefs.h <<\_ACEOF
11131 #define PCAP_SUPPORT_CAN 1
11132 _ACEOF
11133
11134 CAN_SRC=pcap-can-linux.c
11135 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
11136 echo "$as_me: CAN sniffing is supported" >&6;}
11137 else
11138 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
11139 echo "$as_me: CAN sniffing is not supported" >&6;}
11140 fi
11141
11142
11143 ;;
11144 *)
11145 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
11146 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
11147 ;;
11148 esac
11149
11150
11151 fi
11152
11153 case "$host_os" in
11154 linux*)
11155
11156 for ac_header in linux/net_tstamp.h
11157 do
11158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 fi
11165 ac_res=`eval echo '${'$as_ac_Header'}'`
11166 { echo "$as_me:$LINENO: result: $ac_res" >&5
11167 echo "${ECHO_T}$ac_res" >&6; }
11168 else
11169 # Is the header compilable?
11170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 #include <$ac_header>
11180 _ACEOF
11181 rm -f conftest.$ac_objext
11182 if { (ac_try="$ac_compile"
11183 case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_compile") 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest.$ac_objext; then
11198 ac_header_compiler=yes
11199 else
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 ac_header_compiler=no
11204 fi
11205
11206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11208 echo "${ECHO_T}$ac_header_compiler" >&6; }
11209
11210 # Is the header present?
11211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 #include <$ac_header>
11220 _ACEOF
11221 if { (ac_try="$ac_cpp conftest.$ac_ext"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } >/dev/null && {
11234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 }; then
11237 ac_header_preproc=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 ac_header_preproc=no
11243 fi
11244
11245 rm -f conftest.err conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247 echo "${ECHO_T}$ac_header_preproc" >&6; }
11248
11249 # So? What about this header?
11250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251 yes:no: )
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256 ac_header_preproc=yes
11257 ;;
11258 no:yes:* )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271
11272 ;;
11273 esac
11274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279 eval "$as_ac_Header=\$ac_header_preproc"
11280 fi
11281 ac_res=`eval echo '${'$as_ac_Header'}'`
11282 { echo "$as_me:$LINENO: result: $ac_res" >&5
11283 echo "${ECHO_T}$ac_res" >&6; }
11284
11285 fi
11286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11287 cat >>confdefs.h <<_ACEOF
11288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11289 _ACEOF
11290
11291 fi
11292
11293 done
11294
11295 ;;
11296 *)
11297 { echo "$as_me:$LINENO: no hardware timestamp support implemented for $host_os" >&5
11298 echo "$as_me: no hardware timestamp support implemented for $host_os" >&6;}
11299 ;;
11300 esac
11301
11302 # Find a good install program. We prefer a C program (faster),
11303 # so one script is as good as another. But avoid the broken or
11304 # incompatible versions:
11305 # SysV /etc/install, /usr/sbin/install
11306 # SunOS /usr/etc/install
11307 # IRIX /sbin/install
11308 # AIX /bin/install
11309 # AmigaOS /C/install, which installs bootblocks on floppy discs
11310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11313 # OS/2's system install, which has a completely different semantic
11314 # ./install, which can be erroneously created by make from ./install.sh.
11315 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11316 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11317 if test -z "$INSTALL"; then
11318 if test "${ac_cv_path_install+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 # Account for people who put trailing slashes in PATH elements.
11327 case $as_dir/ in
11328 ./ | .// | /cC/* | \
11329 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11330 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11331 /usr/ucb/* ) ;;
11332 *)
11333 # OSF1 and SCO ODT 3.0 have their own names for install.
11334 # Don't use installbsd from OSF since it installs stuff as root
11335 # by default.
11336 for ac_prog in ginstall scoinst install; do
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11339 if test $ac_prog = install &&
11340 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11341 # AIX install. It has an incompatible calling convention.
11342 :
11343 elif test $ac_prog = install &&
11344 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11345 # program-specific install script used by HP pwplus--don't use.
11346 :
11347 else
11348 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11349 break 3
11350 fi
11351 fi
11352 done
11353 done
11354 ;;
11355 esac
11356 done
11357 IFS=$as_save_IFS
11358
11359
11360 fi
11361 if test "${ac_cv_path_install+set}" = set; then
11362 INSTALL=$ac_cv_path_install
11363 else
11364 # As a last resort, use the slow shell script. Don't cache a
11365 # value for INSTALL within a source directory, because that will
11366 # break other packages using the cache if that directory is
11367 # removed, or if the value is a relative name.
11368 INSTALL=$ac_install_sh
11369 fi
11370 fi
11371 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11372 echo "${ECHO_T}$INSTALL" >&6; }
11373
11374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11375 # It thinks the first close brace ends the variable substitution.
11376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11377
11378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11379
11380 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11381
11382
11383 ac_config_headers="$ac_config_headers config.h"
11384
11385
11386 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"
11387
11388 cat >confcache <<\_ACEOF
11389 # This file is a shell script that caches the results of configure
11390 # tests run on this system so they can be shared between configure
11391 # scripts and configure runs, see configure's option --config-cache.
11392 # It is not useful on other systems. If it contains results you don't
11393 # want to keep, you may remove or edit it.
11394 #
11395 # config.status only pays attention to the cache file if you give it
11396 # the --recheck option to rerun configure.
11397 #
11398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11400 # following values.
11401
11402 _ACEOF
11403
11404 # The following way of writing the cache mishandles newlines in values,
11405 # but we know of no workaround that is simple, portable, and efficient.
11406 # So, we kill variables containing newlines.
11407 # Ultrix sh set writes to stderr and can't be redirected directly,
11408 # and sets the high bit in the cache file unless we assign to the vars.
11409 (
11410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11411 eval ac_val=\$$ac_var
11412 case $ac_val in #(
11413 *${as_nl}*)
11414 case $ac_var in #(
11415 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11416 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11417 esac
11418 case $ac_var in #(
11419 _ | IFS | as_nl) ;; #(
11420 *) $as_unset $ac_var ;;
11421 esac ;;
11422 esac
11423 done
11424
11425 (set) 2>&1 |
11426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11427 *${as_nl}ac_space=\ *)
11428 # `set' does not quote correctly, so add quotes (double-quote
11429 # substitution turns \\\\ into \\, and sed turns \\ into \).
11430 sed -n \
11431 "s/'/'\\\\''/g;
11432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11433 ;; #(
11434 *)
11435 # `set' quotes correctly as required by POSIX, so do not add quotes.
11436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11437 ;;
11438 esac |
11439 sort
11440 ) |
11441 sed '
11442 /^ac_cv_env_/b end
11443 t clear
11444 :clear
11445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11446 t end
11447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11448 :end' >>confcache
11449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11450 if test -w "$cache_file"; then
11451 test "x$cache_file" != "x/dev/null" &&
11452 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11453 echo "$as_me: updating cache $cache_file" >&6;}
11454 cat confcache >$cache_file
11455 else
11456 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11457 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11458 fi
11459 fi
11460 rm -f confcache
11461
11462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11463 # Let make expand exec_prefix.
11464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11465
11466 DEFS=-DHAVE_CONFIG_H
11467
11468 ac_libobjs=
11469 ac_ltlibobjs=
11470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11471 # 1. Remove the extension, and $U if already installed.
11472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11473 ac_i=`echo "$ac_i" | sed "$ac_script"`
11474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11475 # will be set to the directory where LIBOBJS objects are built.
11476 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11477 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11478 done
11479 LIBOBJS=$ac_libobjs
11480
11481 LTLIBOBJS=$ac_ltlibobjs
11482
11483
11484
11485 : ${CONFIG_STATUS=./config.status}
11486 ac_clean_files_save=$ac_clean_files
11487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11488 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11489 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11490 cat >$CONFIG_STATUS <<_ACEOF
11491 #! $SHELL
11492 # Generated by $as_me.
11493 # Run this file to recreate the current configuration.
11494 # Compiler output produced by configure, useful for debugging
11495 # configure, is in config.log if it exists.
11496
11497 debug=false
11498 ac_cs_recheck=false
11499 ac_cs_silent=false
11500 SHELL=\${CONFIG_SHELL-$SHELL}
11501 _ACEOF
11502
11503 cat >>$CONFIG_STATUS <<\_ACEOF
11504 ## --------------------- ##
11505 ## M4sh Initialization. ##
11506 ## --------------------- ##
11507
11508 # Be more Bourne compatible
11509 DUALCASE=1; export DUALCASE # for MKS sh
11510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11511 emulate sh
11512 NULLCMD=:
11513 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11514 # is contrary to our usage. Disable this feature.
11515 alias -g '${1+"$@"}'='"$@"'
11516 setopt NO_GLOB_SUBST
11517 else
11518 case `(set -o) 2>/dev/null` in
11519 *posix*) set -o posix ;;
11520 esac
11521
11522 fi
11523
11524
11525
11526
11527 # PATH needs CR
11528 # Avoid depending upon Character Ranges.
11529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11532 as_cr_digits='0123456789'
11533 as_cr_alnum=$as_cr_Letters$as_cr_digits
11534
11535 # The user is always right.
11536 if test "${PATH_SEPARATOR+set}" != set; then
11537 echo "#! /bin/sh" >conf$$.sh
11538 echo "exit 0" >>conf$$.sh
11539 chmod +x conf$$.sh
11540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11541 PATH_SEPARATOR=';'
11542 else
11543 PATH_SEPARATOR=:
11544 fi
11545 rm -f conf$$.sh
11546 fi
11547
11548 # Support unset when possible.
11549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11550 as_unset=unset
11551 else
11552 as_unset=false
11553 fi
11554
11555
11556 # IFS
11557 # We need space, tab and new line, in precisely that order. Quoting is
11558 # there to prevent editors from complaining about space-tab.
11559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11560 # splitting by setting IFS to empty value.)
11561 as_nl='
11562 '
11563 IFS=" "" $as_nl"
11564
11565 # Find who we are. Look in the path if we contain no directory separator.
11566 case $0 in
11567 *[\\/]* ) as_myself=$0 ;;
11568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11570 do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11574 done
11575 IFS=$as_save_IFS
11576
11577 ;;
11578 esac
11579 # We did not find ourselves, most probably we were run as `sh COMMAND'
11580 # in which case we are not to be found in the path.
11581 if test "x$as_myself" = x; then
11582 as_myself=$0
11583 fi
11584 if test ! -f "$as_myself"; then
11585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11586 { (exit 1); exit 1; }
11587 fi
11588
11589 # Work around bugs in pre-3.0 UWIN ksh.
11590 for as_var in ENV MAIL MAILPATH
11591 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11592 done
11593 PS1='$ '
11594 PS2='> '
11595 PS4='+ '
11596
11597 # NLS nuisances.
11598 for as_var in \
11599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11601 LC_TELEPHONE LC_TIME
11602 do
11603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11604 eval $as_var=C; export $as_var
11605 else
11606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11607 fi
11608 done
11609
11610 # Required to use basename.
11611 if expr a : '\(a\)' >/dev/null 2>&1 &&
11612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11613 as_expr=expr
11614 else
11615 as_expr=false
11616 fi
11617
11618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11619 as_basename=basename
11620 else
11621 as_basename=false
11622 fi
11623
11624
11625 # Name of the executable.
11626 as_me=`$as_basename -- "$0" ||
11627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11628 X"$0" : 'X\(//\)$' \| \
11629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11630 echo X/"$0" |
11631 sed '/^.*\/\([^/][^/]*\)\/*$/{
11632 s//\1/
11633 q
11634 }
11635 /^X\/\(\/\/\)$/{
11636 s//\1/
11637 q
11638 }
11639 /^X\/\(\/\).*/{
11640 s//\1/
11641 q
11642 }
11643 s/.*/./; q'`
11644
11645 # CDPATH.
11646 $as_unset CDPATH
11647
11648
11649
11650 as_lineno_1=$LINENO
11651 as_lineno_2=$LINENO
11652 test "x$as_lineno_1" != "x$as_lineno_2" &&
11653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11654
11655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11656 # uniformly replaced by the line number. The first 'sed' inserts a
11657 # line-number line after each line using $LINENO; the second 'sed'
11658 # does the real work. The second script uses 'N' to pair each
11659 # line-number line with the line containing $LINENO, and appends
11660 # trailing '-' during substitution so that $LINENO is not a special
11661 # case at line end.
11662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11663 # scripts with optimization help from Paolo Bonzini. Blame Lee
11664 # E. McMahon (1931-1989) for sed's syntax. :-)
11665 sed -n '
11666 p
11667 /[$]LINENO/=
11668 ' <$as_myself |
11669 sed '
11670 s/[$]LINENO.*/&-/
11671 t lineno
11672 b
11673 :lineno
11674 N
11675 :loop
11676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11677 t loop
11678 s/-\n.*//
11679 ' >$as_me.lineno &&
11680 chmod +x "$as_me.lineno" ||
11681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11682 { (exit 1); exit 1; }; }
11683
11684 # Don't try to exec as it changes $[0], causing all sort of problems
11685 # (the dirname of $[0] is not the place where we might find the
11686 # original and so on. Autoconf is especially sensitive to this).
11687 . "./$as_me.lineno"
11688 # Exit status is that of the last command.
11689 exit
11690 }
11691
11692
11693 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11694 as_dirname=dirname
11695 else
11696 as_dirname=false
11697 fi
11698
11699 ECHO_C= ECHO_N= ECHO_T=
11700 case `echo -n x` in
11701 -n*)
11702 case `echo 'x\c'` in
11703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11704 *) ECHO_C='\c';;
11705 esac;;
11706 *)
11707 ECHO_N='-n';;
11708 esac
11709
11710 if expr a : '\(a\)' >/dev/null 2>&1 &&
11711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11712 as_expr=expr
11713 else
11714 as_expr=false
11715 fi
11716
11717 rm -f conf$$ conf$$.exe conf$$.file
11718 if test -d conf$$.dir; then
11719 rm -f conf$$.dir/conf$$.file
11720 else
11721 rm -f conf$$.dir
11722 mkdir conf$$.dir
11723 fi
11724 echo >conf$$.file
11725 if ln -s conf$$.file conf$$ 2>/dev/null; then
11726 as_ln_s='ln -s'
11727 # ... but there are two gotchas:
11728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11730 # In both cases, we have to default to `cp -p'.
11731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11732 as_ln_s='cp -p'
11733 elif ln conf$$.file conf$$ 2>/dev/null; then
11734 as_ln_s=ln
11735 else
11736 as_ln_s='cp -p'
11737 fi
11738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11739 rmdir conf$$.dir 2>/dev/null
11740
11741 if mkdir -p . 2>/dev/null; then
11742 as_mkdir_p=:
11743 else
11744 test -d ./-p && rmdir ./-p
11745 as_mkdir_p=false
11746 fi
11747
11748 if test -x / >/dev/null 2>&1; then
11749 as_test_x='test -x'
11750 else
11751 if ls -dL / >/dev/null 2>&1; then
11752 as_ls_L_option=L
11753 else
11754 as_ls_L_option=
11755 fi
11756 as_test_x='
11757 eval sh -c '\''
11758 if test -d "$1"; then
11759 test -d "$1/.";
11760 else
11761 case $1 in
11762 -*)set "./$1";;
11763 esac;
11764 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11765 ???[sx]*):;;*)false;;esac;fi
11766 '\'' sh
11767 '
11768 fi
11769 as_executable_p=$as_test_x
11770
11771 # Sed expression to map a string onto a valid CPP name.
11772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11773
11774 # Sed expression to map a string onto a valid variable name.
11775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11776
11777
11778 exec 6>&1
11779
11780 # Save the log message, to keep $[0] and so on meaningful, and to
11781 # report actual input values of CONFIG_FILES etc. instead of their
11782 # values after options handling.
11783 ac_log="
11784 This file was extended by $as_me, which was
11785 generated by GNU Autoconf 2.61. Invocation command line was
11786
11787 CONFIG_FILES = $CONFIG_FILES
11788 CONFIG_HEADERS = $CONFIG_HEADERS
11789 CONFIG_LINKS = $CONFIG_LINKS
11790 CONFIG_COMMANDS = $CONFIG_COMMANDS
11791 $ $0 $@
11792
11793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11794 "
11795
11796 _ACEOF
11797
11798 cat >>$CONFIG_STATUS <<_ACEOF
11799 # Files that config.status was made for.
11800 config_files="$ac_config_files"
11801 config_headers="$ac_config_headers"
11802
11803 _ACEOF
11804
11805 cat >>$CONFIG_STATUS <<\_ACEOF
11806 ac_cs_usage="\
11807 \`$as_me' instantiates files from templates according to the
11808 current configuration.
11809
11810 Usage: $0 [OPTIONS] [FILE]...
11811
11812 -h, --help print this help, then exit
11813 -V, --version print version number and configuration settings, then exit
11814 -q, --quiet do not print progress messages
11815 -d, --debug don't remove temporary files
11816 --recheck update $as_me by reconfiguring in the same conditions
11817 --file=FILE[:TEMPLATE]
11818 instantiate the configuration file FILE
11819 --header=FILE[:TEMPLATE]
11820 instantiate the configuration header FILE
11821
11822 Configuration files:
11823 $config_files
11824
11825 Configuration headers:
11826 $config_headers
11827
11828 Report bugs to <bug-autoconf@gnu.org>."
11829
11830 _ACEOF
11831 cat >>$CONFIG_STATUS <<_ACEOF
11832 ac_cs_version="\\
11833 config.status
11834 configured by $0, generated by GNU Autoconf 2.61,
11835 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11836
11837 Copyright (C) 2006 Free Software Foundation, Inc.
11838 This config.status script is free software; the Free Software Foundation
11839 gives unlimited permission to copy, distribute and modify it."
11840
11841 ac_pwd='$ac_pwd'
11842 srcdir='$srcdir'
11843 INSTALL='$INSTALL'
11844 _ACEOF
11845
11846 cat >>$CONFIG_STATUS <<\_ACEOF
11847 # If no file are specified by the user, then we need to provide default
11848 # value. By we need to know if files were specified by the user.
11849 ac_need_defaults=:
11850 while test $# != 0
11851 do
11852 case $1 in
11853 --*=*)
11854 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11855 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11856 ac_shift=:
11857 ;;
11858 *)
11859 ac_option=$1
11860 ac_optarg=$2
11861 ac_shift=shift
11862 ;;
11863 esac
11864
11865 case $ac_option in
11866 # Handling of the options.
11867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11868 ac_cs_recheck=: ;;
11869 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11870 echo "$ac_cs_version"; exit ;;
11871 --debug | --debu | --deb | --de | --d | -d )
11872 debug=: ;;
11873 --file | --fil | --fi | --f )
11874 $ac_shift
11875 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11876 ac_need_defaults=false;;
11877 --header | --heade | --head | --hea )
11878 $ac_shift
11879 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11880 ac_need_defaults=false;;
11881 --he | --h)
11882 # Conflict between --help and --header
11883 { echo "$as_me: error: ambiguous option: $1
11884 Try \`$0 --help' for more information." >&2
11885 { (exit 1); exit 1; }; };;
11886 --help | --hel | -h )
11887 echo "$ac_cs_usage"; exit ;;
11888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11890 ac_cs_silent=: ;;
11891
11892 # This is an error.
11893 -*) { echo "$as_me: error: unrecognized option: $1
11894 Try \`$0 --help' for more information." >&2
11895 { (exit 1); exit 1; }; } ;;
11896
11897 *) ac_config_targets="$ac_config_targets $1"
11898 ac_need_defaults=false ;;
11899
11900 esac
11901 shift
11902 done
11903
11904 ac_configure_extra_args=
11905
11906 if $ac_cs_silent; then
11907 exec 6>/dev/null
11908 ac_configure_extra_args="$ac_configure_extra_args --silent"
11909 fi
11910
11911 _ACEOF
11912 cat >>$CONFIG_STATUS <<_ACEOF
11913 if \$ac_cs_recheck; then
11914 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11915 CONFIG_SHELL=$SHELL
11916 export CONFIG_SHELL
11917 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11918 fi
11919
11920 _ACEOF
11921 cat >>$CONFIG_STATUS <<\_ACEOF
11922 exec 5>>config.log
11923 {
11924 echo
11925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11926 ## Running $as_me. ##
11927 _ASBOX
11928 echo "$ac_log"
11929 } >&5
11930
11931 _ACEOF
11932 cat >>$CONFIG_STATUS <<_ACEOF
11933 _ACEOF
11934
11935 cat >>$CONFIG_STATUS <<\_ACEOF
11936
11937 # Handling of arguments.
11938 for ac_config_target in $ac_config_targets
11939 do
11940 case $ac_config_target in
11941 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11942 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11943 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11944 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11945 "pcap-tstamp.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-tstamp.manmisc" ;;
11946 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11947 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11948 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11949 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11950 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11951 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11952 "pcap_list_tstamp_types.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_tstamp_types.3pcap" ;;
11953 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11954 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11955 "pcap_set_tstamp_type.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_set_tstamp_type.3pcap" ;;
11956
11957 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11959 { (exit 1); exit 1; }; };;
11960 esac
11961 done
11962
11963
11964 # If the user did not use the arguments to specify the items to instantiate,
11965 # then the envvar interface is used. Set only those that are not.
11966 # We use the long form for the default assignment because of an extremely
11967 # bizarre bug on SunOS 4.1.3.
11968 if $ac_need_defaults; then
11969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11971 fi
11972
11973 # Have a temporary directory for convenience. Make it in the build tree
11974 # simply because there is no reason against having it here, and in addition,
11975 # creating and moving files from /tmp can sometimes cause problems.
11976 # Hook for its removal unless debugging.
11977 # Note that there is a small window in which the directory will not be cleaned:
11978 # after its creation but before its name has been assigned to `$tmp'.
11979 $debug ||
11980 {
11981 tmp=
11982 trap 'exit_status=$?
11983 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11984 ' 0
11985 trap '{ (exit 1); exit 1; }' 1 2 13 15
11986 }
11987 # Create a (secure) tmp directory for tmp files.
11988
11989 {
11990 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11991 test -n "$tmp" && test -d "$tmp"
11992 } ||
11993 {
11994 tmp=./conf$$-$RANDOM
11995 (umask 077 && mkdir "$tmp")
11996 } ||
11997 {
11998 echo "$me: cannot create a temporary directory in ." >&2
11999 { (exit 1); exit 1; }
12000 }
12001
12002 #
12003 # Set up the sed scripts for CONFIG_FILES section.
12004 #
12005
12006 # No need to generate the scripts if there are no CONFIG_FILES.
12007 # This happens for instance when ./config.status config.h
12008 if test -n "$CONFIG_FILES"; then
12009
12010 _ACEOF
12011
12012
12013
12014 ac_delim='%!_!# '
12015 for ac_last_try in false false false false false :; do
12016 cat >conf$$subs.sed <<_ACEOF
12017 SHELL!$SHELL$ac_delim
12018 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12019 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12020 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12021 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12022 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12023 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12024 exec_prefix!$exec_prefix$ac_delim
12025 prefix!$prefix$ac_delim
12026 program_transform_name!$program_transform_name$ac_delim
12027 bindir!$bindir$ac_delim
12028 sbindir!$sbindir$ac_delim
12029 libexecdir!$libexecdir$ac_delim
12030 datarootdir!$datarootdir$ac_delim
12031 datadir!$datadir$ac_delim
12032 sysconfdir!$sysconfdir$ac_delim
12033 sharedstatedir!$sharedstatedir$ac_delim
12034 localstatedir!$localstatedir$ac_delim
12035 includedir!$includedir$ac_delim
12036 oldincludedir!$oldincludedir$ac_delim
12037 docdir!$docdir$ac_delim
12038 infodir!$infodir$ac_delim
12039 htmldir!$htmldir$ac_delim
12040 dvidir!$dvidir$ac_delim
12041 pdfdir!$pdfdir$ac_delim
12042 psdir!$psdir$ac_delim
12043 libdir!$libdir$ac_delim
12044 localedir!$localedir$ac_delim
12045 mandir!$mandir$ac_delim
12046 DEFS!$DEFS$ac_delim
12047 ECHO_C!$ECHO_C$ac_delim
12048 ECHO_N!$ECHO_N$ac_delim
12049 ECHO_T!$ECHO_T$ac_delim
12050 LIBS!$LIBS$ac_delim
12051 build_alias!$build_alias$ac_delim
12052 host_alias!$host_alias$ac_delim
12053 target_alias!$target_alias$ac_delim
12054 build!$build$ac_delim
12055 build_cpu!$build_cpu$ac_delim
12056 build_vendor!$build_vendor$ac_delim
12057 build_os!$build_os$ac_delim
12058 host!$host$ac_delim
12059 host_cpu!$host_cpu$ac_delim
12060 host_vendor!$host_vendor$ac_delim
12061 host_os!$host_os$ac_delim
12062 target!$target$ac_delim
12063 target_cpu!$target_cpu$ac_delim
12064 target_vendor!$target_vendor$ac_delim
12065 target_os!$target_os$ac_delim
12066 SHLICC2!$SHLICC2$ac_delim
12067 CC!$CC$ac_delim
12068 CFLAGS!$CFLAGS$ac_delim
12069 LDFLAGS!$LDFLAGS$ac_delim
12070 CPPFLAGS!$CPPFLAGS$ac_delim
12071 ac_ct_CC!$ac_ct_CC$ac_delim
12072 EXEEXT!$EXEEXT$ac_delim
12073 OBJEXT!$OBJEXT$ac_delim
12074 CPP!$CPP$ac_delim
12075 GREP!$GREP$ac_delim
12076 EGREP!$EGREP$ac_delim
12077 LIBOBJS!$LIBOBJS$ac_delim
12078 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
12079 V_LEX!$V_LEX$ac_delim
12080 V_YACC!$V_YACC$ac_delim
12081 RANLIB!$RANLIB$ac_delim
12082 AR!$AR$ac_delim
12083 V_CCOPT!$V_CCOPT$ac_delim
12084 V_DEFS!$V_DEFS$ac_delim
12085 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
12086 V_INCLS!$V_INCLS$ac_delim
12087 V_PCAP!$V_PCAP$ac_delim
12088 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
12089 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
12090 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
12091 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
12092 ADDLOBJS!$ADDLOBJS$ac_delim
12093 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
12094 SSRC!$SSRC$ac_delim
12095 DYEXT!$DYEXT$ac_delim
12096 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12097 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12098 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
12099 USB_SRC!$USB_SRC$ac_delim
12100 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
12101 BT_SRC!$BT_SRC$ac_delim
12102 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
12103 CAN_SRC!$CAN_SRC$ac_delim
12104 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12105 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12106 INSTALL_DATA!$INSTALL_DATA$ac_delim
12107 LTLIBOBJS!$LTLIBOBJS$ac_delim
12108 _ACEOF
12109
12110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
12111 break
12112 elif $ac_last_try; then
12113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12115 { (exit 1); exit 1; }; }
12116 else
12117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12118 fi
12119 done
12120
12121 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12122 if test -n "$ac_eof"; then
12123 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12124 ac_eof=`expr $ac_eof + 1`
12125 fi
12126
12127 cat >>$CONFIG_STATUS <<_ACEOF
12128 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12130 _ACEOF
12131 sed '
12132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12133 s/^/s,@/; s/!/@,|#_!!_#|/
12134 :n
12135 t n
12136 s/'"$ac_delim"'$/,g/; t
12137 s/$/\\/; p
12138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12139 ' >>$CONFIG_STATUS <conf$$subs.sed
12140 rm -f conf$$subs.sed
12141 cat >>$CONFIG_STATUS <<_ACEOF
12142 :end
12143 s/|#_!!_#|//g
12144 CEOF$ac_eof
12145 _ACEOF
12146
12147
12148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12150 # trailing colons and then remove the whole line if VPATH becomes empty
12151 # (actually we leave an empty line to preserve line numbers).
12152 if test "x$srcdir" = x.; then
12153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12154 s/:*\$(srcdir):*/:/
12155 s/:*\${srcdir}:*/:/
12156 s/:*@srcdir@:*/:/
12157 s/^\([^=]*=[ ]*\):*/\1/
12158 s/:*$//
12159 s/^[^=]*=[ ]*$//
12160 }'
12161 fi
12162
12163 cat >>$CONFIG_STATUS <<\_ACEOF
12164 fi # test -n "$CONFIG_FILES"
12165
12166
12167 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12168 do
12169 case $ac_tag in
12170 :[FHLC]) ac_mode=$ac_tag; continue;;
12171 esac
12172 case $ac_mode$ac_tag in
12173 :[FHL]*:*);;
12174 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12176 { (exit 1); exit 1; }; };;
12177 :[FH]-) ac_tag=-:-;;
12178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12179 esac
12180 ac_save_IFS=$IFS
12181 IFS=:
12182 set x $ac_tag
12183 IFS=$ac_save_IFS
12184 shift
12185 ac_file=$1
12186 shift
12187
12188 case $ac_mode in
12189 :L) ac_source=$1;;
12190 :[FH])
12191 ac_file_inputs=
12192 for ac_f
12193 do
12194 case $ac_f in
12195 -) ac_f="$tmp/stdin";;
12196 *) # Look for the file first in the build tree, then in the source tree
12197 # (if the path is not absolute). The absolute path cannot be DOS-style,
12198 # because $ac_f cannot contain `:'.
12199 test -f "$ac_f" ||
12200 case $ac_f in
12201 [\\/$]*) false;;
12202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12203 esac ||
12204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12206 { (exit 1); exit 1; }; };;
12207 esac
12208 ac_file_inputs="$ac_file_inputs $ac_f"
12209 done
12210
12211 # Let's still pretend it is `configure' which instantiates (i.e., don't
12212 # use $as_me), people would be surprised to read:
12213 # /* config.h. Generated by config.status. */
12214 configure_input="Generated from "`IFS=:
12215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12216 if test x"$ac_file" != x-; then
12217 configure_input="$ac_file. $configure_input"
12218 { echo "$as_me:$LINENO: creating $ac_file" >&5
12219 echo "$as_me: creating $ac_file" >&6;}
12220 fi
12221
12222 case $ac_tag in
12223 *:-:* | *:-) cat >"$tmp/stdin";;
12224 esac
12225 ;;
12226 esac
12227
12228 ac_dir=`$as_dirname -- "$ac_file" ||
12229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12230 X"$ac_file" : 'X\(//\)[^/]' \| \
12231 X"$ac_file" : 'X\(//\)$' \| \
12232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12233 echo X"$ac_file" |
12234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12235 s//\1/
12236 q
12237 }
12238 /^X\(\/\/\)[^/].*/{
12239 s//\1/
12240 q
12241 }
12242 /^X\(\/\/\)$/{
12243 s//\1/
12244 q
12245 }
12246 /^X\(\/\).*/{
12247 s//\1/
12248 q
12249 }
12250 s/.*/./; q'`
12251 { as_dir="$ac_dir"
12252 case $as_dir in #(
12253 -*) as_dir=./$as_dir;;
12254 esac
12255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12256 as_dirs=
12257 while :; do
12258 case $as_dir in #(
12259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12260 *) as_qdir=$as_dir;;
12261 esac
12262 as_dirs="'$as_qdir' $as_dirs"
12263 as_dir=`$as_dirname -- "$as_dir" ||
12264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12265 X"$as_dir" : 'X\(//\)[^/]' \| \
12266 X"$as_dir" : 'X\(//\)$' \| \
12267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12268 echo X"$as_dir" |
12269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12270 s//\1/
12271 q
12272 }
12273 /^X\(\/\/\)[^/].*/{
12274 s//\1/
12275 q
12276 }
12277 /^X\(\/\/\)$/{
12278 s//\1/
12279 q
12280 }
12281 /^X\(\/\).*/{
12282 s//\1/
12283 q
12284 }
12285 s/.*/./; q'`
12286 test -d "$as_dir" && break
12287 done
12288 test -z "$as_dirs" || eval "mkdir $as_dirs"
12289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12291 { (exit 1); exit 1; }; }; }
12292 ac_builddir=.
12293
12294 case "$ac_dir" in
12295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12296 *)
12297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12298 # A ".." for each directory in $ac_dir_suffix.
12299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12300 case $ac_top_builddir_sub in
12301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12303 esac ;;
12304 esac
12305 ac_abs_top_builddir=$ac_pwd
12306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12307 # for backward compatibility:
12308 ac_top_builddir=$ac_top_build_prefix
12309
12310 case $srcdir in
12311 .) # We are building in place.
12312 ac_srcdir=.
12313 ac_top_srcdir=$ac_top_builddir_sub
12314 ac_abs_top_srcdir=$ac_pwd ;;
12315 [\\/]* | ?:[\\/]* ) # Absolute name.
12316 ac_srcdir=$srcdir$ac_dir_suffix;
12317 ac_top_srcdir=$srcdir
12318 ac_abs_top_srcdir=$srcdir ;;
12319 *) # Relative name.
12320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12321 ac_top_srcdir=$ac_top_build_prefix$srcdir
12322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12323 esac
12324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12325
12326
12327 case $ac_mode in
12328 :F)
12329 #
12330 # CONFIG_FILE
12331 #
12332
12333 case $INSTALL in
12334 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12335 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12336 esac
12337 _ACEOF
12338
12339 cat >>$CONFIG_STATUS <<\_ACEOF
12340 # If the template does not know about datarootdir, expand it.
12341 # FIXME: This hack should be removed a few years after 2.60.
12342 ac_datarootdir_hack=; ac_datarootdir_seen=
12343
12344 case `sed -n '/datarootdir/ {
12345 p
12346 q
12347 }
12348 /@datadir@/p
12349 /@docdir@/p
12350 /@infodir@/p
12351 /@localedir@/p
12352 /@mandir@/p
12353 ' $ac_file_inputs` in
12354 *datarootdir*) ac_datarootdir_seen=yes;;
12355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12357 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12358 _ACEOF
12359 cat >>$CONFIG_STATUS <<_ACEOF
12360 ac_datarootdir_hack='
12361 s&@datadir@&$datadir&g
12362 s&@docdir@&$docdir&g
12363 s&@infodir@&$infodir&g
12364 s&@localedir@&$localedir&g
12365 s&@mandir@&$mandir&g
12366 s&\\\${datarootdir}&$datarootdir&g' ;;
12367 esac
12368 _ACEOF
12369
12370 # Neutralize VPATH when `$srcdir' = `.'.
12371 # Shell code in configure.ac might set extrasub.
12372 # FIXME: do we really want to maintain this feature?
12373 cat >>$CONFIG_STATUS <<_ACEOF
12374 sed "$ac_vpsub
12375 $extrasub
12376 _ACEOF
12377 cat >>$CONFIG_STATUS <<\_ACEOF
12378 :t
12379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12380 s&@configure_input@&$configure_input&;t t
12381 s&@top_builddir@&$ac_top_builddir_sub&;t t
12382 s&@srcdir@&$ac_srcdir&;t t
12383 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12384 s&@top_srcdir@&$ac_top_srcdir&;t t
12385 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12386 s&@builddir@&$ac_builddir&;t t
12387 s&@abs_builddir@&$ac_abs_builddir&;t t
12388 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12389 s&@INSTALL@&$ac_INSTALL&;t t
12390 $ac_datarootdir_hack
12391 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12392
12393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12394 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12396 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12397 which seems to be undefined. Please make sure it is defined." >&5
12398 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12399 which seems to be undefined. Please make sure it is defined." >&2;}
12400
12401 rm -f "$tmp/stdin"
12402 case $ac_file in
12403 -) cat "$tmp/out"; rm -f "$tmp/out";;
12404 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12405 esac
12406 ;;
12407 :H)
12408 #
12409 # CONFIG_HEADER
12410 #
12411 _ACEOF
12412
12413 # Transform confdefs.h into a sed script `conftest.defines', that
12414 # substitutes the proper values into config.h.in to produce config.h.
12415 rm -f conftest.defines conftest.tail
12416 # First, append a space to every undef/define line, to ease matching.
12417 echo 's/$/ /' >conftest.defines
12418 # Then, protect against being on the right side of a sed subst, or in
12419 # an unquoted here document, in config.status. If some macros were
12420 # called several times there might be several #defines for the same
12421 # symbol, which is useless. But do not sort them, since the last
12422 # AC_DEFINE must be honored.
12423 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12424 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12425 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12426 # PARAMS is the parameter list in the macro definition--in most cases, it's
12427 # just an empty string.
12428 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12429 ac_dB='\\)[ (].*,\\1define\\2'
12430 ac_dC=' '
12431 ac_dD=' ,'
12432
12433 uniq confdefs.h |
12434 sed -n '
12435 t rset
12436 :rset
12437 s/^[ ]*#[ ]*define[ ][ ]*//
12438 t ok
12439 d
12440 :ok
12441 s/[\\&,]/\\&/g
12442 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12443 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12444 ' >>conftest.defines
12445
12446 # Remove the space that was appended to ease matching.
12447 # Then replace #undef with comments. This is necessary, for
12448 # example, in the case of _POSIX_SOURCE, which is predefined and required
12449 # on some systems where configure will not decide to define it.
12450 # (The regexp can be short, since the line contains either #define or #undef.)
12451 echo 's/ $//
12452 s,^[ #]*u.*,/* & */,' >>conftest.defines
12453
12454 # Break up conftest.defines:
12455 ac_max_sed_lines=50
12456
12457 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12458 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12459 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12460 # et cetera.
12461 ac_in='$ac_file_inputs'
12462 ac_out='"$tmp/out1"'
12463 ac_nxt='"$tmp/out2"'
12464
12465 while :
12466 do
12467 # Write a here document:
12468 cat >>$CONFIG_STATUS <<_ACEOF
12469 # First, check the format of the line:
12470 cat >"\$tmp/defines.sed" <<\\CEOF
12471 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12472 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12473 b
12474 :def
12475 _ACEOF
12476 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12477 echo 'CEOF
12478 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12479 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12480 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12481 grep . conftest.tail >/dev/null || break
12482 rm -f conftest.defines
12483 mv conftest.tail conftest.defines
12484 done
12485 rm -f conftest.defines conftest.tail
12486
12487 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12488 cat >>$CONFIG_STATUS <<\_ACEOF
12489 if test x"$ac_file" != x-; then
12490 echo "/* $configure_input */" >"$tmp/config.h"
12491 cat "$ac_result" >>"$tmp/config.h"
12492 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12493 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12494 echo "$as_me: $ac_file is unchanged" >&6;}
12495 else
12496 rm -f $ac_file
12497 mv "$tmp/config.h" $ac_file
12498 fi
12499 else
12500 echo "/* $configure_input */"
12501 cat "$ac_result"
12502 fi
12503 rm -f "$tmp/out12"
12504 ;;
12505
12506
12507 esac
12508
12509 done # for ac_tag
12510
12511
12512 { (exit 0); exit 0; }
12513 _ACEOF
12514 chmod +x $CONFIG_STATUS
12515 ac_clean_files=$ac_clean_files_save
12516
12517
12518 # configure is writing to config.log, and then calls config.status.
12519 # config.status does its own redirection, appending to config.log.
12520 # Unfortunately, on DOS this fails, as config.log is still kept open
12521 # by configure, so config.status won't be able to write to it; its
12522 # output is simply discarded. So we exec the FD to /dev/null,
12523 # effectively closing config.log, so it can be properly (re)opened and
12524 # appended to by config.status. When coming back to configure, we
12525 # need to make the FD available again.
12526 if test "$no_create" != yes; then
12527 ac_cs_success=:
12528 ac_config_status_args=
12529 test "$silent" = yes &&
12530 ac_config_status_args="$ac_config_status_args --quiet"
12531 exec 5>/dev/null
12532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12533 exec 5>>config.log
12534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12535 # would make configure fail if this is the last instruction.
12536 $ac_cs_success || { (exit 1); exit 1; }
12537 fi
12538
12539
12540 if test -f .devel ; then
12541 make depend
12542 fi
12543 exit 0