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