]> The Tcpdump Group git mirrors - libpcap/blob - configure
Add support for CANbus capture.
[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 V_CCOPT
683 V_DEFS
684 V_FINDALLDEVS
685 V_INCLS
686 V_PCAP
687 V_SHLIB_CMD
688 V_SHLIB_OPT
689 V_SONAME_OPT
690 V_RPATH_OPT
691 ADDLOBJS
692 ADDLARCHIVEOBJS
693 SSRC
694 DYEXT
695 MAN_FILE_FORMATS
696 MAN_MISC_INFO
697 PCAP_SUPPORT_USB
698 USB_SRC
699 PCAP_SUPPORT_BT
700 BT_SRC
701 PCAP_SUPPORT_CAN
702 CAN_SRC
703 INSTALL_PROGRAM
704 INSTALL_SCRIPT
705 INSTALL_DATA
706 LTLIBOBJS'
707 ac_subst_files=''
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
716 CPP'
717
718
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
738
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
764
765 ac_prev=
766 ac_dashdash=
767 for ac_option
768 do
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
772 ac_prev=
773 continue
774 fi
775
776 case $ac_option in
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 *) ac_optarg=yes ;;
779 esac
780
781 # Accept the important Cygnus configure options, so we can diagnose typos.
782
783 case $ac_dashdash$ac_option in
784 --)
785 ac_dashdash=yes ;;
786
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
791
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
796
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
803
804 --config-cache | -C)
805 cache_file=config.cache ;;
806
807 -datadir | --datadir | --datadi | --datad)
808 ac_prev=datadir ;;
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
811
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
818
819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
827
828 -docdir | --docdir | --docdi | --doc | --do)
829 ac_prev=docdir ;;
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 docdir=$ac_optarg ;;
832
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834 ac_prev=dvidir ;;
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 dvidir=$ac_optarg ;;
837
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
1043
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
1052
1053 --x)
1054 # Obsolete; use --with-x.
1055 with_x=yes ;;
1056
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1063
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1070
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1074 ;;
1075
1076 *=*)
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1084
1085 *)
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1091 ;;
1092
1093 esac
1094 done
1095
1096 if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1100 fi
1101
1102 # Be sure to have absolute directory names.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1107 do
1108 eval ac_val=\$$ac_var
1109 case $ac_val in
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112 esac
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1115 done
1116
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1120 build=$build_alias
1121 host=$host_alias
1122 target=$target_alias
1123
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1131 cross_compiling=yes
1132 fi
1133 fi
1134
1135 ac_tool_prefix=
1136 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
1138 test "$silent" = yes && exec 6>/dev/null
1139
1140
1141 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di=`ls -di .` &&
1143 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1149
1150
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160 echo X"$0" |
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1162 s//\1/
1163 q
1164 }
1165 /^X\(\/\/\)[^/].*/{
1166 s//\1/
1167 q
1168 }
1169 /^X\(\/\/\)$/{
1170 s//\1/
1171 q
1172 }
1173 /^X\(\/\).*/{
1174 s//\1/
1175 q
1176 }
1177 s/.*/./; q'`
1178 srcdir=$ac_confdir
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 srcdir=..
1181 fi
1182 else
1183 ac_srcdir_defaulted=no
1184 fi
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1189 fi
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1194 pwd)`
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1197 srcdir=.
1198 fi
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1202 case $srcdir in
1203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204 esac
1205 for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210 done
1211
1212 #
1213 # Report the --help message.
1214 #
1215 if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1218 cat <<_ACEOF
1219 \`configure' configures this package to adapt to many kinds of systems.
1220
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1222
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE. See below for descriptions of some of the useful variables.
1225
1226 Defaults for the options are specified in brackets.
1227
1228 Configuration:
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1238
1239 Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1243 [PREFIX]
1244
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1249
1250 For better control, use the options below.
1251
1252 Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1272 _ACEOF
1273
1274 cat <<\_ACEOF
1275
1276 System types:
1277 --build=BUILD configure for building on BUILD [guessed]
1278 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1279 --target=TARGET configure for building compilers for TARGET [HOST]
1280 _ACEOF
1281 fi
1282
1283 if test -n "$ac_init_help"; then
1284
1285 cat <<\_ACEOF
1286
1287 Optional Features:
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1290 --disable-largefile omit support for large files
1291 --disable-protochain disable \"protochain\" insn
1292 --enable-ipv6 build IPv6-capable version [default=yes, if
1293 getaddrinfo available]
1294 --enable-optimizer-dbg build optimizer debugging code
1295 --enable-yydebug build parser debugging code
1296 --enable-bluetooth enable bluetooth support [default=yes, if support
1297 available]
1298 --enable-can enable can support [default=yes, if support
1299 available]
1300
1301 Optional Packages:
1302 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1303 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1304 --without-gcc don't use gcc
1305 --with-sita include SITA support
1306 --with-pcap=TYPE use packet capture TYPE
1307 --without-libnl disable libnl support [default=yes, on Linux, if
1308 present]
1309 --with-dag[=DIR] include Endace DAG support ["yes", "no" or DIR;
1310 default="yes" on BSD and Linux if present]
1311 --with-dag-includes=DIR Endace DAG include directory
1312 --with-dag-libraries=DIR
1313 Endace DAG library directory
1314 --with-septel[=DIR] include Septel support (located in directory DIR, if
1315 supplied). [default=yes, on Linux, if present]
1316 --without-flex don't use flex
1317 --without-bison don't use bison
1318
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1327 CPP C preprocessor
1328
1329 Use these variables to override the choices made by `configure' or to help
1330 it to find libraries and programs with nonstandard names/locations.
1331
1332 _ACEOF
1333 ac_status=$?
1334 fi
1335
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" || continue
1340 ac_builddir=.
1341
1342 case "$ac_dir" in
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *)
1345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352 esac
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1357
1358 case $srcdir in
1359 .) # We are building in place.
1360 ac_srcdir=.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371 esac
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1382 else
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1386 done
1387 fi
1388
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1391 cat <<\_ACEOF
1392 configure
1393 generated by GNU Autoconf 2.61
1394
1395 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1396 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1399 _ACEOF
1400 exit
1401 fi
1402 cat >config.log <<_ACEOF
1403 This file contains any messages produced by compilers while
1404 running configure, to aid debugging if configure makes a mistake.
1405
1406 It was created by $as_me, which was
1407 generated by GNU Autoconf 2.61. Invocation command line was
1408
1409 $ $0 $@
1410
1411 _ACEOF
1412 exec 5>>config.log
1413 {
1414 cat <<_ASUNAME
1415 ## --------- ##
1416 ## Platform. ##
1417 ## --------- ##
1418
1419 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1420 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1421 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1422 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1423 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1424
1425 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1426 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1427
1428 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1429 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1430 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1431 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1432 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1433 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1434 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1435
1436 _ASUNAME
1437
1438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 for as_dir in $PATH
1440 do
1441 IFS=$as_save_IFS
1442 test -z "$as_dir" && as_dir=.
1443 echo "PATH: $as_dir"
1444 done
1445 IFS=$as_save_IFS
1446
1447 } >&5
1448
1449 cat >&5 <<_ACEOF
1450
1451
1452 ## ----------- ##
1453 ## Core tests. ##
1454 ## ----------- ##
1455
1456 _ACEOF
1457
1458
1459 # Keep a trace of the command line.
1460 # Strip out --no-create and --no-recursion so they do not pile up.
1461 # Strip out --silent because we don't want to record it for future runs.
1462 # Also quote any args containing shell meta-characters.
1463 # Make two passes to allow for proper duplicate-argument suppression.
1464 ac_configure_args=
1465 ac_configure_args0=
1466 ac_configure_args1=
1467 ac_must_keep_next=false
1468 for ac_pass in 1 2
1469 do
1470 for ac_arg
1471 do
1472 case $ac_arg in
1473 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 continue ;;
1477 *\'*)
1478 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479 esac
1480 case $ac_pass in
1481 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1482 2)
1483 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1484 if test $ac_must_keep_next = true; then
1485 ac_must_keep_next=false # Got value, back to normal.
1486 else
1487 case $ac_arg in
1488 *=* | --config-cache | -C | -disable-* | --disable-* \
1489 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1490 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1491 | -with-* | --with-* | -without-* | --without-* | --x)
1492 case "$ac_configure_args0 " in
1493 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494 esac
1495 ;;
1496 -* ) ac_must_keep_next=true ;;
1497 esac
1498 fi
1499 ac_configure_args="$ac_configure_args '$ac_arg'"
1500 ;;
1501 esac
1502 done
1503 done
1504 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1505 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1506
1507 # When interrupted or exit'd, cleanup temporary files, and complete
1508 # config.log. We remove comments because anyway the quotes in there
1509 # would cause problems or look ugly.
1510 # WARNING: Use '\'' to represent an apostrophe within the trap.
1511 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1512 trap 'exit_status=$?
1513 # Save into config.log some information that might help in debugging.
1514 {
1515 echo
1516
1517 cat <<\_ASBOX
1518 ## ---------------- ##
1519 ## Cache variables. ##
1520 ## ---------------- ##
1521 _ASBOX
1522 echo
1523 # The following way of writing the cache mishandles newlines in values,
1524 (
1525 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1526 eval ac_val=\$$ac_var
1527 case $ac_val in #(
1528 *${as_nl}*)
1529 case $ac_var in #(
1530 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1531 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532 esac
1533 case $ac_var in #(
1534 _ | IFS | as_nl) ;; #(
1535 *) $as_unset $ac_var ;;
1536 esac ;;
1537 esac
1538 done
1539 (set) 2>&1 |
1540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1541 *${as_nl}ac_space=\ *)
1542 sed -n \
1543 "s/'\''/'\''\\\\'\'''\''/g;
1544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545 ;; #(
1546 *)
1547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1548 ;;
1549 esac |
1550 sort
1551 )
1552 echo
1553
1554 cat <<\_ASBOX
1555 ## ----------------- ##
1556 ## Output variables. ##
1557 ## ----------------- ##
1558 _ASBOX
1559 echo
1560 for ac_var in $ac_subst_vars
1561 do
1562 eval ac_val=\$$ac_var
1563 case $ac_val in
1564 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1565 esac
1566 echo "$ac_var='\''$ac_val'\''"
1567 done | sort
1568 echo
1569
1570 if test -n "$ac_subst_files"; then
1571 cat <<\_ASBOX
1572 ## ------------------- ##
1573 ## File substitutions. ##
1574 ## ------------------- ##
1575 _ASBOX
1576 echo
1577 for ac_var in $ac_subst_files
1578 do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 esac
1583 echo "$ac_var='\''$ac_val'\''"
1584 done | sort
1585 echo
1586 fi
1587
1588 if test -s confdefs.h; then
1589 cat <<\_ASBOX
1590 ## ----------- ##
1591 ## confdefs.h. ##
1592 ## ----------- ##
1593 _ASBOX
1594 echo
1595 cat confdefs.h
1596 echo
1597 fi
1598 test "$ac_signal" != 0 &&
1599 echo "$as_me: caught signal $ac_signal"
1600 echo "$as_me: exit $exit_status"
1601 } >&5
1602 rm -f core *.core core.conftest.* &&
1603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1604 exit $exit_status
1605 ' 0
1606 for ac_signal in 1 2 13 15; do
1607 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1608 done
1609 ac_signal=0
1610
1611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1612 rm -f -r conftest* confdefs.h
1613
1614 # Predefined preprocessor variables.
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_NAME "$PACKAGE_NAME"
1618 _ACEOF
1619
1620
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1623 _ACEOF
1624
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1628 _ACEOF
1629
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_STRING "$PACKAGE_STRING"
1633 _ACEOF
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1638 _ACEOF
1639
1640
1641 # Let the site file select an alternate cache file if it wants to.
1642 # Prefer explicitly selected file to automatically selected ones.
1643 if test -n "$CONFIG_SITE"; then
1644 set x "$CONFIG_SITE"
1645 elif test "x$prefix" != xNONE; then
1646 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1647 else
1648 set x "$ac_default_prefix/share/config.site" \
1649 "$ac_default_prefix/etc/config.site"
1650 fi
1651 shift
1652 for ac_site_file
1653 do
1654 if test -r "$ac_site_file"; then
1655 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1656 echo "$as_me: loading site script $ac_site_file" >&6;}
1657 sed 's/^/| /' "$ac_site_file" >&5
1658 . "$ac_site_file"
1659 fi
1660 done
1661
1662 if test -r "$cache_file"; then
1663 # Some versions of bash will fail to source /dev/null (special
1664 # files actually), so we avoid doing that.
1665 if test -f "$cache_file"; then
1666 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1667 echo "$as_me: loading cache $cache_file" >&6;}
1668 case $cache_file in
1669 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1670 *) . "./$cache_file";;
1671 esac
1672 fi
1673 else
1674 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1675 echo "$as_me: creating cache $cache_file" >&6;}
1676 >$cache_file
1677 fi
1678
1679 # Check that the precious variables saved in the cache have kept the same
1680 # value.
1681 ac_cache_corrupted=false
1682 for ac_var in $ac_precious_vars; do
1683 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1684 eval ac_new_set=\$ac_env_${ac_var}_set
1685 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1686 eval ac_new_val=\$ac_env_${ac_var}_value
1687 case $ac_old_set,$ac_new_set in
1688 set,)
1689 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1690 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1691 ac_cache_corrupted=: ;;
1692 ,set)
1693 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1694 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1695 ac_cache_corrupted=: ;;
1696 ,);;
1697 *)
1698 if test "x$ac_old_val" != "x$ac_new_val"; then
1699 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1700 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1701 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1702 echo "$as_me: former value: $ac_old_val" >&2;}
1703 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1704 echo "$as_me: current value: $ac_new_val" >&2;}
1705 ac_cache_corrupted=:
1706 fi;;
1707 esac
1708 # Pass precious variables to config.status.
1709 if test "$ac_new_set" = set; then
1710 case $ac_new_val in
1711 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 *) ac_arg=$ac_var=$ac_new_val ;;
1713 esac
1714 case " $ac_configure_args " in
1715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1716 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1717 esac
1718 fi
1719 done
1720 if $ac_cache_corrupted; then
1721 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1722 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1723 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1724 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1725 { (exit 1); exit 1; }; }
1726 fi
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744 ac_ext=c
1745 ac_cpp='$CPP $CPPFLAGS'
1746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1749
1750
1751
1752 ac_aux_dir=
1753 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1754 if test -f "$ac_dir/install-sh"; then
1755 ac_aux_dir=$ac_dir
1756 ac_install_sh="$ac_aux_dir/install-sh -c"
1757 break
1758 elif test -f "$ac_dir/install.sh"; then
1759 ac_aux_dir=$ac_dir
1760 ac_install_sh="$ac_aux_dir/install.sh -c"
1761 break
1762 elif test -f "$ac_dir/shtool"; then
1763 ac_aux_dir=$ac_dir
1764 ac_install_sh="$ac_aux_dir/shtool install -c"
1765 break
1766 fi
1767 done
1768 if test -z "$ac_aux_dir"; then
1769 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1770 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774 # These three variables are undocumented and unsupported,
1775 # and are intended to be withdrawn in a future Autoconf release.
1776 # They can cause serious problems if a builder's source tree is in a directory
1777 # whose full name contains unusual characters.
1778 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1779 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1780 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1781
1782
1783 # Make sure we can run config.sub.
1784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1785 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1786 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1787 { (exit 1); exit 1; }; }
1788
1789 { echo "$as_me:$LINENO: checking build system type" >&5
1790 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1791 if test "${ac_cv_build+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 ac_build_alias=$build_alias
1795 test "x$ac_build_alias" = x &&
1796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1797 test "x$ac_build_alias" = x &&
1798 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1799 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1800 { (exit 1); exit 1; }; }
1801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1802 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1803 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1804 { (exit 1); exit 1; }; }
1805
1806 fi
1807 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1808 echo "${ECHO_T}$ac_cv_build" >&6; }
1809 case $ac_cv_build in
1810 *-*-*) ;;
1811 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1812 echo "$as_me: error: invalid value of canonical build" >&2;}
1813 { (exit 1); exit 1; }; };;
1814 esac
1815 build=$ac_cv_build
1816 ac_save_IFS=$IFS; IFS='-'
1817 set x $ac_cv_build
1818 shift
1819 build_cpu=$1
1820 build_vendor=$2
1821 shift; shift
1822 # Remember, the first character of IFS is used to create $*,
1823 # except with old shells:
1824 build_os=$*
1825 IFS=$ac_save_IFS
1826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1827
1828
1829 { echo "$as_me:$LINENO: checking host system type" >&5
1830 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1831 if test "${ac_cv_host+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 else
1834 if test "x$host_alias" = x; then
1835 ac_cv_host=$ac_cv_build
1836 else
1837 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1838 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1839 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1840 { (exit 1); exit 1; }; }
1841 fi
1842
1843 fi
1844 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1845 echo "${ECHO_T}$ac_cv_host" >&6; }
1846 case $ac_cv_host in
1847 *-*-*) ;;
1848 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1849 echo "$as_me: error: invalid value of canonical host" >&2;}
1850 { (exit 1); exit 1; }; };;
1851 esac
1852 host=$ac_cv_host
1853 ac_save_IFS=$IFS; IFS='-'
1854 set x $ac_cv_host
1855 shift
1856 host_cpu=$1
1857 host_vendor=$2
1858 shift; shift
1859 # Remember, the first character of IFS is used to create $*,
1860 # except with old shells:
1861 host_os=$*
1862 IFS=$ac_save_IFS
1863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1864
1865
1866 { echo "$as_me:$LINENO: checking target system type" >&5
1867 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1868 if test "${ac_cv_target+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871 if test "x$target_alias" = x; then
1872 ac_cv_target=$ac_cv_host
1873 else
1874 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1875 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1876 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1877 { (exit 1); exit 1; }; }
1878 fi
1879
1880 fi
1881 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1882 echo "${ECHO_T}$ac_cv_target" >&6; }
1883 case $ac_cv_target in
1884 *-*-*) ;;
1885 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1886 echo "$as_me: error: invalid value of canonical target" >&2;}
1887 { (exit 1); exit 1; }; };;
1888 esac
1889 target=$ac_cv_target
1890 ac_save_IFS=$IFS; IFS='-'
1891 set x $ac_cv_target
1892 shift
1893 target_cpu=$1
1894 target_vendor=$2
1895 shift; shift
1896 # Remember, the first character of IFS is used to create $*,
1897 # except with old shells:
1898 target_os=$*
1899 IFS=$ac_save_IFS
1900 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1901
1902
1903 # The aliases save the names the user supplied, while $host etc.
1904 # will get canonicalized.
1905 test -n "$target_alias" &&
1906 test "$program_prefix$program_suffix$program_transform_name" = \
1907 NONENONEs,x,x, &&
1908 program_prefix=${target_alias}-
1909
1910
1911
1912
1913
1914
1915 # Check whether --with-gcc was given.
1916 if test "${with_gcc+set}" = set; then
1917 withval=$with_gcc;
1918 fi
1919
1920 V_CCOPT="-O"
1921 V_INCLS=""
1922 if test "${srcdir}" != "." ; then
1923 V_INCLS="-I\$(srcdir)"
1924 fi
1925 if test "${CFLAGS+set}" = set; then
1926 LBL_CFLAGS="$CFLAGS"
1927 fi
1928 if test -z "$CC" ; then
1929 case "$host_os" in
1930
1931 bsdi*)
1932 # Extract the first word of "shlicc2", so it can be a program name with args.
1933 set dummy shlicc2; ac_word=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939 if test -n "$SHLICC2"; then
1940 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1949 ac_cv_prog_SHLICC2="yes"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953 done
1954 done
1955 IFS=$as_save_IFS
1956
1957 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1958 fi
1959 fi
1960 SHLICC2=$ac_cv_prog_SHLICC2
1961 if test -n "$SHLICC2"; then
1962 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1963 echo "${ECHO_T}$SHLICC2" >&6; }
1964 else
1965 { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1967 fi
1968
1969
1970 if test $SHLICC2 = yes ; then
1971 CC=shlicc2
1972 export CC
1973 fi
1974 ;;
1975 esac
1976 fi
1977 if test -z "$CC" -a "$with_gcc" = no ; then
1978 CC=cc
1979 export CC
1980 fi
1981 ac_ext=c
1982 ac_cpp='$CPP $CPPFLAGS'
1983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1986 if test -n "$ac_tool_prefix"; then
1987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2007 fi
2008 done
2009 done
2010 IFS=$as_save_IFS
2011
2012 fi
2013 fi
2014 CC=$ac_cv_prog_CC
2015 if test -n "$CC"; then
2016 { echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6; }
2018 else
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2021 fi
2022
2023
2024 fi
2025 if test -z "$ac_cv_prog_CC"; then
2026 ac_ct_CC=$CC
2027 # Extract the first word of "gcc", so it can be a program name with args.
2028 set dummy gcc; ac_word=$2
2029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 ac_cv_prog_ac_ct_CC="gcc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048 done
2049 done
2050 IFS=$as_save_IFS
2051
2052 fi
2053 fi
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6; }
2058 else
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2061 fi
2062
2063 if test "x$ac_ct_CC" = x; then
2064 CC=""
2065 else
2066 case $cross_compiling:$ac_tool_warned in
2067 yes:)
2068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2069 whose name does not start with the host triplet. If you think this
2070 configuration is useful to you, please write to autoconf@gnu.org." >&5
2071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2074 ac_tool_warned=yes ;;
2075 esac
2076 CC=$ac_ct_CC
2077 fi
2078 else
2079 CC="$ac_cv_prog_CC"
2080 fi
2081
2082 if test -z "$CC"; then
2083 if test -n "$ac_tool_prefix"; then
2084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2085 set dummy ${ac_tool_prefix}cc; ac_word=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC="$CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_prog_CC="${ac_tool_prefix}cc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105 done
2106 done
2107 IFS=$as_save_IFS
2108
2109 fi
2110 fi
2111 CC=$ac_cv_prog_CC
2112 if test -n "$CC"; then
2113 { echo "$as_me:$LINENO: result: $CC" >&5
2114 echo "${ECHO_T}$CC" >&6; }
2115 else
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 fi
2119
2120
2121 fi
2122 fi
2123 if test -z "$CC"; then
2124 # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc; ac_word=$2
2126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128 if test "${ac_cv_prog_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 else
2134 ac_prog_rejected=no
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
2141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2143 ac_prog_rejected=yes
2144 continue
2145 fi
2146 ac_cv_prog_CC="cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2149 fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 if test $ac_prog_rejected = yes; then
2155 # We found a bogon in the path, so make sure we never use it.
2156 set dummy $ac_cv_prog_CC
2157 shift
2158 if test $# != 0; then
2159 # We chose a different compiler from the bogus one.
2160 # However, it has the same basename, so the bogon will be chosen
2161 # first if we set CC to just the basename; use the full file name.
2162 shift
2163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2164 fi
2165 fi
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2172 else
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2175 fi
2176
2177
2178 fi
2179 if test -z "$CC"; then
2180 if test -n "$ac_tool_prefix"; then
2181 for ac_prog in cl.exe
2182 do
2183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204 done
2205 done
2206 IFS=$as_save_IFS
2207
2208 fi
2209 fi
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212 { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2214 else
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 fi
2218
2219
2220 test -n "$CC" && break
2221 done
2222 fi
2223 if test -z "$CC"; then
2224 ac_ct_CC=$CC
2225 for ac_prog in cl.exe
2226 do
2227 # Extract the first word of "$ac_prog", so it can be a program name with args.
2228 set dummy $ac_prog; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234 if test -n "$ac_ct_CC"; then
2235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240 IFS=$as_save_IFS
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244 ac_cv_prog_ac_ct_CC="$ac_prog"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 break 2
2247 fi
2248 done
2249 done
2250 IFS=$as_save_IFS
2251
2252 fi
2253 fi
2254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2255 if test -n "$ac_ct_CC"; then
2256 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2257 echo "${ECHO_T}$ac_ct_CC" >&6; }
2258 else
2259 { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2261 fi
2262
2263
2264 test -n "$ac_ct_CC" && break
2265 done
2266
2267 if test "x$ac_ct_CC" = x; then
2268 CC=""
2269 else
2270 case $cross_compiling:$ac_tool_warned in
2271 yes:)
2272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2273 whose name does not start with the host triplet. If you think this
2274 configuration is useful to you, please write to autoconf@gnu.org." >&5
2275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2276 whose name does not start with the host triplet. If you think this
2277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2278 ac_tool_warned=yes ;;
2279 esac
2280 CC=$ac_ct_CC
2281 fi
2282 fi
2283
2284 fi
2285
2286
2287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: no acceptable C compiler found in \$PATH
2290 See \`config.log' for more details." >&2;}
2291 { (exit 1); exit 1; }; }
2292
2293 # Provide some information about the compiler.
2294 echo "$as_me:$LINENO: checking for C compiler version" >&5
2295 ac_compiler=`set X $ac_compile; echo $2`
2296 { (ac_try="$ac_compiler --version >&5"
2297 case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300 esac
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_compiler --version >&5") 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }
2306 { (ac_try="$ac_compiler -v >&5"
2307 case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310 esac
2311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2312 (eval "$ac_compiler -v >&5") 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }
2316 { (ac_try="$ac_compiler -V >&5"
2317 case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320 esac
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322 (eval "$ac_compiler -V >&5") 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326
2327 cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h. */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2333
2334 int
2335 main ()
2336 {
2337
2338 ;
2339 return 0;
2340 }
2341 _ACEOF
2342 ac_clean_files_save=$ac_clean_files
2343 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2344 # Try to create an executable without -o first, disregard a.out.
2345 # It will help us diagnose broken compilers, and finding out an intuition
2346 # of exeext.
2347 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2348 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2349 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2350 #
2351 # List of possible output files, starting from the most likely.
2352 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2353 # only as a last resort. b.out is created by i960 compilers.
2354 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2355 #
2356 # The IRIX 6 linker writes into existing files which may not be
2357 # executable, retaining their permissions. Remove them first so a
2358 # subsequent execution test works.
2359 ac_rmfiles=
2360 for ac_file in $ac_files
2361 do
2362 case $ac_file in
2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2364 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2365 esac
2366 done
2367 rm -f $ac_rmfiles
2368
2369 if { (ac_try="$ac_link_default"
2370 case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373 esac
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375 (eval "$ac_link_default") 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; then
2379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2382 # so that the user can short-circuit this test for compilers unknown to
2383 # Autoconf.
2384 for ac_file in $ac_files ''
2385 do
2386 test -f "$ac_file" || continue
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2389 ;;
2390 [ab].out )
2391 # We found the default executable, but exeext='' is most
2392 # certainly right.
2393 break;;
2394 *.* )
2395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2396 then :; else
2397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2398 fi
2399 # We set ac_cv_exeext here because the later test for it is not
2400 # safe: cross compilers may not add the suffix if given an `-o'
2401 # argument, so we may need to know it at that point already.
2402 # Even if this section looks crufty: it has the advantage of
2403 # actually working.
2404 break;;
2405 * )
2406 break;;
2407 esac
2408 done
2409 test "$ac_cv_exeext" = no && ac_cv_exeext=
2410
2411 else
2412 ac_file=''
2413 fi
2414
2415 { echo "$as_me:$LINENO: result: $ac_file" >&5
2416 echo "${ECHO_T}$ac_file" >&6; }
2417 if test -z "$ac_file"; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: C compiler cannot create executables
2424 See \`config.log' for more details." >&2;}
2425 { (exit 77); exit 77; }; }
2426 fi
2427
2428 ac_exeext=$ac_cv_exeext
2429
2430 # Check that the compiler produces executables we can run. If not, either
2431 # the compiler is broken, or we cross compile.
2432 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2433 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2434 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2435 # If not cross compiling, check that we can run a simple program.
2436 if test "$cross_compiling" != yes; then
2437 if { ac_try='./$ac_file'
2438 { (case "(($ac_try" in
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2441 esac
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_try") 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 cross_compiling=no
2448 else
2449 if test "$cross_compiling" = maybe; then
2450 cross_compiling=yes
2451 else
2452 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2453 If you meant to cross compile, use \`--host'.
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: cannot run C compiled programs.
2456 If you meant to cross compile, use \`--host'.
2457 See \`config.log' for more details." >&2;}
2458 { (exit 1); exit 1; }; }
2459 fi
2460 fi
2461 fi
2462 { echo "$as_me:$LINENO: result: yes" >&5
2463 echo "${ECHO_T}yes" >&6; }
2464
2465 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2466 ac_clean_files=$ac_clean_files_save
2467 # Check that the compiler produces executables we can run. If not, either
2468 # the compiler is broken, or we cross compile.
2469 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2470 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2471 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2472 echo "${ECHO_T}$cross_compiling" >&6; }
2473
2474 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2475 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2476 if { (ac_try="$ac_link"
2477 case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_link") 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; then
2486 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2487 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2488 # work properly (i.e., refer to `conftest.exe'), while it won't with
2489 # `rm'.
2490 for ac_file in conftest.exe conftest conftest.*; do
2491 test -f "$ac_file" || continue
2492 case $ac_file in
2493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2495 break;;
2496 * ) break;;
2497 esac
2498 done
2499 else
2500 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2505 fi
2506
2507 rm -f conftest$ac_cv_exeext
2508 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2509 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2510
2511 rm -f conftest.$ac_ext
2512 EXEEXT=$ac_cv_exeext
2513 ac_exeext=$EXEEXT
2514 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2515 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2516 if test "${ac_cv_objext+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2525
2526 int
2527 main ()
2528 {
2529
2530 ;
2531 return 0;
2532 }
2533 _ACEOF
2534 rm -f conftest.o conftest.obj
2535 if { (ac_try="$ac_compile"
2536 case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; then
2545 for ac_file in conftest.o conftest.obj conftest.*; do
2546 test -f "$ac_file" || continue;
2547 case $ac_file in
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550 break;;
2551 esac
2552 done
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2562 fi
2563
2564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2565 fi
2566 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2567 echo "${ECHO_T}$ac_cv_objext" >&6; }
2568 OBJEXT=$ac_cv_objext
2569 ac_objext=$OBJEXT
2570 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2581
2582 int
2583 main ()
2584 {
2585 #ifndef __GNUC__
2586 choke me
2587 #endif
2588
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compile") 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } && {
2607 test -z "$ac_c_werror_flag" ||
2608 test ! -s conftest.err
2609 } && test -s conftest.$ac_objext; then
2610 ac_compiler_gnu=yes
2611 else
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2614
2615 ac_compiler_gnu=no
2616 fi
2617
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2620
2621 fi
2622 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2624 GCC=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CFLAGS=${CFLAGS+set}
2626 ac_save_CFLAGS=$CFLAGS
2627 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2628 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_cc_g+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 ac_save_c_werror_flag=$ac_c_werror_flag
2633 ac_c_werror_flag=yes
2634 ac_cv_prog_cc_g=no
2635 CFLAGS="-g"
2636 cat >conftest.$ac_ext <<_ACEOF
2637 /* confdefs.h. */
2638 _ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2642
2643 int
2644 main ()
2645 {
2646
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext
2652 if { (ac_try="$ac_compile"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2668 ac_cv_prog_cc_g=yes
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 CFLAGS=""
2674 cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h. */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2680
2681 int
2682 main ()
2683 {
2684
2685 ;
2686 return 0;
2687 }
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_compile") 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } && {
2703 test -z "$ac_c_werror_flag" ||
2704 test ! -s conftest.err
2705 } && test -s conftest.$ac_objext; then
2706 :
2707 else
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 ac_c_werror_flag=$ac_save_c_werror_flag
2712 CFLAGS="-g"
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2719
2720 int
2721 main ()
2722 {
2723
2724 ;
2725 return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest.$ac_objext; then
2745 ac_cv_prog_cc_g=yes
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750
2751 fi
2752
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 fi
2755
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 fi
2758
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_c_werror_flag=$ac_save_c_werror_flag
2761 fi
2762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2764 if test "$ac_test_CFLAGS" = set; then
2765 CFLAGS=$ac_save_CFLAGS
2766 elif test $ac_cv_prog_cc_g = yes; then
2767 if test "$GCC" = yes; then
2768 CFLAGS="-g -O2"
2769 else
2770 CFLAGS="-g"
2771 fi
2772 else
2773 if test "$GCC" = yes; then
2774 CFLAGS="-O2"
2775 else
2776 CFLAGS=
2777 fi
2778 fi
2779 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2780 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_cc_c89+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 ac_cv_prog_cc_c89=no
2785 ac_save_CC=$CC
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2792 #include <stdarg.h>
2793 #include <stdio.h>
2794 #include <sys/types.h>
2795 #include <sys/stat.h>
2796 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2797 struct buf { int x; };
2798 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2799 static char *e (p, i)
2800 char **p;
2801 int i;
2802 {
2803 return p[i];
2804 }
2805 static char *f (char * (*g) (char **, int), char **p, ...)
2806 {
2807 char *s;
2808 va_list v;
2809 va_start (v,p);
2810 s = g (p, va_arg (v,int));
2811 va_end (v);
2812 return s;
2813 }
2814
2815 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2816 function prototypes and stuff, but not '\xHH' hex character constants.
2817 These don't provoke an error unfortunately, instead are silently treated
2818 as 'x'. The following induces an error, until -std is added to get
2819 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2820 array size at least. It's necessary to write '\x00'==0 to get something
2821 that's true only with -std. */
2822 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2823
2824 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2825 inside strings and character constants. */
2826 #define FOO(x) 'x'
2827 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2828
2829 int test (int i, double x);
2830 struct s1 {int (*f) (int a);};
2831 struct s2 {int (*f) (double a);};
2832 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2833 int argc;
2834 char **argv;
2835 int
2836 main ()
2837 {
2838 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2844 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2845 do
2846 CC="$ac_save_CC $ac_arg"
2847 rm -f conftest.$ac_objext
2848 if { (ac_try="$ac_compile"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_compile") 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } && {
2861 test -z "$ac_c_werror_flag" ||
2862 test ! -s conftest.err
2863 } && test -s conftest.$ac_objext; then
2864 ac_cv_prog_cc_c89=$ac_arg
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869
2870 fi
2871
2872 rm -f core conftest.err conftest.$ac_objext
2873 test "x$ac_cv_prog_cc_c89" != "xno" && break
2874 done
2875 rm -f conftest.$ac_ext
2876 CC=$ac_save_CC
2877
2878 fi
2879 # AC_CACHE_VAL
2880 case "x$ac_cv_prog_cc_c89" in
2881 x)
2882 { echo "$as_me:$LINENO: result: none needed" >&5
2883 echo "${ECHO_T}none needed" >&6; } ;;
2884 xno)
2885 { echo "$as_me:$LINENO: result: unsupported" >&5
2886 echo "${ECHO_T}unsupported" >&6; } ;;
2887 *)
2888 CC="$CC $ac_cv_prog_cc_c89"
2889 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2891 esac
2892
2893
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899
2900 if test "$GCC" = yes ; then
2901 if test "$SHLICC2" = yes ; then
2902 ac_cv_lbl_gcc_vers=2
2903 V_CCOPT="-O2"
2904 else
2905 { echo "$as_me:$LINENO: checking gcc version" >&5
2906 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2907 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2911 sed -e '/^gcc version /!d' \
2912 -e 's/^gcc version //' \
2913 -e 's/ .*//' -e 's/^[^0-9]*//' \
2914 -e 's/\..*//'`
2915 fi
2916
2917 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2918 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2919 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2920 V_CCOPT="-O2"
2921 fi
2922 fi
2923
2924 #
2925 # On platforms where we build a shared library:
2926 #
2927 # add options to generate position-independent code,
2928 # if necessary (it's the default in AIX and Darwin/OS X);
2929 #
2930 # define option to set the soname of the shared library,
2931 # if the OS supports that;
2932 #
2933 # add options to specify, at link time, a directory to
2934 # add to the run-time search path, if that's necessary.
2935 #
2936 V_SHLIB_CMD="\$(CC)"
2937 V_SHLIB_OPT="-shared"
2938 case "$host_os" in
2939
2940 aix*)
2941 ;;
2942
2943 freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
2944 #
2945 # Platforms where the linker is the GNU linker
2946 # or accepts command-line arguments like
2947 # those the GNU linker accepts.
2948 #
2949 V_CCOPT="$V_CCOPT -fpic"
2950 V_SONAME_OPT="-Wl,-soname,"
2951 V_RPATH_OPT="-Wl,-rpath,"
2952 ;;
2953
2954 hpux*)
2955 V_CCOPT="$V_CCOPT -fpic"
2956 #
2957 # XXX - this assumes GCC is using the HP linker,
2958 # rather than the GNU linker, and that the "+h"
2959 # option is used on all HP-UX platforms, both .sl
2960 # and .so.
2961 #
2962 V_SONAME_OPT="-Wl,+h,"
2963 #
2964 # By default, directories specifed with -L
2965 # are added to the run-time search path, so
2966 # we don't add them in pcap-config.
2967 #
2968 ;;
2969
2970 solaris*)
2971 V_CCOPT="$V_CCOPT -fpic"
2972 #
2973 # XXX - this assumes GCC is using the Sun linker,
2974 # rather than the GNU linker.
2975 #
2976 V_SONAME_OPT="-Wl,-h,"
2977 V_RPATH_OPT="-Wl,-R,"
2978 ;;
2979 esac
2980 else
2981 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2982 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2983 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 #include <sys/types.h>
2994 int
2995 main ()
2996 {
2997 int frob(int, char *)
2998 ;
2999 return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3019 ac_cv_lbl_cc_ansi_prototypes=yes
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 ac_cv_lbl_cc_ansi_prototypes=no
3025 fi
3026
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 fi
3029
3030 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
3031 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
3032 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
3033 case "$host_os" in
3034
3035 hpux*)
3036 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
3037 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
3038 savedcflags="$CFLAGS"
3039 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
3040 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 else
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3049 #include <sys/types.h>
3050 int
3051 main ()
3052 {
3053 int frob(int, char *)
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3075 ac_cv_lbl_cc_hpux_cc_aa=yes
3076 else
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 ac_cv_lbl_cc_hpux_cc_aa=no
3081 fi
3082
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 fi
3085
3086 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
3087 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
3088 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
3089 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3090 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3091 { (exit 1); exit 1; }; }
3092 fi
3093 CFLAGS="$savedcflags"
3094 V_CCOPT="-Aa $V_CCOPT"
3095
3096 cat >>confdefs.h <<\_ACEOF
3097 #define _HPUX_SOURCE 1
3098 _ACEOF
3099
3100 ;;
3101
3102 osf*)
3103 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
3104 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
3105 savedcflags="$CFLAGS"
3106 CFLAGS="-std1"
3107 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h. */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3116 #include <sys/types.h>
3117 int
3118 main ()
3119 {
3120 int frob(int, char *)
3121 ;
3122 return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 ac_cv_lbl_cc_osf1_cc_std1=yes
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_cv_lbl_cc_osf1_cc_std1=no
3148 fi
3149
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 fi
3152
3153 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3154 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3155 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3156 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3157 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160 CFLAGS="$savedcflags"
3161 V_CCOPT="-std1 $V_CCOPT"
3162 ;;
3163
3164 *)
3165 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3166 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3167 { (exit 1); exit 1; }; }
3168 ;;
3169 esac
3170 fi
3171 V_INCLS="$V_INCLS -I/usr/local/include"
3172 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3173
3174 #
3175 # Set the appropriate compiler flags and, on platforms
3176 # where we build a shared library:
3177 #
3178 # add options to generate position-independent code,
3179 # if necessary (it's the default in Darwin/OS X);
3180 #
3181 # if we generate ".so" shared libraries, define the
3182 # appropriate options for building the shared library;
3183 #
3184 # add options to specify, at link time, a directory to
3185 # add to the run-time search path, if that's necessary.
3186 #
3187 # Note: spaces after V_SONAME_OPT are significant; on
3188 # some platforms the soname is passed with a GCC-like
3189 # "-Wl,-soname,{soname}" option, with the soname part
3190 # of the option, while on other platforms the C compiler
3191 # driver takes it as a regular option with the soname
3192 # following the option. The same applies to V_RPATH_OPT.
3193 #
3194 case "$host_os" in
3195
3196 aix*)
3197 V_SHLIB_CMD="\$(CC)"
3198 V_SHLIB_OPT="-G -bnoentry -bexpall"
3199 ;;
3200
3201 freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
3202 #
3203 # "cc" is GCC.
3204 #
3205 V_CCOPT="$V_CCOPT -fpic"
3206 V_SHLIB_CMD="\$(CC)"
3207 V_SHLIB_OPT="-shared"
3208 V_SONAME_OPT="-Wl,-soname,"
3209 V_RPATH_OPT="-Wl,-rpath,"
3210 ;;
3211
3212 hpux*)
3213 V_CCOPT="$V_CCOPT +z"
3214 V_SHLIB_CMD="\$(LD)"
3215 V_SHLIB_OPT="-b"
3216 V_SONAME_OPT="+h "
3217 #
3218 # By default, directories specifed with -L
3219 # are added to the run-time search path, so
3220 # we don't add them in pcap-config.
3221 #
3222 ;;
3223
3224 irix*)
3225 V_CCOPT="$V_CCOPT -xansi -signed -g3"
3226 ;;
3227
3228 osf*)
3229 #
3230 # Presumed to be DEC OSF/1, Digital UNIX, or
3231 # Tru64 UNIX.
3232 #
3233 V_CCOPT="$V_CCOPT -g3"
3234 V_SHLIB_CMD="\$(CC)"
3235 V_SHLIB_OPT="-shared"
3236 V_SONAME_OPT="-soname "
3237 V_RPATH_OPT="-rpath "
3238 ;;
3239
3240 solaris*)
3241 V_CCOPT="$V_CCOPT -Kpic"
3242 V_SHLIB_CMD="\$(CC)"
3243 V_SHLIB_OPT="-G"
3244 V_SONAME_OPT="-h "
3245 V_RPATH_OPT="-R"
3246 ;;
3247
3248 ultrix*)
3249 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3250 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3251 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 #include <sys/types.h>
3261 int
3262 main ()
3263 {
3264 struct a { int b; };
3265 void c(const struct a *)
3266 ;
3267 return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } && {
3284 test -z "$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 } && test -s conftest.$ac_objext; then
3287 ac_cv_lbl_cc_const_proto=yes
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 ac_cv_lbl_cc_const_proto=no
3293 fi
3294
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 fi
3297
3298 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3299 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3300 if test $ac_cv_lbl_cc_const_proto = no ; then
3301
3302 cat >>confdefs.h <<\_ACEOF
3303 #define const
3304 _ACEOF
3305
3306 fi
3307 ;;
3308 esac
3309 fi
3310
3311 { echo "$as_me:$LINENO: checking for inline" >&5
3312 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3313 save_CFLAGS="$CFLAGS"
3314 CFLAGS="$V_CCOPT"
3315 if test "${ac_cv_lbl_inline+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318
3319 ac_cv_lbl_inline=""
3320 ac_lbl_cc_inline=no
3321 for ac_lbl_inline in inline __inline__ __inline
3322 do
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #define inline $ac_lbl_inline
3330 static inline struct iltest *foo(void);
3331 struct iltest {
3332 int iltest1;
3333 int iltest2;
3334 };
3335
3336 static inline struct iltest *
3337 foo()
3338 {
3339 static struct iltest xxx;
3340
3341 return &xxx;
3342 }
3343 int
3344 main ()
3345 {
3346
3347 ;
3348 return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compile") 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
3368 ac_lbl_cc_inline=yes
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373
3374 fi
3375
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 if test "$ac_lbl_cc_inline" = yes ; then
3378 break;
3379 fi
3380 done
3381 if test "$ac_lbl_cc_inline" = yes ; then
3382 ac_cv_lbl_inline=$ac_lbl_inline
3383 fi
3384 fi
3385
3386 CFLAGS="$save_CFLAGS"
3387 if test ! -z "$ac_cv_lbl_inline" ; then
3388 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3389 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3390 else
3391 { echo "$as_me:$LINENO: result: no" >&5
3392 echo "${ECHO_T}no" >&6; }
3393 fi
3394
3395 cat >>confdefs.h <<_ACEOF
3396 #define inline $ac_cv_lbl_inline
3397 _ACEOF
3398
3399
3400 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3401 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3402 if test "${ac_cv___attribute__+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412
3413 #include <stdlib.h>
3414
3415 static void foo(void) __attribute__ ((noreturn));
3416
3417 static void
3418 foo(void)
3419 {
3420 exit(1);
3421 }
3422
3423 int
3424 main(int argc, char **argv)
3425 {
3426 foo();
3427 }
3428
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv___attribute__=yes
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_cv___attribute__=no
3453 fi
3454
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457
3458 if test "$ac_cv___attribute__" = "yes"; then
3459
3460 cat >>confdefs.h <<\_ACEOF
3461 #define HAVE___ATTRIBUTE__ 1
3462 _ACEOF
3463
3464 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3465 else
3466 V_DEFS="$V_DEFS -D_U_=\"\""
3467 fi
3468 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3469 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3470
3471
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3478 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3479 # On Suns, sometimes $CPP names a directory.
3480 if test -n "$CPP" && test -d "$CPP"; then
3481 CPP=
3482 fi
3483 if test -z "$CPP"; then
3484 if test "${ac_cv_prog_CPP+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 # Double quotes because CPP needs to be expanded
3488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3489 do
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3492 do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 #ifdef __STDC__
3506 # include <limits.h>
3507 #else
3508 # include <assert.h>
3509 #endif
3510 Syntax error
3511 _ACEOF
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3527 }; then
3528 :
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533 # Broken: fails on valid input.
3534 continue
3535 fi
3536
3537 rm -f conftest.err conftest.$ac_ext
3538
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3548 _ACEOF
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null && {
3562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3564 }; then
3565 # Broken: success on invalid input.
3566 continue
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 # Passes both tests.
3572 ac_preproc_ok=:
3573 break
3574 fi
3575
3576 rm -f conftest.err conftest.$ac_ext
3577
3578 done
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then
3582 break
3583 fi
3584
3585 done
3586 ac_cv_prog_CPP=$CPP
3587
3588 fi
3589 CPP=$ac_cv_prog_CPP
3590 else
3591 ac_cv_prog_CPP=$CPP
3592 fi
3593 { echo "$as_me:$LINENO: result: $CPP" >&5
3594 echo "${ECHO_T}$CPP" >&6; }
3595 ac_preproc_ok=false
3596 for ac_c_preproc_warn_flag in '' yes
3597 do
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3601 # <limits.h> exists even on freestanding compilers.
3602 # On the NeXT, cc -E runs the code through the compiler's parser,
3603 # not just through cpp. "Syntax error" is here to catch this case.
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h. */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h. */
3610 #ifdef __STDC__
3611 # include <limits.h>
3612 #else
3613 # include <assert.h>
3614 #endif
3615 Syntax error
3616 _ACEOF
3617 if { (ac_try="$ac_cpp conftest.$ac_ext"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } >/dev/null && {
3630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3632 }; then
3633 :
3634 else
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638 # Broken: fails on valid input.
3639 continue
3640 fi
3641
3642 rm -f conftest.err conftest.$ac_ext
3643
3644 # OK, works on sane cases. Now check whether nonexistent headers
3645 # can be detected and how.
3646 cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h. */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3652 #include <ac_nonexistent.h>
3653 _ACEOF
3654 if { (ac_try="$ac_cpp conftest.$ac_ext"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } >/dev/null && {
3667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 }; then
3670 # Broken: success on invalid input.
3671 continue
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 # Passes both tests.
3677 ac_preproc_ok=:
3678 break
3679 fi
3680
3681 rm -f conftest.err conftest.$ac_ext
3682
3683 done
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.err conftest.$ac_ext
3686 if $ac_preproc_ok; then
3687 :
3688 else
3689 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3690 See \`config.log' for more details." >&5
3691 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3692 See \`config.log' for more details." >&2;}
3693 { (exit 1); exit 1; }; }
3694 fi
3695
3696 ac_ext=c
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3702
3703 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3704 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3705 if test "${ac_cv_path_GREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 # Extract the first word of "grep ggrep" to use in msg output
3709 if test -z "$GREP"; then
3710 set dummy grep ggrep; ac_prog_name=$2
3711 if test "${ac_cv_path_GREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 ac_path_GREP_found=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_prog in grep ggrep; do
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3725 # Check for GNU ac_path_GREP and select it if it is found.
3726 # Check for GNU $ac_path_GREP
3727 case `"$ac_path_GREP" --version 2>&1` in
3728 *GNU*)
3729 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3730 *)
3731 ac_count=0
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3733 while :
3734 do
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo 'GREP' >> "conftest.nl"
3739 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741 ac_count=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_GREP="$ac_path_GREP"
3745 ac_path_GREP_max=$ac_count
3746 fi
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3749 done
3750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751 esac
3752
3753
3754 $ac_path_GREP_found && break 3
3755 done
3756 done
3757
3758 done
3759 IFS=$as_save_IFS
3760
3761
3762 fi
3763
3764 GREP="$ac_cv_path_GREP"
3765 if test -z "$GREP"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768 { (exit 1); exit 1; }; }
3769 fi
3770
3771 else
3772 ac_cv_path_GREP=$GREP
3773 fi
3774
3775
3776 fi
3777 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3778 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3779 GREP="$ac_cv_path_GREP"
3780
3781
3782 { echo "$as_me:$LINENO: checking for egrep" >&5
3783 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3784 if test "${ac_cv_path_EGREP+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3788 then ac_cv_path_EGREP="$GREP -E"
3789 else
3790 # Extract the first word of "egrep" to use in msg output
3791 if test -z "$EGREP"; then
3792 set dummy egrep; ac_prog_name=$2
3793 if test "${ac_cv_path_EGREP+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 ac_path_EGREP_found=false
3797 # Loop through the user's path and test for each of PROGNAME-LIST
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 do
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_prog in egrep; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3806 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3807 # Check for GNU ac_path_EGREP and select it if it is found.
3808 # Check for GNU $ac_path_EGREP
3809 case `"$ac_path_EGREP" --version 2>&1` in
3810 *GNU*)
3811 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3812 *)
3813 ac_count=0
3814 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3815 while :
3816 do
3817 cat "conftest.in" "conftest.in" >"conftest.tmp"
3818 mv "conftest.tmp" "conftest.in"
3819 cp "conftest.in" "conftest.nl"
3820 echo 'EGREP' >> "conftest.nl"
3821 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3823 ac_count=`expr $ac_count + 1`
3824 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3825 # Best one so far, save it but keep looking for a better one
3826 ac_cv_path_EGREP="$ac_path_EGREP"
3827 ac_path_EGREP_max=$ac_count
3828 fi
3829 # 10*(2^10) chars as input seems more than enough
3830 test $ac_count -gt 10 && break
3831 done
3832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3833 esac
3834
3835
3836 $ac_path_EGREP_found && break 3
3837 done
3838 done
3839
3840 done
3841 IFS=$as_save_IFS
3842
3843
3844 fi
3845
3846 EGREP="$ac_cv_path_EGREP"
3847 if test -z "$EGREP"; then
3848 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3849 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3850 { (exit 1); exit 1; }; }
3851 fi
3852
3853 else
3854 ac_cv_path_EGREP=$EGREP
3855 fi
3856
3857
3858 fi
3859 fi
3860 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3861 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3862 EGREP="$ac_cv_path_EGREP"
3863
3864
3865 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3866 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3867 if test "${ac_cv_header_stdc+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 #include <stdlib.h>
3877 #include <stdarg.h>
3878 #include <string.h>
3879 #include <float.h>
3880
3881 int
3882 main ()
3883 {
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3906 ac_cv_header_stdc=yes
3907 else
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 ac_cv_header_stdc=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916 if test $ac_cv_header_stdc = yes; then
3917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 #include <string.h>
3925
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "memchr" >/dev/null 2>&1; then
3929 :
3930 else
3931 ac_cv_header_stdc=no
3932 fi
3933 rm -f -r conftest*
3934
3935 fi
3936
3937 if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <stdlib.h>
3946
3947 _ACEOF
3948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3949 $EGREP "free" >/dev/null 2>&1; then
3950 :
3951 else
3952 ac_cv_header_stdc=no
3953 fi
3954 rm -f -r conftest*
3955
3956 fi
3957
3958 if test $ac_cv_header_stdc = yes; then
3959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3960 if test "$cross_compiling" = yes; then
3961 :
3962 else
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 #include <ctype.h>
3970 #include <stdlib.h>
3971 #if ((' ' & 0x0FF) == 0x020)
3972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3974 #else
3975 # define ISLOWER(c) \
3976 (('a' <= (c) && (c) <= 'i') \
3977 || ('j' <= (c) && (c) <= 'r') \
3978 || ('s' <= (c) && (c) <= 'z'))
3979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3980 #endif
3981
3982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3983 int
3984 main ()
3985 {
3986 int i;
3987 for (i = 0; i < 256; i++)
3988 if (XOR (islower (i), ISLOWER (i))
3989 || toupper (i) != TOUPPER (i))
3990 return 2;
3991 return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest$ac_exeext
3995 if { (ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4005 { (case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_try") 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 :
4015 else
4016 echo "$as_me: program exited with status $ac_status" >&5
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 ( exit $ac_status )
4021 ac_cv_header_stdc=no
4022 fi
4023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4024 fi
4025
4026
4027 fi
4028 fi
4029 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4030 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4031 if test $ac_cv_header_stdc = yes; then
4032
4033 cat >>confdefs.h <<\_ACEOF
4034 #define STDC_HEADERS 1
4035 _ACEOF
4036
4037 fi
4038
4039 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4050 inttypes.h stdint.h unistd.h
4051 do
4052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 $ac_includes_default
4065
4066 #include <$ac_header>
4067 _ACEOF
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4070 case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073 esac
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && {
4082 test -z "$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 } && test -s conftest.$ac_objext; then
4085 eval "$as_ac_Header=yes"
4086 else
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 eval "$as_ac_Header=no"
4091 fi
4092
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 ac_res=`eval echo '${'$as_ac_Header'}'`
4096 { echo "$as_me:$LINENO: result: $ac_res" >&5
4097 echo "${ECHO_T}$ac_res" >&6; }
4098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4099 cat >>confdefs.h <<_ACEOF
4100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4101 _ACEOF
4102
4103 fi
4104
4105 done
4106
4107
4108
4109 for ac_header in sys/bitypes.h
4110 do
4111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 fi
4118 ac_res=`eval echo '${'$as_ac_Header'}'`
4119 { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4121 else
4122 # Is the header compilable?
4123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4132 #include <$ac_header>
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 ac_header_compiler=yes
4152 else
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 ac_header_compiler=no
4157 fi
4158
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4161 echo "${ECHO_T}$ac_header_compiler" >&6; }
4162
4163 # Is the header present?
4164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172 #include <$ac_header>
4173 _ACEOF
4174 if { (ac_try="$ac_cpp conftest.$ac_ext"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null && {
4187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 }; then
4190 ac_header_preproc=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195 ac_header_preproc=no
4196 fi
4197
4198 rm -f conftest.err conftest.$ac_ext
4199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4200 echo "${ECHO_T}$ac_header_preproc" >&6; }
4201
4202 # So? What about this header?
4203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4204 yes:no: )
4205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4209 ac_header_preproc=yes
4210 ;;
4211 no:yes:* )
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4224
4225 ;;
4226 esac
4227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 eval "$as_ac_Header=\$ac_header_preproc"
4233 fi
4234 ac_res=`eval echo '${'$as_ac_Header'}'`
4235 { echo "$as_me:$LINENO: result: $ac_res" >&5
4236 echo "${ECHO_T}$ac_res" >&6; }
4237
4238 fi
4239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4240 cat >>confdefs.h <<_ACEOF
4241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4242 _ACEOF
4243
4244 fi
4245
4246 done
4247
4248
4249 { echo "$as_me:$LINENO: checking for int8_t" >&5
4250 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
4251 if test "${ac_cv_type_int8_t+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 $ac_includes_default
4261 #ifdef HAVE_SYS_BITYPES_H
4262 #include <sys/bitypes.h>
4263 #endif
4264
4265 typedef int8_t ac__type_new_;
4266 int
4267 main ()
4268 {
4269 if ((ac__type_new_ *) 0)
4270 return 0;
4271 if (sizeof (ac__type_new_))
4272 return 0;
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && {
4291 test -z "$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4293 } && test -s conftest.$ac_objext; then
4294 ac_cv_type_int8_t=yes
4295 else
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 ac_cv_type_int8_t=no
4300 fi
4301
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
4305 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
4306 if test $ac_cv_type_int8_t = yes; then
4307 :
4308 else
4309
4310 cat >>confdefs.h <<\_ACEOF
4311 #define int8_t signed char
4312 _ACEOF
4313
4314 fi
4315
4316 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
4317 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
4318 if test "${ac_cv_type_u_int8_t+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h. */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 $ac_includes_default
4328 #ifdef HAVE_SYS_BITYPES_H
4329 #include <sys/bitypes.h>
4330 #endif
4331
4332 typedef u_int8_t ac__type_new_;
4333 int
4334 main ()
4335 {
4336 if ((ac__type_new_ *) 0)
4337 return 0;
4338 if (sizeof (ac__type_new_))
4339 return 0;
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 ac_cv_type_u_int8_t=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_type_u_int8_t=no
4367 fi
4368
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
4372 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
4373 if test $ac_cv_type_u_int8_t = yes; then
4374 :
4375 else
4376
4377 cat >>confdefs.h <<\_ACEOF
4378 #define u_int8_t unsigned char
4379 _ACEOF
4380
4381 fi
4382
4383 { echo "$as_me:$LINENO: checking for int16_t" >&5
4384 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
4385 if test "${ac_cv_type_int16_t+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4394 $ac_includes_default
4395 typedef int16_t ac__type_new_;
4396 int
4397 main ()
4398 {
4399 if ((ac__type_new_ *) 0)
4400 return 0;
4401 if (sizeof (ac__type_new_))
4402 return 0;
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (ac_try="$ac_compile"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_compile") 2>conftest.er1
4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest.$ac_objext; then
4424 ac_cv_type_int16_t=yes
4425 else
4426 echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 ac_cv_type_int16_t=no
4430 fi
4431
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 fi
4434 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
4435 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
4436 if test $ac_cv_type_int16_t = yes; then
4437 :
4438 else
4439
4440 cat >>confdefs.h <<\_ACEOF
4441 #define int16_t short
4442 _ACEOF
4443
4444 $ac_includes_default
4445 #ifdef HAVE_SYS_BITYPES_H
4446 #include <sys/bitypes.h>
4447 #endif
4448 fi
4449
4450 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
4451 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
4452 if test "${ac_cv_type_u_int16_t+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4462 #ifdef HAVE_SYS_BITYPES_H
4463 #include <sys/bitypes.h>
4464 #endif
4465
4466 typedef u_int16_t ac__type_new_;
4467 int
4468 main ()
4469 {
4470 if ((ac__type_new_ *) 0)
4471 return 0;
4472 if (sizeof (ac__type_new_))
4473 return 0;
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 rm -f conftest.$ac_objext
4479 if { (ac_try="$ac_compile"
4480 case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && {
4492 test -z "$ac_c_werror_flag" ||
4493 test ! -s conftest.err
4494 } && test -s conftest.$ac_objext; then
4495 ac_cv_type_u_int16_t=yes
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 ac_cv_type_u_int16_t=no
4501 fi
4502
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 fi
4505 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
4506 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
4507 if test $ac_cv_type_u_int16_t = yes; then
4508 :
4509 else
4510
4511 cat >>confdefs.h <<\_ACEOF
4512 #define u_int16_t unsigned short
4513 _ACEOF
4514
4515 fi
4516
4517 { echo "$as_me:$LINENO: checking for int32_t" >&5
4518 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
4519 if test "${ac_cv_type_int32_t+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4529 #ifdef HAVE_SYS_BITYPES_H
4530 #include <sys/bitypes.h>
4531 #endif
4532
4533 typedef int32_t ac__type_new_;
4534 int
4535 main ()
4536 {
4537 if ((ac__type_new_ *) 0)
4538 return 0;
4539 if (sizeof (ac__type_new_))
4540 return 0;
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_compile") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && {
4559 test -z "$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 } && test -s conftest.$ac_objext; then
4562 ac_cv_type_int32_t=yes
4563 else
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567 ac_cv_type_int32_t=no
4568 fi
4569
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 fi
4572 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
4573 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
4574 if test $ac_cv_type_int32_t = yes; then
4575 :
4576 else
4577
4578 cat >>confdefs.h <<\_ACEOF
4579 #define int32_t int
4580 _ACEOF
4581
4582 fi
4583
4584 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
4585 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
4586 if test "${ac_cv_type_u_int32_t+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h. */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 $ac_includes_default
4596 #ifdef HAVE_SYS_BITYPES_H
4597 #include <sys/bitypes.h>
4598 #endif
4599
4600 typedef u_int32_t ac__type_new_;
4601 int
4602 main ()
4603 {
4604 if ((ac__type_new_ *) 0)
4605 return 0;
4606 if (sizeof (ac__type_new_))
4607 return 0;
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (ac_try="$ac_compile"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.$ac_objext; then
4629 ac_cv_type_u_int32_t=yes
4630 else
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4633
4634 ac_cv_type_u_int32_t=no
4635 fi
4636
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 fi
4639 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
4640 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
4641 if test $ac_cv_type_u_int32_t = yes; then
4642 :
4643 else
4644
4645 cat >>confdefs.h <<\_ACEOF
4646 #define u_int32_t unsigned int
4647 _ACEOF
4648
4649 fi
4650
4651 { echo "$as_me:$LINENO: checking for int64_t" >&5
4652 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
4653 if test "${ac_cv_type_int64_t+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 $ac_includes_default
4663 #ifdef HAVE_SYS_BITYPES_H
4664 #include <sys/bitypes.h>
4665 #endif
4666
4667 typedef int64_t ac__type_new_;
4668 int
4669 main ()
4670 {
4671 if ((ac__type_new_ *) 0)
4672 return 0;
4673 if (sizeof (ac__type_new_))
4674 return 0;
4675 ;
4676 return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (ac_try="$ac_compile"
4681 case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_compile") 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } && {
4693 test -z "$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4695 } && test -s conftest.$ac_objext; then
4696 ac_cv_type_int64_t=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ac_cv_type_int64_t=no
4702 fi
4703
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 fi
4706 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
4707 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
4708 if test $ac_cv_type_int64_t = yes; then
4709 :
4710 else
4711
4712 cat >>confdefs.h <<\_ACEOF
4713 #define int64_t long long
4714 _ACEOF
4715
4716 fi
4717
4718 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
4719 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
4720 if test "${ac_cv_type_u_int64_t+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4730 #ifdef HAVE_SYS_BITYPES_H
4731 #include <sys/bitypes.h>
4732 #endif
4733
4734 typedef u_int64_t ac__type_new_;
4735 int
4736 main ()
4737 {
4738 if ((ac__type_new_ *) 0)
4739 return 0;
4740 if (sizeof (ac__type_new_))
4741 return 0;
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (ac_try="$ac_compile"
4748 case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_compile") 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest.$ac_objext; then
4763 ac_cv_type_u_int64_t=yes
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 ac_cv_type_u_int64_t=no
4769 fi
4770
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 fi
4773 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
4774 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
4775 if test $ac_cv_type_u_int64_t = yes; then
4776 :
4777 else
4778
4779 cat >>confdefs.h <<\_ACEOF
4780 #define u_int64_t unsigned long long
4781 _ACEOF
4782
4783 fi
4784
4785
4786 #
4787 # Try to arrange for large file support.
4788 #
4789 # Check whether --enable-largefile was given.
4790 if test "${enable_largefile+set}" = set; then
4791 enableval=$enable_largefile;
4792 fi
4793
4794 if test "$enable_largefile" != no; then
4795
4796 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4797 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4798 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 ac_cv_sys_largefile_CC=no
4802 if test "$GCC" != yes; then
4803 ac_save_CC=$CC
4804 while :; do
4805 # IRIX 6.2 and later do not support large files by default,
4806 # so use the C compiler's -n32 option if that helps.
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <sys/types.h>
4814 /* Check that off_t can represent 2**63 - 1 correctly.
4815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4816 since some C++ compilers masquerading as C compilers
4817 incorrectly reject 9223372036854775807. */
4818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4820 && LARGE_OFF_T % 2147483647 == 1)
4821 ? 1 : -1];
4822 int
4823 main ()
4824 {
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 rm -f conftest.$ac_objext
4831 if { (ac_try="$ac_compile"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 break
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852
4853 fi
4854
4855 rm -f core conftest.err conftest.$ac_objext
4856 CC="$CC -n32"
4857 rm -f conftest.$ac_objext
4858 if { (ac_try="$ac_compile"
4859 case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_compile") 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && {
4871 test -z "$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4873 } && test -s conftest.$ac_objext; then
4874 ac_cv_sys_largefile_CC=' -n32'; break
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4878
4879
4880 fi
4881
4882 rm -f core conftest.err conftest.$ac_objext
4883 break
4884 done
4885 CC=$ac_save_CC
4886 rm -f conftest.$ac_ext
4887 fi
4888 fi
4889 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4890 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4891 if test "$ac_cv_sys_largefile_CC" != no; then
4892 CC=$CC$ac_cv_sys_largefile_CC
4893 fi
4894
4895 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4896 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4897 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 while :; do
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h. */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 #include <sys/types.h>
4908 /* Check that off_t can represent 2**63 - 1 correctly.
4909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4910 since some C++ compilers masquerading as C compilers
4911 incorrectly reject 9223372036854775807. */
4912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4914 && LARGE_OFF_T % 2147483647 == 1)
4915 ? 1 : -1];
4916 int
4917 main ()
4918 {
4919
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 ac_cv_sys_file_offset_bits=no; break
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946
4947 fi
4948
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #define _FILE_OFFSET_BITS 64
4957 #include <sys/types.h>
4958 /* Check that off_t can represent 2**63 - 1 correctly.
4959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4960 since some C++ compilers masquerading as C compilers
4961 incorrectly reject 9223372036854775807. */
4962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4964 && LARGE_OFF_T % 2147483647 == 1)
4965 ? 1 : -1];
4966 int
4967 main ()
4968 {
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (ac_try="$ac_compile"
4976 case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.$ac_objext; then
4991 ac_cv_sys_file_offset_bits=64; break
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996
4997 fi
4998
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 ac_cv_sys_file_offset_bits=unknown
5001 break
5002 done
5003 fi
5004 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5005 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5006 case $ac_cv_sys_file_offset_bits in #(
5007 no | unknown) ;;
5008 *)
5009 cat >>confdefs.h <<_ACEOF
5010 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5011 _ACEOF
5012 ;;
5013 esac
5014 rm -f -r conftest*
5015 if test $ac_cv_sys_file_offset_bits = unknown; then
5016 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5017 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5018 if test "${ac_cv_sys_large_files+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 while :; do
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 #include <sys/types.h>
5029 /* Check that off_t can represent 2**63 - 1 correctly.
5030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5031 since some C++ compilers masquerading as C compilers
5032 incorrectly reject 9223372036854775807. */
5033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5035 && LARGE_OFF_T % 2147483647 == 1)
5036 ? 1 : -1];
5037 int
5038 main ()
5039 {
5040
5041 ;
5042 return 0;
5043 }
5044 _ACEOF
5045 rm -f conftest.$ac_objext
5046 if { (ac_try="$ac_compile"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compile") 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && {
5059 test -z "$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5061 } && test -s conftest.$ac_objext; then
5062 ac_cv_sys_large_files=no; break
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067
5068 fi
5069
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #define _LARGE_FILES 1
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5086 ? 1 : -1];
5087 int
5088 main ()
5089 {
5090
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 rm -f conftest.$ac_objext
5096 if { (ac_try="$ac_compile"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_compile") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } && {
5109 test -z "$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 } && test -s conftest.$ac_objext; then
5112 ac_cv_sys_large_files=1; break
5113 else
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117
5118 fi
5119
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 ac_cv_sys_large_files=unknown
5122 break
5123 done
5124 fi
5125 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5126 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5127 case $ac_cv_sys_large_files in #(
5128 no | unknown) ;;
5129 *)
5130 cat >>confdefs.h <<_ACEOF
5131 #define _LARGE_FILES $ac_cv_sys_large_files
5132 _ACEOF
5133 ;;
5134 esac
5135 rm -f -r conftest*
5136 fi
5137 fi
5138
5139 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5140 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
5141 if test "${ac_cv_sys_largefile_source+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 while :; do
5145 cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <stdio.h>
5152 int
5153 main ()
5154 {
5155 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest$ac_exeext &&
5177 $as_test_x conftest$ac_exeext; then
5178 ac_cv_sys_largefile_source=no; break
5179 else
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183
5184 fi
5185
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187 conftest$ac_exeext conftest.$ac_ext
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 #define _LARGEFILE_SOURCE 1
5195 #include <stdio.h>
5196 int
5197 main ()
5198 {
5199 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
5200 ;
5201 return 0;
5202 }
5203 _ACEOF
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (ac_try="$ac_link"
5206 case "(($ac_try" in
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_link") 2>conftest.er1
5212 ac_status=$?
5213 grep -v '^ *+' conftest.er1 >conftest.err
5214 rm -f conftest.er1
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && {
5218 test -z "$ac_c_werror_flag" ||
5219 test ! -s conftest.err
5220 } && test -s conftest$ac_exeext &&
5221 $as_test_x conftest$ac_exeext; then
5222 ac_cv_sys_largefile_source=1; break
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227
5228 fi
5229
5230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5231 conftest$ac_exeext conftest.$ac_ext
5232 ac_cv_sys_largefile_source=unknown
5233 break
5234 done
5235 fi
5236 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5237 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
5238 case $ac_cv_sys_largefile_source in #(
5239 no | unknown) ;;
5240 *)
5241 cat >>confdefs.h <<_ACEOF
5242 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5243 _ACEOF
5244 ;;
5245 esac
5246 rm -f -r conftest*
5247
5248 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5249 # in glibc 2.1.3, but that breaks too many other things.
5250 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5251 if test $ac_cv_sys_largefile_source != unknown; then
5252
5253 cat >>confdefs.h <<\_ACEOF
5254 #define HAVE_FSEEKO 1
5255 _ACEOF
5256
5257 fi
5258
5259
5260
5261
5262
5263
5264 for ac_header in sys/ioccom.h sys/sockio.h limits.h paths.h
5265 do
5266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 fi
5273 ac_res=`eval echo '${'$as_ac_Header'}'`
5274 { echo "$as_me:$LINENO: result: $ac_res" >&5
5275 echo "${ECHO_T}$ac_res" >&6; }
5276 else
5277 # Is the header compilable?
5278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5287 #include <$ac_header>
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (ac_try="$ac_compile"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 ac_header_compiler=yes
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311 ac_header_compiler=no
5312 fi
5313
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316 echo "${ECHO_T}$ac_header_compiler" >&6; }
5317
5318 # Is the header present?
5319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <$ac_header>
5328 _ACEOF
5329 if { (ac_try="$ac_cpp conftest.$ac_ext"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null && {
5342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 }; then
5345 ac_header_preproc=yes
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 ac_header_preproc=no
5351 fi
5352
5353 rm -f conftest.err conftest.$ac_ext
5354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355 echo "${ECHO_T}$ac_header_preproc" >&6; }
5356
5357 # So? What about this header?
5358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5359 yes:no: )
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5364 ac_header_preproc=yes
5365 ;;
5366 no:yes:* )
5367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5379
5380 ;;
5381 esac
5382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 eval "$as_ac_Header=\$ac_header_preproc"
5388 fi
5389 ac_res=`eval echo '${'$as_ac_Header'}'`
5390 { echo "$as_me:$LINENO: result: $ac_res" >&5
5391 echo "${ECHO_T}$ac_res" >&6; }
5392
5393 fi
5394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395 cat >>confdefs.h <<_ACEOF
5396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397 _ACEOF
5398
5399 fi
5400
5401 done
5402
5403
5404 for ac_header in net/pfvar.h
5405 do
5406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 #include <sys/socket.h>
5420 #include <net/if.h>
5421
5422 #include <$ac_header>
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5441 eval "$as_ac_Header=yes"
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 eval "$as_ac_Header=no"
5447 fi
5448
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 fi
5451 ac_res=`eval echo '${'$as_ac_Header'}'`
5452 { echo "$as_me:$LINENO: result: $ac_res" >&5
5453 echo "${ECHO_T}$ac_res" >&6; }
5454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457 _ACEOF
5458
5459 fi
5460
5461 done
5462
5463 if test "$ac_cv_header_net_pfvar_h" = yes; then
5464 #
5465 # Check for various PF actions.
5466 #
5467 { echo "$as_me:$LINENO: checking whether net/pfvar.h defines PF_NAT through PF_NORDR" >&5
5468 echo $ECHO_N "checking whether net/pfvar.h defines PF_NAT through PF_NORDR... $ECHO_C" >&6; }
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <sys/types.h>
5476 #include <sys/socket.h>
5477 #include <net/if.h>
5478 #include <net/pfvar.h>
5479 int
5480 main ()
5481 {
5482 return PF_NAT+PF_NONAT+PF_BINAT+PF_NOBINAT+PF_RDR+PF_NORDR;
5483 ;
5484 return 0;
5485 }
5486 _ACEOF
5487 rm -f conftest.$ac_objext
5488 if { (ac_try="$ac_compile"
5489 case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_compile") 2>conftest.er1
5495 ac_status=$?
5496 grep -v '^ *+' conftest.er1 >conftest.err
5497 rm -f conftest.er1
5498 cat conftest.err >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } && {
5501 test -z "$ac_c_werror_flag" ||
5502 test ! -s conftest.err
5503 } && test -s conftest.$ac_objext; then
5504
5505 { echo "$as_me:$LINENO: result: yes" >&5
5506 echo "${ECHO_T}yes" >&6; }
5507
5508 cat >>confdefs.h <<\_ACEOF
5509 #define HAVE_PF_NAT_THROUGH_PF_NORDR 1
5510 _ACEOF
5511
5512
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 { echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6; }
5519 fi
5520
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523
5524 for ac_header in netinet/if_ether.h
5525 do
5526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 cat >conftest.$ac_ext <<_ACEOF
5533 /* confdefs.h. */
5534 _ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 #include <sys/types.h>
5539 #include <sys/socket.h>
5540
5541 #include <$ac_header>
5542 _ACEOF
5543 rm -f conftest.$ac_objext
5544 if { (ac_try="$ac_compile"
5545 case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && {
5557 test -z "$ac_c_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest.$ac_objext; then
5560 eval "$as_ac_Header=yes"
5561 else
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 eval "$as_ac_Header=no"
5566 fi
5567
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 fi
5570 ac_res=`eval echo '${'$as_ac_Header'}'`
5571 { echo "$as_me:$LINENO: result: $ac_res" >&5
5572 echo "${ECHO_T}$ac_res" >&6; }
5573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574 cat >>confdefs.h <<_ACEOF
5575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 _ACEOF
5577
5578 fi
5579
5580 done
5581
5582 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
5583 #
5584 # The simple test didn't work.
5585 # Do we need to include <net/if.h> first?
5586 # Unset ac_cv_header_netinet_if_ether_h so we don't
5587 # treat the previous failure as a cached value and
5588 # suppress the next test.
5589 #
5590 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
5591 echo "$as_me: Rechecking with some additional includes" >&6;}
5592 unset ac_cv_header_netinet_if_ether_h
5593
5594 for ac_header in netinet/if_ether.h
5595 do
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #include <sys/types.h>
5609 #include <sys/socket.h>
5610 #include <netinet/in.h>
5611 struct mbuf;
5612 struct rtentry;
5613 #include <net/if.h>
5614
5615 #include <$ac_header>
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5619 case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 eval "$as_ac_Header=yes"
5635 else
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 eval "$as_ac_Header=no"
5640 fi
5641
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 ac_res=`eval echo '${'$as_ac_Header'}'`
5645 { echo "$as_me:$LINENO: result: $ac_res" >&5
5646 echo "${ECHO_T}$ac_res" >&6; }
5647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5648 cat >>confdefs.h <<_ACEOF
5649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5650 _ACEOF
5651
5652 fi
5653
5654 done
5655
5656 fi
5657
5658 if test "$GCC" = yes ; then
5659 { echo "$as_me:$LINENO: checking for ANSI ioctl definitions" >&5
5660 echo $ECHO_N "checking for ANSI ioctl definitions... $ECHO_C" >&6; }
5661 if test "${ac_cv_lbl_gcc_fixincludes+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h. */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 /*
5671 * This generates a "duplicate case value" when fixincludes
5672 * has not be run.
5673 */
5674 # include <sys/types.h>
5675 # include <sys/time.h>
5676 # include <sys/ioctl.h>
5677 # ifdef HAVE_SYS_IOCCOM_H
5678 # include <sys/ioccom.h>
5679 # endif
5680 int
5681 main ()
5682 {
5683 switch (0) {
5684 case _IO('A', 1):;
5685 case _IO('B', 1):;
5686 }
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_c_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_cv_lbl_gcc_fixincludes=yes
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 ac_cv_lbl_gcc_fixincludes=no
5714 fi
5715
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718
5719 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_fixincludes" >&5
5720 echo "${ECHO_T}$ac_cv_lbl_gcc_fixincludes" >&6; }
5721 if test $ac_cv_lbl_gcc_fixincludes = no ; then
5722 # Don't cache failure
5723 unset ac_cv_lbl_gcc_fixincludes
5724 { { echo "$as_me:$LINENO: error: see the INSTALL for more info" >&5
5725 echo "$as_me: error: see the INSTALL for more info" >&2;}
5726 { (exit 1); exit 1; }; }
5727 fi
5728 fi
5729
5730
5731
5732 for ac_func in strerror strlcpy
5733 do
5734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5748 #define $ac_func innocuous_$ac_func
5749
5750 /* System header to define __stub macros and hopefully few prototypes,
5751 which can conflict with char $ac_func (); below.
5752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5753 <limits.h> exists even on freestanding compilers. */
5754
5755 #ifdef __STDC__
5756 # include <limits.h>
5757 #else
5758 # include <assert.h>
5759 #endif
5760
5761 #undef $ac_func
5762
5763 /* Override any GCC internal prototype to avoid an error.
5764 Use char because int might match the return type of a GCC
5765 builtin and then its argument prototype would still apply. */
5766 #ifdef __cplusplus
5767 extern "C"
5768 #endif
5769 char $ac_func ();
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined __stub_$ac_func || defined __stub___$ac_func
5774 choke me
5775 #endif
5776
5777 int
5778 main ()
5779 {
5780 return $ac_func ();
5781 ;
5782 return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext conftest$ac_exeext
5786 if { (ac_try="$ac_link"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_link") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest$ac_exeext &&
5802 $as_test_x conftest$ac_exeext; then
5803 eval "$as_ac_var=yes"
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 eval "$as_ac_var=no"
5809 fi
5810
5811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5812 conftest$ac_exeext conftest.$ac_ext
5813 fi
5814 ac_res=`eval echo '${'$as_ac_var'}'`
5815 { echo "$as_me:$LINENO: result: $ac_res" >&5
5816 echo "${ECHO_T}$ac_res" >&6; }
5817 if test `eval echo '${'$as_ac_var'}'` = yes; then
5818 cat >>confdefs.h <<_ACEOF
5819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5820 _ACEOF
5821
5822 fi
5823 done
5824
5825
5826 needsnprintf=no
5827
5828
5829 for ac_func in vsnprintf snprintf
5830 do
5831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5845 #define $ac_func innocuous_$ac_func
5846
5847 /* System header to define __stub macros and hopefully few prototypes,
5848 which can conflict with char $ac_func (); below.
5849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850 <limits.h> exists even on freestanding compilers. */
5851
5852 #ifdef __STDC__
5853 # include <limits.h>
5854 #else
5855 # include <assert.h>
5856 #endif
5857
5858 #undef $ac_func
5859
5860 /* Override any GCC internal prototype to avoid an error.
5861 Use char because int might match the return type of a GCC
5862 builtin and then its argument prototype would still apply. */
5863 #ifdef __cplusplus
5864 extern "C"
5865 #endif
5866 char $ac_func ();
5867 /* The GNU C library defines this for functions which it implements
5868 to always fail with ENOSYS. Some functions are actually named
5869 something starting with __ and the normal name is an alias. */
5870 #if defined __stub_$ac_func || defined __stub___$ac_func
5871 choke me
5872 #endif
5873
5874 int
5875 main ()
5876 {
5877 return $ac_func ();
5878 ;
5879 return 0;
5880 }
5881 _ACEOF
5882 rm -f conftest.$ac_objext conftest$ac_exeext
5883 if { (ac_try="$ac_link"
5884 case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_link") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } && {
5896 test -z "$ac_c_werror_flag" ||
5897 test ! -s conftest.err
5898 } && test -s conftest$ac_exeext &&
5899 $as_test_x conftest$ac_exeext; then
5900 eval "$as_ac_var=yes"
5901 else
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5904
5905 eval "$as_ac_var=no"
5906 fi
5907
5908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5909 conftest$ac_exeext conftest.$ac_ext
5910 fi
5911 ac_res=`eval echo '${'$as_ac_var'}'`
5912 { echo "$as_me:$LINENO: result: $ac_res" >&5
5913 echo "${ECHO_T}$ac_res" >&6; }
5914 if test `eval echo '${'$as_ac_var'}'` = yes; then
5915 cat >>confdefs.h <<_ACEOF
5916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5917 _ACEOF
5918
5919 else
5920 needsnprintf=yes
5921 fi
5922 done
5923
5924 if test $needsnprintf = yes; then
5925 case " $LIBOBJS " in
5926 *" snprintf.$ac_objext "* ) ;;
5927 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5928 ;;
5929 esac
5930
5931 fi
5932
5933 #
5934 # Do this before checking for ether_hostton(), as it's a
5935 # "gethostbyname() -ish function".
5936 #
5937
5938 # Most operating systems have gethostbyname() in the default searched
5939 # libraries (i.e. libc):
5940 # Some OSes (eg. Solaris) place it in libnsl
5941 # Some strange OSes (SINIX) have it in libsocket:
5942 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5943 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5944 if test "${ac_cv_search_gethostbyname+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 ac_func_search_save_LIBS=$LIBS
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954
5955 /* Override any GCC internal prototype to avoid an error.
5956 Use char because int might match the return type of a GCC
5957 builtin and then its argument prototype would still apply. */
5958 #ifdef __cplusplus
5959 extern "C"
5960 #endif
5961 char gethostbyname ();
5962 int
5963 main ()
5964 {
5965 return gethostbyname ();
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 for ac_lib in '' nsl socket resolv; do
5971 if test -z "$ac_lib"; then
5972 ac_res="none required"
5973 else
5974 ac_res=-l$ac_lib
5975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5976 fi
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (ac_try="$ac_link"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_link") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest$ac_exeext &&
5994 $as_test_x conftest$ac_exeext; then
5995 ac_cv_search_gethostbyname=$ac_res
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000
6001 fi
6002
6003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6004 conftest$ac_exeext
6005 if test "${ac_cv_search_gethostbyname+set}" = set; then
6006 break
6007 fi
6008 done
6009 if test "${ac_cv_search_gethostbyname+set}" = set; then
6010 :
6011 else
6012 ac_cv_search_gethostbyname=no
6013 fi
6014 rm conftest.$ac_ext
6015 LIBS=$ac_func_search_save_LIBS
6016 fi
6017 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6018 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6019 ac_res=$ac_cv_search_gethostbyname
6020 if test "$ac_res" != no; then
6021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6022
6023 fi
6024
6025 # Unfortunately libsocket sometimes depends on libnsl and
6026 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6027 if test "$ac_cv_search_gethostbyname" = "no"
6028 then
6029 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6030 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6031 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 ac_check_lib_save_LIBS=$LIBS
6035 LIBS="-lsocket -lnsl $LIBS"
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042
6043 /* Override any GCC internal prototype to avoid an error.
6044 Use char because int might match the return type of a GCC
6045 builtin and then its argument prototype would still apply. */
6046 #ifdef __cplusplus
6047 extern "C"
6048 #endif
6049 char gethostbyname ();
6050 int
6051 main ()
6052 {
6053 return gethostbyname ();
6054 ;
6055 return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext conftest$ac_exeext
6059 if { (ac_try="$ac_link"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_link") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest$ac_exeext &&
6075 $as_test_x conftest$ac_exeext; then
6076 ac_cv_lib_socket_gethostbyname=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 ac_cv_lib_socket_gethostbyname=no
6082 fi
6083
6084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6085 conftest$ac_exeext conftest.$ac_ext
6086 LIBS=$ac_check_lib_save_LIBS
6087 fi
6088 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6089 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6090 if test $ac_cv_lib_socket_gethostbyname = yes; then
6091 LIBS="-lsocket -lnsl $LIBS"
6092 fi
6093
6094 fi
6095 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6096 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6097 if test "${ac_cv_search_socket+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100 ac_func_search_save_LIBS=$LIBS
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107
6108 /* Override any GCC internal prototype to avoid an error.
6109 Use char because int might match the return type of a GCC
6110 builtin and then its argument prototype would still apply. */
6111 #ifdef __cplusplus
6112 extern "C"
6113 #endif
6114 char socket ();
6115 int
6116 main ()
6117 {
6118 return socket ();
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 for ac_lib in '' socket; do
6124 if test -z "$ac_lib"; then
6125 ac_res="none required"
6126 else
6127 ac_res=-l$ac_lib
6128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6129 fi
6130 rm -f conftest.$ac_objext conftest$ac_exeext
6131 if { (ac_try="$ac_link"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_link") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest$ac_exeext &&
6147 $as_test_x conftest$ac_exeext; then
6148 ac_cv_search_socket=$ac_res
6149 else
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153
6154 fi
6155
6156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6157 conftest$ac_exeext
6158 if test "${ac_cv_search_socket+set}" = set; then
6159 break
6160 fi
6161 done
6162 if test "${ac_cv_search_socket+set}" = set; then
6163 :
6164 else
6165 ac_cv_search_socket=no
6166 fi
6167 rm conftest.$ac_ext
6168 LIBS=$ac_func_search_save_LIBS
6169 fi
6170 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6171 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6172 ac_res=$ac_cv_search_socket
6173 if test "$ac_res" != no; then
6174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6175
6176 else
6177 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6178 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6179 if test "${ac_cv_lib_socket_socket+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182 ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lsocket -lnsl $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190
6191 /* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
6194 #ifdef __cplusplus
6195 extern "C"
6196 #endif
6197 char socket ();
6198 int
6199 main ()
6200 {
6201 return socket ();
6202 ;
6203 return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (ac_try="$ac_link"
6208 case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_link") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest$ac_exeext &&
6223 $as_test_x conftest$ac_exeext; then
6224 ac_cv_lib_socket_socket=yes
6225 else
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 ac_cv_lib_socket_socket=no
6230 fi
6231
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233 conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6235 fi
6236 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6237 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6238 if test $ac_cv_lib_socket_socket = yes; then
6239 LIBS="-lsocket -lnsl $LIBS"
6240 fi
6241
6242 fi
6243
6244 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6245 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6246 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6247 if test "${ac_cv_search_putmsg+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 ac_func_search_save_LIBS=$LIBS
6251 cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h. */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257
6258 /* Override any GCC internal prototype to avoid an error.
6259 Use char because int might match the return type of a GCC
6260 builtin and then its argument prototype would still apply. */
6261 #ifdef __cplusplus
6262 extern "C"
6263 #endif
6264 char putmsg ();
6265 int
6266 main ()
6267 {
6268 return putmsg ();
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 for ac_lib in '' str; do
6274 if test -z "$ac_lib"; then
6275 ac_res="none required"
6276 else
6277 ac_res=-l$ac_lib
6278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (ac_try="$ac_link"
6282 case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_link") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest$ac_exeext &&
6297 $as_test_x conftest$ac_exeext; then
6298 ac_cv_search_putmsg=$ac_res
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303
6304 fi
6305
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307 conftest$ac_exeext
6308 if test "${ac_cv_search_putmsg+set}" = set; then
6309 break
6310 fi
6311 done
6312 if test "${ac_cv_search_putmsg+set}" = set; then
6313 :
6314 else
6315 ac_cv_search_putmsg=no
6316 fi
6317 rm conftest.$ac_ext
6318 LIBS=$ac_func_search_save_LIBS
6319 fi
6320 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
6321 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
6322 ac_res=$ac_cv_search_putmsg
6323 if test "$ac_res" != no; then
6324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6325
6326 fi
6327
6328
6329
6330 #
6331 # You are in a twisty little maze of UN*Xes, all different.
6332 # Some might not have ether_hostton().
6333 # Some might have it, but not declare it in any header file.
6334 # Some might have it, but declare it in <netinet/if_ether.h>.
6335 # Some might have it, but declare it in <netinet/ether.h>
6336 # (And some might have it but document it as something declared in
6337 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6338 #
6339 # Before you is a C compiler.
6340 #
6341
6342 for ac_func in ether_hostton
6343 do
6344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h. */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6358 #define $ac_func innocuous_$ac_func
6359
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func (); below.
6362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6363 <limits.h> exists even on freestanding compilers. */
6364
6365 #ifdef __STDC__
6366 # include <limits.h>
6367 #else
6368 # include <assert.h>
6369 #endif
6370
6371 #undef $ac_func
6372
6373 /* Override any GCC internal prototype to avoid an error.
6374 Use char because int might match the return type of a GCC
6375 builtin and then its argument prototype would still apply. */
6376 #ifdef __cplusplus
6377 extern "C"
6378 #endif
6379 char $ac_func ();
6380 /* The GNU C library defines this for functions which it implements
6381 to always fail with ENOSYS. Some functions are actually named
6382 something starting with __ and the normal name is an alias. */
6383 #if defined __stub_$ac_func || defined __stub___$ac_func
6384 choke me
6385 #endif
6386
6387 int
6388 main ()
6389 {
6390 return $ac_func ();
6391 ;
6392 return 0;
6393 }
6394 _ACEOF
6395 rm -f conftest.$ac_objext conftest$ac_exeext
6396 if { (ac_try="$ac_link"
6397 case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400 esac
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_link") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest$ac_exeext &&
6412 $as_test_x conftest$ac_exeext; then
6413 eval "$as_ac_var=yes"
6414 else
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 eval "$as_ac_var=no"
6419 fi
6420
6421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6422 conftest$ac_exeext conftest.$ac_ext
6423 fi
6424 ac_res=`eval echo '${'$as_ac_var'}'`
6425 { echo "$as_me:$LINENO: result: $ac_res" >&5
6426 echo "${ECHO_T}$ac_res" >&6; }
6427 if test `eval echo '${'$as_ac_var'}'` = yes; then
6428 cat >>confdefs.h <<_ACEOF
6429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6430 _ACEOF
6431
6432 fi
6433 done
6434
6435 if test "$ac_cv_func_ether_hostton" = yes; then
6436 #
6437 # OK, we have ether_hostton(). Do we have <netinet/if_ether.h>?
6438 #
6439 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
6440 #
6441 # Yes. Does it declare ether_hostton()?
6442 #
6443 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6444 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6445 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454
6455 #include <sys/types.h>
6456 #include <sys/socket.h>
6457 #include <netinet/in.h>
6458 #include <arpa/inet.h>
6459 struct mbuf;
6460 struct rtentry;
6461 #include <net/if.h>
6462 #include <netinet/if_ether.h>
6463
6464
6465 int
6466 main ()
6467 {
6468 #ifndef ether_hostton
6469 (void) ether_hostton;
6470 #endif
6471
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 ac_cv_have_decl_ether_hostton=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 ac_cv_have_decl_ether_hostton=no
6499 fi
6500
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 fi
6503 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6504 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6505 if test $ac_cv_have_decl_ether_hostton = yes; then
6506
6507
6508 cat >>confdefs.h <<\_ACEOF
6509 #define NETINET_IF_ETHER_H_DECLARES_ETHER_HOSTTON
6510 _ACEOF
6511
6512
6513 fi
6514
6515 fi
6516 #
6517 # Did that succeed?
6518 #
6519 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6520 #
6521 # No, how about <netinet/ether.h>, as on Linux?
6522 #
6523
6524 for ac_header in netinet/ether.h
6525 do
6526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 fi
6533 ac_res=`eval echo '${'$as_ac_Header'}'`
6534 { echo "$as_me:$LINENO: result: $ac_res" >&5
6535 echo "${ECHO_T}$ac_res" >&6; }
6536 else
6537 # Is the header compilable?
6538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 $ac_includes_default
6547 #include <$ac_header>
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6566 ac_header_compiler=yes
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6570
6571 ac_header_compiler=no
6572 fi
6573
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6576 echo "${ECHO_T}$ac_header_compiler" >&6; }
6577
6578 # Is the header present?
6579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <$ac_header>
6588 _ACEOF
6589 if { (ac_try="$ac_cpp conftest.$ac_ext"
6590 case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } >/dev/null && {
6602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6603 test ! -s conftest.err
6604 }; then
6605 ac_header_preproc=yes
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 ac_header_preproc=no
6611 fi
6612
6613 rm -f conftest.err conftest.$ac_ext
6614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6615 echo "${ECHO_T}$ac_header_preproc" >&6; }
6616
6617 # So? What about this header?
6618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6619 yes:no: )
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6624 ac_header_preproc=yes
6625 ;;
6626 no:yes:* )
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6639
6640 ;;
6641 esac
6642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 eval "$as_ac_Header=\$ac_header_preproc"
6648 fi
6649 ac_res=`eval echo '${'$as_ac_Header'}'`
6650 { echo "$as_me:$LINENO: result: $ac_res" >&5
6651 echo "${ECHO_T}$ac_res" >&6; }
6652
6653 fi
6654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6655 cat >>confdefs.h <<_ACEOF
6656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6657 _ACEOF
6658
6659 fi
6660
6661 done
6662
6663 if test "$ac_cv_header_netinet_ether_h" = yes; then
6664 #
6665 # We have it - does it declare ether_hostton()?
6666 # Unset ac_cv_have_decl_ether_hostton so we don't
6667 # treat the previous failure as a cached value and
6668 # suppress the next test.
6669 #
6670 unset ac_cv_have_decl_ether_hostton
6671 { echo "$as_me:$LINENO: checking whether ether_hostton is declared" >&5
6672 echo $ECHO_N "checking whether ether_hostton is declared... $ECHO_C" >&6; }
6673 if test "${ac_cv_have_decl_ether_hostton+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682
6683 #include <netinet/ether.h>
6684
6685
6686 int
6687 main ()
6688 {
6689 #ifndef ether_hostton
6690 (void) ether_hostton;
6691 #endif
6692
6693 ;
6694 return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext
6698 if { (ac_try="$ac_compile"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_compile") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest.$ac_objext; then
6714 ac_cv_have_decl_ether_hostton=yes
6715 else
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6718
6719 ac_cv_have_decl_ether_hostton=no
6720 fi
6721
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 fi
6724 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_hostton" >&5
6725 echo "${ECHO_T}$ac_cv_have_decl_ether_hostton" >&6; }
6726 if test $ac_cv_have_decl_ether_hostton = yes; then
6727
6728
6729 cat >>confdefs.h <<\_ACEOF
6730 #define NETINET_ETHER_H_DECLARES_ETHER_HOSTTON
6731 _ACEOF
6732
6733
6734 fi
6735
6736 fi
6737 fi
6738 #
6739 # Is ether_hostton() declared?
6740 #
6741 if test "$ac_cv_have_decl_ether_hostton" != yes; then
6742 #
6743 # No, we'll have to declare it ourselves.
6744 # Do we have "struct ether_addr"?
6745 #
6746 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
6747 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
6748 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 cat >conftest.$ac_ext <<_ACEOF
6752 /* confdefs.h. */
6753 _ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757
6758 #include <sys/types.h>
6759 #include <sys/socket.h>
6760 #include <netinet/in.h>
6761 #include <arpa/inet.h>
6762 struct mbuf;
6763 struct rtentry;
6764 #include <net/if.h>
6765 #include <netinet/if_ether.h>
6766
6767
6768 typedef struct ether_addr ac__type_new_;
6769 int
6770 main ()
6771 {
6772 if ((ac__type_new_ *) 0)
6773 return 0;
6774 if (sizeof (ac__type_new_))
6775 return 0;
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6782 case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 ac_cv_type_struct_ether_addr=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6801
6802 ac_cv_type_struct_ether_addr=no
6803 fi
6804
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 fi
6807 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
6808 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
6809 if test $ac_cv_type_struct_ether_addr = yes; then
6810
6811 cat >>confdefs.h <<_ACEOF
6812 #define HAVE_STRUCT_ETHER_ADDR 1
6813 _ACEOF
6814
6815
6816 fi
6817
6818
6819 cat >>confdefs.h <<\_ACEOF
6820 #define HAVE_DECL_ETHER_HOSTTON 0
6821 _ACEOF
6822
6823 else
6824
6825 cat >>confdefs.h <<\_ACEOF
6826 #define HAVE_DECL_ETHER_HOSTTON 1
6827 _ACEOF
6828
6829 fi
6830 fi
6831
6832 { echo "$as_me:$LINENO: checking if --disable-protochain option is specified" >&5
6833 echo $ECHO_N "checking if --disable-protochain option is specified... $ECHO_C" >&6; }
6834 # Check whether --enable-protochain was given.
6835 if test "${enable_protochain+set}" = set; then
6836 enableval=$enable_protochain;
6837 fi
6838
6839 case "x$enable_protochain" in
6840 xyes) enable_protochain=enabled ;;
6841 xno) enable_protochain=disabled ;;
6842 x) enable_protochain=enabled ;;
6843 esac
6844
6845 if test "$enable_protochain" = "disabled"; then
6846
6847 cat >>confdefs.h <<\_ACEOF
6848 #define NO_PROTOCHAIN 1
6849 _ACEOF
6850
6851 fi
6852 { echo "$as_me:$LINENO: result: ${enable_protochain}" >&5
6853 echo "${ECHO_T}${enable_protochain}" >&6; }
6854
6855 #
6856 # SITA support is mutually exclusive with native capture support;
6857 # "--with-sita" selects SITA support.
6858 #
6859
6860 # Check whether --with-sita was given.
6861 if test "${with_sita+set}" = set; then
6862 withval=$with_sita;
6863 if test ! "x$withval" = "xno" ; then
6864
6865 cat >>confdefs.h <<\_ACEOF
6866 #define SITA 1
6867 _ACEOF
6868
6869 { echo "$as_me:$LINENO: Enabling SITA ACN support" >&5
6870 echo "$as_me: Enabling SITA ACN support" >&6;}
6871 V_PCAP=sita
6872 V_FINDALLDEVS=sita
6873 fi
6874
6875 else
6876
6877 if test -z "$with_pcap" && test "$cross_compiling" = yes; then
6878 { { echo "$as_me:$LINENO: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&5
6879 echo "$as_me: error: pcap type not determined when cross-compiling; use --with-pcap=..." >&2;}
6880 { (exit 1); exit 1; }; }
6881 fi
6882
6883 # Check whether --with-pcap was given.
6884 if test "${with_pcap+set}" = set; then
6885 withval=$with_pcap;
6886 fi
6887
6888 { echo "$as_me:$LINENO: checking packet capture type" >&5
6889 echo $ECHO_N "checking packet capture type... $ECHO_C" >&6; }
6890 if test ! -z "$with_pcap" ; then
6891 V_PCAP="$withval"
6892 elif test -r /dev/bpf -o -h /dev/bpf ; then
6893 #
6894 # Cloning BPF device.
6895 #
6896 V_PCAP=bpf
6897
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_CLONING_BPF 1
6900 _ACEOF
6901
6902 elif test -r /dev/bpf0 ; then
6903 V_PCAP=bpf
6904 elif test -r /usr/include/net/pfilt.h ; then
6905 V_PCAP=pf
6906 elif test -r /dev/enet ; then
6907 V_PCAP=enet
6908 elif test -r /dev/nit ; then
6909 V_PCAP=snit
6910 elif test -r /usr/include/sys/net/nit.h ; then
6911 V_PCAP=nit
6912 elif test -r /usr/include/linux/socket.h ; then
6913 V_PCAP=linux
6914 elif test -r /usr/include/net/raw.h ; then
6915 V_PCAP=snoop
6916 elif test -r /usr/include/odmi.h ; then
6917 #
6918 # On AIX, the BPF devices might not yet be present - they're
6919 # created the first time libpcap runs after booting.
6920 # We check for odmi.h instead.
6921 #
6922 V_PCAP=bpf
6923 elif test -c /dev/bpf0 ; then # check again in case not readable
6924 V_PCAP=bpf
6925 elif test -r /usr/include/sys/dlpi.h ; then
6926 V_PCAP=dlpi
6927 elif test -c /dev/enet ; then # check again in case not readable
6928 V_PCAP=enet
6929 elif test -c /dev/nit ; then # check again in case not readable
6930 V_PCAP=snit
6931 else
6932 V_PCAP=null
6933 fi
6934 { echo "$as_me:$LINENO: result: $V_PCAP" >&5
6935 echo "${ECHO_T}$V_PCAP" >&6; }
6936
6937 #
6938 # Do capture-mechanism-dependent tests.
6939 #
6940 case "$V_PCAP" in
6941 dlpi)
6942 #
6943 # Checks to see if Solaris has the public libdlpi(3LIB) library.
6944 # Note: The existence of /usr/include/libdlpi.h does not mean it is the
6945 # public libdlpi(3LIB) version. Before libdlpi was made public, a
6946 # private version also existed, which did not have the same APIs.
6947 # Due to a gcc bug, the default search path for 32-bit libraries does
6948 # not include /lib, we add it explicitly here.
6949 # [http://bugs.opensolaris.org/view_bug.do?bug_id=6619485].
6950 # Also, due to the bug above applications that link to libpcap with
6951 # libdlpi will have to add "-L/lib" option to "configure".
6952 #
6953 saved_ldflags=$LDFLAGS
6954 LDFLAGS="$LIBS -L/lib"
6955 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
6956 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
6957 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 ac_check_lib_save_LIBS=$LIBS
6961 LIBS="-ldlpi $LIBS"
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6972 #ifdef __cplusplus
6973 extern "C"
6974 #endif
6975 char dlpi_walk ();
6976 int
6977 main ()
6978 {
6979 return dlpi_walk ();
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (ac_try="$ac_link"
6986 case "(($ac_try" in
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6989 esac
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_link") 2>conftest.er1
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest$ac_exeext &&
7001 $as_test_x conftest$ac_exeext; then
7002 ac_cv_lib_dlpi_dlpi_walk=yes
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 ac_cv_lib_dlpi_dlpi_walk=no
7008 fi
7009
7010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7011 conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS
7013 fi
7014 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
7015 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
7016 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
7017 LIBS="-ldlpi $LIBS"
7018 V_PCAP=libdlpi
7019
7020 cat >>confdefs.h <<\_ACEOF
7021 #define HAVE_LIBDLPI 1
7022 _ACEOF
7023
7024 else
7025 V_PCAP=dlpi
7026 fi
7027
7028 LDFLAGS=$saved_ldflags
7029
7030 #
7031 # Checks whether <sys/dlpi.h> is usable, to catch weird SCO
7032 # versions of DLPI.
7033 #
7034 { echo "$as_me:$LINENO: checking whether <sys/dlpi.h> is usable" >&5
7035 echo $ECHO_N "checking whether <sys/dlpi.h> is usable... $ECHO_C" >&6; }
7036 if test "${ac_cv_sys_dlpi_usable+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045
7046 #include <sys/types.h>
7047 #include <sys/time.h>
7048 #include <sys/dlpi.h>
7049
7050 int
7051 main ()
7052 {
7053 int i = DL_PROMISC_PHYS;
7054 ;
7055 return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext
7059 if { (ac_try="$ac_compile"
7060 case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_compile") 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && {
7072 test -z "$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 } && test -s conftest.$ac_objext; then
7075 ac_cv_sys_dlpi_usable=yes
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ac_cv_sys_dlpi_usable=no
7081 fi
7082
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 fi
7085
7086 { echo "$as_me:$LINENO: result: $ac_cv_sys_dlpi_usable" >&5
7087 echo "${ECHO_T}$ac_cv_sys_dlpi_usable" >&6; }
7088 if test $ac_cv_sys_dlpi_usable = no ; then
7089 { { echo "$as_me:$LINENO: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&5
7090 echo "$as_me: error: <sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI" >&2;}
7091 { (exit 1); exit 1; }; }
7092 fi
7093
7094 #
7095 # Check whether we have a /dev/dlpi device or have multiple devices.
7096 #
7097 { echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
7098 echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6; }
7099 if test -c /dev/dlpi ; then
7100 { echo "$as_me:$LINENO: result: yes" >&5
7101 echo "${ECHO_T}yes" >&6; }
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define HAVE_DEV_DLPI 1
7105 _ACEOF
7106
7107 else
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7110 dir="/dev/dlpi"
7111 { echo "$as_me:$LINENO: checking for $dir directory" >&5
7112 echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6; }
7113 if test -d $dir ; then
7114 { echo "$as_me:$LINENO: result: yes" >&5
7115 echo "${ECHO_T}yes" >&6; }
7116
7117 cat >>confdefs.h <<_ACEOF
7118 #define PCAP_DEV_PREFIX "$dir"
7119 _ACEOF
7120
7121 else
7122 { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7124 fi
7125 fi
7126
7127 #
7128 # This check is for Solaris with DLPI support for passive modes.
7129 # See dlpi(7P) for more details.
7130 #
7131 { echo "$as_me:$LINENO: checking if dl_passive_req_t struct exists" >&5
7132 echo $ECHO_N "checking if dl_passive_req_t struct exists... $ECHO_C" >&6; }
7133 if test "${ac_cv_lbl_has_dl_passive_req_t+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142
7143 # include <sys/types.h>
7144 # include <sys/dlpi.h>
7145 int
7146 main ()
7147 {
7148 u_int i = sizeof(dl_passive_req_t)
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (ac_try="$ac_compile"
7155 case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158 esac
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 ac_cv_lbl_has_dl_passive_req_t=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ac_cv_lbl_has_dl_passive_req_t=no
7176 fi
7177
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 fi
7180
7181 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_dl_passive_req_t" >&5
7182 echo "${ECHO_T}$ac_cv_lbl_has_dl_passive_req_t" >&6; }
7183 if test $ac_cv_lbl_has_dl_passive_req_t = yes ; then
7184
7185 cat >>confdefs.h <<\_ACEOF
7186 #define HAVE_DLPI_PASSIVE 1
7187 _ACEOF
7188
7189 fi
7190 ;;
7191
7192 linux)
7193 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
7194 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
7195 if test "$cross_compiling" = yes; then
7196 if test "${ac_cv_linux_vers+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 ac_cv_linux_vers=unknown
7200 fi
7201
7202 else
7203 if test "${ac_cv_linux_vers+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 ac_cv_linux_vers=`uname -r 2>&1 | \
7207 sed -n -e '$s/.* //' -e '$s/\..*//p'`
7208 fi
7209
7210 fi
7211 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
7212 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
7213 if test $ac_cv_linux_vers = unknown ; then
7214 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
7215 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
7216 { (exit 1); exit 1; }; }
7217 fi
7218 if test $ac_cv_linux_vers -lt 2 ; then
7219 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
7220 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
7221 { (exit 1); exit 1; }; }
7222 fi
7223
7224 #
7225 # Do we have the wireless extensions?
7226 #
7227
7228 for ac_header in linux/wireless.h
7229 do
7230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242
7243 #include <sys/socket.h>
7244 #include <linux/if.h>
7245 #include <linux/types.h>
7246
7247
7248 #include <$ac_header>
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7252 case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255 esac
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 eval "$as_ac_Header=yes"
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 eval "$as_ac_Header=no"
7273 fi
7274
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 fi
7277 ac_res=`eval echo '${'$as_ac_Header'}'`
7278 { echo "$as_me:$LINENO: result: $ac_res" >&5
7279 echo "${ECHO_T}$ac_res" >&6; }
7280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7281 cat >>confdefs.h <<_ACEOF
7282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7283 _ACEOF
7284
7285 fi
7286
7287 done
7288
7289
7290 #
7291 # Do we have libnl?
7292 #
7293
7294 # Check whether --with-libnl was given.
7295 if test "${with_libnl+set}" = set; then
7296 withval=$with_libnl; with_libnl=$withval
7297 fi
7298
7299
7300 if test x$with_libnl != xno ; then
7301 { echo "$as_me:$LINENO: checking for nl_handle_alloc in -lnl" >&5
7302 echo $ECHO_N "checking for nl_handle_alloc in -lnl... $ECHO_C" >&6; }
7303 if test "${ac_cv_lib_nl_nl_handle_alloc+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-lnl $LIBS"
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char nl_handle_alloc ();
7322 int
7323 main ()
7324 {
7325 return nl_handle_alloc ();
7326 ;
7327 return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7332 case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_link") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest$ac_exeext &&
7347 $as_test_x conftest$ac_exeext; then
7348 ac_cv_lib_nl_nl_handle_alloc=yes
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ac_cv_lib_nl_nl_handle_alloc=no
7354 fi
7355
7356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7357 conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7359 fi
7360 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nl_handle_alloc" >&5
7361 echo "${ECHO_T}$ac_cv_lib_nl_nl_handle_alloc" >&6; }
7362 if test $ac_cv_lib_nl_nl_handle_alloc = yes; then
7363 LIBS="-lnl $LIBS"
7364
7365 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_LIBNL 1
7367 _ACEOF
7368
7369 else
7370 if test x$with_libnl = xyes ; then
7371 { { echo "$as_me:$LINENO: error: libnl support requested but libnl not found" >&5
7372 echo "$as_me: error: libnl support requested but libnl not found" >&2;}
7373 { (exit 1); exit 1; }; }
7374 fi
7375
7376 fi
7377
7378 fi
7379
7380 { echo "$as_me:$LINENO: checking if if_packet.h has tpacket_stats defined" >&5
7381 echo $ECHO_N "checking if if_packet.h has tpacket_stats defined... $ECHO_C" >&6; }
7382 if test "${ac_cv_lbl_tpacket_stats+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391
7392 # include <linux/if_packet.h>
7393 int
7394 main ()
7395 {
7396 struct tpacket_stats stats
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7403 case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_compile") 2>conftest.er1
7409 ac_status=$?
7410 grep -v '^ *+' conftest.er1 >conftest.err
7411 rm -f conftest.er1
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
7418 ac_cv_lbl_tpacket_stats=yes
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 ac_cv_lbl_tpacket_stats=no
7424 fi
7425
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 fi
7428
7429 { echo "$as_me:$LINENO: result: $ac_cv_lbl_tpacket_stats" >&5
7430 echo "${ECHO_T}$ac_cv_lbl_tpacket_stats" >&6; }
7431 if test $ac_cv_lbl_tpacket_stats = yes; then
7432
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_TPACKET_STATS 1
7435 _ACEOF
7436
7437 fi
7438 { echo "$as_me:$LINENO: checking if tpacket_auxdata struct has tp_vlan_tci member" >&5
7439 echo $ECHO_N "checking if tpacket_auxdata struct has tp_vlan_tci member... $ECHO_C" >&6; }
7440 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449
7450 # include <linux/if_packet.h>
7451 int
7452 main ()
7453 {
7454 u_int i = sizeof(((struct tpacket_auxdata *)0)->tp_vlan_tci)
7455 ;
7456 return 0;
7457 }
7458 _ACEOF
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7461 case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.$ac_objext; then
7476 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci=no
7482 fi
7483
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 fi
7486
7487 { echo "$as_me:$LINENO: result: $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&5
7488 echo "${ECHO_T}$ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci" >&6; }
7489 if test $ac_cv_lbl_linux_tpacket_auxdata_tp_vlan_tci = yes ; then
7490 HAVE_LINUX_TPACKET_AUXDATA=tp_vlan_tci
7491
7492
7493 cat >>confdefs.h <<\_ACEOF
7494 #define HAVE_LINUX_TPACKET_AUXDATA_TP_VLAN_TCI 1
7495 _ACEOF
7496
7497 fi
7498 ;;
7499
7500 bpf)
7501 #
7502 # Check whether we have the *BSD-style ioctls.
7503 #
7504
7505 for ac_header in net/if_media.h
7506 do
7507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 fi
7514 ac_res=`eval echo '${'$as_ac_Header'}'`
7515 { echo "$as_me:$LINENO: result: $ac_res" >&5
7516 echo "${ECHO_T}$ac_res" >&6; }
7517 else
7518 # Is the header compilable?
7519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 #include <$ac_header>
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (ac_try="$ac_compile"
7532 case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535 esac
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537 (eval "$ac_compile") 2>conftest.er1
7538 ac_status=$?
7539 grep -v '^ *+' conftest.er1 >conftest.err
7540 rm -f conftest.er1
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && {
7544 test -z "$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 } && test -s conftest.$ac_objext; then
7547 ac_header_compiler=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 ac_header_compiler=no
7553 fi
7554
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7557 echo "${ECHO_T}$ac_header_compiler" >&6; }
7558
7559 # Is the header present?
7560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <$ac_header>
7569 _ACEOF
7570 if { (ac_try="$ac_cpp conftest.$ac_ext"
7571 case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } >/dev/null && {
7583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 }; then
7586 ac_header_preproc=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591 ac_header_preproc=no
7592 fi
7593
7594 rm -f conftest.err conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7596 echo "${ECHO_T}$ac_header_preproc" >&6; }
7597
7598 # So? What about this header?
7599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7600 yes:no: )
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7605 ac_header_preproc=yes
7606 ;;
7607 no:yes:* )
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7620
7621 ;;
7622 esac
7623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 eval "$as_ac_Header=\$ac_header_preproc"
7629 fi
7630 ac_res=`eval echo '${'$as_ac_Header'}'`
7631 { echo "$as_me:$LINENO: result: $ac_res" >&5
7632 echo "${ECHO_T}$ac_res" >&6; }
7633
7634 fi
7635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7636 cat >>confdefs.h <<_ACEOF
7637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7638 _ACEOF
7639
7640 fi
7641
7642 done
7643
7644
7645 { echo "$as_me:$LINENO: checking whether the system supports zerocopy BPF" >&5
7646 echo $ECHO_N "checking whether the system supports zerocopy BPF... $ECHO_C" >&6; }
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <sys/socket.h>
7654 #include <sys/ioctl.h>
7655 #include <net/if.h>
7656 #include <net/bpf.h>
7657 int
7658 main ()
7659 {
7660 return (BIOCROTZBUF + BPF_BUFMODE_ZBUF);
7661 ;
7662 return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7667 case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_compile") 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest.$ac_objext; then
7682
7683 { echo "$as_me:$LINENO: result: yes" >&5
7684 echo "${ECHO_T}yes" >&6; }
7685
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_ZEROCOPY_BPF 1
7688 _ACEOF
7689
7690
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7697 fi
7698
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700
7701 #
7702 # Check whether we have struct BPF_TIMEVAL.
7703 #
7704 { echo "$as_me:$LINENO: checking for struct BPF_TIMEVAL" >&5
7705 echo $ECHO_N "checking for struct BPF_TIMEVAL... $ECHO_C" >&6; }
7706 if test "${ac_cv_type_struct_BPF_TIMEVAL+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715
7716 #include <sys/types.h>
7717 #include <sys/ioctl.h>
7718 #ifdef HAVE_SYS_IOCCOM_H
7719 #include <sys/ioccom.h>
7720 #endif
7721 #include <net/bpf.h>
7722
7723
7724 typedef struct BPF_TIMEVAL ac__type_new_;
7725 int
7726 main ()
7727 {
7728 if ((ac__type_new_ *) 0)
7729 return 0;
7730 if (sizeof (ac__type_new_))
7731 return 0;
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 rm -f conftest.$ac_objext
7737 if { (ac_try="$ac_compile"
7738 case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_compile") 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && {
7750 test -z "$ac_c_werror_flag" ||
7751 test ! -s conftest.err
7752 } && test -s conftest.$ac_objext; then
7753 ac_cv_type_struct_BPF_TIMEVAL=yes
7754 else
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758 ac_cv_type_struct_BPF_TIMEVAL=no
7759 fi
7760
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 fi
7763 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_BPF_TIMEVAL" >&5
7764 echo "${ECHO_T}$ac_cv_type_struct_BPF_TIMEVAL" >&6; }
7765 if test $ac_cv_type_struct_BPF_TIMEVAL = yes; then
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_STRUCT_BPF_TIMEVAL 1
7769 _ACEOF
7770
7771
7772 fi
7773
7774 ;;
7775
7776 dag)
7777 V_DEFS="$V_DEFS -DDAG_ONLY"
7778 ;;
7779
7780 septel)
7781 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
7782 ;;
7783
7784 null)
7785 { echo "$as_me:$LINENO: WARNING: cannot determine packet capture interface" >&5
7786 echo "$as_me: WARNING: cannot determine packet capture interface" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: (see the INSTALL doc for more info)" >&5
7788 echo "$as_me: WARNING: (see the INSTALL doc for more info)" >&2;}
7789 ;;
7790 esac
7791
7792 if test "$V_PCAP" = null
7793 then
7794 #
7795 # We can't capture, so we can't open any capture
7796 # devices, so we won't return any interfaces.
7797 #
7798 V_FINDALLDEVS=null
7799 else
7800 { echo "$as_me:$LINENO: checking for getifaddrs" >&5
7801 echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; }
7802 if test "${ac_cv_func_getifaddrs+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 /* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
7812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7813 #define getifaddrs innocuous_getifaddrs
7814
7815 /* System header to define __stub macros and hopefully few prototypes,
7816 which can conflict with char getifaddrs (); below.
7817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7818 <limits.h> exists even on freestanding compilers. */
7819
7820 #ifdef __STDC__
7821 # include <limits.h>
7822 #else
7823 # include <assert.h>
7824 #endif
7825
7826 #undef getifaddrs
7827
7828 /* Override any GCC internal prototype to avoid an error.
7829 Use char because int might match the return type of a GCC
7830 builtin and then its argument prototype would still apply. */
7831 #ifdef __cplusplus
7832 extern "C"
7833 #endif
7834 char getifaddrs ();
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined __stub_getifaddrs || defined __stub___getifaddrs
7839 choke me
7840 #endif
7841
7842 int
7843 main ()
7844 {
7845 return getifaddrs ();
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (ac_try="$ac_link"
7852 case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857 (eval "$ac_link") 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest$ac_exeext &&
7867 $as_test_x conftest$ac_exeext; then
7868 ac_cv_func_getifaddrs=yes
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 ac_cv_func_getifaddrs=no
7874 fi
7875
7876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7877 conftest$ac_exeext conftest.$ac_ext
7878 fi
7879 { echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
7880 echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; }
7881 if test $ac_cv_func_getifaddrs = yes; then
7882
7883 #
7884 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
7885 # as well, just in case some platform is really weird.
7886 #
7887 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7888 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
7889 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
7890 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 fi
7893 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
7894 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
7895 else
7896 # Is the header compilable?
7897 { echo "$as_me:$LINENO: checking ifaddrs.h usability" >&5
7898 echo $ECHO_N "checking ifaddrs.h usability... $ECHO_C" >&6; }
7899 cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h. */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 $ac_includes_default
7906 #include <ifaddrs.h>
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (ac_try="$ac_compile"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_header_compiler=yes
7926 else
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930 ac_header_compiler=no
7931 fi
7932
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7935 echo "${ECHO_T}$ac_header_compiler" >&6; }
7936
7937 # Is the header present?
7938 { echo "$as_me:$LINENO: checking ifaddrs.h presence" >&5
7939 echo $ECHO_N "checking ifaddrs.h presence... $ECHO_C" >&6; }
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <ifaddrs.h>
7947 _ACEOF
7948 if { (ac_try="$ac_cpp conftest.$ac_ext"
7949 case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952 esac
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } >/dev/null && {
7961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 }; then
7964 ac_header_preproc=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 ac_header_preproc=no
7970 fi
7971
7972 rm -f conftest.err conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7974 echo "${ECHO_T}$ac_header_preproc" >&6; }
7975
7976 # So? What about this header?
7977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7978 yes:no: )
7979 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7980 echo "$as_me: WARNING: ifaddrs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7981 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the compiler's result" >&5
7982 echo "$as_me: WARNING: ifaddrs.h: proceeding with the compiler's result" >&2;}
7983 ac_header_preproc=yes
7984 ;;
7985 no:yes:* )
7986 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: present but cannot be compiled" >&5
7987 echo "$as_me: WARNING: ifaddrs.h: present but cannot be compiled" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&5
7989 echo "$as_me: WARNING: ifaddrs.h: check for missing prerequisite headers?" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: see the Autoconf documentation" >&5
7991 echo "$as_me: WARNING: ifaddrs.h: see the Autoconf documentation" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&5
7993 echo "$as_me: WARNING: ifaddrs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&5
7995 echo "$as_me: WARNING: ifaddrs.h: proceeding with the preprocessor's result" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&5
7997 echo "$as_me: WARNING: ifaddrs.h: in the future, the compiler will take precedence" >&2;}
7998
7999 ;;
8000 esac
8001 { echo "$as_me:$LINENO: checking for ifaddrs.h" >&5
8002 echo $ECHO_N "checking for ifaddrs.h... $ECHO_C" >&6; }
8003 if test "${ac_cv_header_ifaddrs_h+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 ac_cv_header_ifaddrs_h=$ac_header_preproc
8007 fi
8008 { echo "$as_me:$LINENO: result: $ac_cv_header_ifaddrs_h" >&5
8009 echo "${ECHO_T}$ac_cv_header_ifaddrs_h" >&6; }
8010
8011 fi
8012 if test $ac_cv_header_ifaddrs_h = yes; then
8013
8014 #
8015 # We have the header, so we use "getifaddrs()" to
8016 # get the list of interfaces.
8017 #
8018 V_FINDALLDEVS=getad
8019
8020 else
8021
8022 #
8023 # We don't have the header - give up.
8024 # XXX - we could also fall back on some other
8025 # mechanism, but, for now, this'll catch this
8026 # problem so that we can at least try to figure
8027 # out something to do on systems with "getifaddrs()"
8028 # but without "ifaddrs.h", if there is something
8029 # we can do on those systems.
8030 #
8031 { { echo "$as_me:$LINENO: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&5
8032 echo "$as_me: error: Your system has getifaddrs() but doesn't have a usable <ifaddrs.h>." >&2;}
8033 { (exit 1); exit 1; }; }
8034
8035 fi
8036
8037
8038
8039 else
8040
8041 #
8042 # Well, we don't have "getifaddrs()", so we have to use
8043 # some other mechanism; determine what that mechanism is.
8044 #
8045 # The first thing we use is the type of capture mechanism,
8046 # which is somewhat of a proxy for the OS we're using.
8047 #
8048 case "$V_PCAP" in
8049
8050 dlpi|libdlpi)
8051
8052
8053 for ac_header in sys/bufmod.h sys/dlpi_ext.h
8054 do
8055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 fi
8062 ac_res=`eval echo '${'$as_ac_Header'}'`
8063 { echo "$as_me:$LINENO: result: $ac_res" >&5
8064 echo "${ECHO_T}$ac_res" >&6; }
8065 else
8066 # Is the header compilable?
8067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 $ac_includes_default
8076 #include <$ac_header>
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8080 case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8083 esac
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8086 ac_status=$?
8087 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.$ac_objext; then
8095 ac_header_compiler=yes
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100 ac_header_compiler=no
8101 fi
8102
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8105 echo "${ECHO_T}$ac_header_compiler" >&6; }
8106
8107 # Is the header present?
8108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8110 cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h. */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8116 #include <$ac_header>
8117 _ACEOF
8118 if { (ac_try="$ac_cpp conftest.$ac_ext"
8119 case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } >/dev/null && {
8131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 }; then
8134 ac_header_preproc=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_header_preproc=no
8140 fi
8141
8142 rm -f conftest.err conftest.$ac_ext
8143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8144 echo "${ECHO_T}$ac_header_preproc" >&6; }
8145
8146 # So? What about this header?
8147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8148 yes:no: )
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8153 ac_header_preproc=yes
8154 ;;
8155 no:yes:* )
8156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8168
8169 ;;
8170 esac
8171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 eval "$as_ac_Header=\$ac_header_preproc"
8177 fi
8178 ac_res=`eval echo '${'$as_ac_Header'}'`
8179 { echo "$as_me:$LINENO: result: $ac_res" >&5
8180 echo "${ECHO_T}$ac_res" >&6; }
8181
8182 fi
8183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8184 cat >>confdefs.h <<_ACEOF
8185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8186 _ACEOF
8187
8188 fi
8189
8190 done
8191
8192 #
8193 # This might be Solaris 8 or later, with
8194 # SIOCGLIFCONF, or it might be some other OS
8195 # or some older version of Solaris, with
8196 # just SIOCGIFCONF.
8197 #
8198 { echo "$as_me:$LINENO: checking whether we have SIOCGLIFCONF" >&5
8199 echo $ECHO_N "checking whether we have SIOCGLIFCONF... $ECHO_C" >&6; }
8200 if test "${ac_cv_lbl_have_siocglifconf+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 else
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include <sys/param.h>
8210 #include <sys/file.h>
8211 #include <sys/ioctl.h>
8212 #include <sys/socket.h>
8213 #include <sys/sockio.h>
8214 int
8215 main ()
8216 {
8217 ioctl(0, SIOCGLIFCONF, (char *)0);
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_compile") 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then
8239 ac_cv_lbl_have_siocglifconf=yes
8240 else
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_cv_lbl_have_siocglifconf=no
8245 fi
8246
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249
8250 { echo "$as_me:$LINENO: result: $ac_cv_lbl_have_siocglifconf" >&5
8251 echo "${ECHO_T}$ac_cv_lbl_have_siocglifconf" >&6; }
8252 if test $ac_cv_lbl_have_siocglifconf = yes ; then
8253 V_FINDALLDEVS=glifc
8254 else
8255 V_FINDALLDEVS=gifc
8256 fi
8257 #
8258 # Needed for common functions used by pcap-[dlpi,libdlpi].c
8259 #
8260 SSRC="dlpisubs.c"
8261 ;;
8262
8263 *)
8264 #
8265 # Assume we just have SIOCGIFCONF.
8266 # (XXX - on at least later Linux kernels, there's
8267 # another mechanism, and we should be using that
8268 # instead.)
8269 #
8270 V_FINDALLDEVS=gifc
8271 ;;
8272 esac
8273 fi
8274
8275 fi
8276
8277 fi
8278
8279
8280 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8281 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288
8289 #include <sys/types.h>
8290 #include <sys/socket.h>
8291
8292 int
8293 main ()
8294 {
8295 socklen_t x;
8296 ;
8297 return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8302 case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest.$ac_objext; then
8317 have_socklen_t=yes
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 have_socklen_t=no
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 if test "x$have_socklen_t" = "xyes"; then
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_SOCKLEN_T 1
8330 _ACEOF
8331
8332 fi
8333 { echo "$as_me:$LINENO: result: $have_socklen_t" >&5
8334 echo "${ECHO_T}$have_socklen_t" >&6; }
8335
8336 # Check whether --enable-ipv6 was given.
8337 if test "${enable_ipv6+set}" = set; then
8338 enableval=$enable_ipv6;
8339 else
8340 enable_ipv6=ifavailable
8341 fi
8342
8343 if test "$enable_ipv6" != "no"; then
8344 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
8345 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
8346 if test "${ac_cv_func_getaddrinfo+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
8356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8357 #define getaddrinfo innocuous_getaddrinfo
8358
8359 /* System header to define __stub macros and hopefully few prototypes,
8360 which can conflict with char getaddrinfo (); below.
8361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8362 <limits.h> exists even on freestanding compilers. */
8363
8364 #ifdef __STDC__
8365 # include <limits.h>
8366 #else
8367 # include <assert.h>
8368 #endif
8369
8370 #undef getaddrinfo
8371
8372 /* Override any GCC internal prototype to avoid an error.
8373 Use char because int might match the return type of a GCC
8374 builtin and then its argument prototype would still apply. */
8375 #ifdef __cplusplus
8376 extern "C"
8377 #endif
8378 char getaddrinfo ();
8379 /* The GNU C library defines this for functions which it implements
8380 to always fail with ENOSYS. Some functions are actually named
8381 something starting with __ and the normal name is an alias. */
8382 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
8383 choke me
8384 #endif
8385
8386 int
8387 main ()
8388 {
8389 return getaddrinfo ();
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (ac_try="$ac_link"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_link") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest$ac_exeext &&
8411 $as_test_x conftest$ac_exeext; then
8412 ac_cv_func_getaddrinfo=yes
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417 ac_cv_func_getaddrinfo=no
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8421 conftest$ac_exeext conftest.$ac_ext
8422 fi
8423 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
8424 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
8425 if test $ac_cv_func_getaddrinfo = yes; then
8426
8427
8428 cat >>confdefs.h <<\_ACEOF
8429 #define INET6 1
8430 _ACEOF
8431
8432
8433 else
8434
8435 if test "$enable_ipv6" != "ifavailable"; then
8436 { { echo "$as_me:$LINENO: error: --enable-ipv6 was given, but getaddrinfo isn't available
8437 See \`config.log' for more details." >&5
8438 echo "$as_me: error: --enable-ipv6 was given, but getaddrinfo isn't available
8439 See \`config.log' for more details." >&2;}
8440 { (exit 1); exit 1; }; }
8441 fi
8442
8443 fi
8444
8445 fi
8446
8447 { echo "$as_me:$LINENO: checking whether to build optimizer debugging code" >&5
8448 echo $ECHO_N "checking whether to build optimizer debugging code... $ECHO_C" >&6; }
8449 # Check whether --enable-optimizer-dbg was given.
8450 if test "${enable_optimizer_dbg+set}" = set; then
8451 enableval=$enable_optimizer_dbg;
8452 fi
8453
8454 if test "$enable_optimizer_dbg" = "yes"; then
8455
8456 cat >>confdefs.h <<\_ACEOF
8457 #define BDEBUG 1
8458 _ACEOF
8459
8460 fi
8461 { echo "$as_me:$LINENO: result: ${enable_optimizer_dbg-no}" >&5
8462 echo "${ECHO_T}${enable_optimizer_dbg-no}" >&6; }
8463
8464 { echo "$as_me:$LINENO: checking whether to build parser debugging code" >&5
8465 echo $ECHO_N "checking whether to build parser debugging code... $ECHO_C" >&6; }
8466 # Check whether --enable-yydebug was given.
8467 if test "${enable_yydebug+set}" = set; then
8468 enableval=$enable_yydebug;
8469 fi
8470
8471 if test "$enable_yydebug" = "yes"; then
8472
8473 cat >>confdefs.h <<\_ACEOF
8474 #define YYDEBUG 1
8475 _ACEOF
8476
8477 fi
8478 { echo "$as_me:$LINENO: result: ${enable_yydebug-no}" >&5
8479 echo "${ECHO_T}${enable_yydebug-no}" >&6; }
8480
8481 { echo "$as_me:$LINENO: checking whether we have /proc/net/dev" >&5
8482 echo $ECHO_N "checking whether we have /proc/net/dev... $ECHO_C" >&6; }
8483 if test -r /proc/net/dev ; then
8484 ac_cv_lbl_proc_net_dev=yes
8485 else
8486 ac_cv_lbl_proc_net_dev=no
8487 fi
8488 if test $ac_cv_lbl_proc_net_dev = yes; then
8489
8490 cat >>confdefs.h <<\_ACEOF
8491 #define HAVE_PROC_NET_DEV 1
8492 _ACEOF
8493
8494 fi
8495 { echo "$as_me:$LINENO: result: $ac_cv_lbl_proc_net_dev" >&5
8496 echo "${ECHO_T}$ac_cv_lbl_proc_net_dev" >&6; }
8497
8498 # Check for Endace DAG card support.
8499
8500 # Check whether --with-dag was given.
8501 if test "${with_dag+set}" = set; then
8502 withval=$with_dag;
8503 if test "$withval" = no
8504 then
8505 # User doesn't want DAG support.
8506 want_dag=no
8507 elif test "$withval" = yes
8508 then
8509 # User wants DAG support but hasn't specified a directory.
8510 want_dag=yes
8511 else
8512 # User wants DAG support and has specified a directory, so use the provided value.
8513 want_dag=yes
8514 dag_root=$withval
8515 fi
8516
8517 else
8518
8519 #
8520 # Use DAG API if present, otherwise don't
8521 #
8522 want_dag=ifpresent
8523
8524 fi
8525
8526
8527
8528 # Check whether --with-dag-includes was given.
8529 if test "${with_dag_includes+set}" = set; then
8530 withval=$with_dag_includes;
8531 # User wants DAG support and has specified a header directory, so use the provided value.
8532 want_dag=yes
8533 dag_include_dir=$withval
8534
8535 fi
8536
8537
8538
8539 # Check whether --with-dag-libraries was given.
8540 if test "${with_dag_libraries+set}" = set; then
8541 withval=$with_dag_libraries;
8542 # User wants DAG support and has specified a library directory, so use the provided value.
8543 want_dag=yes
8544 dag_lib_dir=$withval
8545
8546 fi
8547
8548
8549 case "$V_PCAP" in
8550 linux|bpf|dag)
8551 #
8552 # We support the DAG API if we're on Linux or BSD, or if we're
8553 # building a DAG-only libpcap.
8554 #
8555 ;;
8556 *)
8557 #
8558 # If the user explicitly requested DAG, tell them it's not
8559 # supported.
8560 #
8561 # If they expressed no preference, don't include it.
8562 #
8563 if test $want_dag = yes; then
8564 { { echo "$as_me:$LINENO: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&5
8565 echo "$as_me: error: DAG support is only available with 'linux' 'bpf' and 'dag' packet capture types" >&2;}
8566 { (exit 1); exit 1; }; }
8567 elif test $want_dag = yes; then
8568 want_dag=no
8569 fi
8570 ;;
8571 esac
8572
8573 ac_cv_lbl_dag_api=no
8574 if test "$want_dag" != no; then
8575
8576 { echo "$as_me:$LINENO: checking whether we have DAG API headers" >&5
8577 echo $ECHO_N "checking whether we have DAG API headers... $ECHO_C" >&6; }
8578
8579 # If necessary, set default paths for DAG API headers and libraries.
8580 if test -z "$dag_root"; then
8581 dag_root=/usr/local
8582 fi
8583
8584 if test -z "$dag_include_dir"; then
8585 dag_include_dir="$dag_root/include"
8586 fi
8587
8588 if test -z "$dag_lib_dir"; then
8589 dag_lib_dir="$dag_root/lib"
8590 fi
8591
8592 if test -z "$dag_tools_dir"; then
8593 dag_tools_dir="$dag_root/tools"
8594 fi
8595
8596 if test -r $dag_include_dir/dagapi.h; then
8597 ac_cv_lbl_dag_api=yes
8598 fi
8599 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dag_api ($dag_include_dir)" >&5
8600 echo "${ECHO_T}$ac_cv_lbl_dag_api ($dag_include_dir)" >&6; }
8601 fi
8602
8603 if test $ac_cv_lbl_dag_api = yes; then
8604
8605 { echo "$as_me:$LINENO: checking dagapi.o" >&5
8606 echo $ECHO_N "checking dagapi.o... $ECHO_C" >&6; }
8607 dagapi_obj=no
8608 if test -r $dag_tools_dir/dagapi.o; then
8609 # 2.4.x.
8610 dagapi_obj=$dag_tools_dir/dagapi.o
8611 elif test -r $dag_lib_dir/dagapi.o; then
8612 # 2.5.x.
8613 dagapi_obj=$dag_lib_dir/dagapi.o
8614 elif test -r $dag_lib_dir/libdag.a; then
8615 # 2.5.x.
8616 ar x $dag_lib_dir/libdag.a dagapi.o 2>/dev/null
8617 if test -r ./dagapi.o; then
8618 dagapi_obj=./dagapi.o
8619 else
8620 ar x $dag_lib_dir/libdag.a libdag_la-dagapi.o 2>/dev/null
8621 if test -r ./libdag_la-dagapi.o; then
8622 dagapi_obj=./libdag_la-dagapi.o
8623 fi
8624 fi
8625 fi
8626
8627 if test $dagapi_obj = no; then
8628 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8629 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8630 ac_cv_lbl_dag_api=no
8631 else
8632 { echo "$as_me:$LINENO: result: yes ($dagapi_obj)" >&5
8633 echo "${ECHO_T}yes ($dagapi_obj)" >&6; }
8634 fi
8635 fi
8636
8637 if test $ac_cv_lbl_dag_api = yes; then
8638
8639 { echo "$as_me:$LINENO: checking dagopts.o" >&5
8640 echo $ECHO_N "checking dagopts.o... $ECHO_C" >&6; }
8641 dagopts_obj=no
8642 if test -r $dag_tools_dir/dagopts.o; then
8643 # 2.4.x.
8644 dagopts_obj=$dag_tools_dir/dagopts.o
8645 elif test -r $dag_lib_dir/dagopts.o; then
8646 # 2.5.x.
8647 dagopts_obj=$dag_lib_dir/dagopts.o
8648 elif test -r $dag_lib_dir/libdag.a; then
8649 # 2.5.x.
8650 ar x $dag_lib_dir/libdag.a dagopts.o 2>/dev/null
8651 if test -r ./dagopts.o; then
8652 dagopts_obj=./dagopts.o
8653 else
8654 ar x $dag_lib_dir/libdag.a libdag_la-dagopts.o 2>/dev/null
8655 if test -r ./libdag_la-dagopts.o; then
8656 dagopts_obj=./libdag_la-dagopts.o
8657 fi
8658 fi
8659 fi
8660
8661 if test $dagopts_obj = no; then
8662 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&5
8663 echo "${ECHO_T}no (checked $dag_lib_dir $dag_tools_dir $dag_lib_dir/libdag.a)" >&6; }
8664 ac_cv_lbl_dag_api=no
8665 else
8666 { echo "$as_me:$LINENO: result: yes ($dagopts_obj)" >&5
8667 echo "${ECHO_T}yes ($dagopts_obj)" >&6; }
8668 fi
8669 fi
8670
8671 if test $ac_cv_lbl_dag_api = yes; then
8672 # Under 2.5.x only we need to add dagreg.o.
8673 if test -r $dag_include_dir/dagreg.h; then
8674 { echo "$as_me:$LINENO: checking dagreg.o" >&5
8675 echo $ECHO_N "checking dagreg.o... $ECHO_C" >&6; }
8676 dagreg_obj=no
8677 if test -r $dag_lib_dir/dagreg.o; then
8678 # Object file is ready and waiting.
8679 dagreg_obj=$dag_lib_dir/dagreg.o
8680 elif test -r $dag_lib_dir/libdag.a; then
8681 # Extract from libdag.a.
8682 ar x $dag_lib_dir/libdag.a dagreg.o 2>/dev/null
8683 if test -r ./dagreg.o; then
8684 dagreg_obj=./dagreg.o
8685 else
8686 ar x $dag_lib_dir/libdag.a libdag_la-dagreg.o 2>/dev/null
8687 if test -r ./libdag_la-dagreg.o; then
8688 dagreg_obj=./libdag_la-dagreg.o
8689 fi
8690 fi
8691 fi
8692
8693 if test $dagreg_obj = no; then
8694 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8695 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8696 ac_cv_lbl_dag_api=no
8697 else
8698 { echo "$as_me:$LINENO: result: yes ($dagreg_obj)" >&5
8699 echo "${ECHO_T}yes ($dagreg_obj)" >&6; }
8700 fi
8701 fi
8702 fi
8703
8704 if test $ac_cv_lbl_dag_api = yes; then
8705 # Under 2.5.x only we need to add dagutil.o.
8706 if test -r $dag_include_dir/dagutil.h; then
8707 { echo "$as_me:$LINENO: checking dagutil.o" >&5
8708 echo $ECHO_N "checking dagutil.o... $ECHO_C" >&6; }
8709 dagutil_obj=no
8710 if test -r $dag_lib_dir/dagutil.o; then
8711 # Object file is ready and waiting.
8712 dagutil_obj=$dag_lib_dir/dagutil.o
8713 elif test -r $dag_lib_dir/libdag.a; then
8714 # Extract from libdag.a.
8715 ar x $dag_lib_dir/libdag.a dagutil.o 2>/dev/null
8716 if test -r ./dagutil.o; then
8717 dagutil_obj=./dagutil.o
8718 else
8719 ar x $dag_lib_dir/libdag.a libdag_la-dagutil.o 2>/dev/null
8720 if test -r ./libdag_la-dagutil.o; then
8721 dagutil_obj=./libdag_la-dagutil.o
8722 fi
8723 fi
8724 fi
8725
8726 if test $dagutil_obj = no; then
8727 { echo "$as_me:$LINENO: result: no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&5
8728 echo "${ECHO_T}no (checked $dag_lib_dir $dag_lib_dir/libdag.a)" >&6; }
8729 ac_cv_lbl_dag_api=no
8730 else
8731 { echo "$as_me:$LINENO: result: yes ($dagutil_obj)" >&5
8732 echo "${ECHO_T}yes ($dagutil_obj)" >&6; }
8733 fi
8734 fi
8735 fi
8736
8737 if test $ac_cv_lbl_dag_api = yes; then
8738 V_INCLS="$V_INCLS -I$dag_include_dir"
8739 ADDLARCHIVEOBJS="$ADDLARCHIVEOBJS $dagapi_obj $dagopts_obj $dagreg_obj $dagutil_obj"
8740 if test $V_PCAP != dag ; then
8741 SSRC="pcap-dag.c"
8742 fi
8743
8744 # See if we can find a general version string.
8745 # Don't need to save and restore LIBS to prevent -ldag being
8746 # included if there's a found-action (arg 3).
8747 saved_ldflags=$LDFLAGS
8748 LDFLAGS="-L$dag_lib_dir"
8749 { echo "$as_me:$LINENO: checking for dag_attach_stream in -ldag" >&5
8750 echo $ECHO_N "checking for dag_attach_stream in -ldag... $ECHO_C" >&6; }
8751 if test "${ac_cv_lib_dag_dag_attach_stream+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 ac_check_lib_save_LIBS=$LIBS
8755 LIBS="-ldag $LIBS"
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762
8763 /* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
8766 #ifdef __cplusplus
8767 extern "C"
8768 #endif
8769 char dag_attach_stream ();
8770 int
8771 main ()
8772 {
8773 return dag_attach_stream ();
8774 ;
8775 return 0;
8776 }
8777 _ACEOF
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (ac_try="$ac_link"
8780 case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_link") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest$ac_exeext &&
8795 $as_test_x conftest$ac_exeext; then
8796 ac_cv_lib_dag_dag_attach_stream=yes
8797 else
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 ac_cv_lib_dag_dag_attach_stream=no
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 conftest$ac_exeext conftest.$ac_ext
8806 LIBS=$ac_check_lib_save_LIBS
8807 fi
8808 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_attach_stream" >&5
8809 echo "${ECHO_T}$ac_cv_lib_dag_dag_attach_stream" >&6; }
8810 if test $ac_cv_lib_dag_dag_attach_stream = yes; then
8811 dag_streams="1"
8812 else
8813 dag_streams="0"
8814 fi
8815
8816 { echo "$as_me:$LINENO: checking for dag_get_erf_types in -ldag" >&5
8817 echo $ECHO_N "checking for dag_get_erf_types in -ldag... $ECHO_C" >&6; }
8818 if test "${ac_cv_lib_dag_dag_get_erf_types+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821 ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-ldag $LIBS"
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 char dag_get_erf_types ();
8837 int
8838 main ()
8839 {
8840 return dag_get_erf_types ();
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (ac_try="$ac_link"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest$ac_exeext &&
8862 $as_test_x conftest$ac_exeext; then
8863 ac_cv_lib_dag_dag_get_erf_types=yes
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_lib_dag_dag_get_erf_types=no
8869 fi
8870
8871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8872 conftest$ac_exeext conftest.$ac_ext
8873 LIBS=$ac_check_lib_save_LIBS
8874 fi
8875 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_erf_types" >&5
8876 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_erf_types" >&6; }
8877 if test $ac_cv_lib_dag_dag_get_erf_types = yes; then
8878
8879
8880 cat >>confdefs.h <<\_ACEOF
8881 #define HAVE_DAG_GET_ERF_TYPES 1
8882 _ACEOF
8883
8884 fi
8885
8886 { echo "$as_me:$LINENO: checking for dag_get_stream_erf_types in -ldag" >&5
8887 echo $ECHO_N "checking for dag_get_stream_erf_types in -ldag... $ECHO_C" >&6; }
8888 if test "${ac_cv_lib_dag_dag_get_stream_erf_types+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 ac_check_lib_save_LIBS=$LIBS
8892 LIBS="-ldag $LIBS"
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899
8900 /* Override any GCC internal prototype to avoid an error.
8901 Use char because int might match the return type of a GCC
8902 builtin and then its argument prototype would still apply. */
8903 #ifdef __cplusplus
8904 extern "C"
8905 #endif
8906 char dag_get_stream_erf_types ();
8907 int
8908 main ()
8909 {
8910 return dag_get_stream_erf_types ();
8911 ;
8912 return 0;
8913 }
8914 _ACEOF
8915 rm -f conftest.$ac_objext conftest$ac_exeext
8916 if { (ac_try="$ac_link"
8917 case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920 esac
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_link") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest$ac_exeext &&
8932 $as_test_x conftest$ac_exeext; then
8933 ac_cv_lib_dag_dag_get_stream_erf_types=yes
8934 else
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ac_cv_lib_dag_dag_get_stream_erf_types=no
8939 fi
8940
8941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8942 conftest$ac_exeext conftest.$ac_ext
8943 LIBS=$ac_check_lib_save_LIBS
8944 fi
8945 { echo "$as_me:$LINENO: result: $ac_cv_lib_dag_dag_get_stream_erf_types" >&5
8946 echo "${ECHO_T}$ac_cv_lib_dag_dag_get_stream_erf_types" >&6; }
8947 if test $ac_cv_lib_dag_dag_get_stream_erf_types = yes; then
8948
8949
8950 cat >>confdefs.h <<\_ACEOF
8951 #define HAVE_DAG_GET_STREAM_ERF_TYPES 1
8952 _ACEOF
8953
8954 fi
8955
8956 LDFLAGS=$saved_ldflags
8957
8958 if test "$dag_streams" = 1; then
8959
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_DAG_STREAMS_API 1
8962 _ACEOF
8963
8964 LIBS="$LIBS -ldag"
8965 fi
8966
8967
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_DAG_API 1
8970 _ACEOF
8971
8972 fi
8973
8974 { echo "$as_me:$LINENO: checking whether we have the DAG API" >&5
8975 echo $ECHO_N "checking whether we have the DAG API... $ECHO_C" >&6; }
8976
8977 if test $ac_cv_lbl_dag_api = no; then
8978 { echo "$as_me:$LINENO: result: no" >&5
8979 echo "${ECHO_T}no" >&6; }
8980 if test "$want_dag" = yes; then
8981 # User wanted DAG support but we couldn't find it.
8982 { { echo "$as_me:$LINENO: error: DAG API requested, but not found at $dag_root: use --without-dag" >&5
8983 echo "$as_me: error: DAG API requested, but not found at $dag_root: use --without-dag" >&2;}
8984 { (exit 1); exit 1; }; }
8985 fi
8986
8987 if test "$V_PCAP" = dag; then
8988 # User requested "dag" capture type but the DAG API wasn't
8989 # found.
8990 { { 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
8991 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;}
8992 { (exit 1); exit 1; }; }
8993 fi
8994 else
8995 { echo "$as_me:$LINENO: result: yes" >&5
8996 echo "${ECHO_T}yes" >&6; }
8997 fi
8998
8999
9000 # Check whether --with-septel was given.
9001 if test "${with_septel+set}" = set; then
9002 withval=$with_septel;
9003 if test "$withval" = no
9004 then
9005 want_septel=no
9006 elif test "$withval" = yes
9007 then
9008 want_septel=yes
9009 septel_root=
9010 else
9011 want_septel=yes
9012 septel_root=$withval
9013 fi
9014
9015 else
9016
9017 #
9018 # Use Septel API if present, otherwise don't
9019 #
9020 want_septel=ifpresent
9021 septel_root=./../septel
9022
9023 fi
9024
9025 ac_cv_lbl_septel_api=no
9026 case "$V_PCAP" in
9027 linux|septel)
9028 #
9029 # We support the Septel API if we're on Linux, or if we're building
9030 # a Septel-only libpcap.
9031 #
9032 ;;
9033 *)
9034 #
9035 # If the user explicitly requested Septel, tell them it's not
9036 # supported.
9037 #
9038 # If they expressed no preference, don't include it.
9039 #
9040 if test $want_septel = yes; then
9041 { { echo "$as_me:$LINENO: error: Septel support only available with 'linux' and 'septel' packet capture types" >&5
9042 echo "$as_me: error: Septel support only available with 'linux' and 'septel' packet capture types" >&2;}
9043 { (exit 1); exit 1; }; }
9044 elif test $want_septel = yes; then
9045 want_septel=no
9046 fi
9047 ;;
9048 esac
9049
9050 if test "$with_septel" != no; then
9051 { echo "$as_me:$LINENO: checking whether we have Septel API" >&5
9052 echo $ECHO_N "checking whether we have Septel API... $ECHO_C" >&6; }
9053
9054 if test -z "$septel_root"; then
9055 septel_root=$srcdir/../septel
9056 fi
9057
9058 septel_tools_dir="$septel_root"
9059 septel_include_dir="$septel_root/INC"
9060
9061 ac_cv_lbl_septel_api=no
9062 if test -r "$septel_include_dir/msg.h"; then
9063 V_INCLS="$V_INCLS -I$septel_include_dir"
9064 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"
9065 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"
9066
9067 if test "$V_PCAP" != septel ; then
9068 SSRC="pcap-septel.c"
9069 fi
9070 ac_cv_lbl_septel_api=yes
9071 fi
9072
9073 { echo "$as_me:$LINENO: result: $ac_cv_lbl_septel_api" >&5
9074 echo "${ECHO_T}$ac_cv_lbl_septel_api" >&6; }
9075 if test $ac_cv_lbl_septel_api = no; then
9076 if test "$want_septel" = yes; then
9077 { { echo "$as_me:$LINENO: error: Septel API not found under directory $septel_root; use --without-septel" >&5
9078 echo "$as_me: error: Septel API not found under directory $septel_root; use --without-septel" >&2;}
9079 { (exit 1); exit 1; }; }
9080 fi
9081 else
9082
9083 cat >>confdefs.h <<\_ACEOF
9084 #define HAVE_SEPTEL_API 1
9085 _ACEOF
9086
9087 fi
9088 fi
9089
9090 if test "$V_PCAP" = septel -a "$ac_cv_lbl_septel_api" = no; then
9091 { { echo "$as_me:$LINENO: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&5
9092 echo "$as_me: error: Specifying the capture type as 'septel' requires the Septel API to be present; use --with-septel=DIR" >&2;}
9093 { (exit 1); exit 1; }; }
9094 fi
9095
9096
9097
9098 # Check whether --with-flex was given.
9099 if test "${with_flex+set}" = set; then
9100 withval=$with_flex;
9101 fi
9102
9103
9104 # Check whether --with-bison was given.
9105 if test "${with_bison+set}" = set; then
9106 withval=$with_bison;
9107 fi
9108
9109 if test "$with_flex" = no ; then
9110 V_LEX=lex
9111 else
9112 for ac_prog in flex
9113 do
9114 # Extract the first word of "$ac_prog", so it can be a program name with args.
9115 set dummy $ac_prog; ac_word=$2
9116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9118 if test "${ac_cv_prog_V_LEX+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 if test -n "$V_LEX"; then
9122 ac_cv_prog_V_LEX="$V_LEX" # Let the user override the test.
9123 else
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 for as_dir in $PATH
9126 do
9127 IFS=$as_save_IFS
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9131 ac_cv_prog_V_LEX="$ac_prog"
9132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 break 2
9134 fi
9135 done
9136 done
9137 IFS=$as_save_IFS
9138
9139 fi
9140 fi
9141 V_LEX=$ac_cv_prog_V_LEX
9142 if test -n "$V_LEX"; then
9143 { echo "$as_me:$LINENO: result: $V_LEX" >&5
9144 echo "${ECHO_T}$V_LEX" >&6; }
9145 else
9146 { echo "$as_me:$LINENO: result: no" >&5
9147 echo "${ECHO_T}no" >&6; }
9148 fi
9149
9150
9151 test -n "$V_LEX" && break
9152 done
9153 test -n "$V_LEX" || V_LEX="lex"
9154
9155 fi
9156 if test "$V_LEX" = flex ; then
9157 # The -V flag was added in 2.4
9158 { echo "$as_me:$LINENO: checking for flex 2.4 or higher" >&5
9159 echo $ECHO_N "checking for flex 2.4 or higher... $ECHO_C" >&6; }
9160 if test "${ac_cv_lbl_flex_v24+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 if flex -V >/dev/null 2>&1; then
9164 ac_cv_lbl_flex_v24=yes
9165 else
9166 ac_cv_lbl_flex_v24=no
9167 fi
9168 fi
9169
9170 { echo "$as_me:$LINENO: result: $ac_cv_lbl_flex_v24" >&5
9171 echo "${ECHO_T}$ac_cv_lbl_flex_v24" >&6; }
9172 if test $ac_cv_lbl_flex_v24 = no ; then
9173 s="2.4 or higher required"
9174 { echo "$as_me:$LINENO: WARNING: ignoring obsolete flex executable ($s)" >&5
9175 echo "$as_me: WARNING: ignoring obsolete flex executable ($s)" >&2;}
9176 V_LEX=lex
9177 fi
9178 fi
9179 if test "$with_bison" = no ; then
9180 V_YACC=yacc
9181 else
9182 for ac_prog in bison
9183 do
9184 # Extract the first word of "$ac_prog", so it can be a program name with args.
9185 set dummy $ac_prog; ac_word=$2
9186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9188 if test "${ac_cv_prog_V_YACC+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191 if test -n "$V_YACC"; then
9192 ac_cv_prog_V_YACC="$V_YACC" # Let the user override the test.
9193 else
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in $PATH
9196 do
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_prog_V_YACC="$ac_prog"
9202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205 done
9206 done
9207 IFS=$as_save_IFS
9208
9209 fi
9210 fi
9211 V_YACC=$ac_cv_prog_V_YACC
9212 if test -n "$V_YACC"; then
9213 { echo "$as_me:$LINENO: result: $V_YACC" >&5
9214 echo "${ECHO_T}$V_YACC" >&6; }
9215 else
9216 { echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6; }
9218 fi
9219
9220
9221 test -n "$V_YACC" && break
9222 done
9223 test -n "$V_YACC" || V_YACC="yacc"
9224
9225 fi
9226 if test "$V_YACC" = bison ; then
9227 V_YACC="$V_YACC -y"
9228 fi
9229 if test "$V_LEX" != lex -a "$V_YACC" = yacc -o "$V_LEX" = lex -a "$V_YACC" != yacc ; then
9230 { echo "$as_me:$LINENO: WARNING: don't have both flex and bison; reverting to lex/yacc" >&5
9231 echo "$as_me: WARNING: don't have both flex and bison; reverting to lex/yacc" >&2;}
9232 V_LEX=lex
9233 V_YACC=yacc
9234 fi
9235 if test "$V_LEX" = flex -a -n "pcap_" ; then
9236 V_LEX="$V_LEX -Ppcap_"
9237 V_YACC="$V_YACC -p pcap_"
9238 fi
9239 if test "$V_LEX" = lex ; then
9240 # Some versions of lex can't handle the definitions section of scanner.l .
9241 # Try lexing it and complain if it can't deal.
9242 { echo "$as_me:$LINENO: checking for capable lex" >&5
9243 echo $ECHO_N "checking for capable lex... $ECHO_C" >&6; }
9244 if test "${tcpdump_cv_capable_lex+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247 if lex -t scanner.l > /dev/null 2>&1; then
9248 tcpdump_cv_capable_lex=yes
9249 else
9250 tcpdump_cv_capable_lex=insufficient
9251 fi
9252 fi
9253 { echo "$as_me:$LINENO: result: $tcpdump_cv_capable_lex" >&5
9254 echo "${ECHO_T}$tcpdump_cv_capable_lex" >&6; }
9255 if test $tcpdump_cv_capable_lex = insufficient ; then
9256 { { echo "$as_me:$LINENO: error: Your operating system's lex is insufficient to compile
9257 libpcap. flex is a lex replacement that has many advantages, including
9258 being able to compile libpcap. For more information, see
9259 http://www.gnu.org/software/flex/flex.html ." >&5
9260 echo "$as_me: error: Your operating system's lex is insufficient to compile
9261 libpcap. flex is a lex replacement that has many advantages, including
9262 being able to compile libpcap. For more information, see
9263 http://www.gnu.org/software/flex/flex.html ." >&2;}
9264 { (exit 1); exit 1; }; }
9265 fi
9266 fi
9267
9268 #
9269 # Assume, by default, no support for shared libraries and V7/BSD convention
9270 # for man pages (file formats in section 5, miscellaneous info in section 7).
9271 # Individual cases can override this.
9272 #
9273 DYEXT="none"
9274 MAN_FILE_FORMATS=5
9275 MAN_MISC_INFO=7
9276 case "$host_os" in
9277
9278 aix*)
9279
9280 cat >>confdefs.h <<\_ACEOF
9281 #define _SUN 1
9282 _ACEOF
9283
9284
9285 #
9286 # AIX makes it fun to build shared and static libraries,
9287 # because they're *both* ".a" archive libraries. We
9288 # build the static library for the benefit of the traditional
9289 # scheme of building libpcap and tcpdump in subdirectories of
9290 # the same directory, with tcpdump statically linked with the
9291 # libpcap in question, but we also build a shared library as
9292 # "libpcap.shareda" and install *it*, rather than the static
9293 # library, as "libpcap.a".
9294 #
9295 DYEXT="shareda"
9296
9297 case "$V_PCAP" in
9298
9299 dlpi)
9300 #
9301 # If we're using DLPI, applications will need to
9302 # use /lib/pse.exp if present, as we use the
9303 # STREAMS routines.
9304 #
9305 pseexe="/lib/pse.exp"
9306 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9307 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9308 if test -f $pseexe ; then
9309 { echo "$as_me:$LINENO: result: yes" >&5
9310 echo "${ECHO_T}yes" >&6; }
9311 LIBS="-I:$pseexe"
9312 fi
9313 ;;
9314
9315 bpf)
9316 #
9317 # If we're using BPF, we need "-lodm" and "-lcfg", as
9318 # we use them to load the BPF module.
9319 #
9320 LIBS="-lodm -lcfg"
9321 ;;
9322 esac
9323 ;;
9324
9325 darwin*)
9326 DYEXT="dylib"
9327 V_CCOPT="$V_CCOPT -fno-common"
9328 ;;
9329
9330 hpux9*)
9331
9332 cat >>confdefs.h <<\_ACEOF
9333 #define HAVE_HPUX9 1
9334 _ACEOF
9335
9336
9337 #
9338 # Use System V conventions for man pages.
9339 #
9340 MAN_FILE_FORMATS=4
9341 MAN_MISC_INFO=5
9342 ;;
9343
9344 hpux10.0*)
9345
9346 #
9347 # Use System V conventions for man pages.
9348 #
9349 MAN_FILE_FORMATS=4
9350 MAN_MISC_INFO=5
9351 ;;
9352
9353 hpux10.1*)
9354
9355 #
9356 # Use System V conventions for man pages.
9357 #
9358 MAN_FILE_FORMATS=4
9359 MAN_MISC_INFO=5
9360 ;;
9361
9362 hpux*)
9363
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_HPUX10_20_OR_LATER 1
9366 _ACEOF
9367
9368 if test "`uname -m`" = "ia64"; then
9369 DYEXT="so"
9370 else
9371 DYEXT="sl"
9372 fi
9373
9374 #
9375 # "-b" builds a shared library; "+h" sets the soname.
9376 #
9377 SHLIB_OPT="-b"
9378 SONAME_OPT="+h"
9379
9380 #
9381 # Use System V conventions for man pages.
9382 #
9383 MAN_FILE_FORMATS=4
9384 MAN_MISC_INFO=5
9385 ;;
9386
9387 irix*)
9388 #
9389 # Use System V conventions for man pages.
9390 #
9391 MAN_FILE_FORMATS=4
9392 MAN_MISC_INFO=5
9393 ;;
9394
9395 linux*|freebsd*|netbsd*|openbsd*|dragonfly*)
9396 DYEXT="so"
9397
9398 #
9399 # Compiler assumed to be GCC; run-time linker may require a -R
9400 # flag.
9401 #
9402 if test "$libdir" != "/usr/lib"; then
9403 V_RFLAGS=-Wl,-R$libdir
9404 fi
9405 ;;
9406
9407 osf*)
9408 DYEXT="so"
9409
9410 #
9411 # Use System V conventions for man pages.
9412 #
9413 MAN_FILE_FORMATS=4
9414 MAN_MISC_INFO=5
9415 ;;
9416
9417 sinix*)
9418 { echo "$as_me:$LINENO: checking if SINIX compiler defines sinix" >&5
9419 echo $ECHO_N "checking if SINIX compiler defines sinix... $ECHO_C" >&6; }
9420 if test "${ac_cv_cc_sinix_defined+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429
9430 int
9431 main ()
9432 {
9433 int i = sinix;
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (ac_try="$ac_compile"
9440 case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_compile") 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest.$ac_objext; then
9455 ac_cv_cc_sinix_defined=yes
9456 else
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9459
9460 ac_cv_cc_sinix_defined=no
9461 fi
9462
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 fi
9465
9466 { echo "$as_me:$LINENO: result: $ac_cv_cc_sinix_defined" >&5
9467 echo "${ECHO_T}$ac_cv_cc_sinix_defined" >&6; }
9468 if test $ac_cv_cc_sinix_defined = no ; then
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define sinix 1
9472 _ACEOF
9473
9474 fi
9475 ;;
9476
9477 solaris*)
9478
9479 cat >>confdefs.h <<\_ACEOF
9480 #define HAVE_SOLARIS 1
9481 _ACEOF
9482
9483
9484 DYEXT="so"
9485 #
9486 # Use System V conventions for man pages.
9487 #
9488 MAN_FILE_FORMATS=4
9489 MAN_MISC_INFO=5
9490 ;;
9491 esac
9492
9493 if test -n "$ac_tool_prefix"; then
9494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9498 if test "${ac_cv_prog_RANLIB+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 if test -n "$RANLIB"; then
9502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9503 else
9504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505 for as_dir in $PATH
9506 do
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 break 2
9514 fi
9515 done
9516 done
9517 IFS=$as_save_IFS
9518
9519 fi
9520 fi
9521 RANLIB=$ac_cv_prog_RANLIB
9522 if test -n "$RANLIB"; then
9523 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9524 echo "${ECHO_T}$RANLIB" >&6; }
9525 else
9526 { echo "$as_me:$LINENO: result: no" >&5
9527 echo "${ECHO_T}no" >&6; }
9528 fi
9529
9530
9531 fi
9532 if test -z "$ac_cv_prog_RANLIB"; then
9533 ac_ct_RANLIB=$RANLIB
9534 # Extract the first word of "ranlib", so it can be a program name with args.
9535 set dummy ranlib; ac_word=$2
9536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9538 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541 if test -n "$ac_ct_RANLIB"; then
9542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9543 else
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9546 do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_ac_ct_RANLIB="ranlib"
9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555 done
9556 done
9557 IFS=$as_save_IFS
9558
9559 fi
9560 fi
9561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9562 if test -n "$ac_ct_RANLIB"; then
9563 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9564 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9565 else
9566 { echo "$as_me:$LINENO: result: no" >&5
9567 echo "${ECHO_T}no" >&6; }
9568 fi
9569
9570 if test "x$ac_ct_RANLIB" = x; then
9571 RANLIB=":"
9572 else
9573 case $cross_compiling:$ac_tool_warned in
9574 yes:)
9575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9576 whose name does not start with the host triplet. If you think this
9577 configuration is useful to you, please write to autoconf@gnu.org." >&5
9578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9579 whose name does not start with the host triplet. If you think this
9580 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9581 ac_tool_warned=yes ;;
9582 esac
9583 RANLIB=$ac_ct_RANLIB
9584 fi
9585 else
9586 RANLIB="$ac_cv_prog_RANLIB"
9587 fi
9588
9589
9590 rm -f os-proto.h
9591 if test "${LBL_CFLAGS+set}" = set; then
9592 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9593 fi
9594 if test -f .devel ; then
9595 if test "$GCC" = yes ; then
9596 if test "${LBL_CFLAGS+set}" != set; then
9597 if test "$ac_cv_prog_cc_g" = yes ; then
9598 V_CCOPT="-g $V_CCOPT"
9599 fi
9600 V_CCOPT="$V_CCOPT -Wall"
9601 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9602 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
9603 fi
9604 fi
9605 else
9606 case "$host_os" in
9607
9608 irix6*)
9609 V_CCOPT="$V_CCOPT -n32"
9610 ;;
9611
9612 *)
9613 ;;
9614 esac
9615 fi
9616 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9617 name="lbl/os-$os.h"
9618 if test -f $name ; then
9619 ln -s $name os-proto.h
9620
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_OS_PROTO_H 1
9623 _ACEOF
9624
9625 else
9626 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9627 echo "$as_me: WARNING: can't find $name" >&2;}
9628 fi
9629 fi
9630
9631 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
9632 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
9633 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642
9643 # include <sys/types.h>
9644 # include <sys/socket.h>
9645 int
9646 main ()
9647 {
9648 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9649 ;
9650 return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9655 case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_compile") 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
9670 ac_cv_lbl_sockaddr_has_sa_len=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_cv_lbl_sockaddr_has_sa_len=no
9676 fi
9677
9678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 fi
9680
9681 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9682 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
9683 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9684
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_SOCKADDR_SA_LEN 1
9687 _ACEOF
9688
9689 fi
9690
9691 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
9692 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
9693 if test "${ac_cv_lbl_has_sockaddr_storage+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696 cat >conftest.$ac_ext <<_ACEOF
9697 /* confdefs.h. */
9698 _ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702
9703 # include <sys/types.h>
9704 # include <sys/socket.h>
9705 int
9706 main ()
9707 {
9708 u_int i = sizeof (struct sockaddr_storage)
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (ac_try="$ac_compile"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_compile") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest.$ac_objext; then
9730 ac_cv_lbl_has_sockaddr_storage=yes
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 ac_cv_lbl_has_sockaddr_storage=no
9736 fi
9737
9738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739 fi
9740
9741 { echo "$as_me:$LINENO: result: $ac_cv_lbl_has_sockaddr_storage" >&5
9742 echo "${ECHO_T}$ac_cv_lbl_has_sockaddr_storage" >&6; }
9743 if test $ac_cv_lbl_has_sockaddr_storage = yes ; then
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_SOCKADDR_STORAGE 1
9747 _ACEOF
9748
9749 fi
9750
9751 { echo "$as_me:$LINENO: checking if dl_hp_ppa_info_t struct has dl_module_id_1 member" >&5
9752 echo $ECHO_N "checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... $ECHO_C" >&6; }
9753 if test "${ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h. */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762
9763 # include <sys/types.h>
9764 # include <sys/dlpi.h>
9765 # include <sys/dlpi_ext.h>
9766 int
9767 main ()
9768 {
9769 u_int i = sizeof(((dl_hp_ppa_info_t *)0)->dl_module_id_1)
9770 ;
9771 return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext
9775 if { (ac_try="$ac_compile"
9776 case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_compile") 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest.$ac_objext; then
9791 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=yes
9792 else
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1=no
9797 fi
9798
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801
9802 { echo "$as_me:$LINENO: result: $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&5
9803 echo "${ECHO_T}$ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1" >&6; }
9804 if test $ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1 = yes ; then
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_HP_PPA_INFO_T_DL_MODULE_ID_1 1
9808 _ACEOF
9809
9810 fi
9811
9812 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9813 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
9814 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 case "$host_cpu" in
9818
9819 #
9820 # These are CPU types where:
9821 #
9822 # the CPU faults on an unaligned access, but at least some
9823 # OSes that support that CPU catch the fault and simulate
9824 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9825 # the simulation is slow, so we don't want to use it;
9826 #
9827 # the CPU, I infer (from the old
9828 #
9829 # XXX: should also check that they don't do weird things (like on arm)
9830 #
9831 # comment) doesn't fault on unaligned accesses, but doesn't
9832 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9833 #
9834 # for whatever reason, the test program doesn't work
9835 # (this has been claimed to be the case for several of those
9836 # CPUs - I don't know what the problem is; the problem
9837 # was reported as "the test program dumps core" for SuperH,
9838 # but that's what the test program is *supposed* to do -
9839 # it dumps core before it writes anything, so the test
9840 # for an empty output file should find an empty output
9841 # file and conclude that unaligned accesses don't work).
9842 #
9843 # This run-time test won't work if you're cross-compiling, so
9844 # in order to support cross-compiling for a particular CPU,
9845 # we have to wire in the list of CPU types anyway, as far as
9846 # I know, so perhaps we should just have a set of CPUs on
9847 # which we know it doesn't work, a set of CPUs on which we
9848 # know it does work, and have the script just fail on other
9849 # cpu types and update it when such a failure occurs.
9850 #
9851 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
9852 ac_cv_lbl_unaligned_fail=yes
9853 ;;
9854
9855 *)
9856 cat >conftest.c <<EOF
9857 # include <sys/types.h>
9858 # include <sys/wait.h>
9859 # include <stdio.h>
9860 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9861 main() {
9862 unsigned int i;
9863 pid_t pid;
9864 int status;
9865 /* avoid "core dumped" message */
9866 pid = fork();
9867 if (pid < 0)
9868 exit(2);
9869 if (pid > 0) {
9870 /* parent */
9871 pid = waitpid(pid, &status, 0);
9872 if (pid < 0)
9873 exit(3);
9874 exit(!WIFEXITED(status));
9875 }
9876 /* child */
9877 i = *(unsigned int *)&a[1];
9878 printf("%d\n", i);
9879 exit(0);
9880 }
9881 EOF
9882 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9883 conftest.c $LIBS >/dev/null 2>&1
9884 if test ! -x conftest ; then
9885 ac_cv_lbl_unaligned_fail=yes
9886 else
9887 ./conftest >conftest.out
9888 if test ! -s conftest.out ; then
9889 ac_cv_lbl_unaligned_fail=yes
9890 else
9891 ac_cv_lbl_unaligned_fail=no
9892 fi
9893 fi
9894 rm -f conftest* core core.conftest
9895 ;;
9896 esac
9897 fi
9898
9899 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9900 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
9901 if test $ac_cv_lbl_unaligned_fail = yes ; then
9902
9903 cat >>confdefs.h <<\_ACEOF
9904 #define LBL_ALIGN 1
9905 _ACEOF
9906
9907 fi
9908
9909 #
9910 # Makefile.in includes rules to generate version.h, so we assume
9911 # that it will be generated if autoconf is used.
9912 #
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_VERSION_H 1
9916 _ACEOF
9917
9918
9919 rm -f net
9920 ln -s ${srcdir}/bpf/net net
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940 { echo "$as_me:$LINENO: checking for USB sniffing support" >&5
9941 echo $ECHO_N "checking for USB sniffing support... $ECHO_C" >&6; }
9942 case "$host_os" in
9943 linux*)
9944
9945 cat >>confdefs.h <<\_ACEOF
9946 #define PCAP_SUPPORT_USB 1
9947 _ACEOF
9948
9949 USB_SRC=pcap-usb-linux.c
9950 { echo "$as_me:$LINENO: result: yes" >&5
9951 echo "${ECHO_T}yes" >&6; }
9952 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
9953 if test $? -ne 0 ; then
9954 ac_usb_dev_name="usbmon"
9955 fi
9956
9957 cat >>confdefs.h <<_ACEOF
9958 #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name"
9959 _ACEOF
9960
9961 { echo "$as_me:$LINENO: Device for USB sniffing is /dev/$ac_usb_dev_name" >&5
9962 echo "$as_me: Device for USB sniffing is /dev/$ac_usb_dev_name" >&6;}
9963
9964 for ac_header in linux/usbdevice_fs.h
9965 do
9966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 fi
9973 ac_res=`eval echo '${'$as_ac_Header'}'`
9974 { echo "$as_me:$LINENO: result: $ac_res" >&5
9975 echo "${ECHO_T}$ac_res" >&6; }
9976 else
9977 # Is the header compilable?
9978 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 #include <$ac_header>
9988 _ACEOF
9989 rm -f conftest.$ac_objext
9990 if { (ac_try="$ac_compile"
9991 case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_compile") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest.$ac_objext; then
10006 ac_header_compiler=yes
10007 else
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_header_compiler=no
10012 fi
10013
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10016 echo "${ECHO_T}$ac_header_compiler" >&6; }
10017
10018 # Is the header present?
10019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <$ac_header>
10028 _ACEOF
10029 if { (ac_try="$ac_cpp conftest.$ac_ext"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } >/dev/null && {
10042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10044 }; then
10045 ac_header_preproc=yes
10046 else
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ac_header_preproc=no
10051 fi
10052
10053 rm -f conftest.err conftest.$ac_ext
10054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10055 echo "${ECHO_T}$ac_header_preproc" >&6; }
10056
10057 # So? What about this header?
10058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10059 yes:no: )
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10064 ac_header_preproc=yes
10065 ;;
10066 no:yes:* )
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10079
10080 ;;
10081 esac
10082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 eval "$as_ac_Header=\$ac_header_preproc"
10088 fi
10089 ac_res=`eval echo '${'$as_ac_Header'}'`
10090 { echo "$as_me:$LINENO: result: $ac_res" >&5
10091 echo "${ECHO_T}$ac_res" >&6; }
10092
10093 fi
10094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10095 cat >>confdefs.h <<_ACEOF
10096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10097 _ACEOF
10098
10099 fi
10100
10101 done
10102
10103 if test "$ac_cv_header_linux_usbdevice_fs_h" = yes; then
10104 #
10105 # OK, does it define bRequestType? Older versions of the kernel
10106 # define fields with names like "requesttype, "request", and
10107 # "value", rather than "bRequestType", "bRequest", and
10108 # "wValue".
10109 #
10110 { echo "$as_me:$LINENO: checking if usbdevfs_ctrltransfer struct has bRequestType member" >&5
10111 echo $ECHO_N "checking if usbdevfs_ctrltransfer struct has bRequestType member... $ECHO_C" >&6; }
10112 if test "${ac_cv_usbdevfs_ctrltransfer_has_bRequestType+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121
10122 $ac_includes_default
10123 #ifdef HAVE_SYS_BITYPES_H
10124 #include <sys/bitypes.h>
10125 #endif
10126 # include <linux/usbdevice_fs.h>
10127 int
10128 main ()
10129 {
10130 u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)
10131 ;
10132 return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (ac_try="$ac_compile"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
10152 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes
10153 else
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_cv_usbdevfs_ctrltransfer_has_bRequestType=no
10158 fi
10159
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 fi
10162
10163 { echo "$as_me:$LINENO: result: $ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&5
10164 echo "${ECHO_T}$ac_cv_usbdevfs_ctrltransfer_has_bRequestType" >&6; }
10165 if test $ac_cv_usbdevfs_ctrltransfer_has_bRequestType = yes ; then
10166
10167 cat >>confdefs.h <<\_ACEOF
10168 #define HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE 1
10169 _ACEOF
10170
10171 fi
10172 fi
10173 ;;
10174 *)
10175 { echo "$as_me:$LINENO: result: no" >&5
10176 echo "${ECHO_T}no" >&6; }
10177 ;;
10178 esac
10179
10180
10181
10182 # Check whether --enable-bluetooth was given.
10183 if test "${enable_bluetooth+set}" = set; then
10184 enableval=$enable_bluetooth;
10185 else
10186 enable_bluetooth=yes
10187 fi
10188
10189
10190 if test "x$enable_bluetooth" != "xno" ; then
10191 case "$host_os" in
10192 linux*)
10193 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10194 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10195 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10196 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 fi
10199 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10200 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10201 else
10202 # Is the header compilable?
10203 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h usability" >&5
10204 echo $ECHO_N "checking bluetooth/bluetooth.h usability... $ECHO_C" >&6; }
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 $ac_includes_default
10212 #include <bluetooth/bluetooth.h>
10213 _ACEOF
10214 rm -f conftest.$ac_objext
10215 if { (ac_try="$ac_compile"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_compile") 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest.$ac_objext; then
10231 ac_header_compiler=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 ac_header_compiler=no
10237 fi
10238
10239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6; }
10242
10243 # Is the header present?
10244 { echo "$as_me:$LINENO: checking bluetooth/bluetooth.h presence" >&5
10245 echo $ECHO_N "checking bluetooth/bluetooth.h presence... $ECHO_C" >&6; }
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <bluetooth/bluetooth.h>
10253 _ACEOF
10254 if { (ac_try="$ac_cpp conftest.$ac_ext"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } >/dev/null && {
10267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 }; then
10270 ac_header_preproc=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_header_preproc=no
10276 fi
10277
10278 rm -f conftest.err conftest.$ac_ext
10279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10280 echo "${ECHO_T}$ac_header_preproc" >&6; }
10281
10282 # So? What about this header?
10283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10284 yes:no: )
10285 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&5
10286 echo "$as_me: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&5
10288 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's result" >&2;}
10289 ac_header_preproc=yes
10290 ;;
10291 no:yes:* )
10292 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&5
10293 echo "$as_me: WARNING: bluetooth/bluetooth.h: present but cannot be compiled" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&5
10295 echo "$as_me: WARNING: bluetooth/bluetooth.h: check for missing prerequisite headers?" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&5
10297 echo "$as_me: WARNING: bluetooth/bluetooth.h: see the Autoconf documentation" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&5
10299 echo "$as_me: WARNING: bluetooth/bluetooth.h: section \"Present But Cannot Be Compiled\"" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&5
10301 echo "$as_me: WARNING: bluetooth/bluetooth.h: proceeding with the preprocessor's result" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&5
10303 echo "$as_me: WARNING: bluetooth/bluetooth.h: in the future, the compiler will take precedence" >&2;}
10304
10305 ;;
10306 esac
10307 { echo "$as_me:$LINENO: checking for bluetooth/bluetooth.h" >&5
10308 echo $ECHO_N "checking for bluetooth/bluetooth.h... $ECHO_C" >&6; }
10309 if test "${ac_cv_header_bluetooth_bluetooth_h+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 ac_cv_header_bluetooth_bluetooth_h=$ac_header_preproc
10313 fi
10314 { echo "$as_me:$LINENO: result: $ac_cv_header_bluetooth_bluetooth_h" >&5
10315 echo "${ECHO_T}$ac_cv_header_bluetooth_bluetooth_h" >&6; }
10316
10317 fi
10318 if test $ac_cv_header_bluetooth_bluetooth_h = yes; then
10319
10320
10321 cat >>confdefs.h <<\_ACEOF
10322 #define PCAP_SUPPORT_BT 1
10323 _ACEOF
10324
10325 BT_SRC=pcap-bt-linux.c
10326 { echo "$as_me:$LINENO: Bluetooth sniffing is supported" >&5
10327 echo "$as_me: Bluetooth sniffing is supported" >&6;}
10328
10329 else
10330 { echo "$as_me:$LINENO: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&5
10331 echo "$as_me: Bluetooth sniffing is not supported; install bluez-lib devel to enable it" >&6;}
10332
10333 fi
10334
10335
10336 ;;
10337 *)
10338 { echo "$as_me:$LINENO: no Bluetooth sniffing support" >&5
10339 echo "$as_me: no Bluetooth sniffing support" >&6;}
10340 ;;
10341 esac
10342
10343
10344 fi
10345
10346 # Check whether --enable-can was given.
10347 if test "${enable_can+set}" = set; then
10348 enableval=$enable_can;
10349 else
10350 enable_can=yes
10351 fi
10352
10353
10354 if test "x$enable_can" != "xno" ; then
10355 case "$host_os" in
10356 linux*)
10357 if test "${ac_cv_header_linux_can_version_h+set}" = set; then
10358 { echo "$as_me:$LINENO: checking for linux/can/version.h" >&5
10359 echo $ECHO_N "checking for linux/can/version.h... $ECHO_C" >&6; }
10360 if test "${ac_cv_header_linux_can_version_h+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 fi
10363 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_version_h" >&5
10364 echo "${ECHO_T}$ac_cv_header_linux_can_version_h" >&6; }
10365 else
10366 # Is the header compilable?
10367 { echo "$as_me:$LINENO: checking linux/can/version.h usability" >&5
10368 echo $ECHO_N "checking linux/can/version.h usability... $ECHO_C" >&6; }
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 #include <linux/can/version.h>
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_compile") 2>conftest.er1
10386 ac_status=$?
10387 grep -v '^ *+' conftest.er1 >conftest.err
10388 rm -f conftest.er1
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } && {
10392 test -z "$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 } && test -s conftest.$ac_objext; then
10395 ac_header_compiler=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 ac_header_compiler=no
10401 fi
10402
10403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10405 echo "${ECHO_T}$ac_header_compiler" >&6; }
10406
10407 # Is the header present?
10408 { echo "$as_me:$LINENO: checking linux/can/version.h presence" >&5
10409 echo $ECHO_N "checking linux/can/version.h presence... $ECHO_C" >&6; }
10410 cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h. */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 #include <linux/can/version.h>
10417 _ACEOF
10418 if { (ac_try="$ac_cpp conftest.$ac_ext"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } >/dev/null && {
10431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 }; then
10434 ac_header_preproc=yes
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439 ac_header_preproc=no
10440 fi
10441
10442 rm -f conftest.err conftest.$ac_ext
10443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10444 echo "${ECHO_T}$ac_header_preproc" >&6; }
10445
10446 # So? What about this header?
10447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10448 yes:no: )
10449 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10450 echo "$as_me: WARNING: linux/can/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: proceeding with the compiler's result" >&5
10452 echo "$as_me: WARNING: linux/can/version.h: proceeding with the compiler's result" >&2;}
10453 ac_header_preproc=yes
10454 ;;
10455 no:yes:* )
10456 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: present but cannot be compiled" >&5
10457 echo "$as_me: WARNING: linux/can/version.h: present but cannot be compiled" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: check for missing prerequisite headers?" >&5
10459 echo "$as_me: WARNING: linux/can/version.h: check for missing prerequisite headers?" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: see the Autoconf documentation" >&5
10461 echo "$as_me: WARNING: linux/can/version.h: see the Autoconf documentation" >&2;}
10462 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: section \"Present But Cannot Be Compiled\"" >&5
10463 echo "$as_me: WARNING: linux/can/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10464 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: proceeding with the preprocessor's result" >&5
10465 echo "$as_me: WARNING: linux/can/version.h: proceeding with the preprocessor's result" >&2;}
10466 { echo "$as_me:$LINENO: WARNING: linux/can/version.h: in the future, the compiler will take precedence" >&5
10467 echo "$as_me: WARNING: linux/can/version.h: in the future, the compiler will take precedence" >&2;}
10468
10469 ;;
10470 esac
10471 { echo "$as_me:$LINENO: checking for linux/can/version.h" >&5
10472 echo $ECHO_N "checking for linux/can/version.h... $ECHO_C" >&6; }
10473 if test "${ac_cv_header_linux_can_version_h+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 ac_cv_header_linux_can_version_h=$ac_header_preproc
10477 fi
10478 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_can_version_h" >&5
10479 echo "${ECHO_T}$ac_cv_header_linux_can_version_h" >&6; }
10480
10481 fi
10482 if test $ac_cv_header_linux_can_version_h = yes; then
10483
10484 cat >>confdefs.h <<\_ACEOF
10485 #define PCAP_SUPPORT_CAN 1
10486 _ACEOF
10487
10488 CAN_SRC=pcap-can-linux.c
10489 { echo "$as_me:$LINENO: CAN sniffing is supported" >&5
10490 echo "$as_me: CAN sniffing is supported" >&6;}
10491 else
10492 { echo "$as_me:$LINENO: CAN sniffing is not supported" >&5
10493 echo "$as_me: CAN sniffing is not supported" >&6;}
10494 fi
10495
10496
10497 ;;
10498 *)
10499 { echo "$as_me:$LINENO: no CAN sniffing support implemented for $host_os" >&5
10500 echo "$as_me: no CAN sniffing support implemented for $host_os" >&6;}
10501 ;;
10502 esac
10503
10504
10505 fi
10506
10507 # Find a good install program. We prefer a C program (faster),
10508 # so one script is as good as another. But avoid the broken or
10509 # incompatible versions:
10510 # SysV /etc/install, /usr/sbin/install
10511 # SunOS /usr/etc/install
10512 # IRIX /sbin/install
10513 # AIX /bin/install
10514 # AmigaOS /C/install, which installs bootblocks on floppy discs
10515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10518 # OS/2's system install, which has a completely different semantic
10519 # ./install, which can be erroneously created by make from ./install.sh.
10520 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10521 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
10522 if test -z "$INSTALL"; then
10523 if test "${ac_cv_path_install+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10528 do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 # Account for people who put trailing slashes in PATH elements.
10532 case $as_dir/ in
10533 ./ | .// | /cC/* | \
10534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10535 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10536 /usr/ucb/* ) ;;
10537 *)
10538 # OSF1 and SCO ODT 3.0 have their own names for install.
10539 # Don't use installbsd from OSF since it installs stuff as root
10540 # by default.
10541 for ac_prog in ginstall scoinst install; do
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10544 if test $ac_prog = install &&
10545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10546 # AIX install. It has an incompatible calling convention.
10547 :
10548 elif test $ac_prog = install &&
10549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10550 # program-specific install script used by HP pwplus--don't use.
10551 :
10552 else
10553 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10554 break 3
10555 fi
10556 fi
10557 done
10558 done
10559 ;;
10560 esac
10561 done
10562 IFS=$as_save_IFS
10563
10564
10565 fi
10566 if test "${ac_cv_path_install+set}" = set; then
10567 INSTALL=$ac_cv_path_install
10568 else
10569 # As a last resort, use the slow shell script. Don't cache a
10570 # value for INSTALL within a source directory, because that will
10571 # break other packages using the cache if that directory is
10572 # removed, or if the value is a relative name.
10573 INSTALL=$ac_install_sh
10574 fi
10575 fi
10576 { echo "$as_me:$LINENO: result: $INSTALL" >&5
10577 echo "${ECHO_T}$INSTALL" >&6; }
10578
10579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10580 # It thinks the first close brace ends the variable substitution.
10581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10582
10583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10584
10585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10586
10587
10588 ac_config_headers="$ac_config_headers config.h"
10589
10590
10591 ac_config_files="$ac_config_files Makefile pcap-filter.manmisc pcap-linktype.manmisc pcap-savefile.manfile pcap.3pcap pcap_compile.3pcap pcap_datalink.3pcap pcap_dump_open.3pcap pcap_list_datalinks.3pcap pcap_open_dead.3pcap pcap_open_offline.3pcap"
10592
10593 cat >confcache <<\_ACEOF
10594 # This file is a shell script that caches the results of configure
10595 # tests run on this system so they can be shared between configure
10596 # scripts and configure runs, see configure's option --config-cache.
10597 # It is not useful on other systems. If it contains results you don't
10598 # want to keep, you may remove or edit it.
10599 #
10600 # config.status only pays attention to the cache file if you give it
10601 # the --recheck option to rerun configure.
10602 #
10603 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10605 # following values.
10606
10607 _ACEOF
10608
10609 # The following way of writing the cache mishandles newlines in values,
10610 # but we know of no workaround that is simple, portable, and efficient.
10611 # So, we kill variables containing newlines.
10612 # Ultrix sh set writes to stderr and can't be redirected directly,
10613 # and sets the high bit in the cache file unless we assign to the vars.
10614 (
10615 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10616 eval ac_val=\$$ac_var
10617 case $ac_val in #(
10618 *${as_nl}*)
10619 case $ac_var in #(
10620 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10621 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10622 esac
10623 case $ac_var in #(
10624 _ | IFS | as_nl) ;; #(
10625 *) $as_unset $ac_var ;;
10626 esac ;;
10627 esac
10628 done
10629
10630 (set) 2>&1 |
10631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10632 *${as_nl}ac_space=\ *)
10633 # `set' does not quote correctly, so add quotes (double-quote
10634 # substitution turns \\\\ into \\, and sed turns \\ into \).
10635 sed -n \
10636 "s/'/'\\\\''/g;
10637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10638 ;; #(
10639 *)
10640 # `set' quotes correctly as required by POSIX, so do not add quotes.
10641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10642 ;;
10643 esac |
10644 sort
10645 ) |
10646 sed '
10647 /^ac_cv_env_/b end
10648 t clear
10649 :clear
10650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10651 t end
10652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10653 :end' >>confcache
10654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10655 if test -w "$cache_file"; then
10656 test "x$cache_file" != "x/dev/null" &&
10657 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10658 echo "$as_me: updating cache $cache_file" >&6;}
10659 cat confcache >$cache_file
10660 else
10661 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10662 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10663 fi
10664 fi
10665 rm -f confcache
10666
10667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10668 # Let make expand exec_prefix.
10669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10670
10671 DEFS=-DHAVE_CONFIG_H
10672
10673 ac_libobjs=
10674 ac_ltlibobjs=
10675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10676 # 1. Remove the extension, and $U if already installed.
10677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10678 ac_i=`echo "$ac_i" | sed "$ac_script"`
10679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10680 # will be set to the directory where LIBOBJS objects are built.
10681 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10682 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10683 done
10684 LIBOBJS=$ac_libobjs
10685
10686 LTLIBOBJS=$ac_ltlibobjs
10687
10688
10689
10690 : ${CONFIG_STATUS=./config.status}
10691 ac_clean_files_save=$ac_clean_files
10692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10693 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10694 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10695 cat >$CONFIG_STATUS <<_ACEOF
10696 #! $SHELL
10697 # Generated by $as_me.
10698 # Run this file to recreate the current configuration.
10699 # Compiler output produced by configure, useful for debugging
10700 # configure, is in config.log if it exists.
10701
10702 debug=false
10703 ac_cs_recheck=false
10704 ac_cs_silent=false
10705 SHELL=\${CONFIG_SHELL-$SHELL}
10706 _ACEOF
10707
10708 cat >>$CONFIG_STATUS <<\_ACEOF
10709 ## --------------------- ##
10710 ## M4sh Initialization. ##
10711 ## --------------------- ##
10712
10713 # Be more Bourne compatible
10714 DUALCASE=1; export DUALCASE # for MKS sh
10715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10716 emulate sh
10717 NULLCMD=:
10718 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10719 # is contrary to our usage. Disable this feature.
10720 alias -g '${1+"$@"}'='"$@"'
10721 setopt NO_GLOB_SUBST
10722 else
10723 case `(set -o) 2>/dev/null` in
10724 *posix*) set -o posix ;;
10725 esac
10726
10727 fi
10728
10729
10730
10731
10732 # PATH needs CR
10733 # Avoid depending upon Character Ranges.
10734 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10735 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10736 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10737 as_cr_digits='0123456789'
10738 as_cr_alnum=$as_cr_Letters$as_cr_digits
10739
10740 # The user is always right.
10741 if test "${PATH_SEPARATOR+set}" != set; then
10742 echo "#! /bin/sh" >conf$$.sh
10743 echo "exit 0" >>conf$$.sh
10744 chmod +x conf$$.sh
10745 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10746 PATH_SEPARATOR=';'
10747 else
10748 PATH_SEPARATOR=:
10749 fi
10750 rm -f conf$$.sh
10751 fi
10752
10753 # Support unset when possible.
10754 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10755 as_unset=unset
10756 else
10757 as_unset=false
10758 fi
10759
10760
10761 # IFS
10762 # We need space, tab and new line, in precisely that order. Quoting is
10763 # there to prevent editors from complaining about space-tab.
10764 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10765 # splitting by setting IFS to empty value.)
10766 as_nl='
10767 '
10768 IFS=" "" $as_nl"
10769
10770 # Find who we are. Look in the path if we contain no directory separator.
10771 case $0 in
10772 *[\\/]* ) as_myself=$0 ;;
10773 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774 for as_dir in $PATH
10775 do
10776 IFS=$as_save_IFS
10777 test -z "$as_dir" && as_dir=.
10778 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10779 done
10780 IFS=$as_save_IFS
10781
10782 ;;
10783 esac
10784 # We did not find ourselves, most probably we were run as `sh COMMAND'
10785 # in which case we are not to be found in the path.
10786 if test "x$as_myself" = x; then
10787 as_myself=$0
10788 fi
10789 if test ! -f "$as_myself"; then
10790 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10791 { (exit 1); exit 1; }
10792 fi
10793
10794 # Work around bugs in pre-3.0 UWIN ksh.
10795 for as_var in ENV MAIL MAILPATH
10796 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10797 done
10798 PS1='$ '
10799 PS2='> '
10800 PS4='+ '
10801
10802 # NLS nuisances.
10803 for as_var in \
10804 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10805 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10806 LC_TELEPHONE LC_TIME
10807 do
10808 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10809 eval $as_var=C; export $as_var
10810 else
10811 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10812 fi
10813 done
10814
10815 # Required to use basename.
10816 if expr a : '\(a\)' >/dev/null 2>&1 &&
10817 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10818 as_expr=expr
10819 else
10820 as_expr=false
10821 fi
10822
10823 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10824 as_basename=basename
10825 else
10826 as_basename=false
10827 fi
10828
10829
10830 # Name of the executable.
10831 as_me=`$as_basename -- "$0" ||
10832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10833 X"$0" : 'X\(//\)$' \| \
10834 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10835 echo X/"$0" |
10836 sed '/^.*\/\([^/][^/]*\)\/*$/{
10837 s//\1/
10838 q
10839 }
10840 /^X\/\(\/\/\)$/{
10841 s//\1/
10842 q
10843 }
10844 /^X\/\(\/\).*/{
10845 s//\1/
10846 q
10847 }
10848 s/.*/./; q'`
10849
10850 # CDPATH.
10851 $as_unset CDPATH
10852
10853
10854
10855 as_lineno_1=$LINENO
10856 as_lineno_2=$LINENO
10857 test "x$as_lineno_1" != "x$as_lineno_2" &&
10858 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10859
10860 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10861 # uniformly replaced by the line number. The first 'sed' inserts a
10862 # line-number line after each line using $LINENO; the second 'sed'
10863 # does the real work. The second script uses 'N' to pair each
10864 # line-number line with the line containing $LINENO, and appends
10865 # trailing '-' during substitution so that $LINENO is not a special
10866 # case at line end.
10867 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10868 # scripts with optimization help from Paolo Bonzini. Blame Lee
10869 # E. McMahon (1931-1989) for sed's syntax. :-)
10870 sed -n '
10871 p
10872 /[$]LINENO/=
10873 ' <$as_myself |
10874 sed '
10875 s/[$]LINENO.*/&-/
10876 t lineno
10877 b
10878 :lineno
10879 N
10880 :loop
10881 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10882 t loop
10883 s/-\n.*//
10884 ' >$as_me.lineno &&
10885 chmod +x "$as_me.lineno" ||
10886 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10887 { (exit 1); exit 1; }; }
10888
10889 # Don't try to exec as it changes $[0], causing all sort of problems
10890 # (the dirname of $[0] is not the place where we might find the
10891 # original and so on. Autoconf is especially sensitive to this).
10892 . "./$as_me.lineno"
10893 # Exit status is that of the last command.
10894 exit
10895 }
10896
10897
10898 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10899 as_dirname=dirname
10900 else
10901 as_dirname=false
10902 fi
10903
10904 ECHO_C= ECHO_N= ECHO_T=
10905 case `echo -n x` in
10906 -n*)
10907 case `echo 'x\c'` in
10908 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10909 *) ECHO_C='\c';;
10910 esac;;
10911 *)
10912 ECHO_N='-n';;
10913 esac
10914
10915 if expr a : '\(a\)' >/dev/null 2>&1 &&
10916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10917 as_expr=expr
10918 else
10919 as_expr=false
10920 fi
10921
10922 rm -f conf$$ conf$$.exe conf$$.file
10923 if test -d conf$$.dir; then
10924 rm -f conf$$.dir/conf$$.file
10925 else
10926 rm -f conf$$.dir
10927 mkdir conf$$.dir
10928 fi
10929 echo >conf$$.file
10930 if ln -s conf$$.file conf$$ 2>/dev/null; then
10931 as_ln_s='ln -s'
10932 # ... but there are two gotchas:
10933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10935 # In both cases, we have to default to `cp -p'.
10936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10937 as_ln_s='cp -p'
10938 elif ln conf$$.file conf$$ 2>/dev/null; then
10939 as_ln_s=ln
10940 else
10941 as_ln_s='cp -p'
10942 fi
10943 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10944 rmdir conf$$.dir 2>/dev/null
10945
10946 if mkdir -p . 2>/dev/null; then
10947 as_mkdir_p=:
10948 else
10949 test -d ./-p && rmdir ./-p
10950 as_mkdir_p=false
10951 fi
10952
10953 if test -x / >/dev/null 2>&1; then
10954 as_test_x='test -x'
10955 else
10956 if ls -dL / >/dev/null 2>&1; then
10957 as_ls_L_option=L
10958 else
10959 as_ls_L_option=
10960 fi
10961 as_test_x='
10962 eval sh -c '\''
10963 if test -d "$1"; then
10964 test -d "$1/.";
10965 else
10966 case $1 in
10967 -*)set "./$1";;
10968 esac;
10969 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10970 ???[sx]*):;;*)false;;esac;fi
10971 '\'' sh
10972 '
10973 fi
10974 as_executable_p=$as_test_x
10975
10976 # Sed expression to map a string onto a valid CPP name.
10977 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10978
10979 # Sed expression to map a string onto a valid variable name.
10980 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10981
10982
10983 exec 6>&1
10984
10985 # Save the log message, to keep $[0] and so on meaningful, and to
10986 # report actual input values of CONFIG_FILES etc. instead of their
10987 # values after options handling.
10988 ac_log="
10989 This file was extended by $as_me, which was
10990 generated by GNU Autoconf 2.61. Invocation command line was
10991
10992 CONFIG_FILES = $CONFIG_FILES
10993 CONFIG_HEADERS = $CONFIG_HEADERS
10994 CONFIG_LINKS = $CONFIG_LINKS
10995 CONFIG_COMMANDS = $CONFIG_COMMANDS
10996 $ $0 $@
10997
10998 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10999 "
11000
11001 _ACEOF
11002
11003 cat >>$CONFIG_STATUS <<_ACEOF
11004 # Files that config.status was made for.
11005 config_files="$ac_config_files"
11006 config_headers="$ac_config_headers"
11007
11008 _ACEOF
11009
11010 cat >>$CONFIG_STATUS <<\_ACEOF
11011 ac_cs_usage="\
11012 \`$as_me' instantiates files from templates according to the
11013 current configuration.
11014
11015 Usage: $0 [OPTIONS] [FILE]...
11016
11017 -h, --help print this help, then exit
11018 -V, --version print version number and configuration settings, then exit
11019 -q, --quiet do not print progress messages
11020 -d, --debug don't remove temporary files
11021 --recheck update $as_me by reconfiguring in the same conditions
11022 --file=FILE[:TEMPLATE]
11023 instantiate the configuration file FILE
11024 --header=FILE[:TEMPLATE]
11025 instantiate the configuration header FILE
11026
11027 Configuration files:
11028 $config_files
11029
11030 Configuration headers:
11031 $config_headers
11032
11033 Report bugs to <bug-autoconf@gnu.org>."
11034
11035 _ACEOF
11036 cat >>$CONFIG_STATUS <<_ACEOF
11037 ac_cs_version="\\
11038 config.status
11039 configured by $0, generated by GNU Autoconf 2.61,
11040 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11041
11042 Copyright (C) 2006 Free Software Foundation, Inc.
11043 This config.status script is free software; the Free Software Foundation
11044 gives unlimited permission to copy, distribute and modify it."
11045
11046 ac_pwd='$ac_pwd'
11047 srcdir='$srcdir'
11048 INSTALL='$INSTALL'
11049 _ACEOF
11050
11051 cat >>$CONFIG_STATUS <<\_ACEOF
11052 # If no file are specified by the user, then we need to provide default
11053 # value. By we need to know if files were specified by the user.
11054 ac_need_defaults=:
11055 while test $# != 0
11056 do
11057 case $1 in
11058 --*=*)
11059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11060 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11061 ac_shift=:
11062 ;;
11063 *)
11064 ac_option=$1
11065 ac_optarg=$2
11066 ac_shift=shift
11067 ;;
11068 esac
11069
11070 case $ac_option in
11071 # Handling of the options.
11072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11073 ac_cs_recheck=: ;;
11074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11075 echo "$ac_cs_version"; exit ;;
11076 --debug | --debu | --deb | --de | --d | -d )
11077 debug=: ;;
11078 --file | --fil | --fi | --f )
11079 $ac_shift
11080 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11081 ac_need_defaults=false;;
11082 --header | --heade | --head | --hea )
11083 $ac_shift
11084 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11085 ac_need_defaults=false;;
11086 --he | --h)
11087 # Conflict between --help and --header
11088 { echo "$as_me: error: ambiguous option: $1
11089 Try \`$0 --help' for more information." >&2
11090 { (exit 1); exit 1; }; };;
11091 --help | --hel | -h )
11092 echo "$ac_cs_usage"; exit ;;
11093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11095 ac_cs_silent=: ;;
11096
11097 # This is an error.
11098 -*) { echo "$as_me: error: unrecognized option: $1
11099 Try \`$0 --help' for more information." >&2
11100 { (exit 1); exit 1; }; } ;;
11101
11102 *) ac_config_targets="$ac_config_targets $1"
11103 ac_need_defaults=false ;;
11104
11105 esac
11106 shift
11107 done
11108
11109 ac_configure_extra_args=
11110
11111 if $ac_cs_silent; then
11112 exec 6>/dev/null
11113 ac_configure_extra_args="$ac_configure_extra_args --silent"
11114 fi
11115
11116 _ACEOF
11117 cat >>$CONFIG_STATUS <<_ACEOF
11118 if \$ac_cs_recheck; then
11119 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11120 CONFIG_SHELL=$SHELL
11121 export CONFIG_SHELL
11122 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11123 fi
11124
11125 _ACEOF
11126 cat >>$CONFIG_STATUS <<\_ACEOF
11127 exec 5>>config.log
11128 {
11129 echo
11130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11131 ## Running $as_me. ##
11132 _ASBOX
11133 echo "$ac_log"
11134 } >&5
11135
11136 _ACEOF
11137 cat >>$CONFIG_STATUS <<_ACEOF
11138 _ACEOF
11139
11140 cat >>$CONFIG_STATUS <<\_ACEOF
11141
11142 # Handling of arguments.
11143 for ac_config_target in $ac_config_targets
11144 do
11145 case $ac_config_target in
11146 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11147 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11148 "pcap-filter.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-filter.manmisc" ;;
11149 "pcap-linktype.manmisc") CONFIG_FILES="$CONFIG_FILES pcap-linktype.manmisc" ;;
11150 "pcap-savefile.manfile") CONFIG_FILES="$CONFIG_FILES pcap-savefile.manfile" ;;
11151 "pcap.3pcap") CONFIG_FILES="$CONFIG_FILES pcap.3pcap" ;;
11152 "pcap_compile.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_compile.3pcap" ;;
11153 "pcap_datalink.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_datalink.3pcap" ;;
11154 "pcap_dump_open.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_dump_open.3pcap" ;;
11155 "pcap_list_datalinks.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_list_datalinks.3pcap" ;;
11156 "pcap_open_dead.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_dead.3pcap" ;;
11157 "pcap_open_offline.3pcap") CONFIG_FILES="$CONFIG_FILES pcap_open_offline.3pcap" ;;
11158
11159 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11160 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11161 { (exit 1); exit 1; }; };;
11162 esac
11163 done
11164
11165
11166 # If the user did not use the arguments to specify the items to instantiate,
11167 # then the envvar interface is used. Set only those that are not.
11168 # We use the long form for the default assignment because of an extremely
11169 # bizarre bug on SunOS 4.1.3.
11170 if $ac_need_defaults; then
11171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11173 fi
11174
11175 # Have a temporary directory for convenience. Make it in the build tree
11176 # simply because there is no reason against having it here, and in addition,
11177 # creating and moving files from /tmp can sometimes cause problems.
11178 # Hook for its removal unless debugging.
11179 # Note that there is a small window in which the directory will not be cleaned:
11180 # after its creation but before its name has been assigned to `$tmp'.
11181 $debug ||
11182 {
11183 tmp=
11184 trap 'exit_status=$?
11185 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11186 ' 0
11187 trap '{ (exit 1); exit 1; }' 1 2 13 15
11188 }
11189 # Create a (secure) tmp directory for tmp files.
11190
11191 {
11192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11193 test -n "$tmp" && test -d "$tmp"
11194 } ||
11195 {
11196 tmp=./conf$$-$RANDOM
11197 (umask 077 && mkdir "$tmp")
11198 } ||
11199 {
11200 echo "$me: cannot create a temporary directory in ." >&2
11201 { (exit 1); exit 1; }
11202 }
11203
11204 #
11205 # Set up the sed scripts for CONFIG_FILES section.
11206 #
11207
11208 # No need to generate the scripts if there are no CONFIG_FILES.
11209 # This happens for instance when ./config.status config.h
11210 if test -n "$CONFIG_FILES"; then
11211
11212 _ACEOF
11213
11214
11215
11216 ac_delim='%!_!# '
11217 for ac_last_try in false false false false false :; do
11218 cat >conf$$subs.sed <<_ACEOF
11219 SHELL!$SHELL$ac_delim
11220 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11221 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11222 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11223 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11224 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11225 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11226 exec_prefix!$exec_prefix$ac_delim
11227 prefix!$prefix$ac_delim
11228 program_transform_name!$program_transform_name$ac_delim
11229 bindir!$bindir$ac_delim
11230 sbindir!$sbindir$ac_delim
11231 libexecdir!$libexecdir$ac_delim
11232 datarootdir!$datarootdir$ac_delim
11233 datadir!$datadir$ac_delim
11234 sysconfdir!$sysconfdir$ac_delim
11235 sharedstatedir!$sharedstatedir$ac_delim
11236 localstatedir!$localstatedir$ac_delim
11237 includedir!$includedir$ac_delim
11238 oldincludedir!$oldincludedir$ac_delim
11239 docdir!$docdir$ac_delim
11240 infodir!$infodir$ac_delim
11241 htmldir!$htmldir$ac_delim
11242 dvidir!$dvidir$ac_delim
11243 pdfdir!$pdfdir$ac_delim
11244 psdir!$psdir$ac_delim
11245 libdir!$libdir$ac_delim
11246 localedir!$localedir$ac_delim
11247 mandir!$mandir$ac_delim
11248 DEFS!$DEFS$ac_delim
11249 ECHO_C!$ECHO_C$ac_delim
11250 ECHO_N!$ECHO_N$ac_delim
11251 ECHO_T!$ECHO_T$ac_delim
11252 LIBS!$LIBS$ac_delim
11253 build_alias!$build_alias$ac_delim
11254 host_alias!$host_alias$ac_delim
11255 target_alias!$target_alias$ac_delim
11256 build!$build$ac_delim
11257 build_cpu!$build_cpu$ac_delim
11258 build_vendor!$build_vendor$ac_delim
11259 build_os!$build_os$ac_delim
11260 host!$host$ac_delim
11261 host_cpu!$host_cpu$ac_delim
11262 host_vendor!$host_vendor$ac_delim
11263 host_os!$host_os$ac_delim
11264 target!$target$ac_delim
11265 target_cpu!$target_cpu$ac_delim
11266 target_vendor!$target_vendor$ac_delim
11267 target_os!$target_os$ac_delim
11268 SHLICC2!$SHLICC2$ac_delim
11269 CC!$CC$ac_delim
11270 CFLAGS!$CFLAGS$ac_delim
11271 LDFLAGS!$LDFLAGS$ac_delim
11272 CPPFLAGS!$CPPFLAGS$ac_delim
11273 ac_ct_CC!$ac_ct_CC$ac_delim
11274 EXEEXT!$EXEEXT$ac_delim
11275 OBJEXT!$OBJEXT$ac_delim
11276 CPP!$CPP$ac_delim
11277 GREP!$GREP$ac_delim
11278 EGREP!$EGREP$ac_delim
11279 LIBOBJS!$LIBOBJS$ac_delim
11280 HAVE_LINUX_TPACKET_AUXDATA!$HAVE_LINUX_TPACKET_AUXDATA$ac_delim
11281 V_LEX!$V_LEX$ac_delim
11282 V_YACC!$V_YACC$ac_delim
11283 RANLIB!$RANLIB$ac_delim
11284 V_CCOPT!$V_CCOPT$ac_delim
11285 V_DEFS!$V_DEFS$ac_delim
11286 V_FINDALLDEVS!$V_FINDALLDEVS$ac_delim
11287 V_INCLS!$V_INCLS$ac_delim
11288 V_PCAP!$V_PCAP$ac_delim
11289 V_SHLIB_CMD!$V_SHLIB_CMD$ac_delim
11290 V_SHLIB_OPT!$V_SHLIB_OPT$ac_delim
11291 V_SONAME_OPT!$V_SONAME_OPT$ac_delim
11292 V_RPATH_OPT!$V_RPATH_OPT$ac_delim
11293 ADDLOBJS!$ADDLOBJS$ac_delim
11294 ADDLARCHIVEOBJS!$ADDLARCHIVEOBJS$ac_delim
11295 SSRC!$SSRC$ac_delim
11296 DYEXT!$DYEXT$ac_delim
11297 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
11298 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
11299 PCAP_SUPPORT_USB!$PCAP_SUPPORT_USB$ac_delim
11300 USB_SRC!$USB_SRC$ac_delim
11301 PCAP_SUPPORT_BT!$PCAP_SUPPORT_BT$ac_delim
11302 BT_SRC!$BT_SRC$ac_delim
11303 PCAP_SUPPORT_CAN!$PCAP_SUPPORT_CAN$ac_delim
11304 CAN_SRC!$CAN_SRC$ac_delim
11305 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11306 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11307 INSTALL_DATA!$INSTALL_DATA$ac_delim
11308 LTLIBOBJS!$LTLIBOBJS$ac_delim
11309 _ACEOF
11310
11311 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
11312 break
11313 elif $ac_last_try; then
11314 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11316 { (exit 1); exit 1; }; }
11317 else
11318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11319 fi
11320 done
11321
11322 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11323 if test -n "$ac_eof"; then
11324 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11325 ac_eof=`expr $ac_eof + 1`
11326 fi
11327
11328 cat >>$CONFIG_STATUS <<_ACEOF
11329 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11331 _ACEOF
11332 sed '
11333 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11334 s/^/s,@/; s/!/@,|#_!!_#|/
11335 :n
11336 t n
11337 s/'"$ac_delim"'$/,g/; t
11338 s/$/\\/; p
11339 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11340 ' >>$CONFIG_STATUS <conf$$subs.sed
11341 rm -f conf$$subs.sed
11342 cat >>$CONFIG_STATUS <<_ACEOF
11343 :end
11344 s/|#_!!_#|//g
11345 CEOF$ac_eof
11346 _ACEOF
11347
11348
11349 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11350 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11351 # trailing colons and then remove the whole line if VPATH becomes empty
11352 # (actually we leave an empty line to preserve line numbers).
11353 if test "x$srcdir" = x.; then
11354 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11355 s/:*\$(srcdir):*/:/
11356 s/:*\${srcdir}:*/:/
11357 s/:*@srcdir@:*/:/
11358 s/^\([^=]*=[ ]*\):*/\1/
11359 s/:*$//
11360 s/^[^=]*=[ ]*$//
11361 }'
11362 fi
11363
11364 cat >>$CONFIG_STATUS <<\_ACEOF
11365 fi # test -n "$CONFIG_FILES"
11366
11367
11368 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11369 do
11370 case $ac_tag in
11371 :[FHLC]) ac_mode=$ac_tag; continue;;
11372 esac
11373 case $ac_mode$ac_tag in
11374 :[FHL]*:*);;
11375 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11376 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11377 { (exit 1); exit 1; }; };;
11378 :[FH]-) ac_tag=-:-;;
11379 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11380 esac
11381 ac_save_IFS=$IFS
11382 IFS=:
11383 set x $ac_tag
11384 IFS=$ac_save_IFS
11385 shift
11386 ac_file=$1
11387 shift
11388
11389 case $ac_mode in
11390 :L) ac_source=$1;;
11391 :[FH])
11392 ac_file_inputs=
11393 for ac_f
11394 do
11395 case $ac_f in
11396 -) ac_f="$tmp/stdin";;
11397 *) # Look for the file first in the build tree, then in the source tree
11398 # (if the path is not absolute). The absolute path cannot be DOS-style,
11399 # because $ac_f cannot contain `:'.
11400 test -f "$ac_f" ||
11401 case $ac_f in
11402 [\\/$]*) false;;
11403 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11404 esac ||
11405 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11406 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11407 { (exit 1); exit 1; }; };;
11408 esac
11409 ac_file_inputs="$ac_file_inputs $ac_f"
11410 done
11411
11412 # Let's still pretend it is `configure' which instantiates (i.e., don't
11413 # use $as_me), people would be surprised to read:
11414 # /* config.h. Generated by config.status. */
11415 configure_input="Generated from "`IFS=:
11416 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11417 if test x"$ac_file" != x-; then
11418 configure_input="$ac_file. $configure_input"
11419 { echo "$as_me:$LINENO: creating $ac_file" >&5
11420 echo "$as_me: creating $ac_file" >&6;}
11421 fi
11422
11423 case $ac_tag in
11424 *:-:* | *:-) cat >"$tmp/stdin";;
11425 esac
11426 ;;
11427 esac
11428
11429 ac_dir=`$as_dirname -- "$ac_file" ||
11430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431 X"$ac_file" : 'X\(//\)[^/]' \| \
11432 X"$ac_file" : 'X\(//\)$' \| \
11433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11434 echo X"$ac_file" |
11435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11436 s//\1/
11437 q
11438 }
11439 /^X\(\/\/\)[^/].*/{
11440 s//\1/
11441 q
11442 }
11443 /^X\(\/\/\)$/{
11444 s//\1/
11445 q
11446 }
11447 /^X\(\/\).*/{
11448 s//\1/
11449 q
11450 }
11451 s/.*/./; q'`
11452 { as_dir="$ac_dir"
11453 case $as_dir in #(
11454 -*) as_dir=./$as_dir;;
11455 esac
11456 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11457 as_dirs=
11458 while :; do
11459 case $as_dir in #(
11460 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11461 *) as_qdir=$as_dir;;
11462 esac
11463 as_dirs="'$as_qdir' $as_dirs"
11464 as_dir=`$as_dirname -- "$as_dir" ||
11465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11466 X"$as_dir" : 'X\(//\)[^/]' \| \
11467 X"$as_dir" : 'X\(//\)$' \| \
11468 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11469 echo X"$as_dir" |
11470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11471 s//\1/
11472 q
11473 }
11474 /^X\(\/\/\)[^/].*/{
11475 s//\1/
11476 q
11477 }
11478 /^X\(\/\/\)$/{
11479 s//\1/
11480 q
11481 }
11482 /^X\(\/\).*/{
11483 s//\1/
11484 q
11485 }
11486 s/.*/./; q'`
11487 test -d "$as_dir" && break
11488 done
11489 test -z "$as_dirs" || eval "mkdir $as_dirs"
11490 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11491 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11492 { (exit 1); exit 1; }; }; }
11493 ac_builddir=.
11494
11495 case "$ac_dir" in
11496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11497 *)
11498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11499 # A ".." for each directory in $ac_dir_suffix.
11500 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11501 case $ac_top_builddir_sub in
11502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11504 esac ;;
11505 esac
11506 ac_abs_top_builddir=$ac_pwd
11507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11508 # for backward compatibility:
11509 ac_top_builddir=$ac_top_build_prefix
11510
11511 case $srcdir in
11512 .) # We are building in place.
11513 ac_srcdir=.
11514 ac_top_srcdir=$ac_top_builddir_sub
11515 ac_abs_top_srcdir=$ac_pwd ;;
11516 [\\/]* | ?:[\\/]* ) # Absolute name.
11517 ac_srcdir=$srcdir$ac_dir_suffix;
11518 ac_top_srcdir=$srcdir
11519 ac_abs_top_srcdir=$srcdir ;;
11520 *) # Relative name.
11521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11522 ac_top_srcdir=$ac_top_build_prefix$srcdir
11523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11524 esac
11525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11526
11527
11528 case $ac_mode in
11529 :F)
11530 #
11531 # CONFIG_FILE
11532 #
11533
11534 case $INSTALL in
11535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11536 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11537 esac
11538 _ACEOF
11539
11540 cat >>$CONFIG_STATUS <<\_ACEOF
11541 # If the template does not know about datarootdir, expand it.
11542 # FIXME: This hack should be removed a few years after 2.60.
11543 ac_datarootdir_hack=; ac_datarootdir_seen=
11544
11545 case `sed -n '/datarootdir/ {
11546 p
11547 q
11548 }
11549 /@datadir@/p
11550 /@docdir@/p
11551 /@infodir@/p
11552 /@localedir@/p
11553 /@mandir@/p
11554 ' $ac_file_inputs` in
11555 *datarootdir*) ac_datarootdir_seen=yes;;
11556 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11557 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11558 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11559 _ACEOF
11560 cat >>$CONFIG_STATUS <<_ACEOF
11561 ac_datarootdir_hack='
11562 s&@datadir@&$datadir&g
11563 s&@docdir@&$docdir&g
11564 s&@infodir@&$infodir&g
11565 s&@localedir@&$localedir&g
11566 s&@mandir@&$mandir&g
11567 s&\\\${datarootdir}&$datarootdir&g' ;;
11568 esac
11569 _ACEOF
11570
11571 # Neutralize VPATH when `$srcdir' = `.'.
11572 # Shell code in configure.ac might set extrasub.
11573 # FIXME: do we really want to maintain this feature?
11574 cat >>$CONFIG_STATUS <<_ACEOF
11575 sed "$ac_vpsub
11576 $extrasub
11577 _ACEOF
11578 cat >>$CONFIG_STATUS <<\_ACEOF
11579 :t
11580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11581 s&@configure_input@&$configure_input&;t t
11582 s&@top_builddir@&$ac_top_builddir_sub&;t t
11583 s&@srcdir@&$ac_srcdir&;t t
11584 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11585 s&@top_srcdir@&$ac_top_srcdir&;t t
11586 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11587 s&@builddir@&$ac_builddir&;t t
11588 s&@abs_builddir@&$ac_abs_builddir&;t t
11589 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11590 s&@INSTALL@&$ac_INSTALL&;t t
11591 $ac_datarootdir_hack
11592 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11593
11594 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11595 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11597 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11598 which seems to be undefined. Please make sure it is defined." >&5
11599 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11600 which seems to be undefined. Please make sure it is defined." >&2;}
11601
11602 rm -f "$tmp/stdin"
11603 case $ac_file in
11604 -) cat "$tmp/out"; rm -f "$tmp/out";;
11605 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11606 esac
11607 ;;
11608 :H)
11609 #
11610 # CONFIG_HEADER
11611 #
11612 _ACEOF
11613
11614 # Transform confdefs.h into a sed script `conftest.defines', that
11615 # substitutes the proper values into config.h.in to produce config.h.
11616 rm -f conftest.defines conftest.tail
11617 # First, append a space to every undef/define line, to ease matching.
11618 echo 's/$/ /' >conftest.defines
11619 # Then, protect against being on the right side of a sed subst, or in
11620 # an unquoted here document, in config.status. If some macros were
11621 # called several times there might be several #defines for the same
11622 # symbol, which is useless. But do not sort them, since the last
11623 # AC_DEFINE must be honored.
11624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11625 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11626 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11627 # PARAMS is the parameter list in the macro definition--in most cases, it's
11628 # just an empty string.
11629 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11630 ac_dB='\\)[ (].*,\\1define\\2'
11631 ac_dC=' '
11632 ac_dD=' ,'
11633
11634 uniq confdefs.h |
11635 sed -n '
11636 t rset
11637 :rset
11638 s/^[ ]*#[ ]*define[ ][ ]*//
11639 t ok
11640 d
11641 :ok
11642 s/[\\&,]/\\&/g
11643 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11644 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11645 ' >>conftest.defines
11646
11647 # Remove the space that was appended to ease matching.
11648 # Then replace #undef with comments. This is necessary, for
11649 # example, in the case of _POSIX_SOURCE, which is predefined and required
11650 # on some systems where configure will not decide to define it.
11651 # (The regexp can be short, since the line contains either #define or #undef.)
11652 echo 's/ $//
11653 s,^[ #]*u.*,/* & */,' >>conftest.defines
11654
11655 # Break up conftest.defines:
11656 ac_max_sed_lines=50
11657
11658 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11659 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11660 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11661 # et cetera.
11662 ac_in='$ac_file_inputs'
11663 ac_out='"$tmp/out1"'
11664 ac_nxt='"$tmp/out2"'
11665
11666 while :
11667 do
11668 # Write a here document:
11669 cat >>$CONFIG_STATUS <<_ACEOF
11670 # First, check the format of the line:
11671 cat >"\$tmp/defines.sed" <<\\CEOF
11672 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11673 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11674 b
11675 :def
11676 _ACEOF
11677 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11678 echo 'CEOF
11679 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11680 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11681 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11682 grep . conftest.tail >/dev/null || break
11683 rm -f conftest.defines
11684 mv conftest.tail conftest.defines
11685 done
11686 rm -f conftest.defines conftest.tail
11687
11688 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11689 cat >>$CONFIG_STATUS <<\_ACEOF
11690 if test x"$ac_file" != x-; then
11691 echo "/* $configure_input */" >"$tmp/config.h"
11692 cat "$ac_result" >>"$tmp/config.h"
11693 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11694 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11695 echo "$as_me: $ac_file is unchanged" >&6;}
11696 else
11697 rm -f $ac_file
11698 mv "$tmp/config.h" $ac_file
11699 fi
11700 else
11701 echo "/* $configure_input */"
11702 cat "$ac_result"
11703 fi
11704 rm -f "$tmp/out12"
11705 ;;
11706
11707
11708 esac
11709
11710 done # for ac_tag
11711
11712
11713 { (exit 0); exit 0; }
11714 _ACEOF
11715 chmod +x $CONFIG_STATUS
11716 ac_clean_files=$ac_clean_files_save
11717
11718
11719 # configure is writing to config.log, and then calls config.status.
11720 # config.status does its own redirection, appending to config.log.
11721 # Unfortunately, on DOS this fails, as config.log is still kept open
11722 # by configure, so config.status won't be able to write to it; its
11723 # output is simply discarded. So we exec the FD to /dev/null,
11724 # effectively closing config.log, so it can be properly (re)opened and
11725 # appended to by config.status. When coming back to configure, we
11726 # need to make the FD available again.
11727 if test "$no_create" != yes; then
11728 ac_cs_success=:
11729 ac_config_status_args=
11730 test "$silent" = yes &&
11731 ac_config_status_args="$ac_config_status_args --quiet"
11732 exec 5>/dev/null
11733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11734 exec 5>>config.log
11735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11736 # would make configure fail if this is the last instruction.
11737 $ac_cs_success || { (exit 1); exit 1; }
11738 fi
11739
11740
11741 if test -f .devel ; then
11742 make depend
11743 fi
11744 exit 0