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