]> The Tcpdump Group git mirrors - tcpdump/blob - configure
OpenFlow 1.0: fix OFPST_QUEUE decoding bug
[tcpdump] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="tcpdump.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHLICC2
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CPP
670 GREP
671 EGREP
672 LIBOBJS
673 PCAP_CONFIG
674 RANLIB
675 DEPENDENCY_CFLAG
676 MKDEP
677 V_CCOPT
678 V_DEFS
679 V_GROUP
680 V_INCLS
681 V_PCAPDEP
682 LOCALSRC
683 MAN_FILE_FORMATS
684 MAN_MISC_INFO
685 INSTALL_PROGRAM
686 INSTALL_SCRIPT
687 INSTALL_DATA
688 LTLIBOBJS'
689 ac_subst_files=''
690 ac_precious_vars='build_alias
691 host_alias
692 target_alias
693 CC
694 CFLAGS
695 LDFLAGS
696 LIBS
697 CPPFLAGS
698 CPP'
699
700
701 # Initialize some variables set by options.
702 ac_init_help=
703 ac_init_version=false
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
706 cache_file=/dev/null
707 exec_prefix=NONE
708 no_create=
709 no_recursion=
710 prefix=NONE
711 program_prefix=NONE
712 program_suffix=NONE
713 program_transform_name=s,x,x,
714 silent=
715 site=
716 srcdir=
717 verbose=
718 x_includes=NONE
719 x_libraries=NONE
720
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir='${exec_prefix}/bin'
728 sbindir='${exec_prefix}/sbin'
729 libexecdir='${exec_prefix}/libexec'
730 datarootdir='${prefix}/share'
731 datadir='${datarootdir}'
732 sysconfdir='${prefix}/etc'
733 sharedstatedir='${prefix}/com'
734 localstatedir='${prefix}/var'
735 includedir='${prefix}/include'
736 oldincludedir='/usr/include'
737 docdir='${datarootdir}/doc/${PACKAGE}'
738 infodir='${datarootdir}/info'
739 htmldir='${docdir}'
740 dvidir='${docdir}'
741 pdfdir='${docdir}'
742 psdir='${docdir}'
743 libdir='${exec_prefix}/lib'
744 localedir='${datarootdir}/locale'
745 mandir='${datarootdir}/man'
746
747 ac_prev=
748 ac_dashdash=
749 for ac_option
750 do
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\$ac_option
754 ac_prev=
755 continue
756 fi
757
758 case $ac_option in
759 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 *) ac_optarg=yes ;;
761 esac
762
763 # Accept the important Cygnus configure options, so we can diagnose typos.
764
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
773
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
788
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
793
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
801 -disable-* | --disable-*)
802 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_$ac_feature=no ;;
809
810 -docdir | --docdir | --docdi | --doc | --do)
811 ac_prev=docdir ;;
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
813 docdir=$ac_optarg ;;
814
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
816 ac_prev=dvidir ;;
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
818 dvidir=$ac_optarg ;;
819
820 -enable-* | --enable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=\$ac_optarg ;;
828
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
837
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
840 with_gas=yes ;;
841
842 -help | --help | --hel | --he | -h)
843 ac_init_help=long ;;
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
848
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
853
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855 ac_prev=htmldir ;;
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857 | --ht=*)
858 htmldir=$ac_optarg ;;
859
860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
866
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
868 ac_prev=infodir ;;
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
871
872 -libdir | --libdir | --libdi | --libd)
873 ac_prev=libdir ;;
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
875 libdir=$ac_optarg ;;
876
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
883
884 -localedir | --localedir | --localedi | --localed | --locale)
885 ac_prev=localedir ;;
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
888
889 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;;
895
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897 ac_prev=mandir ;;
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 mandir=$ac_optarg ;;
900
901 -nfp | --nfp | --nf)
902 # Obsolete; use --without-fp.
903 with_fp=no ;;
904
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
907 no_create=yes ;;
908
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911 no_recursion=yes ;;
912
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
921
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923 ac_prev=prefix ;;
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925 prefix=$ac_optarg ;;
926
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
933
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
940
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
957
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959 ac_prev=pdfdir ;;
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961 pdfdir=$ac_optarg ;;
962
963 -psdir | --psdir | --psdi | --psd | --ps)
964 ac_prev=psdir ;;
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966 psdir=$ac_optarg ;;
967
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
970 silent=yes ;;
971
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973 ac_prev=sbindir ;;
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975 | --sbi=* | --sb=*)
976 sbindir=$ac_optarg ;;
977
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
981 | --sha | --sh)
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986 | --sha=* | --sh=*)
987 sharedstatedir=$ac_optarg ;;
988
989 -site | --site | --sit)
990 ac_prev=site ;;
991 -site=* | --site=* | --sit=*)
992 site=$ac_optarg ;;
993
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995 ac_prev=srcdir ;;
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997 srcdir=$ac_optarg ;;
998
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1005
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1010
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012 verbose=yes ;;
1013
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1016
1017 -with-* | --with-*)
1018 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_$ac_package=\$ac_optarg ;;
1025
1026 -without-* | --without-*)
1027 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_$ac_package=no ;;
1034
1035 --x)
1036 # Obsolete; use --with-x.
1037 with_x=yes ;;
1038
1039 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1040 | --x-incl | --x-inc | --x-in | --x-i)
1041 ac_prev=x_includes ;;
1042 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1043 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1044 x_includes=$ac_optarg ;;
1045
1046 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1047 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1048 ac_prev=x_libraries ;;
1049 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1050 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1051 x_libraries=$ac_optarg ;;
1052
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054 Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1056 ;;
1057
1058 *=*)
1059 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\$ac_optarg
1065 export $ac_envvar ;;
1066
1067 *)
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 ;;
1074
1075 esac
1076 done
1077
1078 if test -n "$ac_prev"; then
1079 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1082 fi
1083
1084 # Be sure to have absolute directory names.
1085 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1089 do
1090 eval ac_val=\$$ac_var
1091 case $ac_val in
1092 [\\/$]* | ?:[\\/]* ) continue;;
1093 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1094 esac
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1097 done
1098
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1102 build=$build_alias
1103 host=$host_alias
1104 target=$target_alias
1105
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x; then
1108 if test "x$build_alias" = x; then
1109 cross_compiling=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1113 cross_compiling=yes
1114 fi
1115 fi
1116
1117 ac_tool_prefix=
1118 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1119
1120 test "$silent" = yes && exec 6>/dev/null
1121
1122
1123 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di=`ls -di .` &&
1125 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1131
1132
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir=`$as_dirname -- "$0" ||
1138 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1142 echo X"$0" |
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)[^/].*/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\/\)$/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\).*/{
1156 s//\1/
1157 q
1158 }
1159 s/.*/./; q'`
1160 srcdir=$ac_confdir
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1162 srcdir=..
1163 fi
1164 else
1165 ac_srcdir_defaulted=no
1166 fi
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1171 fi
1172 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1173 ac_abs_confdir=`(
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1176 pwd)`
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1179 srcdir=.
1180 fi
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1184 case $srcdir in
1185 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186 esac
1187 for ac_var in $ac_precious_vars; do
1188 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_${ac_var}_value=\$${ac_var}
1190 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1192 done
1193
1194 #
1195 # Report the --help message.
1196 #
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1200 cat <<_ACEOF
1201 \`configure' configures this package to adapt to many kinds of systems.
1202
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1204
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1207
1208 Defaults for the options are specified in brackets.
1209
1210 Configuration:
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1225 [PREFIX]
1226
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1231
1232 For better control, use the options below.
1233
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1254 _ACEOF
1255
1256 cat <<\_ACEOF
1257
1258 System types:
1259 --build=BUILD configure for building on BUILD [guessed]
1260 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1261 _ACEOF
1262 fi
1263
1264 if test -n "$ac_init_help"; then
1265
1266 cat <<\_ACEOF
1267
1268 Optional Features:
1269 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1270 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1271 --disable-universal don't build universal on OS X
1272 --enable-smb enable possibly-buggy SMB printer default=yes
1273 --disable-smb disable possibly-buggy SMB printer
1274 --enable-ipv6 enable ipv6 (with ipv4) support
1275 --disable-ipv6 disable ipv6 support
1276
1277 Optional Packages:
1278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1280 --without-gcc don't use gcc
1281 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1282 --without-smi don't link with libsmi
1283 --with-user=USERNAME drop privileges by default to USERNAME
1284 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1285 --with-crypto use OpenSSL libcrypto [default=yes, if available]
1286
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1295 CPP C preprocessor
1296
1297 Use these variables to override the choices made by `configure' or to help
1298 it to find libraries and programs with nonstandard names/locations.
1299
1300 _ACEOF
1301 ac_status=$?
1302 fi
1303
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" || continue
1308 ac_builddir=.
1309
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *)
1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1325
1326 case $srcdir in
1327 .) # We are building in place.
1328 ac_srcdir=.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1335 *) # Relative name.
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1348 echo &&
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1350 else
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 fi || ac_status=$?
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1354 done
1355 fi
1356
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359 cat <<\_ACEOF
1360 configure
1361 generated by GNU Autoconf 2.61
1362
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368 exit
1369 fi
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1373
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1376
1377 $ $0 $@
1378
1379 _ACEOF
1380 exec 5>>config.log
1381 {
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1386
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1395
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1403
1404 _ASUNAME
1405
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409 IFS=$as_save_IFS
1410 test -z "$as_dir" && as_dir=.
1411 echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1414
1415 } >&5
1416
1417 cat >&5 <<_ACEOF
1418
1419
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1423
1424 _ACEOF
1425
1426
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1437 do
1438 for ac_arg
1439 do
1440 case $ac_arg in
1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443 | -silent | --silent | --silen | --sile | --sil)
1444 continue ;;
1445 *\'*)
1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 esac
1448 case $ac_pass in
1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450 2)
1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true; then
1453 ac_must_keep_next=false # Got value, back to normal.
1454 else
1455 case $ac_arg in
1456 *=* | --config-cache | -C | -disable-* | --disable-* \
1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459 | -with-* | --with-* | -without-* | --without-* | --x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462 esac
1463 ;;
1464 -* ) ac_must_keep_next=true ;;
1465 esac
1466 fi
1467 ac_configure_args="$ac_configure_args '$ac_arg'"
1468 ;;
1469 esac
1470 done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1482 {
1483 echo
1484
1485 cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490 echo
1491 # The following way of writing the cache mishandles newlines in values,
1492 (
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1495 case $ac_val in #(
1496 *${as_nl}*)
1497 case $ac_var in #(
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500 esac
1501 case $ac_var in #(
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1504 esac ;;
1505 esac
1506 done
1507 (set) 2>&1 |
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1510 sed -n \
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513 ;; #(
1514 *)
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516 ;;
1517 esac |
1518 sort
1519 )
1520 echo
1521
1522 cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527 echo
1528 for ac_var in $ac_subst_vars
1529 do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in
1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 esac
1534 echo "$ac_var='\''$ac_val'\''"
1535 done | sort
1536 echo
1537
1538 if test -n "$ac_subst_files"; then
1539 cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544 echo
1545 for ac_var in $ac_subst_files
1546 do
1547 eval ac_val=\$$ac_var
1548 case $ac_val in
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 esac
1551 echo "$ac_var='\''$ac_val'\''"
1552 done | sort
1553 echo
1554 fi
1555
1556 if test -s confdefs.h; then
1557 cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562 echo
1563 cat confdefs.h
1564 echo
1565 fi
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1569 } >&5
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572 exit $exit_status
1573 ' 0
1574 for ac_signal in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1578
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1581
1582 # Predefined preprocessor variables.
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1597
1598
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1602
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1607
1608
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616 set x "$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1618 fi
1619 shift
1620 for ac_site_file
1621 do
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1626 . "$ac_site_file"
1627 fi
1628 done
1629
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636 case $cache_file in
1637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638 *) . "./$cache_file";;
1639 esac
1640 fi
1641 else
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644 >$cache_file
1645 fi
1646
1647 # Check that the precious variables saved in the cache have kept the same
1648 # value.
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652 eval ac_new_set=\$ac_env_${ac_var}_set
1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654 eval ac_new_val=\$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1656 set,)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,set)
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted=: ;;
1664 ,);;
1665 *)
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted=:
1674 fi;;
1675 esac
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1678 case $ac_new_val in
1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg=$ac_var=$ac_new_val ;;
1681 esac
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685 esac
1686 fi
1687 done
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712 ac_ext=c
1713 ac_cpp='$CPP $CPPFLAGS'
1714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719
1720 ac_aux_dir=
1721 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722 if test -f "$ac_dir/install-sh"; then
1723 ac_aux_dir=$ac_dir
1724 ac_install_sh="$ac_aux_dir/install-sh -c"
1725 break
1726 elif test -f "$ac_dir/install.sh"; then
1727 ac_aux_dir=$ac_dir
1728 ac_install_sh="$ac_aux_dir/install.sh -c"
1729 break
1730 elif test -f "$ac_dir/shtool"; then
1731 ac_aux_dir=$ac_dir
1732 ac_install_sh="$ac_aux_dir/shtool install -c"
1733 break
1734 fi
1735 done
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1741
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1747 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1748 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1749
1750
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755 { (exit 1); exit 1; }; }
1756
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762 ac_build_alias=$build_alias
1763 test "x$ac_build_alias" = x &&
1764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x &&
1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768 { (exit 1); exit 1; }; }
1769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772 { (exit 1); exit 1; }; }
1773
1774 fi
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1778 *-*-*) ;;
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781 { (exit 1); exit 1; }; };;
1782 esac
1783 build=$ac_cv_build
1784 ac_save_IFS=$IFS; IFS='-'
1785 set x $ac_cv_build
1786 shift
1787 build_cpu=$1
1788 build_vendor=$2
1789 shift; shift
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1792 build_os=$*
1793 IFS=$ac_save_IFS
1794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1795
1796
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test "x$host_alias" = x; then
1803 ac_cv_host=$ac_cv_build
1804 else
1805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1810
1811 fi
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1814 case $ac_cv_host in
1815 *-*-*) ;;
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818 { (exit 1); exit 1; }; };;
1819 esac
1820 host=$ac_cv_host
1821 ac_save_IFS=$IFS; IFS='-'
1822 set x $ac_cv_host
1823 shift
1824 host_cpu=$1
1825 host_vendor=$2
1826 shift; shift
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1829 host_os=$*
1830 IFS=$ac_save_IFS
1831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1843 withval=$with_gcc;
1844 fi
1845
1846 V_CCOPT="-O"
1847 V_INCLS=""
1848 if test "${srcdir}" != "." ; then
1849 V_INCLS="-I$srcdir"
1850 fi
1851 if test "${CFLAGS+set}" = set; then
1852 LBL_CFLAGS="$CFLAGS"
1853 fi
1854 if test -z "$CC" ; then
1855 case "$host_os" in
1856
1857 bsdi*)
1858 # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2; ac_word=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$SHLICC2"; then
1866 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_SHLICC2="yes"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879 done
1880 done
1881 IFS=$as_save_IFS
1882
1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1884 fi
1885 fi
1886 SHLICC2=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1890 else
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1893 fi
1894
1895
1896 if test $SHLICC2 = yes ; then
1897 CC=shlicc2
1898 export CC
1899 fi
1900 ;;
1901 esac
1902 fi
1903 if test -z "$CC" -a "$with_gcc" = no ; then
1904 CC=cc
1905 export CC
1906 fi
1907
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 CC=$ac_cv_prog_CC
1942 if test -n "$CC"; then
1943 { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1945 else
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1948 fi
1949
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953 ac_ct_CC=$CC
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_ac_ct_CC="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 else
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990 if test "x$ac_ct_CC" = x; then
1991 CC=""
1992 else
1993 case $cross_compiling:$ac_tool_warned in
1994 yes:)
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned=yes ;;
2002 esac
2003 CC=$ac_ct_CC
2004 fi
2005 else
2006 CC="$ac_cv_prog_CC"
2007 fi
2008
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}cc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="${ac_tool_prefix}cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048 fi
2049 fi
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected=yes
2071 continue
2072 fi
2073 ac_cv_prog_CC="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077 done
2078 done
2079 IFS=$as_save_IFS
2080
2081 if test $ac_prog_rejected = yes; then
2082 # We found a bogon in the path, so make sure we never use it.
2083 set dummy $ac_cv_prog_CC
2084 shift
2085 if test $# != 0; then
2086 # We chose a different compiler from the bogus one.
2087 # However, it has the same basename, so the bogon will be chosen
2088 # first if we set CC to just the basename; use the full file name.
2089 shift
2090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2091 fi
2092 fi
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105 fi
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog in cl.exe
2109 do
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147 test -n "$CC" && break
2148 done
2149 fi
2150 if test -z "$CC"; then
2151 ac_ct_CC=$CC
2152 for ac_prog in cl.exe
2153 do
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 else
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190
2191 test -n "$ac_ct_CC" && break
2192 done
2193
2194 if test "x$ac_ct_CC" = x; then
2195 CC=""
2196 else
2197 case $cross_compiling:$ac_tool_warned in
2198 yes:)
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet. If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned=yes ;;
2206 esac
2207 CC=$ac_ct_CC
2208 fi
2209 fi
2210
2211 fi
2212
2213
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2219
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler=`set X $ac_compile; echo $2`
2223 { (ac_try="$ac_compiler --version >&5"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler --version >&5") 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2234 case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237 esac
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -v >&5") 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 { (ac_try="$ac_compiler -V >&5"
2244 case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247 esac
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler -V >&5") 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2253
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2260
2261 int
2262 main ()
2263 {
2264
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2273 # of exeext.
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 #
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2280 # only as a last resort. b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 #
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions. Remove them first so a
2285 # subsequent execution test works.
2286 ac_rmfiles=
2287 for ac_file in $ac_files
2288 do
2289 case $ac_file in
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292 esac
2293 done
2294 rm -f $ac_rmfiles
2295
2296 if { (ac_try="$ac_link_default"
2297 case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300 esac
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_link_default") 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2310 # Autoconf.
2311 for ac_file in $ac_files ''
2312 do
2313 test -f "$ac_file" || continue
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2316 ;;
2317 [ab].out )
2318 # We found the default executable, but exeext='' is most
2319 # certainly right.
2320 break;;
2321 *.* )
2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323 then :; else
2324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 fi
2326 # We set ac_cv_exeext here because the later test for it is not
2327 # safe: cross compilers may not add the suffix if given an `-o'
2328 # argument, so we may need to know it at that point already.
2329 # Even if this section looks crufty: it has the advantage of
2330 # actually working.
2331 break;;
2332 * )
2333 break;;
2334 esac
2335 done
2336 test "$ac_cv_exeext" = no && ac_cv_exeext=
2337
2338 else
2339 ac_file=''
2340 fi
2341
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352 { (exit 77); exit 77; }; }
2353 fi
2354
2355 ac_exeext=$ac_cv_exeext
2356
2357 # Check that the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try='./$ac_file'
2365 { (case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_try") 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 cross_compiling=no
2375 else
2376 if test "$cross_compiling" = maybe; then
2377 cross_compiling=yes
2378 else
2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2386 fi
2387 fi
2388 fi
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2391
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2400
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_link") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2414 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 # `rm'.
2417 for ac_file in conftest.exe conftest conftest.*; do
2418 test -f "$ac_file" || continue
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 break;;
2423 * ) break;;
2424 esac
2425 done
2426 else
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433
2434 rm -f conftest$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437
2438 rm -f conftest.$ac_ext
2439 EXEEXT=$ac_cv_exeext
2440 ac_exeext=$EXEEXT
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h. */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452
2453 int
2454 main ()
2455 {
2456
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in conftest.o conftest.obj conftest.*; do
2473 test -f "$ac_file" || continue;
2474 case $ac_file in
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477 break;;
2478 esac
2479 done
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2508
2509 int
2510 main ()
2511 {
2512 #ifndef __GNUC__
2513 choke me
2514 #endif
2515
2516 ;
2517 return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2537 ac_compiler_gnu=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_compiler_gnu=no
2543 fi
2544
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2547
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2561 ac_cv_prog_cc_g=no
2562 CFLAGS="-g"
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573
2574 ;
2575 return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2595 ac_cv_prog_cc_g=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 CFLAGS=""
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607
2608 int
2609 main ()
2610 {
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2633 :
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2639 CFLAGS="-g"
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646
2647 int
2648 main ()
2649 {
2650
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2672 ac_cv_prog_cc_g=yes
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677
2678 fi
2679
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2688 fi
2689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692 CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694 if test "$GCC" = yes; then
2695 CFLAGS="-g -O2"
2696 else
2697 CFLAGS="-g"
2698 fi
2699 else
2700 if test "$GCC" = yes; then
2701 CFLAGS="-O2"
2702 else
2703 CFLAGS=
2704 fi
2705 fi
2706 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2707 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 ac_cv_prog_cc_c89=no
2712 ac_save_CC=$CC
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2719 #include <stdarg.h>
2720 #include <stdio.h>
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2727 char **p;
2728 int i;
2729 {
2730 return p[i];
2731 }
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2733 {
2734 char *s;
2735 va_list v;
2736 va_start (v,p);
2737 s = g (p, va_arg (v,int));
2738 va_end (v);
2739 return s;
2740 }
2741
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2743 function prototypes and stuff, but not '\xHH' hex character constants.
2744 These don't provoke an error unfortunately, instead are silently treated
2745 as 'x'. The following induces an error, until -std is added to get
2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2747 array size at least. It's necessary to write '\x00'==0 to get something
2748 that's true only with -std. */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752 inside strings and character constants. */
2753 #define FOO(x) 'x'
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762 int
2763 main ()
2764 {
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2766 ;
2767 return 0;
2768 }
2769 _ACEOF
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 do
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 ac_cv_prog_cc_c89=$ac_arg
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext
2800 test "x$ac_cv_prog_cc_c89" != "xno" && break
2801 done
2802 rm -f conftest.$ac_ext
2803 CC=$ac_save_CC
2804
2805 fi
2806 # AC_CACHE_VAL
2807 case "x$ac_cv_prog_cc_c89" in
2808 x)
2809 { echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6; } ;;
2811 xno)
2812 { echo "$as_me:$LINENO: result: unsupported" >&5
2813 echo "${ECHO_T}unsupported" >&6; } ;;
2814 *)
2815 CC="$CC $ac_cv_prog_cc_c89"
2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2818 esac
2819
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828
2829
2830
2831 if test "$GCC" = yes ; then
2832 if test "$SHLICC2" = yes ; then
2833 ac_cv_lbl_gcc_vers=2
2834 V_CCOPT="-O2"
2835 else
2836 { echo "$as_me:$LINENO: checking gcc version" >&5
2837 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842 sed -e '/^gcc version /!d' \
2843 -e 's/^gcc version //' \
2844 -e 's/ .*//' -e 's/^[^0-9]*//' \
2845 -e 's/\..*//'`
2846 fi
2847
2848 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2851 V_CCOPT="-O2"
2852 fi
2853 fi
2854 else
2855 V_INCLS="$V_INCLS -I/usr/local/include"
2856 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2857
2858 case "$host_os" in
2859
2860 hpux*)
2861 #
2862 # HP C, which is what we presume we're using, doesn't
2863 # exit with a non-zero exit status if we hand it an
2864 # invalid -W flag, can't be forced to do so even with
2865 # +We, and doesn't handle GCC-style -W flags, so we
2866 # don't want to try using GCC-style -W flags.
2867 #
2868 ac_lbl_cc_dont_try_gcc_dashW=yes
2869 ;;
2870
2871 irix*)
2872 #
2873 # MIPS C, which is what we presume we're using, doesn't
2874 # necessarily exit with a non-zero exit status if we
2875 # hand it an invalid -W flag, can't be forced to do
2876 # so, and doesn't handle GCC-style -W flags, so we
2877 # don't want to try using GCC-style -W flags.
2878 #
2879 ac_lbl_cc_dont_try_gcc_dashW=yes
2880 V_CCOPT="$V_CCOPT -xansi -signed -O"
2881 ;;
2882
2883 osf*)
2884 #
2885 # Presumed to be DEC OSF/1, Digital UNIX, or
2886 # Tru64 UNIX.
2887 #
2888 # The DEC C compiler, which is what we presume we're
2889 # using, doesn't exit with a non-zero exit status if we
2890 # hand it an invalid -W flag, can't be forced to do
2891 # so, and doesn't handle GCC-style -W flags, so we
2892 # don't want to try using GCC-style -W flags.
2893 #
2894 ac_lbl_cc_dont_try_gcc_dashW=yes
2895 V_CCOPT="$V_CCOPT -O"
2896 ;;
2897
2898 ultrix*)
2899 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2900 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2901 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 #include <sys/types.h>
2912 int
2913 main ()
2914 {
2915 struct a { int b; };
2916 void c(const struct a *)
2917 ;
2918 return 0;
2919 }
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2938 ac_cv_lbl_cc_const_proto=yes
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 ac_cv_lbl_cc_const_proto=no
2944 fi
2945
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 fi
2948
2949 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2950 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
2951 if test $ac_cv_lbl_cc_const_proto = no ; then
2952
2953 cat >>confdefs.h <<\_ACEOF
2954 #define const
2955 _ACEOF
2956
2957 fi
2958 ;;
2959 esac
2960 fi
2961
2962 { echo "$as_me:$LINENO: checking for inline" >&5
2963 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
2964 save_CFLAGS="$CFLAGS"
2965 CFLAGS="$V_CCOPT"
2966 if test "${ac_cv_lbl_inline+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969
2970 ac_cv_lbl_inline=""
2971 ac_lbl_cc_inline=no
2972 for ac_lbl_inline in inline __inline__ __inline
2973 do
2974 cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h. */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 #define inline $ac_lbl_inline
2981 static inline struct iltest *foo(void);
2982 struct iltest {
2983 int iltest1;
2984 int iltest2;
2985 };
2986
2987 static inline struct iltest *
2988 foo()
2989 {
2990 static struct iltest xxx;
2991
2992 return &xxx;
2993 }
2994 int
2995 main ()
2996 {
2997
2998 ;
2999 return 0;
3000 }
3001 _ACEOF
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3010 ac_status=$?
3011 grep -v '^ *+' conftest.er1 >conftest.err
3012 rm -f conftest.er1
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3019 ac_lbl_cc_inline=yes
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024
3025 fi
3026
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 if test "$ac_lbl_cc_inline" = yes ; then
3029 break;
3030 fi
3031 done
3032 if test "$ac_lbl_cc_inline" = yes ; then
3033 ac_cv_lbl_inline=$ac_lbl_inline
3034 fi
3035 fi
3036
3037 CFLAGS="$save_CFLAGS"
3038 if test ! -z "$ac_cv_lbl_inline" ; then
3039 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3040 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3041 else
3042 { echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6; }
3044 fi
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define inline $ac_cv_lbl_inline
3048 _ACEOF
3049
3050
3051 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3052 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3053 if test "${ac_cv___attribute__+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056
3057 cat >conftest.$ac_ext <<_ACEOF
3058
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3064
3065 #include <stdlib.h>
3066
3067 static void foo(void) __attribute__ ((noreturn));
3068
3069 static void
3070 foo(void)
3071 {
3072 exit(1);
3073 }
3074
3075 int
3076 main(int argc, char **argv)
3077 {
3078 foo();
3079 }
3080
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
3099 ac_cv___attribute__=yes
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104 ac_cv___attribute__=no
3105 fi
3106
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109
3110 if test "$ac_cv___attribute__" = "yes"; then
3111
3112 cat >>confdefs.h <<\_ACEOF
3113 #define HAVE___ATTRIBUTE__ 1
3114 _ACEOF
3115
3116 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3117 else
3118 V_DEFS="$V_DEFS -D_U_=\"\""
3119 fi
3120 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3121 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3122
3123 if test "$ac_cv___attribute__" = "yes"; then
3124
3125 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3126 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3127 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130
3131 cat >conftest.$ac_ext <<_ACEOF
3132
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138
3139 #include <stdlib.h>
3140
3141 extern int (*foo)(const char *fmt, ...)
3142 __attribute__ ((format (printf, 1, 2)));
3143
3144 int
3145 main(int argc, char **argv)
3146 {
3147 (*foo)("%s", "test");
3148 }
3149
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } && {
3165 test -z "$ac_c_werror_flag" ||
3166 test ! -s conftest.err
3167 } && test -s conftest.$ac_objext; then
3168 ac_cv___attribute___format_function_pointer=yes
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 ac_cv___attribute___format_function_pointer=no
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178
3179 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3180
3181 cat >>confdefs.h <<\_ACEOF
3182 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3183 _ACEOF
3184
3185 fi
3186 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3187 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3188
3189 fi
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200 fi
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209 for ac_c_preproc_warn_flag in '' yes
3210 do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223 #ifdef __STDC__
3224 # include <limits.h>
3225 #else
3226 # include <assert.h>
3227 #endif
3228 Syntax error
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } >/dev/null && {
3243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3244 test ! -s conftest.err
3245 }; then
3246 :
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 # Broken: fails on valid input.
3252 continue
3253 fi
3254
3255 rm -f conftest.err conftest.$ac_ext
3256
3257 # OK, works on sane cases. Now check whether nonexistent headers
3258 # can be detected and how.
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 #include <ac_nonexistent.h>
3266 _ACEOF
3267 if { (ac_try="$ac_cpp conftest.$ac_ext"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } >/dev/null && {
3280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 }; then
3283 # Broken: success on invalid input.
3284 continue
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 # Passes both tests.
3290 ac_preproc_ok=:
3291 break
3292 fi
3293
3294 rm -f conftest.err conftest.$ac_ext
3295
3296 done
3297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3298 rm -f conftest.err conftest.$ac_ext
3299 if $ac_preproc_ok; then
3300 break
3301 fi
3302
3303 done
3304 ac_cv_prog_CPP=$CPP
3305
3306 fi
3307 CPP=$ac_cv_prog_CPP
3308 else
3309 ac_cv_prog_CPP=$CPP
3310 fi
3311 { echo "$as_me:$LINENO: result: $CPP" >&5
3312 echo "${ECHO_T}$CPP" >&6; }
3313 ac_preproc_ok=false
3314 for ac_c_preproc_warn_flag in '' yes
3315 do
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
3320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 #ifdef __STDC__
3329 # include <limits.h>
3330 #else
3331 # include <assert.h>
3332 #endif
3333 Syntax error
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null && {
3348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 }; then
3351 :
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 # Broken: fails on valid input.
3357 continue
3358 fi
3359
3360 rm -f conftest.err conftest.$ac_ext
3361
3362 # OK, works on sane cases. Now check whether nonexistent headers
3363 # can be detected and how.
3364 cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h. */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370 #include <ac_nonexistent.h>
3371 _ACEOF
3372 if { (ac_try="$ac_cpp conftest.$ac_ext"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null && {
3385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3386 test ! -s conftest.err
3387 }; then
3388 # Broken: success on invalid input.
3389 continue
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3393
3394 # Passes both tests.
3395 ac_preproc_ok=:
3396 break
3397 fi
3398
3399 rm -f conftest.err conftest.$ac_ext
3400
3401 done
3402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403 rm -f conftest.err conftest.$ac_ext
3404 if $ac_preproc_ok; then
3405 :
3406 else
3407 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3408 See \`config.log' for more details." >&5
3409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3410 See \`config.log' for more details." >&2;}
3411 { (exit 1); exit 1; }; }
3412 fi
3413
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419
3420
3421 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3422 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3423 if test "${ac_cv_path_GREP+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426 # Extract the first word of "grep ggrep" to use in msg output
3427 if test -z "$GREP"; then
3428 set dummy grep ggrep; ac_prog_name=$2
3429 if test "${ac_cv_path_GREP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 ac_path_GREP_found=false
3433 # Loop through the user's path and test for each of PROGNAME-LIST
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3436 do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_prog in grep ggrep; do
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3442 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3443 # Check for GNU ac_path_GREP and select it if it is found.
3444 # Check for GNU $ac_path_GREP
3445 case `"$ac_path_GREP" --version 2>&1` in
3446 *GNU*)
3447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3448 *)
3449 ac_count=0
3450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3451 while :
3452 do
3453 cat "conftest.in" "conftest.in" >"conftest.tmp"
3454 mv "conftest.tmp" "conftest.in"
3455 cp "conftest.in" "conftest.nl"
3456 echo 'GREP' >> "conftest.nl"
3457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3459 ac_count=`expr $ac_count + 1`
3460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3461 # Best one so far, save it but keep looking for a better one
3462 ac_cv_path_GREP="$ac_path_GREP"
3463 ac_path_GREP_max=$ac_count
3464 fi
3465 # 10*(2^10) chars as input seems more than enough
3466 test $ac_count -gt 10 && break
3467 done
3468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3469 esac
3470
3471
3472 $ac_path_GREP_found && break 3
3473 done
3474 done
3475
3476 done
3477 IFS=$as_save_IFS
3478
3479
3480 fi
3481
3482 GREP="$ac_cv_path_GREP"
3483 if test -z "$GREP"; then
3484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3486 { (exit 1); exit 1; }; }
3487 fi
3488
3489 else
3490 ac_cv_path_GREP=$GREP
3491 fi
3492
3493
3494 fi
3495 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3496 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3497 GREP="$ac_cv_path_GREP"
3498
3499
3500 { echo "$as_me:$LINENO: checking for egrep" >&5
3501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3502 if test "${ac_cv_path_EGREP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3506 then ac_cv_path_EGREP="$GREP -E"
3507 else
3508 # Extract the first word of "egrep" to use in msg output
3509 if test -z "$EGREP"; then
3510 set dummy egrep; ac_prog_name=$2
3511 if test "${ac_cv_path_EGREP+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514 ac_path_EGREP_found=false
3515 # Loop through the user's path and test for each of PROGNAME-LIST
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3518 do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_prog in egrep; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3524 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3525 # Check for GNU ac_path_EGREP and select it if it is found.
3526 # Check for GNU $ac_path_EGREP
3527 case `"$ac_path_EGREP" --version 2>&1` in
3528 *GNU*)
3529 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3530 *)
3531 ac_count=0
3532 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3533 while :
3534 do
3535 cat "conftest.in" "conftest.in" >"conftest.tmp"
3536 mv "conftest.tmp" "conftest.in"
3537 cp "conftest.in" "conftest.nl"
3538 echo 'EGREP' >> "conftest.nl"
3539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3541 ac_count=`expr $ac_count + 1`
3542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3543 # Best one so far, save it but keep looking for a better one
3544 ac_cv_path_EGREP="$ac_path_EGREP"
3545 ac_path_EGREP_max=$ac_count
3546 fi
3547 # 10*(2^10) chars as input seems more than enough
3548 test $ac_count -gt 10 && break
3549 done
3550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3551 esac
3552
3553
3554 $ac_path_EGREP_found && break 3
3555 done
3556 done
3557
3558 done
3559 IFS=$as_save_IFS
3560
3561
3562 fi
3563
3564 EGREP="$ac_cv_path_EGREP"
3565 if test -z "$EGREP"; then
3566 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3567 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3568 { (exit 1); exit 1; }; }
3569 fi
3570
3571 else
3572 ac_cv_path_EGREP=$EGREP
3573 fi
3574
3575
3576 fi
3577 fi
3578 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3579 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3580 EGREP="$ac_cv_path_EGREP"
3581
3582
3583 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3584 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3585 if test "${ac_cv_header_stdc+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h. */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include <stdlib.h>
3595 #include <stdarg.h>
3596 #include <string.h>
3597 #include <float.h>
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 ac_cv_header_stdc=yes
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 ac_cv_header_stdc=no
3630 fi
3631
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633
3634 if test $ac_cv_header_stdc = yes; then
3635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h. */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 #include <string.h>
3643
3644 _ACEOF
3645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3646 $EGREP "memchr" >/dev/null 2>&1; then
3647 :
3648 else
3649 ac_cv_header_stdc=no
3650 fi
3651 rm -f conftest*
3652
3653 fi
3654
3655 if test $ac_cv_header_stdc = yes; then
3656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3657 cat >conftest.$ac_ext <<_ACEOF
3658 /* confdefs.h. */
3659 _ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <stdlib.h>
3664
3665 _ACEOF
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667 $EGREP "free" >/dev/null 2>&1; then
3668 :
3669 else
3670 ac_cv_header_stdc=no
3671 fi
3672 rm -f conftest*
3673
3674 fi
3675
3676 if test $ac_cv_header_stdc = yes; then
3677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3678 if test "$cross_compiling" = yes; then
3679 :
3680 else
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 #include <ctype.h>
3688 #include <stdlib.h>
3689 #if ((' ' & 0x0FF) == 0x020)
3690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3692 #else
3693 # define ISLOWER(c) \
3694 (('a' <= (c) && (c) <= 'i') \
3695 || ('j' <= (c) && (c) <= 'r') \
3696 || ('s' <= (c) && (c) <= 'z'))
3697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3698 #endif
3699
3700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3701 int
3702 main ()
3703 {
3704 int i;
3705 for (i = 0; i < 256; i++)
3706 if (XOR (islower (i), ISLOWER (i))
3707 || toupper (i) != TOUPPER (i))
3708 return 2;
3709 return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest$ac_exeext
3713 if { (ac_try="$ac_link"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719 (eval "$ac_link") 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3723 { (case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 :
3733 else
3734 echo "$as_me: program exited with status $ac_status" >&5
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738 ( exit $ac_status )
3739 ac_cv_header_stdc=no
3740 fi
3741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3742 fi
3743
3744
3745 fi
3746 fi
3747 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3748 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3749 if test $ac_cv_header_stdc = yes; then
3750
3751 cat >>confdefs.h <<\_ACEOF
3752 #define STDC_HEADERS 1
3753 _ACEOF
3754
3755 fi
3756
3757 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3768 inttypes.h stdint.h unistd.h
3769 do
3770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 $ac_includes_default
3783
3784 #include <$ac_header>
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.$ac_objext; then
3803 eval "$as_ac_Header=yes"
3804 else
3805 echo "$as_me: failed program was:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3807
3808 eval "$as_ac_Header=no"
3809 fi
3810
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 fi
3813 ac_res=`eval echo '${'$as_ac_Header'}'`
3814 { echo "$as_me:$LINENO: result: $ac_res" >&5
3815 echo "${ECHO_T}$ac_res" >&6; }
3816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817 cat >>confdefs.h <<_ACEOF
3818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819 _ACEOF
3820
3821 fi
3822
3823 done
3824
3825
3826
3827
3828
3829
3830 for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
3831 do
3832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 fi
3839 ac_res=`eval echo '${'$as_ac_Header'}'`
3840 { echo "$as_me:$LINENO: result: $ac_res" >&5
3841 echo "${ECHO_T}$ac_res" >&6; }
3842 else
3843 # Is the header compilable?
3844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 $ac_includes_default
3853 #include <$ac_header>
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3872 ac_header_compiler=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ac_header_compiler=no
3878 fi
3879
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3882 echo "${ECHO_T}$ac_header_compiler" >&6; }
3883
3884 # Is the header present?
3885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <$ac_header>
3894 _ACEOF
3895 if { (ac_try="$ac_cpp conftest.$ac_ext"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } >/dev/null && {
3908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 }; then
3911 ac_header_preproc=yes
3912 else
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916 ac_header_preproc=no
3917 fi
3918
3919 rm -f conftest.err conftest.$ac_ext
3920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3921 echo "${ECHO_T}$ac_header_preproc" >&6; }
3922
3923 # So? What about this header?
3924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3925 yes:no: )
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3930 ac_header_preproc=yes
3931 ;;
3932 no:yes:* )
3933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3945
3946 ;;
3947 esac
3948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 eval "$as_ac_Header=\$ac_header_preproc"
3954 fi
3955 ac_res=`eval echo '${'$as_ac_Header'}'`
3956 { echo "$as_me:$LINENO: result: $ac_res" >&5
3957 echo "${ECHO_T}$ac_res" >&6; }
3958
3959 fi
3960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3961 cat >>confdefs.h <<_ACEOF
3962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3963 _ACEOF
3964
3965 fi
3966
3967 done
3968
3969
3970 for ac_header in net/pfvar.h
3971 do
3972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <sys/types.h>
3985 #include <sys/socket.h>
3986 #include <net/if.h>
3987
3988 #include <$ac_header>
3989 _ACEOF
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest.$ac_objext; then
4007 eval "$as_ac_Header=yes"
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 eval "$as_ac_Header=no"
4013 fi
4014
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017 ac_res=`eval echo '${'$as_ac_Header'}'`
4018 { echo "$as_me:$LINENO: result: $ac_res" >&5
4019 echo "${ECHO_T}$ac_res" >&6; }
4020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4021 cat >>confdefs.h <<_ACEOF
4022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4023 _ACEOF
4024
4025 fi
4026
4027 done
4028
4029 if test "$ac_cv_header_net_pfvar_h" = yes; then
4030 LOCALSRC="print-pflog.c $LOCALSRC"
4031 fi
4032
4033 for ac_header in netinet/if_ether.h
4034 do
4035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <sys/types.h>
4048 #include <sys/socket.h>
4049
4050 #include <$ac_header>
4051 _ACEOF
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 eval "$as_ac_Header=yes"
4070 else
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 eval "$as_ac_Header=no"
4075 fi
4076
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 fi
4079 ac_res=`eval echo '${'$as_ac_Header'}'`
4080 { echo "$as_me:$LINENO: result: $ac_res" >&5
4081 echo "${ECHO_T}$ac_res" >&6; }
4082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083 cat >>confdefs.h <<_ACEOF
4084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 _ACEOF
4086
4087 fi
4088
4089 done
4090
4091 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4092 #
4093 # The simple test didn't work.
4094 # Do we need to include <net/if.h> first?
4095 # Unset ac_cv_header_netinet_if_ether_h so we don't
4096 # treat the previous failure as a cached value and
4097 # suppress the next test.
4098 #
4099 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4100 echo "$as_me: Rechecking with some additional includes" >&6;}
4101 unset ac_cv_header_netinet_if_ether_h
4102
4103 for ac_header in netinet/if_ether.h
4104 do
4105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 #include <sys/socket.h>
4119 #include <netinet/in.h>
4120 struct mbuf;
4121 struct rtentry;
4122 #include <net/if.h>
4123
4124 #include <$ac_header>
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_compile") 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } && {
4140 test -z "$ac_c_werror_flag" ||
4141 test ! -s conftest.err
4142 } && test -s conftest.$ac_objext; then
4143 eval "$as_ac_Header=yes"
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 eval "$as_ac_Header=no"
4149 fi
4150
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 fi
4153 ac_res=`eval echo '${'$as_ac_Header'}'`
4154 { echo "$as_me:$LINENO: result: $ac_res" >&5
4155 echo "${ECHO_T}$ac_res" >&6; }
4156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4157 cat >>confdefs.h <<_ACEOF
4158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4159 _ACEOF
4160
4161 fi
4162
4163 done
4164
4165 fi
4166
4167 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4168 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4169 if test "${ac_cv_header_time+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h. */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <sys/types.h>
4179 #include <sys/time.h>
4180 #include <time.h>
4181
4182 int
4183 main ()
4184 {
4185 if ((struct tm *) 0)
4186 return 0;
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (ac_try="$ac_compile"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_compile") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest.$ac_objext; then
4208 ac_cv_header_time=yes
4209 else
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ac_cv_header_time=no
4214 fi
4215
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 fi
4218 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4219 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4220 if test $ac_cv_header_time = yes; then
4221
4222 cat >>confdefs.h <<\_ACEOF
4223 #define TIME_WITH_SYS_TIME 1
4224 _ACEOF
4225
4226 fi
4227
4228
4229 case "$host_os" in
4230
4231 darwin*)
4232 # Check whether --enable-universal was given.
4233 if test "${enable_universal+set}" = set; then
4234 enableval=$enable_universal;
4235 fi
4236
4237 if test "$enable_universal" != "no"; then
4238 case "$host_os" in
4239
4240 darwin9.*)
4241 #
4242 # Leopard. Build for x86 and 32-bit PowerPC, with
4243 # x86 first. (That's what Apple does.)
4244 #
4245 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4246 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4247 ;;
4248
4249 darwin10.*)
4250 #
4251 # Snow Leopard. Build for x86-64 and x86, with
4252 # x86-64 first. (That's what Apple does.)
4253 #
4254 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4255 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4256 ;;
4257 esac
4258 fi
4259 ;;
4260
4261 linux*)
4262 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4263 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4264 if test "$cross_compiling" = yes; then
4265 if test "${ac_cv_linux_vers+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 ac_cv_linux_vers=unknown
4269 fi
4270
4271 else
4272 if test "${ac_cv_linux_vers+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 ac_cv_linux_vers=`uname -r 2>&1 | \
4276 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4277 fi
4278
4279 fi
4280 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4281 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4282 if test $ac_cv_linux_vers = unknown ; then
4283 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4284 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4285 { (exit 1); exit 1; }; }
4286 fi
4287 if test $ac_cv_linux_vers -lt 2 ; then
4288 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4289 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4290 { (exit 1); exit 1; }; }
4291 fi
4292 ;;
4293
4294 *)
4295 ;;
4296 esac
4297
4298
4299
4300 # Check whether --with-smi was given.
4301 if test "${with_smi+set}" = set; then
4302 withval=$with_smi;
4303 else
4304 with_smi=yes
4305 fi
4306
4307
4308 if test "x$with_smi" != "xno" ; then
4309
4310 for ac_header in smi.h
4311 do
4312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 fi
4319 ac_res=`eval echo '${'$as_ac_Header'}'`
4320 { echo "$as_me:$LINENO: result: $ac_res" >&5
4321 echo "${ECHO_T}$ac_res" >&6; }
4322 else
4323 # Is the header compilable?
4324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 $ac_includes_default
4333 #include <$ac_header>
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (ac_try="$ac_compile"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_compile") 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && {
4349 test -z "$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 } && test -s conftest.$ac_objext; then
4352 ac_header_compiler=yes
4353 else
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4356
4357 ac_header_compiler=no
4358 fi
4359
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4362 echo "${ECHO_T}$ac_header_compiler" >&6; }
4363
4364 # Is the header present?
4365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <$ac_header>
4374 _ACEOF
4375 if { (ac_try="$ac_cpp conftest.$ac_ext"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null && {
4388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4389 test ! -s conftest.err
4390 }; then
4391 ac_header_preproc=yes
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 ac_header_preproc=no
4397 fi
4398
4399 rm -f conftest.err conftest.$ac_ext
4400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4401 echo "${ECHO_T}$ac_header_preproc" >&6; }
4402
4403 # So? What about this header?
4404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4405 yes:no: )
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4410 ac_header_preproc=yes
4411 ;;
4412 no:yes:* )
4413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4425
4426 ;;
4427 esac
4428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 eval "$as_ac_Header=\$ac_header_preproc"
4434 fi
4435 ac_res=`eval echo '${'$as_ac_Header'}'`
4436 { echo "$as_me:$LINENO: result: $ac_res" >&5
4437 echo "${ECHO_T}$ac_res" >&6; }
4438
4439 fi
4440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4441 cat >>confdefs.h <<_ACEOF
4442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 _ACEOF
4444
4445 fi
4446
4447 done
4448
4449
4450 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4451 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4452 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 ac_check_lib_save_LIBS=$LIBS
4456 LIBS="-lsmi $LIBS"
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463
4464 /* Override any GCC internal prototype to avoid an error.
4465 Use char because int might match the return type of a GCC
4466 builtin and then its argument prototype would still apply. */
4467 #ifdef __cplusplus
4468 extern "C"
4469 #endif
4470 char smiInit ();
4471 int
4472 main ()
4473 {
4474 return smiInit ();
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.$ac_objext conftest$ac_exeext
4480 if { (ac_try="$ac_link"
4481 case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_link") 2>conftest.er1
4487 ac_status=$?
4488 grep -v '^ *+' conftest.er1 >conftest.err
4489 rm -f conftest.er1
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && {
4493 test -z "$ac_c_werror_flag" ||
4494 test ! -s conftest.err
4495 } && test -s conftest$ac_exeext &&
4496 $as_test_x conftest$ac_exeext; then
4497 ac_cv_lib_smi_smiInit=yes
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 ac_cv_lib_smi_smiInit=no
4503 fi
4504
4505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4506 conftest$ac_exeext conftest.$ac_ext
4507 LIBS=$ac_check_lib_save_LIBS
4508 fi
4509 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4510 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4511 if test $ac_cv_lib_smi_smiInit = yes; then
4512 cat >>confdefs.h <<_ACEOF
4513 #define HAVE_LIBSMI 1
4514 _ACEOF
4515
4516 LIBS="-lsmi $LIBS"
4517
4518 fi
4519
4520 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4521 then
4522 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4523 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4524 if test "$cross_compiling" = yes; then
4525 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4526 echo "${ECHO_T}not when cross-compiling" >&6; }
4527 libsmi=no
4528
4529 else
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 /* libsmi available check */
4537 #include <smi.h>
4538 main()
4539 {
4540 int current, revision, age, n;
4541 const int required = 2;
4542 if (smiInit(""))
4543 exit(1);
4544 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4545 exit(2);
4546 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4547 if (n != 3)
4548 exit(3);
4549 if (required < current - age || required > current)
4550 exit(4);
4551 exit(0);
4552 }
4553
4554 _ACEOF
4555 rm -f conftest$ac_exeext
4556 if { (ac_try="$ac_link"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_link") 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 { echo "$as_me:$LINENO: result: yes" >&5
4576 echo "${ECHO_T}yes" >&6; }
4577
4578 cat >>confdefs.h <<\_ACEOF
4579 #define LIBSMI 1
4580 _ACEOF
4581
4582 libsmi=yes
4583 else
4584 echo "$as_me: program exited with status $ac_status" >&5
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 ( exit $ac_status )
4589 case $? in
4590 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4591 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4592 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4593 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4594 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4595 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4596 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4597 echo "${ECHO_T}no - too old" >&6; } ;;
4598 *) { echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6; } ;;
4600 esac
4601 libsmi=no
4602 fi
4603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4604 fi
4605
4606
4607 fi
4608 fi
4609
4610 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4611 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4612 # Check whether --enable-smb was given.
4613 if test "${enable_smb+set}" = set; then
4614 enableval=$enable_smb;
4615 else
4616 enableval=yes
4617 fi
4618
4619 case "$enableval" in
4620 yes) { echo "$as_me:$LINENO: result: yes" >&5
4621 echo "${ECHO_T}yes" >&6; }
4622 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4623 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4624
4625 cat >>confdefs.h <<\_ACEOF
4626 #define TCPDUMP_DO_SMB 1
4627 _ACEOF
4628
4629 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4630 ;;
4631 *) { echo "$as_me:$LINENO: result: no" >&5
4632 echo "${ECHO_T}no" >&6; }
4633 ;;
4634 esac
4635
4636
4637 # Check whether --with-user was given.
4638 if test "${with_user+set}" = set; then
4639 withval=$with_user;
4640 fi
4641
4642 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4643 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4644 if test ! -z "$with_user" ; then
4645
4646 cat >>confdefs.h <<_ACEOF
4647 #define WITH_USER "$withval"
4648 _ACEOF
4649
4650 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4651 echo "${ECHO_T}to \"$withval\"" >&6; }
4652 else
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4655 fi
4656
4657
4658 # Check whether --with-chroot was given.
4659 if test "${with_chroot+set}" = set; then
4660 withval=$with_chroot;
4661 fi
4662
4663 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4664 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4665 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4666
4667 cat >>confdefs.h <<_ACEOF
4668 #define WITH_CHROOT "$withval"
4669 _ACEOF
4670
4671 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4672 echo "${ECHO_T}to \"$withval\"" >&6; }
4673 else
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4676 fi
4677
4678 #
4679 # We must check this before checking whether to enable IPv6, because,
4680 # on some platforms (such as SunOS 5.x), the test program requires
4681 # the extra networking libraries.
4682 #
4683
4684 # Most operating systems have gethostbyname() in the default searched
4685 # libraries (i.e. libc):
4686 # Some OSes (eg. Solaris) place it in libnsl
4687 # Some strange OSes (SINIX) have it in libsocket:
4688 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4689 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4690 if test "${ac_cv_search_gethostbyname+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693 ac_func_search_save_LIBS=$LIBS
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700
4701 /* Override any GCC internal prototype to avoid an error.
4702 Use char because int might match the return type of a GCC
4703 builtin and then its argument prototype would still apply. */
4704 #ifdef __cplusplus
4705 extern "C"
4706 #endif
4707 char gethostbyname ();
4708 int
4709 main ()
4710 {
4711 return gethostbyname ();
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 for ac_lib in '' nsl socket resolv; do
4717 if test -z "$ac_lib"; then
4718 ac_res="none required"
4719 else
4720 ac_res=-l$ac_lib
4721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4722 fi
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (ac_try="$ac_link"
4725 case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest$ac_exeext &&
4740 $as_test_x conftest$ac_exeext; then
4741 ac_cv_search_gethostbyname=$ac_res
4742 else
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746
4747 fi
4748
4749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4750 conftest$ac_exeext
4751 if test "${ac_cv_search_gethostbyname+set}" = set; then
4752 break
4753 fi
4754 done
4755 if test "${ac_cv_search_gethostbyname+set}" = set; then
4756 :
4757 else
4758 ac_cv_search_gethostbyname=no
4759 fi
4760 rm conftest.$ac_ext
4761 LIBS=$ac_func_search_save_LIBS
4762 fi
4763 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4764 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4765 ac_res=$ac_cv_search_gethostbyname
4766 if test "$ac_res" != no; then
4767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4768
4769 fi
4770
4771 # Unfortunately libsocket sometimes depends on libnsl and
4772 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4773 if test "$ac_cv_search_gethostbyname" = "no"
4774 then
4775 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4776 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4777 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 ac_check_lib_save_LIBS=$LIBS
4781 LIBS="-lsocket -lnsl $LIBS"
4782 cat >conftest.$ac_ext <<_ACEOF
4783 /* confdefs.h. */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788
4789 /* Override any GCC internal prototype to avoid an error.
4790 Use char because int might match the return type of a GCC
4791 builtin and then its argument prototype would still apply. */
4792 #ifdef __cplusplus
4793 extern "C"
4794 #endif
4795 char gethostbyname ();
4796 int
4797 main ()
4798 {
4799 return gethostbyname ();
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (ac_try="$ac_link"
4806 case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_link") 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest$ac_exeext &&
4821 $as_test_x conftest$ac_exeext; then
4822 ac_cv_lib_socket_gethostbyname=yes
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 ac_cv_lib_socket_gethostbyname=no
4828 fi
4829
4830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4831 conftest$ac_exeext conftest.$ac_ext
4832 LIBS=$ac_check_lib_save_LIBS
4833 fi
4834 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4835 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
4836 if test $ac_cv_lib_socket_gethostbyname = yes; then
4837 LIBS="-lsocket -lnsl $LIBS"
4838 fi
4839
4840 fi
4841 { echo "$as_me:$LINENO: checking for library containing socket" >&5
4842 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
4843 if test "${ac_cv_search_socket+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 ac_func_search_save_LIBS=$LIBS
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853
4854 /* Override any GCC internal prototype to avoid an error.
4855 Use char because int might match the return type of a GCC
4856 builtin and then its argument prototype would still apply. */
4857 #ifdef __cplusplus
4858 extern "C"
4859 #endif
4860 char socket ();
4861 int
4862 main ()
4863 {
4864 return socket ();
4865 ;
4866 return 0;
4867 }
4868 _ACEOF
4869 for ac_lib in '' socket; do
4870 if test -z "$ac_lib"; then
4871 ac_res="none required"
4872 else
4873 ac_res=-l$ac_lib
4874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4875 fi
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (ac_try="$ac_link"
4878 case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_link") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && {
4890 test -z "$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 } && test -s conftest$ac_exeext &&
4893 $as_test_x conftest$ac_exeext; then
4894 ac_cv_search_socket=$ac_res
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899
4900 fi
4901
4902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4903 conftest$ac_exeext
4904 if test "${ac_cv_search_socket+set}" = set; then
4905 break
4906 fi
4907 done
4908 if test "${ac_cv_search_socket+set}" = set; then
4909 :
4910 else
4911 ac_cv_search_socket=no
4912 fi
4913 rm conftest.$ac_ext
4914 LIBS=$ac_func_search_save_LIBS
4915 fi
4916 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4917 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4918 ac_res=$ac_cv_search_socket
4919 if test "$ac_res" != no; then
4920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4921
4922 else
4923 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4924 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4925 if test "${ac_cv_lib_socket_socket+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928 ac_check_lib_save_LIBS=$LIBS
4929 LIBS="-lsocket -lnsl $LIBS"
4930 cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h. */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936
4937 /* Override any GCC internal prototype to avoid an error.
4938 Use char because int might match the return type of a GCC
4939 builtin and then its argument prototype would still apply. */
4940 #ifdef __cplusplus
4941 extern "C"
4942 #endif
4943 char socket ();
4944 int
4945 main ()
4946 {
4947 return socket ();
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext conftest$ac_exeext
4953 if { (ac_try="$ac_link"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_link") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } && {
4966 test -z "$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4968 } && test -s conftest$ac_exeext &&
4969 $as_test_x conftest$ac_exeext; then
4970 ac_cv_lib_socket_socket=yes
4971 else
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 ac_cv_lib_socket_socket=no
4976 fi
4977
4978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4979 conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4981 fi
4982 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4983 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4984 if test $ac_cv_lib_socket_socket = yes; then
4985 LIBS="-lsocket -lnsl $LIBS"
4986 fi
4987
4988 fi
4989
4990 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
4991 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
4992 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
4993 if test "${ac_cv_search_putmsg+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 ac_func_search_save_LIBS=$LIBS
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003
5004 /* Override any GCC internal prototype to avoid an error.
5005 Use char because int might match the return type of a GCC
5006 builtin and then its argument prototype would still apply. */
5007 #ifdef __cplusplus
5008 extern "C"
5009 #endif
5010 char putmsg ();
5011 int
5012 main ()
5013 {
5014 return putmsg ();
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 for ac_lib in '' str; do
5020 if test -z "$ac_lib"; then
5021 ac_res="none required"
5022 else
5023 ac_res=-l$ac_lib
5024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5025 fi
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (ac_try="$ac_link"
5028 case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_link") 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest$ac_exeext &&
5043 $as_test_x conftest$ac_exeext; then
5044 ac_cv_search_putmsg=$ac_res
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049
5050 fi
5051
5052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5053 conftest$ac_exeext
5054 if test "${ac_cv_search_putmsg+set}" = set; then
5055 break
5056 fi
5057 done
5058 if test "${ac_cv_search_putmsg+set}" = set; then
5059 :
5060 else
5061 ac_cv_search_putmsg=no
5062 fi
5063 rm conftest.$ac_ext
5064 LIBS=$ac_func_search_save_LIBS
5065 fi
5066 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5067 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5068 ac_res=$ac_cv_search_putmsg
5069 if test "$ac_res" != no; then
5070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5071
5072 fi
5073
5074
5075
5076 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5077 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5078 # Check whether --enable-ipv6 was given.
5079 if test "${enable_ipv6+set}" = set; then
5080 enableval=$enable_ipv6; case "$enableval" in
5081 yes) { echo "$as_me:$LINENO: result: yes" >&5
5082 echo "${ECHO_T}yes" >&6; }
5083 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5084
5085 cat >>confdefs.h <<\_ACEOF
5086 #define INET6 1
5087 _ACEOF
5088
5089 ipv6=yes
5090 ;;
5091 *)
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5094 ipv6=no
5095 ;;
5096 esac
5097 else
5098 if test "$cross_compiling" = yes; then
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5101 ipv6=no
5102
5103 else
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 /* AF_INET6 available check */
5111 #include <sys/types.h>
5112 #include <sys/socket.h>
5113 main()
5114 {
5115 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5116 exit(1);
5117 else
5118 exit(0);
5119 }
5120
5121 _ACEOF
5122 rm -f conftest$ac_exeext
5123 if { (ac_try="$ac_link"
5124 case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_link") 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5133 { (case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_try") 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; }; then
5142 { echo "$as_me:$LINENO: result: yes" >&5
5143 echo "${ECHO_T}yes" >&6; }
5144 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c print-babel.c $LOCALSRC"
5145
5146 cat >>confdefs.h <<\_ACEOF
5147 #define INET6 1
5148 _ACEOF
5149
5150 ipv6=yes
5151 else
5152 echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 ( exit $ac_status )
5157 { echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6; }
5159 ipv6=no
5160 fi
5161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5162 fi
5163
5164
5165 fi
5166
5167
5168 ipv6type=unknown
5169 ipv6lib=none
5170 ipv6trylibc=no
5171
5172 if test "$ipv6" = "yes"; then
5173 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5174 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5175 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
5176 case $i in
5177 inria)
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #include <netinet/in.h>
5185 #ifdef IPV6_INRIA_VERSION
5186 yes
5187 #endif
5188 _ACEOF
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "yes" >/dev/null 2>&1; then
5191 ipv6type=$i;
5192 CFLAGS="-DINET6 $CFLAGS"
5193 fi
5194 rm -f conftest*
5195
5196 ;;
5197 kame)
5198 cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h. */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 #include <netinet/in.h>
5205 #ifdef __KAME__
5206 yes
5207 #endif
5208 _ACEOF
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "yes" >/dev/null 2>&1; then
5211 ipv6type=$i;
5212 ipv6lib=inet6;
5213 ipv6libdir=/usr/local/v6/lib;
5214 ipv6trylibc=yes;
5215 CFLAGS="-DINET6 $CFLAGS"
5216 fi
5217 rm -f conftest*
5218
5219 ;;
5220 linux-glibc)
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 #include <features.h>
5228 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5229 yes
5230 #endif
5231 _ACEOF
5232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233 $EGREP "yes" >/dev/null 2>&1; then
5234 ipv6type=$i;
5235 CFLAGS="-DINET6 $CFLAGS"
5236 fi
5237 rm -f conftest*
5238
5239 ;;
5240 linux-libinet6)
5241 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5242 ipv6type=$i
5243 ipv6lib=inet6
5244 ipv6libdir=/usr/inet6/lib
5245 ipv6trylibc=yes;
5246 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5247 fi
5248 ;;
5249 toshiba)
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #include <sys/param.h>
5257 #ifdef _TOSHIBA_INET6
5258 yes
5259 #endif
5260 _ACEOF
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "yes" >/dev/null 2>&1; then
5263 ipv6type=$i;
5264 ipv6lib=inet6;
5265 ipv6libdir=/usr/local/v6/lib;
5266 CFLAGS="-DINET6 $CFLAGS"
5267 fi
5268 rm -f conftest*
5269
5270 ;;
5271 v6d)
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include </usr/local/v6/include/sys/v6config.h>
5279 #ifdef __V6D__
5280 yes
5281 #endif
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "yes" >/dev/null 2>&1; then
5285 ipv6type=$i;
5286 ipv6lib=v6;
5287 ipv6libdir=/usr/local/v6/lib;
5288 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5289 fi
5290 rm -f conftest*
5291
5292 ;;
5293 zeta)
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <sys/param.h>
5301 #ifdef _ZETA_MINAMI_INET6
5302 yes
5303 #endif
5304 _ACEOF
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 $EGREP "yes" >/dev/null 2>&1; then
5307 ipv6type=$i;
5308 ipv6lib=inet6;
5309 ipv6libdir=/usr/local/v6/lib;
5310 CFLAGS="-DINET6 $CFLAGS"
5311 fi
5312 rm -f conftest*
5313
5314 ;;
5315 esac
5316 if test "$ipv6type" != "unknown"; then
5317 break
5318 fi
5319 done
5320 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5321 echo "${ECHO_T}$ipv6type" >&6; }
5322 fi
5323
5324 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5325 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5326 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5327 echo "You have $ipv6lib library, using it"
5328 else
5329 if test "$ipv6trylibc" = "yes"; then
5330 echo "You do not have $ipv6lib library, using libc"
5331 else
5332 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5333 echo "You need to fetch lib$ipv6lib.a from appropriate"
5334 echo 'ipv6 kit and compile beforehand.'
5335 exit 1
5336 fi
5337 fi
5338 fi
5339
5340
5341 if test "$ipv6" = "yes"; then
5342 #
5343 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5344 # function in libc; there are "ngetaddrinfo()" and
5345 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5346 # "getaddrinfo" to be either "ngetaddrinfo" or
5347 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5348 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5349 #
5350 # So this test doesn't work on Tru64 5.1, and possibly
5351 # on other 5.x releases. This causes the configure
5352 # script to become confused, and results in libpcap
5353 # being unbuildable.
5354 #
5355 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5356 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5357 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 ac_func_search_save_LIBS=$LIBS
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367
5368 /* Override any GCC internal prototype to avoid an error.
5369 Use char because int might match the return type of a GCC
5370 builtin and then its argument prototype would still apply. */
5371 #ifdef __cplusplus
5372 extern "C"
5373 #endif
5374 char getaddrinfo ();
5375 int
5376 main ()
5377 {
5378 return getaddrinfo ();
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 for ac_lib in '' socket; do
5384 if test -z "$ac_lib"; then
5385 ac_res="none required"
5386 else
5387 ac_res=-l$ac_lib
5388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5389 fi
5390 rm -f conftest.$ac_objext conftest$ac_exeext
5391 if { (ac_try="$ac_link"
5392 case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_link") 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && {
5404 test -z "$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5406 } && test -s conftest$ac_exeext &&
5407 $as_test_x conftest$ac_exeext; then
5408 ac_cv_search_getaddrinfo=$ac_res
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413
5414 fi
5415
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5417 conftest$ac_exeext
5418 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5419 break
5420 fi
5421 done
5422 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5423 :
5424 else
5425 ac_cv_search_getaddrinfo=no
5426 fi
5427 rm conftest.$ac_ext
5428 LIBS=$ac_func_search_save_LIBS
5429 fi
5430 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5431 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5432 ac_res=$ac_cv_search_getaddrinfo
5433 if test "$ac_res" != no; then
5434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5435 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5436 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5437 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 if test "$cross_compiling" = yes; then
5441 td_cv_buggygetaddrinfo=yes
5442 else
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449
5450 #include <sys/types.h>
5451 #include <netdb.h>
5452 #include <string.h>
5453 #include <sys/socket.h>
5454 #include <netinet/in.h>
5455
5456 main()
5457 {
5458 int passive, gaierr, inet4 = 0, inet6 = 0;
5459 struct addrinfo hints, *ai, *aitop;
5460 char straddr[INET6_ADDRSTRLEN], strport[16];
5461
5462 for (passive = 0; passive <= 1; passive++) {
5463 memset(&hints, 0, sizeof(hints));
5464 hints.ai_family = AF_UNSPEC;
5465 hints.ai_flags = passive ? AI_PASSIVE : 0;
5466 hints.ai_socktype = SOCK_STREAM;
5467 hints.ai_protocol = IPPROTO_TCP;
5468 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5469 (void)gai_strerror(gaierr);
5470 goto bad;
5471 }
5472 for (ai = aitop; ai; ai = ai->ai_next) {
5473 if (ai->ai_addr == NULL ||
5474 ai->ai_addrlen == 0 ||
5475 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5476 straddr, sizeof(straddr), strport, sizeof(strport),
5477 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5478 goto bad;
5479 }
5480 switch (ai->ai_family) {
5481 case AF_INET:
5482 if (strcmp(strport, "54321") != 0) {
5483 goto bad;
5484 }
5485 if (passive) {
5486 if (strcmp(straddr, "0.0.0.0") != 0) {
5487 goto bad;
5488 }
5489 } else {
5490 if (strcmp(straddr, "127.0.0.1") != 0) {
5491 goto bad;
5492 }
5493 }
5494 inet4++;
5495 break;
5496 case AF_INET6:
5497 if (strcmp(strport, "54321") != 0) {
5498 goto bad;
5499 }
5500 if (passive) {
5501 if (strcmp(straddr, "::") != 0) {
5502 goto bad;
5503 }
5504 } else {
5505 if (strcmp(straddr, "::1") != 0) {
5506 goto bad;
5507 }
5508 }
5509 inet6++;
5510 break;
5511 case AF_UNSPEC:
5512 goto bad;
5513 break;
5514 #ifdef AF_UNIX
5515 case AF_UNIX:
5516 #else
5517 #ifdef AF_LOCAL
5518 case AF_LOCAL:
5519 #endif
5520 #endif
5521 default:
5522 /* another family support? */
5523 break;
5524 }
5525 }
5526 }
5527
5528 /* supported family should be 2, unsupported family should be 0 */
5529 if (!(inet4 == 0 || inet4 == 2))
5530 goto bad;
5531 if (!(inet6 == 0 || inet6 == 2))
5532 goto bad;
5533
5534 if (aitop)
5535 freeaddrinfo(aitop);
5536 exit(0);
5537
5538 bad:
5539 if (aitop)
5540 freeaddrinfo(aitop);
5541 exit(1);
5542 }
5543
5544 _ACEOF
5545 rm -f conftest$ac_exeext
5546 if { (ac_try="$ac_link"
5547 case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_link") 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; }; then
5565 td_cv_buggygetaddrinfo=no
5566 else
5567 echo "$as_me: program exited with status $ac_status" >&5
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 ( exit $ac_status )
5572 td_cv_buggygetaddrinfo=yes
5573 fi
5574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5575 fi
5576
5577
5578 fi
5579
5580 if test "$td_cv_buggygetaddrinfo" = no; then
5581 { echo "$as_me:$LINENO: result: good" >&5
5582 echo "${ECHO_T}good" >&6; }
5583 else
5584 { echo "$as_me:$LINENO: result: buggy" >&5
5585 echo "${ECHO_T}buggy" >&6; }
5586 fi
5587
5588 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5589 #
5590 # XXX - it doesn't appear that "ipv6type" can ever be
5591 # set to "linux". Should this be testing for
5592 # "linux-glibc", or for that *or* "linux-libinet6"?
5593 # If the latter, note that "linux-libinet6" is also
5594 # the type given to some non-Linux OSes.
5595 #
5596 if test "$ipv6type" != "linux"; then
5597 echo 'Fatal: You must get working getaddrinfo() function.'
5598 echo ' or you can specify "--disable-ipv6"'.
5599 exit 1
5600 else
5601 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5602 echo ' Better upgrade your system library to newest version'
5603 echo ' of GNU C library (aka glibc).'
5604 fi
5605 fi
5606
5607 fi
5608
5609
5610 for ac_func in getnameinfo
5611 do
5612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5626 #define $ac_func innocuous_$ac_func
5627
5628 /* System header to define __stub macros and hopefully few prototypes,
5629 which can conflict with char $ac_func (); below.
5630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 <limits.h> exists even on freestanding compilers. */
5632
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638
5639 #undef $ac_func
5640
5641 /* Override any GCC internal prototype to avoid an error.
5642 Use char because int might match the return type of a GCC
5643 builtin and then its argument prototype would still apply. */
5644 #ifdef __cplusplus
5645 extern "C"
5646 #endif
5647 char $ac_func ();
5648 /* The GNU C library defines this for functions which it implements
5649 to always fail with ENOSYS. Some functions are actually named
5650 something starting with __ and the normal name is an alias. */
5651 #if defined __stub_$ac_func || defined __stub___$ac_func
5652 choke me
5653 #endif
5654
5655 int
5656 main ()
5657 {
5658 return $ac_func ();
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext conftest$ac_exeext
5664 if { (ac_try="$ac_link"
5665 case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_link") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest$ac_exeext &&
5680 $as_test_x conftest$ac_exeext; then
5681 eval "$as_ac_var=yes"
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 eval "$as_ac_var=no"
5687 fi
5688
5689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5690 conftest$ac_exeext conftest.$ac_ext
5691 fi
5692 ac_res=`eval echo '${'$as_ac_var'}'`
5693 { echo "$as_me:$LINENO: result: $ac_res" >&5
5694 echo "${ECHO_T}$ac_res" >&6; }
5695 if test `eval echo '${'$as_ac_var'}'` = yes; then
5696 cat >>confdefs.h <<_ACEOF
5697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5698 _ACEOF
5699
5700 else
5701 case " $LIBOBJS " in
5702 *" $ac_func.$ac_objext "* ) ;;
5703 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5704 ;;
5705 esac
5706
5707 fi
5708 done
5709
5710
5711 fi
5712
5713 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5714 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5715 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 #include <netdnet/dnetdb.h>
5725
5726 _ACEOF
5727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5728 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5729 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5730 else
5731 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5732 fi
5733 rm -f conftest*
5734
5735 fi
5736 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5737 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5738 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5739
5740 cat >>confdefs.h <<\_ACEOF
5741 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5742 _ACEOF
5743
5744 fi
5745
5746
5747 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5748 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5749 if test "${ac_cv_addrinfo+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758
5759 # include <netdb.h>
5760 int
5761 main ()
5762 {
5763 struct addrinfo a
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.$ac_objext; then
5785 ac_cv_addrinfo=yes
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_cv_addrinfo=no
5791 fi
5792
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 fi
5795
5796 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5797 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5798 if test $ac_cv_addrinfo = yes; then
5799
5800 cat >>confdefs.h <<\_ACEOF
5801 #define HAVE_ADDRINFO 1
5802 _ACEOF
5803
5804 else
5805
5806 cat >>confdefs.h <<\_ACEOF
5807 #define NEED_ADDRINFO_H 1
5808 _ACEOF
5809
5810 fi
5811
5812 if test "$ac_cv_addrinfo" = no; then
5813 missing_includes=yes
5814 fi
5815
5816
5817 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5818 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5819 if test "${ac_cv_maxserv+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <netdb.h>
5829 #ifdef NI_MAXSERV
5830 yes
5831 #endif
5832 _ACEOF
5833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5834 $EGREP "yes" >/dev/null 2>&1; then
5835 ac_cv_maxserv=yes
5836 else
5837 ac_cv_maxserv=no
5838 fi
5839 rm -f conftest*
5840
5841 fi
5842
5843 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5844 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5845 if test $ac_cv_maxserv != yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define NEED_ADDRINFO_H 1
5848 _ACEOF
5849
5850 fi
5851
5852 if test "$ac_cv_maxserv" = no; then
5853 missing_includes=yes
5854 fi
5855
5856
5857 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5858 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5859 if test "${ac_cv_namereqd+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 #include <netdb.h>
5869 #ifdef NI_NOFQDN
5870 yes
5871 #endif
5872 _ACEOF
5873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5874 $EGREP "yes" >/dev/null 2>&1; then
5875 ac_cv_namereqd=yes
5876 else
5877 ac_cv_namereqd=no
5878 fi
5879 rm -f conftest*
5880
5881 fi
5882
5883 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5884 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
5885 if test $ac_cv_namereqd != yes; then
5886 cat >>confdefs.h <<\_ACEOF
5887 #define NEED_ADDRINFO_H 1
5888 _ACEOF
5889
5890 fi
5891
5892 if test "$ac_cv_namereqd" = no; then
5893 missing_includes=yes
5894 fi
5895
5896
5897 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5898 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5899 if test "${ac_cv_sa_storage+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908
5909 # include <sys/types.h>
5910 # include <sys/socket.h>
5911 int
5912 main ()
5913 {
5914 struct sockaddr_storage s
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5936 ac_cv_sa_storage=yes
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 ac_cv_sa_storage=no
5942 fi
5943
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 fi
5946
5947 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5948 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
5949 if test $ac_cv_sa_storage = yes; then
5950
5951 cat >>confdefs.h <<\_ACEOF
5952 #define HAVE_SOCKADDR_STORAGE 1
5953 _ACEOF
5954
5955 fi
5956
5957 if test "$ac_cv_sa_storage" = no; then
5958 missing_includes=yes
5959 fi
5960
5961
5962
5963
5964
5965
5966
5967 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
5968 do
5969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5983 #define $ac_func innocuous_$ac_func
5984
5985 /* System header to define __stub macros and hopefully few prototypes,
5986 which can conflict with char $ac_func (); below.
5987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 <limits.h> exists even on freestanding compilers. */
5989
5990 #ifdef __STDC__
5991 # include <limits.h>
5992 #else
5993 # include <assert.h>
5994 #endif
5995
5996 #undef $ac_func
5997
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6001 #ifdef __cplusplus
6002 extern "C"
6003 #endif
6004 char $ac_func ();
6005 /* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
6008 #if defined __stub_$ac_func || defined __stub___$ac_func
6009 choke me
6010 #endif
6011
6012 int
6013 main ()
6014 {
6015 return $ac_func ();
6016 ;
6017 return 0;
6018 }
6019 _ACEOF
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (ac_try="$ac_link"
6022 case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest$ac_exeext &&
6037 $as_test_x conftest$ac_exeext; then
6038 eval "$as_ac_var=yes"
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 eval "$as_ac_var=no"
6044 fi
6045
6046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6047 conftest$ac_exeext conftest.$ac_ext
6048 fi
6049 ac_res=`eval echo '${'$as_ac_var'}'`
6050 { echo "$as_me:$LINENO: result: $ac_res" >&5
6051 echo "${ECHO_T}$ac_res" >&6; }
6052 if test `eval echo '${'$as_ac_var'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6055 _ACEOF
6056
6057 else
6058 case " $LIBOBJS " in
6059 *" $ac_func.$ac_objext "* ) ;;
6060 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6061 ;;
6062 esac
6063
6064 fi
6065 done
6066
6067
6068
6069
6070
6071 for ac_func in fork vfork strftime
6072 do
6073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6087 #define $ac_func innocuous_$ac_func
6088
6089 /* System header to define __stub macros and hopefully few prototypes,
6090 which can conflict with char $ac_func (); below.
6091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6092 <limits.h> exists even on freestanding compilers. */
6093
6094 #ifdef __STDC__
6095 # include <limits.h>
6096 #else
6097 # include <assert.h>
6098 #endif
6099
6100 #undef $ac_func
6101
6102 /* Override any GCC internal prototype to avoid an error.
6103 Use char because int might match the return type of a GCC
6104 builtin and then its argument prototype would still apply. */
6105 #ifdef __cplusplus
6106 extern "C"
6107 #endif
6108 char $ac_func ();
6109 /* The GNU C library defines this for functions which it implements
6110 to always fail with ENOSYS. Some functions are actually named
6111 something starting with __ and the normal name is an alias. */
6112 #if defined __stub_$ac_func || defined __stub___$ac_func
6113 choke me
6114 #endif
6115
6116 int
6117 main ()
6118 {
6119 return $ac_func ();
6120 ;
6121 return 0;
6122 }
6123 _ACEOF
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (ac_try="$ac_link"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_link") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest$ac_exeext &&
6141 $as_test_x conftest$ac_exeext; then
6142 eval "$as_ac_var=yes"
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 eval "$as_ac_var=no"
6148 fi
6149
6150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6151 conftest$ac_exeext conftest.$ac_ext
6152 fi
6153 ac_res=`eval echo '${'$as_ac_var'}'`
6154 { echo "$as_me:$LINENO: result: $ac_res" >&5
6155 echo "${ECHO_T}$ac_res" >&6; }
6156 if test `eval echo '${'$as_ac_var'}'` = yes; then
6157 cat >>confdefs.h <<_ACEOF
6158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6159 _ACEOF
6160
6161 fi
6162 done
6163
6164
6165
6166 for ac_func in setlinebuf alarm
6167 do
6168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h. */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6182 #define $ac_func innocuous_$ac_func
6183
6184 /* System header to define __stub macros and hopefully few prototypes,
6185 which can conflict with char $ac_func (); below.
6186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187 <limits.h> exists even on freestanding compilers. */
6188
6189 #ifdef __STDC__
6190 # include <limits.h>
6191 #else
6192 # include <assert.h>
6193 #endif
6194
6195 #undef $ac_func
6196
6197 /* Override any GCC internal prototype to avoid an error.
6198 Use char because int might match the return type of a GCC
6199 builtin and then its argument prototype would still apply. */
6200 #ifdef __cplusplus
6201 extern "C"
6202 #endif
6203 char $ac_func ();
6204 /* The GNU C library defines this for functions which it implements
6205 to always fail with ENOSYS. Some functions are actually named
6206 something starting with __ and the normal name is an alias. */
6207 #if defined __stub_$ac_func || defined __stub___$ac_func
6208 choke me
6209 #endif
6210
6211 int
6212 main ()
6213 {
6214 return $ac_func ();
6215 ;
6216 return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (ac_try="$ac_link"
6221 case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_link") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest$ac_exeext &&
6236 $as_test_x conftest$ac_exeext; then
6237 eval "$as_ac_var=yes"
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 eval "$as_ac_var=no"
6243 fi
6244
6245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6246 conftest$ac_exeext conftest.$ac_ext
6247 fi
6248 ac_res=`eval echo '${'$as_ac_var'}'`
6249 { echo "$as_me:$LINENO: result: $ac_res" >&5
6250 echo "${ECHO_T}$ac_res" >&6; }
6251 if test `eval echo '${'$as_ac_var'}'` = yes; then
6252 cat >>confdefs.h <<_ACEOF
6253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6254 _ACEOF
6255
6256 fi
6257 done
6258
6259
6260 needsnprintf=no
6261
6262
6263 for ac_func in vsnprintf snprintf
6264 do
6265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6279 #define $ac_func innocuous_$ac_func
6280
6281 /* System header to define __stub macros and hopefully few prototypes,
6282 which can conflict with char $ac_func (); below.
6283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6284 <limits.h> exists even on freestanding compilers. */
6285
6286 #ifdef __STDC__
6287 # include <limits.h>
6288 #else
6289 # include <assert.h>
6290 #endif
6291
6292 #undef $ac_func
6293
6294 /* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
6297 #ifdef __cplusplus
6298 extern "C"
6299 #endif
6300 char $ac_func ();
6301 /* The GNU C library defines this for functions which it implements
6302 to always fail with ENOSYS. Some functions are actually named
6303 something starting with __ and the normal name is an alias. */
6304 #if defined __stub_$ac_func || defined __stub___$ac_func
6305 choke me
6306 #endif
6307
6308 int
6309 main ()
6310 {
6311 return $ac_func ();
6312 ;
6313 return 0;
6314 }
6315 _ACEOF
6316 rm -f conftest.$ac_objext conftest$ac_exeext
6317 if { (ac_try="$ac_link"
6318 case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_link") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest$ac_exeext &&
6333 $as_test_x conftest$ac_exeext; then
6334 eval "$as_ac_var=yes"
6335 else
6336 echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 eval "$as_ac_var=no"
6340 fi
6341
6342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6343 conftest$ac_exeext conftest.$ac_ext
6344 fi
6345 ac_res=`eval echo '${'$as_ac_var'}'`
6346 { echo "$as_me:$LINENO: result: $ac_res" >&5
6347 echo "${ECHO_T}$ac_res" >&6; }
6348 if test `eval echo '${'$as_ac_var'}'` = yes; then
6349 cat >>confdefs.h <<_ACEOF
6350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6351 _ACEOF
6352
6353 else
6354 needsnprintf=yes
6355 fi
6356 done
6357
6358 if test $needsnprintf = yes; then
6359 case " $LIBOBJS " in
6360 *" snprintf.$ac_objext "* ) ;;
6361 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6362 ;;
6363 esac
6364
6365 fi
6366
6367
6368 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6369 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6370 if test "${ac_cv_type_signal+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 #include <sys/types.h>
6380 #include <signal.h>
6381
6382 int
6383 main ()
6384 {
6385 return *(signal (0, 0)) (0) == 1;
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_cv_type_signal=int
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 ac_cv_type_signal=void
6413 fi
6414
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6418 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6419
6420 cat >>confdefs.h <<_ACEOF
6421 #define RETSIGTYPE $ac_cv_type_signal
6422 _ACEOF
6423
6424
6425 if test "$ac_cv_type_signal" = void ; then
6426
6427 cat >>confdefs.h <<\_ACEOF
6428 #define RETSIGVAL
6429 _ACEOF
6430
6431 else
6432
6433 cat >>confdefs.h <<\_ACEOF
6434 #define RETSIGVAL (0)
6435 _ACEOF
6436
6437 fi
6438 case "$host_os" in
6439
6440 irix*)
6441
6442 cat >>confdefs.h <<\_ACEOF
6443 #define _BSD_SIGNALS 1
6444 _ACEOF
6445
6446 ;;
6447
6448 *)
6449
6450 for ac_func in sigaction
6451 do
6452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6466 #define $ac_func innocuous_$ac_func
6467
6468 /* System header to define __stub macros and hopefully few prototypes,
6469 which can conflict with char $ac_func (); below.
6470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 <limits.h> exists even on freestanding compilers. */
6472
6473 #ifdef __STDC__
6474 # include <limits.h>
6475 #else
6476 # include <assert.h>
6477 #endif
6478
6479 #undef $ac_func
6480
6481 /* Override any GCC internal prototype to avoid an error.
6482 Use char because int might match the return type of a GCC
6483 builtin and then its argument prototype would still apply. */
6484 #ifdef __cplusplus
6485 extern "C"
6486 #endif
6487 char $ac_func ();
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined __stub_$ac_func || defined __stub___$ac_func
6492 choke me
6493 #endif
6494
6495 int
6496 main ()
6497 {
6498 return $ac_func ();
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 rm -f conftest.$ac_objext conftest$ac_exeext
6504 if { (ac_try="$ac_link"
6505 case "(($ac_try" in
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6508 esac
6509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510 (eval "$ac_link") 2>conftest.er1
6511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } && {
6517 test -z "$ac_c_werror_flag" ||
6518 test ! -s conftest.err
6519 } && test -s conftest$ac_exeext &&
6520 $as_test_x conftest$ac_exeext; then
6521 eval "$as_ac_var=yes"
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 eval "$as_ac_var=no"
6527 fi
6528
6529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6530 conftest$ac_exeext conftest.$ac_ext
6531 fi
6532 ac_res=`eval echo '${'$as_ac_var'}'`
6533 { echo "$as_me:$LINENO: result: $ac_res" >&5
6534 echo "${ECHO_T}$ac_res" >&6; }
6535 if test `eval echo '${'$as_ac_var'}'` = yes; then
6536 cat >>confdefs.h <<_ACEOF
6537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6538 _ACEOF
6539
6540 fi
6541 done
6542
6543 if test $ac_cv_func_sigaction = no ; then
6544
6545 for ac_func in sigset
6546 do
6547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 cat >conftest.$ac_ext <<_ACEOF
6554 /* confdefs.h. */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6561 #define $ac_func innocuous_$ac_func
6562
6563 /* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char $ac_func (); below.
6565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6566 <limits.h> exists even on freestanding compilers. */
6567
6568 #ifdef __STDC__
6569 # include <limits.h>
6570 #else
6571 # include <assert.h>
6572 #endif
6573
6574 #undef $ac_func
6575
6576 /* Override any GCC internal prototype to avoid an error.
6577 Use char because int might match the return type of a GCC
6578 builtin and then its argument prototype would still apply. */
6579 #ifdef __cplusplus
6580 extern "C"
6581 #endif
6582 char $ac_func ();
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined __stub_$ac_func || defined __stub___$ac_func
6587 choke me
6588 #endif
6589
6590 int
6591 main ()
6592 {
6593 return $ac_func ();
6594 ;
6595 return 0;
6596 }
6597 _ACEOF
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (ac_try="$ac_link"
6600 case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6603 esac
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_link") 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } && {
6612 test -z "$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 } && test -s conftest$ac_exeext &&
6615 $as_test_x conftest$ac_exeext; then
6616 eval "$as_ac_var=yes"
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 eval "$as_ac_var=no"
6622 fi
6623
6624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6625 conftest$ac_exeext conftest.$ac_ext
6626 fi
6627 ac_res=`eval echo '${'$as_ac_var'}'`
6628 { echo "$as_me:$LINENO: result: $ac_res" >&5
6629 echo "${ECHO_T}$ac_res" >&6; }
6630 if test `eval echo '${'$as_ac_var'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6633 _ACEOF
6634
6635 fi
6636 done
6637
6638 fi
6639 ;;
6640 esac
6641
6642 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6643 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6644 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 ac_func_search_save_LIBS=$LIBS
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654
6655 /* Override any GCC internal prototype to avoid an error.
6656 Use char because int might match the return type of a GCC
6657 builtin and then its argument prototype would still apply. */
6658 #ifdef __cplusplus
6659 extern "C"
6660 #endif
6661 char dnet_htoa ();
6662 int
6663 main ()
6664 {
6665 return dnet_htoa ();
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 for ac_lib in '' dnet; do
6671 if test -z "$ac_lib"; then
6672 ac_res="none required"
6673 else
6674 ac_res=-l$ac_lib
6675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6676 fi
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (ac_try="$ac_link"
6679 case "(($ac_try" in
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6682 esac
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_link") 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest$ac_exeext &&
6694 $as_test_x conftest$ac_exeext; then
6695 ac_cv_search_dnet_htoa=$ac_res
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700
6701 fi
6702
6703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6704 conftest$ac_exeext
6705 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6706 break
6707 fi
6708 done
6709 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6710 :
6711 else
6712 ac_cv_search_dnet_htoa=no
6713 fi
6714 rm conftest.$ac_ext
6715 LIBS=$ac_func_search_save_LIBS
6716 fi
6717 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6718 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6719 ac_res=$ac_cv_search_dnet_htoa
6720 if test "$ac_res" != no; then
6721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6722
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_DNET_HTOA 1
6725 _ACEOF
6726
6727 fi
6728
6729
6730
6731 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6732 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6733 if test "${ac_cv_lib_rpc_main+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736 ac_check_lib_save_LIBS=$LIBS
6737 LIBS="-lrpc $LIBS"
6738 cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h. */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744
6745
6746 int
6747 main ()
6748 {
6749 return main ();
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest.$ac_objext conftest$ac_exeext
6755 if { (ac_try="$ac_link"
6756 case "(($ac_try" in
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_link") 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest$ac_exeext &&
6771 $as_test_x conftest$ac_exeext; then
6772 ac_cv_lib_rpc_main=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777 ac_cv_lib_rpc_main=no
6778 fi
6779
6780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6781 conftest$ac_exeext conftest.$ac_ext
6782 LIBS=$ac_check_lib_save_LIBS
6783 fi
6784 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6785 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6786 if test $ac_cv_lib_rpc_main = yes; then
6787 cat >>confdefs.h <<_ACEOF
6788 #define HAVE_LIBRPC 1
6789 _ACEOF
6790
6791 LIBS="-lrpc $LIBS"
6792
6793 fi
6794
6795 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6796 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6797 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 ac_func_search_save_LIBS=$LIBS
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807
6808 /* Override any GCC internal prototype to avoid an error.
6809 Use char because int might match the return type of a GCC
6810 builtin and then its argument prototype would still apply. */
6811 #ifdef __cplusplus
6812 extern "C"
6813 #endif
6814 char getrpcbynumber ();
6815 int
6816 main ()
6817 {
6818 return getrpcbynumber ();
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 for ac_lib in '' nsl; do
6824 if test -z "$ac_lib"; then
6825 ac_res="none required"
6826 else
6827 ac_res=-l$ac_lib
6828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6829 fi
6830 rm -f conftest.$ac_objext conftest$ac_exeext
6831 if { (ac_try="$ac_link"
6832 case "(($ac_try" in
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6835 esac
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_link") 2>conftest.er1
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest$ac_exeext &&
6847 $as_test_x conftest$ac_exeext; then
6848 ac_cv_search_getrpcbynumber=$ac_res
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853
6854 fi
6855
6856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6857 conftest$ac_exeext
6858 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6859 break
6860 fi
6861 done
6862 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6863 :
6864 else
6865 ac_cv_search_getrpcbynumber=no
6866 fi
6867 rm conftest.$ac_ext
6868 LIBS=$ac_func_search_save_LIBS
6869 fi
6870 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6871 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6872 ac_res=$ac_cv_search_getrpcbynumber
6873 if test "$ac_res" != no; then
6874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6875
6876 cat >>confdefs.h <<\_ACEOF
6877 #define HAVE_GETRPCBYNUMBER 1
6878 _ACEOF
6879
6880 fi
6881
6882
6883
6884
6885 LBL_LIBS="$LIBS"
6886 pfopen=/usr/examples/packetfilter/pfopen.c
6887 if test -f $pfopen ; then
6888
6889 for ac_func in pfopen
6890 do
6891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6905 #define $ac_func innocuous_$ac_func
6906
6907 /* System header to define __stub macros and hopefully few prototypes,
6908 which can conflict with char $ac_func (); below.
6909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910 <limits.h> exists even on freestanding compilers. */
6911
6912 #ifdef __STDC__
6913 # include <limits.h>
6914 #else
6915 # include <assert.h>
6916 #endif
6917
6918 #undef $ac_func
6919
6920 /* Override any GCC internal prototype to avoid an error.
6921 Use char because int might match the return type of a GCC
6922 builtin and then its argument prototype would still apply. */
6923 #ifdef __cplusplus
6924 extern "C"
6925 #endif
6926 char $ac_func ();
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined __stub_$ac_func || defined __stub___$ac_func
6931 choke me
6932 #endif
6933
6934 int
6935 main ()
6936 {
6937 return $ac_func ();
6938 ;
6939 return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (ac_try="$ac_link"
6944 case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947 esac
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_link") 2>conftest.er1
6950 ac_status=$?
6951 grep -v '^ *+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && {
6956 test -z "$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6958 } && test -s conftest$ac_exeext &&
6959 $as_test_x conftest$ac_exeext; then
6960 eval "$as_ac_var=yes"
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 eval "$as_ac_var=no"
6966 fi
6967
6968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6969 conftest$ac_exeext conftest.$ac_ext
6970 fi
6971 ac_res=`eval echo '${'$as_ac_var'}'`
6972 { echo "$as_me:$LINENO: result: $ac_res" >&5
6973 echo "${ECHO_T}$ac_res" >&6; }
6974 if test `eval echo '${'$as_ac_var'}'` = yes; then
6975 cat >>confdefs.h <<_ACEOF
6976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6977 _ACEOF
6978
6979 fi
6980 done
6981
6982 if test $ac_cv_func_pfopen = "no" ; then
6983 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
6984 echo "${ECHO_T}Using $pfopen" >&6; }
6985 LIBS="$LIBS $pfopen"
6986 fi
6987 fi
6988 { echo "$as_me:$LINENO: checking for local pcap library" >&5
6989 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
6990 libpcap=FAIL
6991 lastdir=FAIL
6992 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
6993 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
6994 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
6995 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
6996 sed -e 's/-PRE-GIT$//' `
6997 if test $lastdir = $basedir ; then
6998 continue;
6999 fi
7000 lastdir=$dir
7001 if test -r $dir/libpcap.a ; then
7002 libpcap=$dir/libpcap.a
7003 d=$dir
7004 fi
7005 done
7006 if test $libpcap = FAIL ; then
7007 { echo "$as_me:$LINENO: result: not found" >&5
7008 echo "${ECHO_T}not found" >&6; }
7009
7010 #
7011 # Look for pcap-config.
7012 #
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7018 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021 case $PCAP_CONFIG in
7022 [\\/]* | ?:[\\/]*)
7023 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7024 ;;
7025 *)
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 ;;
7042 esac
7043 fi
7044 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7045 if test -n "$PCAP_CONFIG"; then
7046 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7047 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7048 else
7049 { echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6; }
7051 fi
7052
7053
7054 fi
7055 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7056 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7057 # Extract the first word of "pcap-config", so it can be a program name with args.
7058 set dummy pcap-config; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 case $ac_pt_PCAP_CONFIG in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7067 ;;
7068 *)
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 ;;
7085 esac
7086 fi
7087 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7088 if test -n "$ac_pt_PCAP_CONFIG"; then
7089 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7090 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7091 else
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096 if test "x$ac_pt_PCAP_CONFIG" = x; then
7097 PCAP_CONFIG=""
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet. If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&5
7104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7110 fi
7111 else
7112 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7113 fi
7114
7115 if test -n "$PCAP_CONFIG" ; then
7116 #
7117 # Found - use it to get the include flags for
7118 # libpcap and the flags to link with libpcap.
7119 #
7120 # Please read section 11.6 "Shell Substitutions"
7121 # in the autoconf manual before doing anything
7122 # to this that involves quoting. Especially note
7123 # the statement "There is just no portable way to use
7124 # double-quoted strings inside double-quoted back-quoted
7125 # expressions (pfew!)."
7126 #
7127 cflags=`"$PCAP_CONFIG" --cflags`
7128 V_INCLS="$cflags $V_INCLS"
7129 libpcap=`"$PCAP_CONFIG" --libs`
7130 else
7131 #
7132 # Not found; look for pcap.
7133 #
7134 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7135 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7136 if test "${ac_cv_lib_pcap_main+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 ac_check_lib_save_LIBS=$LIBS
7140 LIBS="-lpcap $LIBS"
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147
7148
7149 int
7150 main ()
7151 {
7152 return main ();
7153 ;
7154 return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (ac_try="$ac_link"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164 (eval "$ac_link") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest$ac_exeext &&
7174 $as_test_x conftest$ac_exeext; then
7175 ac_cv_lib_pcap_main=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ac_cv_lib_pcap_main=no
7181 fi
7182
7183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7184 conftest$ac_exeext conftest.$ac_ext
7185 LIBS=$ac_check_lib_save_LIBS
7186 fi
7187 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7188 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7189 if test $ac_cv_lib_pcap_main = yes; then
7190 libpcap="-lpcap"
7191 fi
7192
7193 if test $libpcap = FAIL ; then
7194 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7195 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7196 { (exit 1); exit 1; }; }
7197 fi
7198 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7199 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7200 if test \( ! -r /usr/local/include/pcap.h \) -a \
7201 \( ! -r /usr/include/pcap.h \); then
7202 if test -r /usr/local/include/pcap/pcap.h; then
7203 d="/usr/local/include/pcap"
7204 elif test -r /usr/include/pcap/pcap.h; then
7205 d="/usr/include/pcap"
7206 fi
7207 fi
7208 if test -z "$d" ; then
7209 { echo "$as_me:$LINENO: result: not found" >&5
7210 echo "${ECHO_T}not found" >&6; }
7211 else
7212 V_INCLS="-I$d $V_INCLS"
7213 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7214 echo "${ECHO_T}found -- -I$d added" >&6; }
7215 fi
7216 fi
7217 else
7218 V_PCAPDEP=$libpcap
7219 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7220 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7221 if test -r $d/pcap.h; then
7222 V_INCLS="-I$d $V_INCLS"
7223 elif test -r $places/pcap.h; then
7224 V_INCLS="-I$places $V_INCLS"
7225 else
7226 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7227 echo "$as_me: error: cannot find pcap.h" >&2;}
7228 { (exit see INSTALL); exit see INSTALL; }; }
7229 fi
7230 { echo "$as_me:$LINENO: result: $libpcap" >&5
7231 echo "${ECHO_T}$libpcap" >&6; }
7232 # Extract the first word of "pcap-config", so it can be a program name with args.
7233 set dummy pcap-config; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 case $PCAP_CONFIG in
7240 [\\/]* | ?:[\\/]*)
7241 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7242 ;;
7243 *)
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $d
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 ;;
7260 esac
7261 fi
7262 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7263 if test -n "$PCAP_CONFIG"; then
7264 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7265 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7266 else
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7269 fi
7270
7271
7272 if test -n "$PCAP_CONFIG"; then
7273 #
7274 # The libpcap directory has a pcap-config script.
7275 # Use it to get any additioal libraries needed
7276 # to link with the libpcap archive library in
7277 # that directory.
7278 #
7279 # Please read section 11.6 "Shell Substitutions"
7280 # in the autoconf manual before doing anything
7281 # to this that involves quoting. Especially note
7282 # the statement "There is just no portable way to use
7283 # double-quoted strings inside double-quoted back-quoted
7284 # expressions (pfew!)."
7285 #
7286 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7287 libpcap="$libpcap $additional_libs"
7288 fi
7289 fi
7290 LIBS="$libpcap $LIBS"
7291 if ! test -n "$PCAP_CONFIG" ; then
7292 #
7293 # We don't have pcap-config; find out any additional link flags
7294 # we need. (If we have pcap-config, we assume it tells us what
7295 # we need.)
7296 #
7297 case "$host_os" in
7298
7299 aix*)
7300 #
7301 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7302 # present, as we use the STREAMS routines.
7303 #
7304 # (XXX - true only if we're linking with a static libpcap?)
7305 #
7306 pseexe="/lib/pse.exp"
7307 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7308 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7309 if test -f $pseexe ; then
7310 { echo "$as_me:$LINENO: result: yes" >&5
7311 echo "${ECHO_T}yes" >&6; }
7312 LIBS="$LIBS -I:$pseexe"
7313 fi
7314
7315 #
7316 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7317 # we use them to load the BPF module.
7318 #
7319 # (XXX - true only if we're linking with a static libpcap?)
7320 #
7321 LIBS="$LIBS -lodm -lcfg"
7322 ;;
7323 esac
7324 fi
7325
7326 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7327 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7328 if test "${ac_cv_func_pcap_loop+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7339 #define pcap_loop innocuous_pcap_loop
7340
7341 /* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char pcap_loop (); below.
7343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7344 <limits.h> exists even on freestanding compilers. */
7345
7346 #ifdef __STDC__
7347 # include <limits.h>
7348 #else
7349 # include <assert.h>
7350 #endif
7351
7352 #undef pcap_loop
7353
7354 /* Override any GCC internal prototype to avoid an error.
7355 Use char because int might match the return type of a GCC
7356 builtin and then its argument prototype would still apply. */
7357 #ifdef __cplusplus
7358 extern "C"
7359 #endif
7360 char pcap_loop ();
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7365 choke me
7366 #endif
7367
7368 int
7369 main ()
7370 {
7371 return pcap_loop ();
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 rm -f conftest.$ac_objext conftest$ac_exeext
7377 if { (ac_try="$ac_link"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_link") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest$ac_exeext &&
7393 $as_test_x conftest$ac_exeext; then
7394 ac_cv_func_pcap_loop=yes
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 ac_cv_func_pcap_loop=no
7400 fi
7401
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7403 conftest$ac_exeext conftest.$ac_ext
7404 fi
7405 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7406 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7407 if test $ac_cv_func_pcap_loop = yes; then
7408 :
7409 else
7410
7411 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7412 config.log file in your report. If you have downloaded libpcap from
7413 tcpdump.org, and built it yourself, please also include the config.log
7414 file from the libpcap source directory, the Makefile from the libpcap
7415 source directory, and the output of the make process for libpcap, as
7416 this could be a problem with the libpcap that was built, and we will
7417 not be able to determine why this is happening, and thus will not be
7418 able to fix it, without that information, as we have not been able to
7419 reproduce this problem ourselves." >&5
7420 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7421 config.log file in your report. If you have downloaded libpcap from
7422 tcpdump.org, and built it yourself, please also include the config.log
7423 file from the libpcap source directory, the Makefile from the libpcap
7424 source directory, and the output of the make process for libpcap, as
7425 this could be a problem with the libpcap that was built, and we will
7426 not be able to determine why this is happening, and thus will not be
7427 able to fix it, without that information, as we have not been able to
7428 reproduce this problem ourselves." >&2;}
7429 { (exit 1); exit 1; }; }
7430
7431 fi
7432
7433
7434 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7435 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7436 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7447 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7448
7449 /* System header to define __stub macros and hopefully few prototypes,
7450 which can conflict with char pcap_list_datalinks (); below.
7451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7452 <limits.h> exists even on freestanding compilers. */
7453
7454 #ifdef __STDC__
7455 # include <limits.h>
7456 #else
7457 # include <assert.h>
7458 #endif
7459
7460 #undef pcap_list_datalinks
7461
7462 /* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7465 #ifdef __cplusplus
7466 extern "C"
7467 #endif
7468 char pcap_list_datalinks ();
7469 /* The GNU C library defines this for functions which it implements
7470 to always fail with ENOSYS. Some functions are actually named
7471 something starting with __ and the normal name is an alias. */
7472 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7473 choke me
7474 #endif
7475
7476 int
7477 main ()
7478 {
7479 return pcap_list_datalinks ();
7480 ;
7481 return 0;
7482 }
7483 _ACEOF
7484 rm -f conftest.$ac_objext conftest$ac_exeext
7485 if { (ac_try="$ac_link"
7486 case "(($ac_try" in
7487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7489 esac
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491 (eval "$ac_link") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest$ac_exeext &&
7501 $as_test_x conftest$ac_exeext; then
7502 ac_cv_func_pcap_list_datalinks=yes
7503 else
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507 ac_cv_func_pcap_list_datalinks=no
7508 fi
7509
7510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7511 conftest$ac_exeext conftest.$ac_ext
7512 fi
7513 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7514 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7515 if test $ac_cv_func_pcap_list_datalinks = yes; then
7516
7517 cat >>confdefs.h <<\_ACEOF
7518 #define HAVE_PCAP_LIST_DATALINKS 1
7519 _ACEOF
7520
7521 else
7522
7523 case " $LIBOBJS " in
7524 *" datalinks.$ac_objext "* ) ;;
7525 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7526 ;;
7527 esac
7528
7529
7530 fi
7531
7532 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7533 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7534 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7545 #define pcap_set_datalink innocuous_pcap_set_datalink
7546
7547 /* System header to define __stub macros and hopefully few prototypes,
7548 which can conflict with char pcap_set_datalink (); below.
7549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7550 <limits.h> exists even on freestanding compilers. */
7551
7552 #ifdef __STDC__
7553 # include <limits.h>
7554 #else
7555 # include <assert.h>
7556 #endif
7557
7558 #undef pcap_set_datalink
7559
7560 /* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7563 #ifdef __cplusplus
7564 extern "C"
7565 #endif
7566 char pcap_set_datalink ();
7567 /* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7571 choke me
7572 #endif
7573
7574 int
7575 main ()
7576 {
7577 return pcap_set_datalink ();
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7584 case "(($ac_try" in
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7587 esac
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_link") 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest$ac_exeext &&
7599 $as_test_x conftest$ac_exeext; then
7600 ac_cv_func_pcap_set_datalink=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_cv_func_pcap_set_datalink=no
7606 fi
7607
7608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7609 conftest$ac_exeext conftest.$ac_ext
7610 fi
7611 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7612 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7613 if test $ac_cv_func_pcap_set_datalink = yes; then
7614
7615 cat >>confdefs.h <<\_ACEOF
7616 #define HAVE_PCAP_SET_DATALINK 1
7617 _ACEOF
7618
7619 fi
7620
7621 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7622 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7623 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626 cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h. */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7634 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7635
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char pcap_datalink_name_to_val (); below.
7638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639 <limits.h> exists even on freestanding compilers. */
7640
7641 #ifdef __STDC__
7642 # include <limits.h>
7643 #else
7644 # include <assert.h>
7645 #endif
7646
7647 #undef pcap_datalink_name_to_val
7648
7649 /* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 char pcap_datalink_name_to_val ();
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7660 choke me
7661 #endif
7662
7663 int
7664 main ()
7665 {
7666 return pcap_datalink_name_to_val ();
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext conftest$ac_exeext
7672 if { (ac_try="$ac_link"
7673 case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676 esac
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_link") 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest$ac_exeext &&
7688 $as_test_x conftest$ac_exeext; then
7689 ac_cv_func_pcap_datalink_name_to_val=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 ac_cv_func_pcap_datalink_name_to_val=no
7695 fi
7696
7697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7698 conftest$ac_exeext conftest.$ac_ext
7699 fi
7700 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7701 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7702 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7703
7704
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7707 _ACEOF
7708
7709 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7710 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7711 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h. */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7720 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7722 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7723
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char pcap_datalink_val_to_description (); below.
7726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727 <limits.h> exists even on freestanding compilers. */
7728
7729 #ifdef __STDC__
7730 # include <limits.h>
7731 #else
7732 # include <assert.h>
7733 #endif
7734
7735 #undef pcap_datalink_val_to_description
7736
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7740 #ifdef __cplusplus
7741 extern "C"
7742 #endif
7743 char pcap_datalink_val_to_description ();
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7748 choke me
7749 #endif
7750
7751 int
7752 main ()
7753 {
7754 return pcap_datalink_val_to_description ();
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (ac_try="$ac_link"
7761 case "(($ac_try" in
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7764 esac
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_link") 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest$ac_exeext &&
7776 $as_test_x conftest$ac_exeext; then
7777 ac_cv_func_pcap_datalink_val_to_description=yes
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 ac_cv_func_pcap_datalink_val_to_description=no
7783 fi
7784
7785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7786 conftest$ac_exeext conftest.$ac_ext
7787 fi
7788 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7789 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7790 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7791
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7794 _ACEOF
7795
7796 else
7797
7798 case " $LIBOBJS " in
7799 *" dlnames.$ac_objext "* ) ;;
7800 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7801 ;;
7802 esac
7803
7804
7805 fi
7806
7807
7808 else
7809
7810 case " $LIBOBJS " in
7811 *" dlnames.$ac_objext "* ) ;;
7812 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7813 ;;
7814 esac
7815
7816
7817 fi
7818
7819
7820
7821 for ac_func in pcap_breakloop
7822 do
7823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7837 #define $ac_func innocuous_$ac_func
7838
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func (); below.
7841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842 <limits.h> exists even on freestanding compilers. */
7843
7844 #ifdef __STDC__
7845 # include <limits.h>
7846 #else
7847 # include <assert.h>
7848 #endif
7849
7850 #undef $ac_func
7851
7852 /* Override any GCC internal prototype to avoid an error.
7853 Use char because int might match the return type of a GCC
7854 builtin and then its argument prototype would still apply. */
7855 #ifdef __cplusplus
7856 extern "C"
7857 #endif
7858 char $ac_func ();
7859 /* The GNU C library defines this for functions which it implements
7860 to always fail with ENOSYS. Some functions are actually named
7861 something starting with __ and the normal name is an alias. */
7862 #if defined __stub_$ac_func || defined __stub___$ac_func
7863 choke me
7864 #endif
7865
7866 int
7867 main ()
7868 {
7869 return $ac_func ();
7870 ;
7871 return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (ac_try="$ac_link"
7876 case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_link") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest$ac_exeext &&
7891 $as_test_x conftest$ac_exeext; then
7892 eval "$as_ac_var=yes"
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 eval "$as_ac_var=no"
7898 fi
7899
7900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7901 conftest$ac_exeext conftest.$ac_ext
7902 fi
7903 ac_res=`eval echo '${'$as_ac_var'}'`
7904 { echo "$as_me:$LINENO: result: $ac_res" >&5
7905 echo "${ECHO_T}$ac_res" >&6; }
7906 if test `eval echo '${'$as_ac_var'}'` = yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7909 _ACEOF
7910
7911 fi
7912 done
7913
7914
7915 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
7916 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
7917 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
7927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7928 #define pcap_dump_ftell innocuous_pcap_dump_ftell
7929
7930 /* System header to define __stub macros and hopefully few prototypes,
7931 which can conflict with char pcap_dump_ftell (); below.
7932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7933 <limits.h> exists even on freestanding compilers. */
7934
7935 #ifdef __STDC__
7936 # include <limits.h>
7937 #else
7938 # include <assert.h>
7939 #endif
7940
7941 #undef pcap_dump_ftell
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 pcap_dump_ftell ();
7950 /* The GNU C library defines this for functions which it implements
7951 to always fail with ENOSYS. Some functions are actually named
7952 something starting with __ and the normal name is an alias. */
7953 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
7954 choke me
7955 #endif
7956
7957 int
7958 main ()
7959 {
7960 return pcap_dump_ftell ();
7961 ;
7962 return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7967 case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_link") 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest$ac_exeext &&
7982 $as_test_x conftest$ac_exeext; then
7983 ac_cv_func_pcap_dump_ftell=yes
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 ac_cv_func_pcap_dump_ftell=no
7989 fi
7990
7991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992 conftest$ac_exeext conftest.$ac_ext
7993 fi
7994 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
7995 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
7996 if test $ac_cv_func_pcap_dump_ftell = yes; then
7997
7998 cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_PCAP_DUMP_FTELL 1
8000 _ACEOF
8001
8002 else
8003
8004 case " $LIBOBJS " in
8005 *" pcap_dump_ftell.$ac_objext "* ) ;;
8006 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8007 ;;
8008 esac
8009
8010
8011 fi
8012
8013
8014
8015 #
8016 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8017 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8018 #
8019 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8020 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8021 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8022 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8023 # it does not ship with a libc symbol "inet_ntop()", it ships with
8024 # "_inet_ntop()", and has a #define macro in one of the system headers
8025 # to rename it.
8026 #
8027 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8028 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 #include <sys/types.h>
8036 #include <sys/socket.h>
8037 #include <netinet/in.h>
8038 #include <arpa/inet.h>
8039 int
8040 main ()
8041 {
8042 char src[4], dst[128];
8043 inet_ntop(AF_INET, src, dst, sizeof(dst));
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext conftest$ac_exeext
8049 if { (ac_try="$ac_link"
8050 case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest$ac_exeext &&
8065 $as_test_x conftest$ac_exeext; then
8066 { echo "$as_me:$LINENO: result: yes" >&5
8067 echo "${ECHO_T}yes" >&6; }
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 { echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6; }
8074 case " $LIBOBJS " in
8075 *" inet_ntop.$ac_objext "* ) ;;
8076 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8077 ;;
8078 esac
8079
8080 fi
8081
8082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8083 conftest$ac_exeext conftest.$ac_ext
8084 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8085 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8086 cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h. */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 #include <sys/types.h>
8093 #include <sys/socket.h>
8094 #include <netinet/in.h>
8095 #include <arpa/inet.h>
8096 int
8097 main ()
8098 {
8099 char src[128], dst[4];
8100 inet_pton(AF_INET, src, dst);
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (ac_try="$ac_link"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_link") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest$ac_exeext &&
8122 $as_test_x conftest$ac_exeext; then
8123 { echo "$as_me:$LINENO: result: yes" >&5
8124 echo "${ECHO_T}yes" >&6; }
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8131 case " $LIBOBJS " in
8132 *" inet_pton.$ac_objext "* ) ;;
8133 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8134 ;;
8135 esac
8136
8137 fi
8138
8139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8140 conftest$ac_exeext conftest.$ac_ext
8141 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8142 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #include <sys/types.h>
8150 #include <netinet/in.h>
8151 #include <arpa/inet.h>
8152 int
8153 main ()
8154 {
8155 char src[128];
8156 struct in_addr dst;
8157 inet_aton(src, &dst);
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_link") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest$ac_exeext &&
8179 $as_test_x conftest$ac_exeext; then
8180 { echo "$as_me:$LINENO: result: yes" >&5
8181 echo "${ECHO_T}yes" >&6; }
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 { echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6; }
8188 case " $LIBOBJS " in
8189 *" inet_aton.$ac_objext "* ) ;;
8190 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8191 ;;
8192 esac
8193
8194 fi
8195
8196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8197 conftest$ac_exeext conftest.$ac_ext
8198
8199 #
8200 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8201 #
8202 # You are in a twisty little maze of UN*Xes, all different.
8203 # Some might not have ether_ntohost().
8204 # Some might have it, but not declare it in any header file.
8205 # Some might have it, but declare it in <netinet/if_ether.h>.
8206 # Some might have it, but declare it in <netinet/ether.h>
8207 # (And some might have it but document it as something declared in
8208 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8209 #
8210 # Before you is a C compiler.
8211 #
8212
8213 for ac_func in ether_ntohost
8214 do
8215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8229 #define $ac_func innocuous_$ac_func
8230
8231 /* System header to define __stub macros and hopefully few prototypes,
8232 which can conflict with char $ac_func (); below.
8233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8234 <limits.h> exists even on freestanding compilers. */
8235
8236 #ifdef __STDC__
8237 # include <limits.h>
8238 #else
8239 # include <assert.h>
8240 #endif
8241
8242 #undef $ac_func
8243
8244 /* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8247 #ifdef __cplusplus
8248 extern "C"
8249 #endif
8250 char $ac_func ();
8251 /* The GNU C library defines this for functions which it implements
8252 to always fail with ENOSYS. Some functions are actually named
8253 something starting with __ and the normal name is an alias. */
8254 #if defined __stub_$ac_func || defined __stub___$ac_func
8255 choke me
8256 #endif
8257
8258 int
8259 main ()
8260 {
8261 return $ac_func ();
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (ac_try="$ac_link"
8268 case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_link") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest$ac_exeext &&
8283 $as_test_x conftest$ac_exeext; then
8284 eval "$as_ac_var=yes"
8285 else
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 eval "$as_ac_var=no"
8290 fi
8291
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8293 conftest$ac_exeext conftest.$ac_ext
8294 fi
8295 ac_res=`eval echo '${'$as_ac_var'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 if test `eval echo '${'$as_ac_var'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301 _ACEOF
8302
8303 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8304 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8305 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308
8309 if test "$cross_compiling" = yes; then
8310 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8311 else
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318
8319 #include <netdb.h>
8320 #include <sys/types.h>
8321 #include <sys/param.h>
8322 #include <sys/socket.h>
8323
8324 int
8325 main(int argc, char **argv)
8326 {
8327 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8328 char name[MAXHOSTNAMELEN];
8329
8330 ether_ntohost(name, (struct ether_addr *)ea);
8331 exit(0);
8332 }
8333
8334 _ACEOF
8335 rm -f conftest$ac_exeext
8336 if { (ac_try="$ac_link"
8337 case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340 esac
8341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_link") 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_buggy_ether_ntohost=no
8356 else
8357 echo "$as_me: program exited with status $ac_status" >&5
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 ( exit $ac_status )
8362 ac_cv_buggy_ether_ntohost=yes
8363 fi
8364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8365 fi
8366
8367
8368 fi
8369 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8370 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8371 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8372
8373 cat >>confdefs.h <<\_ACEOF
8374 #define USE_ETHER_NTOHOST 1
8375 _ACEOF
8376
8377 fi
8378
8379 fi
8380 done
8381
8382 if test "$ac_cv_func_ether_ntohost" = yes -a \
8383 "$ac_cv_buggy_ether_ntohost" = "no"; then
8384 #
8385 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8386 #
8387 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8388 #
8389 # Yes. Does it declare ether_ntohost()?
8390 #
8391 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8392 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8393 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402
8403 #include <sys/types.h>
8404 #include <sys/socket.h>
8405 #include <netinet/in.h>
8406 #include <arpa/inet.h>
8407 struct mbuf;
8408 struct rtentry;
8409 #include <net/if.h>
8410 #include <netinet/if_ether.h>
8411
8412
8413 int
8414 main ()
8415 {
8416 #ifndef ether_ntohost
8417 (void) ether_ntohost;
8418 #endif
8419
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8426 case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.$ac_objext; then
8441 ac_cv_have_decl_ether_ntohost=yes
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 ac_cv_have_decl_ether_ntohost=no
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8452 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8453 if test $ac_cv_have_decl_ether_ntohost = yes; then
8454
8455
8456 cat >>confdefs.h <<\_ACEOF
8457 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8458 _ACEOF
8459
8460
8461 fi
8462
8463 fi
8464 #
8465 # Did that succeed?
8466 #
8467 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8468 #
8469 # No, how about <netinet/ether.h>, as on Linux?
8470 #
8471
8472 for ac_header in netinet/ether.h
8473 do
8474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 fi
8481 ac_res=`eval echo '${'$as_ac_Header'}'`
8482 { echo "$as_me:$LINENO: result: $ac_res" >&5
8483 echo "${ECHO_T}$ac_res" >&6; }
8484 else
8485 # Is the header compilable?
8486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 $ac_includes_default
8495 #include <$ac_header>
8496 _ACEOF
8497 rm -f conftest.$ac_objext
8498 if { (ac_try="$ac_compile"
8499 case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502 esac
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_compile") 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && {
8511 test -z "$ac_c_werror_flag" ||
8512 test ! -s conftest.err
8513 } && test -s conftest.$ac_objext; then
8514 ac_header_compiler=yes
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 ac_header_compiler=no
8520 fi
8521
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524 echo "${ECHO_T}$ac_header_compiler" >&6; }
8525
8526 # Is the header present?
8527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 #include <$ac_header>
8536 _ACEOF
8537 if { (ac_try="$ac_cpp conftest.$ac_ext"
8538 case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } >/dev/null && {
8550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8552 }; then
8553 ac_header_preproc=yes
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558 ac_header_preproc=no
8559 fi
8560
8561 rm -f conftest.err conftest.$ac_ext
8562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563 echo "${ECHO_T}$ac_header_preproc" >&6; }
8564
8565 # So? What about this header?
8566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8567 yes:no: )
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8572 ac_header_preproc=yes
8573 ;;
8574 no:yes:* )
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8587
8588 ;;
8589 esac
8590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595 eval "$as_ac_Header=\$ac_header_preproc"
8596 fi
8597 ac_res=`eval echo '${'$as_ac_Header'}'`
8598 { echo "$as_me:$LINENO: result: $ac_res" >&5
8599 echo "${ECHO_T}$ac_res" >&6; }
8600
8601 fi
8602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603 cat >>confdefs.h <<_ACEOF
8604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605 _ACEOF
8606
8607 fi
8608
8609 done
8610
8611 if test "$ac_cv_header_netinet_ether_h" = yes; then
8612 #
8613 # We have it - does it declare ether_ntohost()?
8614 # Unset ac_cv_have_decl_ether_ntohost so we don't
8615 # treat the previous failure as a cached value and
8616 # suppress the next test.
8617 #
8618 unset ac_cv_have_decl_ether_ntohost
8619 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8620 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8621 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630
8631 #include <netinet/ether.h>
8632
8633
8634 int
8635 main ()
8636 {
8637 #ifndef ether_ntohost
8638 (void) ether_ntohost;
8639 #endif
8640
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && {
8659 test -z "$ac_c_werror_flag" ||
8660 test ! -s conftest.err
8661 } && test -s conftest.$ac_objext; then
8662 ac_cv_have_decl_ether_ntohost=yes
8663 else
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_cv_have_decl_ether_ntohost=no
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 fi
8672 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8673 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8674 if test $ac_cv_have_decl_ether_ntohost = yes; then
8675
8676
8677 cat >>confdefs.h <<\_ACEOF
8678 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8679 _ACEOF
8680
8681
8682 fi
8683
8684 fi
8685 fi
8686 #
8687 # Is ether_ntohost() declared?
8688 #
8689 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8690 #
8691 # No, we'll have to declare it ourselves.
8692 # Do we have "struct ether_addr"?
8693 #
8694 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8695 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8696 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h. */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705
8706 #include <sys/types.h>
8707 #include <sys/socket.h>
8708 #include <netinet/in.h>
8709 #include <arpa/inet.h>
8710 struct mbuf;
8711 struct rtentry;
8712 #include <net/if.h>
8713 #include <netinet/if_ether.h>
8714
8715
8716 typedef struct ether_addr ac__type_new_;
8717 int
8718 main ()
8719 {
8720 if ((ac__type_new_ *) 0)
8721 return 0;
8722 if (sizeof (ac__type_new_))
8723 return 0;
8724 ;
8725 return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (ac_try="$ac_compile"
8730 case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_compile") 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && {
8742 test -z "$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 } && test -s conftest.$ac_objext; then
8745 ac_cv_type_struct_ether_addr=yes
8746 else
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_cv_type_struct_ether_addr=no
8751 fi
8752
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 fi
8755 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8756 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8757 if test $ac_cv_type_struct_ether_addr = yes; then
8758
8759 cat >>confdefs.h <<_ACEOF
8760 #define HAVE_STRUCT_ETHER_ADDR 1
8761 _ACEOF
8762
8763
8764 fi
8765
8766
8767 cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_DECL_ETHER_NTOHOST 0
8769 _ACEOF
8770
8771 else
8772
8773 cat >>confdefs.h <<\_ACEOF
8774 #define HAVE_DECL_ETHER_NTOHOST 1
8775 _ACEOF
8776
8777 fi
8778 fi
8779
8780 # libdlpi is needed for Solaris 11 and later.
8781 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8782 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8783 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 ac_check_lib_save_LIBS=$LIBS
8787 LIBS="-ldlpi -L/lib $LIBS"
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794
8795 /* Override any GCC internal prototype to avoid an error.
8796 Use char because int might match the return type of a GCC
8797 builtin and then its argument prototype would still apply. */
8798 #ifdef __cplusplus
8799 extern "C"
8800 #endif
8801 char dlpi_walk ();
8802 int
8803 main ()
8804 {
8805 return dlpi_walk ();
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (ac_try="$ac_link"
8812 case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815 esac
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_link") 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest$ac_exeext &&
8827 $as_test_x conftest$ac_exeext; then
8828 ac_cv_lib_dlpi_dlpi_walk=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 ac_cv_lib_dlpi_dlpi_walk=no
8834 fi
8835
8836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8839 fi
8840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8841 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8842 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8843 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8844 fi
8845
8846
8847
8848 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8849 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8850 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859
8860 # include <sys/types.h>
8861 # include <sys/socket.h>
8862 int
8863 main ()
8864 {
8865 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext
8871 if { (ac_try="$ac_compile"
8872 case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_compile") 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest.$ac_objext; then
8887 ac_cv_sockaddr_has_sa_len=yes
8888 else
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8891
8892 ac_cv_sockaddr_has_sa_len=no
8893 fi
8894
8895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896 fi
8897
8898 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
8899 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
8900 if test $ac_cv_sockaddr_has_sa_len = yes ; then
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_SOCKADDR_SA_LEN 1
8903 _ACEOF
8904
8905 fi
8906
8907 if test "$ac_cv_sockaddr_has_sa_len" = no; then
8908 missing_includes=yes
8909 fi
8910
8911 #
8912 # Do we have the new open API? Check for pcap_create, and assume that,
8913 # if we do, we also have pcap_activate() and the other new routines
8914 # introduced in libpcap 1.0.0.
8915 #
8916
8917 for ac_func in pcap_create
8918 do
8919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h. */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8933 #define $ac_func innocuous_$ac_func
8934
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8939
8940 #ifdef __STDC__
8941 # include <limits.h>
8942 #else
8943 # include <assert.h>
8944 #endif
8945
8946 #undef $ac_func
8947
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char $ac_func ();
8955 /* The GNU C library defines this for functions which it implements
8956 to always fail with ENOSYS. Some functions are actually named
8957 something starting with __ and the normal name is an alias. */
8958 #if defined __stub_$ac_func || defined __stub___$ac_func
8959 choke me
8960 #endif
8961
8962 int
8963 main ()
8964 {
8965 return $ac_func ();
8966 ;
8967 return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (ac_try="$ac_link"
8972 case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_link") 2>conftest.er1
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest$ac_exeext &&
8987 $as_test_x conftest$ac_exeext; then
8988 eval "$as_ac_var=yes"
8989 else
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 eval "$as_ac_var=no"
8994 fi
8995
8996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8997 conftest$ac_exeext conftest.$ac_ext
8998 fi
8999 ac_res=`eval echo '${'$as_ac_var'}'`
9000 { echo "$as_me:$LINENO: result: $ac_res" >&5
9001 echo "${ECHO_T}$ac_res" >&6; }
9002 if test `eval echo '${'$as_ac_var'}'` = yes; then
9003 cat >>confdefs.h <<_ACEOF
9004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9005 _ACEOF
9006
9007 fi
9008 done
9009
9010 if test $ac_cv_func_pcap_create = "yes" ; then
9011 #
9012 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9013 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9014 #
9015
9016 for ac_func in pcap_set_tstamp_type
9017 do
9018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9032 #define $ac_func innocuous_$ac_func
9033
9034 /* System header to define __stub macros and hopefully few prototypes,
9035 which can conflict with char $ac_func (); below.
9036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9037 <limits.h> exists even on freestanding compilers. */
9038
9039 #ifdef __STDC__
9040 # include <limits.h>
9041 #else
9042 # include <assert.h>
9043 #endif
9044
9045 #undef $ac_func
9046
9047 /* Override any GCC internal prototype to avoid an error.
9048 Use char because int might match the return type of a GCC
9049 builtin and then its argument prototype would still apply. */
9050 #ifdef __cplusplus
9051 extern "C"
9052 #endif
9053 char $ac_func ();
9054 /* The GNU C library defines this for functions which it implements
9055 to always fail with ENOSYS. Some functions are actually named
9056 something starting with __ and the normal name is an alias. */
9057 #if defined __stub_$ac_func || defined __stub___$ac_func
9058 choke me
9059 #endif
9060
9061 int
9062 main ()
9063 {
9064 return $ac_func ();
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (ac_try="$ac_link"
9071 case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074 esac
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_link") 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } && {
9083 test -z "$ac_c_werror_flag" ||
9084 test ! -s conftest.err
9085 } && test -s conftest$ac_exeext &&
9086 $as_test_x conftest$ac_exeext; then
9087 eval "$as_ac_var=yes"
9088 else
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092 eval "$as_ac_var=no"
9093 fi
9094
9095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9096 conftest$ac_exeext conftest.$ac_ext
9097 fi
9098 ac_res=`eval echo '${'$as_ac_var'}'`
9099 { echo "$as_me:$LINENO: result: $ac_res" >&5
9100 echo "${ECHO_T}$ac_res" >&6; }
9101 if test `eval echo '${'$as_ac_var'}'` = yes; then
9102 cat >>confdefs.h <<_ACEOF
9103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9104 _ACEOF
9105
9106 fi
9107 done
9108
9109 fi
9110
9111
9112
9113
9114 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9115 do
9116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9130 #define $ac_func innocuous_$ac_func
9131
9132 /* System header to define __stub macros and hopefully few prototypes,
9133 which can conflict with char $ac_func (); below.
9134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9135 <limits.h> exists even on freestanding compilers. */
9136
9137 #ifdef __STDC__
9138 # include <limits.h>
9139 #else
9140 # include <assert.h>
9141 #endif
9142
9143 #undef $ac_func
9144
9145 /* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 char $ac_func ();
9152 /* The GNU C library defines this for functions which it implements
9153 to always fail with ENOSYS. Some functions are actually named
9154 something starting with __ and the normal name is an alias. */
9155 #if defined __stub_$ac_func || defined __stub___$ac_func
9156 choke me
9157 #endif
9158
9159 int
9160 main ()
9161 {
9162 return $ac_func ();
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (ac_try="$ac_link"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_link") 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } && {
9181 test -z "$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 } && test -s conftest$ac_exeext &&
9184 $as_test_x conftest$ac_exeext; then
9185 eval "$as_ac_var=yes"
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190 eval "$as_ac_var=no"
9191 fi
9192
9193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9194 conftest$ac_exeext conftest.$ac_ext
9195 fi
9196 ac_res=`eval echo '${'$as_ac_var'}'`
9197 { echo "$as_me:$LINENO: result: $ac_res" >&5
9198 echo "${ECHO_T}$ac_res" >&6; }
9199 if test `eval echo '${'$as_ac_var'}'` = yes; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9202 _ACEOF
9203
9204 fi
9205 done
9206
9207 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9208 savedcppflags="$CPPFLAGS"
9209 CPPFLAGS="$CPPFLAGS $V_INCLS"
9210 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9211 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9212 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 cat >conftest.$ac_ext <<_ACEOF
9216 /* confdefs.h. */
9217 _ACEOF
9218 cat confdefs.h >>conftest.$ac_ext
9219 cat >>conftest.$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 #include <pcap.h>
9222
9223 typedef pcap_if_t ac__type_new_;
9224 int
9225 main ()
9226 {
9227 if ((ac__type_new_ *) 0)
9228 return 0;
9229 if (sizeof (ac__type_new_))
9230 return 0;
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 rm -f conftest.$ac_objext
9236 if { (ac_try="$ac_compile"
9237 case "(($ac_try" in
9238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239 *) ac_try_echo=$ac_try;;
9240 esac
9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242 (eval "$ac_compile") 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest.$ac_objext; then
9252 ac_cv_type_pcap_if_t=yes
9253 else
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257 ac_cv_type_pcap_if_t=no
9258 fi
9259
9260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261 fi
9262 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9263 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9264 if test $ac_cv_type_pcap_if_t = yes; then
9265
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_PCAP_IF_T 1
9268 _ACEOF
9269
9270
9271 fi
9272
9273 CPPFLAGS="$savedcppflags"
9274 fi
9275
9276 if test $ac_cv_func_pcap_lib_version = "no" ; then
9277 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9278 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h. */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285
9286 int
9287 main ()
9288 {
9289
9290 extern char pcap_version[];
9291
9292 return (int)pcap_version;
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (ac_try="$ac_link"
9300 case "(($ac_try" in
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9303 esac
9304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_link") 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest$ac_exeext &&
9315 $as_test_x conftest$ac_exeext; then
9316 ac_lbl_cv_pcap_version_defined=yes
9317 else
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9320
9321 ac_lbl_cv_pcap_version_defined=no
9322 fi
9323
9324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325 conftest$ac_exeext conftest.$ac_ext
9326 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9327 { echo "$as_me:$LINENO: result: yes" >&5
9328 echo "${ECHO_T}yes" >&6; }
9329
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_PCAP_VERSION 1
9332 _ACEOF
9333
9334 else
9335 { echo "$as_me:$LINENO: result: no" >&5
9336 echo "${ECHO_T}no" >&6; }
9337 fi
9338 fi
9339 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9340 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h. */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347
9348 int
9349 main ()
9350 {
9351
9352 extern int pcap_debug;
9353
9354 return pcap_debug;
9355
9356 ;
9357 return 0;
9358 }
9359 _ACEOF
9360 rm -f conftest.$ac_objext conftest$ac_exeext
9361 if { (ac_try="$ac_link"
9362 case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_link") 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest$ac_exeext &&
9377 $as_test_x conftest$ac_exeext; then
9378 ac_lbl_cv_pcap_debug_defined=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 ac_lbl_cv_pcap_debug_defined=no
9384 fi
9385
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9389 { echo "$as_me:$LINENO: result: yes" >&5
9390 echo "${ECHO_T}yes" >&6; }
9391
9392 cat >>confdefs.h <<\_ACEOF
9393 #define HAVE_PCAP_DEBUG 1
9394 _ACEOF
9395
9396 else
9397 { echo "$as_me:$LINENO: result: no" >&5
9398 echo "${ECHO_T}no" >&6; }
9399 #
9400 # OK, what about "yydebug"?
9401 #
9402 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9403 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h. */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410
9411 int
9412 main ()
9413 {
9414
9415 extern int yydebug;
9416
9417 return yydebug;
9418
9419 ;
9420 return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (ac_try="$ac_link"
9425 case "(($ac_try" in
9426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9428 esac
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_link") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest$ac_exeext &&
9440 $as_test_x conftest$ac_exeext; then
9441 ac_lbl_cv_yydebug_defined=yes
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 ac_lbl_cv_yydebug_defined=no
9447 fi
9448
9449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9450 conftest$ac_exeext conftest.$ac_ext
9451 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9452 { echo "$as_me:$LINENO: result: yes" >&5
9453 echo "${ECHO_T}yes" >&6; }
9454
9455 cat >>confdefs.h <<\_ACEOF
9456 #define HAVE_YYDEBUG 1
9457 _ACEOF
9458
9459 else
9460 { echo "$as_me:$LINENO: result: no" >&5
9461 echo "${ECHO_T}no" >&6; }
9462 fi
9463 fi
9464
9465 for ac_func in bpf_dump
9466 do
9467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9481 #define $ac_func innocuous_$ac_func
9482
9483 /* System header to define __stub macros and hopefully few prototypes,
9484 which can conflict with char $ac_func (); below.
9485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9486 <limits.h> exists even on freestanding compilers. */
9487
9488 #ifdef __STDC__
9489 # include <limits.h>
9490 #else
9491 # include <assert.h>
9492 #endif
9493
9494 #undef $ac_func
9495
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 char $ac_func ();
9503 /* The GNU C library defines this for functions which it implements
9504 to always fail with ENOSYS. Some functions are actually named
9505 something starting with __ and the normal name is an alias. */
9506 #if defined __stub_$ac_func || defined __stub___$ac_func
9507 choke me
9508 #endif
9509
9510 int
9511 main ()
9512 {
9513 return $ac_func ();
9514 ;
9515 return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9520 case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest$ac_exeext &&
9535 $as_test_x conftest$ac_exeext; then
9536 eval "$as_ac_var=yes"
9537 else
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 eval "$as_ac_var=no"
9542 fi
9543
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546 fi
9547 ac_res=`eval echo '${'$as_ac_var'}'`
9548 { echo "$as_me:$LINENO: result: $ac_res" >&5
9549 echo "${ECHO_T}$ac_res" >&6; }
9550 if test `eval echo '${'$as_ac_var'}'` = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9553 _ACEOF
9554
9555 else
9556 case " $LIBOBJS " in
9557 *" $ac_func.$ac_objext "* ) ;;
9558 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9559 ;;
9560 esac
9561
9562 fi
9563 done
9564
9565
9566 V_GROUP=0
9567 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9568 V_GROUP=wheel
9569 fi
9570 #
9571 # Assume V7/BSD convention for man pages (file formats in section 5,
9572 # miscellaneous info in section 7).
9573 #
9574 MAN_FILE_FORMATS=5
9575 MAN_MISC_INFO=7
9576 case "$host_os" in
9577
9578 aix*)
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define _SUN 1
9582 _ACEOF
9583
9584 ;;
9585
9586 hpux*)
9587 #
9588 # Use System V conventions for man pages.
9589 #
9590 MAN_FILE_FORMATS=4
9591 MAN_MISC_INFO=5
9592 ;;
9593
9594 irix*)
9595 V_GROUP=sys
9596
9597 #
9598 # Use System V conventions for man pages.
9599 #
9600 MAN_FILE_FORMATS=4
9601 MAN_MISC_INFO=5
9602 ;;
9603
9604 osf*)
9605 V_GROUP=system
9606
9607 #
9608 # Use System V conventions for man pages.
9609 #
9610 MAN_FILE_FORMATS=4
9611 MAN_MISC_INFO=5
9612 ;;
9613
9614 solaris*)
9615 V_GROUP=sys
9616
9617 #
9618 # Use System V conventions for man pages.
9619 #
9620 MAN_FILE_FORMATS=4
9621 MAN_MISC_INFO=5
9622 ;;
9623 esac
9624
9625 if test -f /dev/bpf0 ; then
9626 V_GROUP=bpf
9627 fi
9628
9629
9630 for ac_header in sys/bitypes.h
9631 do
9632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 fi
9639 ac_res=`eval echo '${'$as_ac_Header'}'`
9640 { echo "$as_me:$LINENO: result: $ac_res" >&5
9641 echo "${ECHO_T}$ac_res" >&6; }
9642 else
9643 # Is the header compilable?
9644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 $ac_includes_default
9653 #include <$ac_header>
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (ac_try="$ac_compile"
9657 case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_compile") 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest.$ac_objext; then
9672 ac_header_compiler=yes
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_header_compiler=no
9678 fi
9679
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9682 echo "${ECHO_T}$ac_header_compiler" >&6; }
9683
9684 # Is the header present?
9685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9687 cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h. */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <$ac_header>
9694 _ACEOF
9695 if { (ac_try="$ac_cpp conftest.$ac_ext"
9696 case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } >/dev/null && {
9708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 }; then
9711 ac_header_preproc=yes
9712 else
9713 echo "$as_me: failed program was:" >&5
9714 sed 's/^/| /' conftest.$ac_ext >&5
9715
9716 ac_header_preproc=no
9717 fi
9718
9719 rm -f conftest.err conftest.$ac_ext
9720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9721 echo "${ECHO_T}$ac_header_preproc" >&6; }
9722
9723 # So? What about this header?
9724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9725 yes:no: )
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9730 ac_header_preproc=yes
9731 ;;
9732 no:yes:* )
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9745
9746 ;;
9747 esac
9748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 eval "$as_ac_Header=\$ac_header_preproc"
9754 fi
9755 ac_res=`eval echo '${'$as_ac_Header'}'`
9756 { echo "$as_me:$LINENO: result: $ac_res" >&5
9757 echo "${ECHO_T}$ac_res" >&6; }
9758
9759 fi
9760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9761 cat >>confdefs.h <<_ACEOF
9762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9763 _ACEOF
9764
9765 fi
9766
9767 done
9768
9769
9770 { echo "$as_me:$LINENO: checking for int8_t" >&5
9771 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9772 if test "${ac_cv_type_int8_t+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 $ac_includes_default
9782 #ifdef HAVE_SYS_BITYPES_H
9783 #include <sys/bitypes.h>
9784 #endif
9785
9786 typedef int8_t ac__type_new_;
9787 int
9788 main ()
9789 {
9790 if ((ac__type_new_ *) 0)
9791 return 0;
9792 if (sizeof (ac__type_new_))
9793 return 0;
9794 ;
9795 return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext
9799 if { (ac_try="$ac_compile"
9800 case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_compile") 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } && {
9812 test -z "$ac_c_werror_flag" ||
9813 test ! -s conftest.err
9814 } && test -s conftest.$ac_objext; then
9815 ac_cv_type_int8_t=yes
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_cv_type_int8_t=no
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 fi
9825 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9826 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9827 if test $ac_cv_type_int8_t = yes; then
9828 :
9829 else
9830
9831 cat >>confdefs.h <<\_ACEOF
9832 #define int8_t signed char
9833 _ACEOF
9834
9835 fi
9836
9837 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9838 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9839 if test "${ac_cv_type_u_int8_t+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 $ac_includes_default
9849 #ifdef HAVE_SYS_BITYPES_H
9850 #include <sys/bitypes.h>
9851 #endif
9852
9853 typedef u_int8_t ac__type_new_;
9854 int
9855 main ()
9856 {
9857 if ((ac__type_new_ *) 0)
9858 return 0;
9859 if (sizeof (ac__type_new_))
9860 return 0;
9861 ;
9862 return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (ac_try="$ac_compile"
9867 case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_compile") 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } && {
9879 test -z "$ac_c_werror_flag" ||
9880 test ! -s conftest.err
9881 } && test -s conftest.$ac_objext; then
9882 ac_cv_type_u_int8_t=yes
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 ac_cv_type_u_int8_t=no
9888 fi
9889
9890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891 fi
9892 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
9893 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
9894 if test $ac_cv_type_u_int8_t = yes; then
9895 :
9896 else
9897
9898 cat >>confdefs.h <<\_ACEOF
9899 #define u_int8_t unsigned char
9900 _ACEOF
9901
9902 fi
9903
9904 { echo "$as_me:$LINENO: checking for int16_t" >&5
9905 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9906 if test "${ac_cv_type_int16_t+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h. */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 $ac_includes_default
9916 typedef int16_t ac__type_new_;
9917 int
9918 main ()
9919 {
9920 if ((ac__type_new_ *) 0)
9921 return 0;
9922 if (sizeof (ac__type_new_))
9923 return 0;
9924 ;
9925 return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext
9929 if { (ac_try="$ac_compile"
9930 case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_compile") 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest.$ac_objext; then
9945 ac_cv_type_int16_t=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9949
9950 ac_cv_type_int16_t=no
9951 fi
9952
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 fi
9955 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
9956 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
9957 if test $ac_cv_type_int16_t = yes; then
9958 :
9959 else
9960
9961 cat >>confdefs.h <<\_ACEOF
9962 #define int16_t short
9963 _ACEOF
9964
9965 $ac_includes_default
9966 #ifdef HAVE_SYS_BITYPES_H
9967 #include <sys/bitypes.h>
9968 #endif
9969 fi
9970
9971 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
9972 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
9973 if test "${ac_cv_type_u_int16_t+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 $ac_includes_default
9983 #ifdef HAVE_SYS_BITYPES_H
9984 #include <sys/bitypes.h>
9985 #endif
9986
9987 typedef u_int16_t ac__type_new_;
9988 int
9989 main ()
9990 {
9991 if ((ac__type_new_ *) 0)
9992 return 0;
9993 if (sizeof (ac__type_new_))
9994 return 0;
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext
10000 if { (ac_try="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && {
10013 test -z "$ac_c_werror_flag" ||
10014 test ! -s conftest.err
10015 } && test -s conftest.$ac_objext; then
10016 ac_cv_type_u_int16_t=yes
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_type_u_int16_t=no
10022 fi
10023
10024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 fi
10026 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10027 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10028 if test $ac_cv_type_u_int16_t = yes; then
10029 :
10030 else
10031
10032 cat >>confdefs.h <<\_ACEOF
10033 #define u_int16_t unsigned short
10034 _ACEOF
10035
10036 fi
10037
10038 { echo "$as_me:$LINENO: checking for int32_t" >&5
10039 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10040 if test "${ac_cv_type_int32_t+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 $ac_includes_default
10050 #ifdef HAVE_SYS_BITYPES_H
10051 #include <sys/bitypes.h>
10052 #endif
10053
10054 typedef int32_t ac__type_new_;
10055 int
10056 main ()
10057 {
10058 if ((ac__type_new_ *) 0)
10059 return 0;
10060 if (sizeof (ac__type_new_))
10061 return 0;
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 rm -f conftest.$ac_objext
10067 if { (ac_try="$ac_compile"
10068 case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071 esac
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_compile") 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } && {
10080 test -z "$ac_c_werror_flag" ||
10081 test ! -s conftest.err
10082 } && test -s conftest.$ac_objext; then
10083 ac_cv_type_int32_t=yes
10084 else
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_type_int32_t=no
10089 fi
10090
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 fi
10093 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10094 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10095 if test $ac_cv_type_int32_t = yes; then
10096 :
10097 else
10098
10099 cat >>confdefs.h <<\_ACEOF
10100 #define int32_t int
10101 _ACEOF
10102
10103 fi
10104
10105 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10106 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10107 if test "${ac_cv_type_u_int32_t+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 #ifdef HAVE_SYS_BITYPES_H
10118 #include <sys/bitypes.h>
10119 #endif
10120
10121 typedef u_int32_t ac__type_new_;
10122 int
10123 main ()
10124 {
10125 if ((ac__type_new_ *) 0)
10126 return 0;
10127 if (sizeof (ac__type_new_))
10128 return 0;
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext
10134 if { (ac_try="$ac_compile"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
10150 ac_cv_type_u_int32_t=yes
10151 else
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10154
10155 ac_cv_type_u_int32_t=no
10156 fi
10157
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 fi
10160 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10161 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10162 if test $ac_cv_type_u_int32_t = yes; then
10163 :
10164 else
10165
10166 cat >>confdefs.h <<\_ACEOF
10167 #define u_int32_t unsigned int
10168 _ACEOF
10169
10170 fi
10171
10172 { echo "$as_me:$LINENO: checking for int64_t" >&5
10173 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10174 if test "${ac_cv_type_int64_t+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10184 #ifdef HAVE_SYS_BITYPES_H
10185 #include <sys/bitypes.h>
10186 #endif
10187
10188 typedef int64_t ac__type_new_;
10189 int
10190 main ()
10191 {
10192 if ((ac__type_new_ *) 0)
10193 return 0;
10194 if (sizeof (ac__type_new_))
10195 return 0;
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext
10201 if { (ac_try="$ac_compile"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_compile") 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest.$ac_objext; then
10217 ac_cv_type_int64_t=yes
10218 else
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 ac_cv_type_int64_t=no
10223 fi
10224
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 fi
10227 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10228 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10229 if test $ac_cv_type_int64_t = yes; then
10230 :
10231 else
10232
10233 cat >>confdefs.h <<\_ACEOF
10234 #define int64_t long long
10235 _ACEOF
10236
10237 fi
10238
10239 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10240 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10241 if test "${ac_cv_type_u_int64_t+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 #ifdef HAVE_SYS_BITYPES_H
10252 #include <sys/bitypes.h>
10253 #endif
10254
10255 typedef u_int64_t ac__type_new_;
10256 int
10257 main ()
10258 {
10259 if ((ac__type_new_ *) 0)
10260 return 0;
10261 if (sizeof (ac__type_new_))
10262 return 0;
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext
10268 if { (ac_try="$ac_compile"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272 esac
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_compile") 2>conftest.er1
10275 ac_status=$?
10276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } && {
10281 test -z "$ac_c_werror_flag" ||
10282 test ! -s conftest.err
10283 } && test -s conftest.$ac_objext; then
10284 ac_cv_type_u_int64_t=yes
10285 else
10286 echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10288
10289 ac_cv_type_u_int64_t=no
10290 fi
10291
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 fi
10294 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10295 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10296 if test $ac_cv_type_u_int64_t = yes; then
10297 :
10298 else
10299
10300 cat >>confdefs.h <<\_ACEOF
10301 #define u_int64_t unsigned long long
10302 _ACEOF
10303
10304 fi
10305
10306
10307 #
10308 # We can't just check for <inttypes.h> - some systems have one that
10309 # doesn't define all the PRI[doxu]64 macros.
10310 #
10311
10312 for ac_header in inttypes.h
10313 do
10314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 fi
10321 ac_res=`eval echo '${'$as_ac_Header'}'`
10322 { echo "$as_me:$LINENO: result: $ac_res" >&5
10323 echo "${ECHO_T}$ac_res" >&6; }
10324 else
10325 # Is the header compilable?
10326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h. */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10334 $ac_includes_default
10335 #include <$ac_header>
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10354 ac_header_compiler=yes
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ac_header_compiler=no
10360 fi
10361
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10364 echo "${ECHO_T}$ac_header_compiler" >&6; }
10365
10366 # Is the header present?
10367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 #include <$ac_header>
10376 _ACEOF
10377 if { (ac_try="$ac_cpp conftest.$ac_ext"
10378 case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381 esac
10382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10384 ac_status=$?
10385 grep -v '^ *+' conftest.er1 >conftest.err
10386 rm -f conftest.er1
10387 cat conftest.err >&5
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); } >/dev/null && {
10390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10391 test ! -s conftest.err
10392 }; then
10393 ac_header_preproc=yes
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398 ac_header_preproc=no
10399 fi
10400
10401 rm -f conftest.err conftest.$ac_ext
10402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10403 echo "${ECHO_T}$ac_header_preproc" >&6; }
10404
10405 # So? What about this header?
10406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10407 yes:no: )
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10412 ac_header_preproc=yes
10413 ;;
10414 no:yes:* )
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10427
10428 ;;
10429 esac
10430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435 eval "$as_ac_Header=\$ac_header_preproc"
10436 fi
10437 ac_res=`eval echo '${'$as_ac_Header'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10440
10441 fi
10442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10443 cat >>confdefs.h <<_ACEOF
10444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10445 _ACEOF
10446
10447 #
10448 # OK, we have inttypes.h, but does it define those macros?
10449 #
10450 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10451 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10452 cat >conftest.$ac_ext <<_ACEOF
10453
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459
10460 #include <inttypes.h>
10461 #include <stdio.h>
10462 #include <sys/types.h>
10463 #ifdef HAVE_SYS_BITYPES_H
10464 #include <sys/bitypes.h>
10465 #endif
10466
10467 main()
10468 {
10469 printf("%" PRId64 "\n", (u_int64_t)1);
10470 printf("%" PRIo64 "\n", (u_int64_t)1);
10471 printf("%" PRIx64 "\n", (u_int64_t)1);
10472 printf("%" PRIu64 "\n", (u_int64_t)1);
10473 }
10474
10475
10476 _ACEOF
10477 rm -f conftest.$ac_objext
10478 if { (ac_try="$ac_compile"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_compile") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest.$ac_objext; then
10494
10495 { echo "$as_me:$LINENO: result: yes" >&5
10496 echo "${ECHO_T}yes" >&6; }
10497 ac_lbl_inttypes_h_defines_formats=yes
10498
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503
10504 { echo "$as_me:$LINENO: result: no" >&5
10505 echo "${ECHO_T}no" >&6; }
10506 ac_lbl_inttypes_h_defines_formats=no
10507
10508 fi
10509
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10511
10512 else
10513
10514 #
10515 # We don't have inttypes.h, so it obviously can't define those
10516 # macros.
10517 #
10518 ac_lbl_inttypes_h_defines_formats=no
10519
10520 fi
10521
10522 done
10523
10524 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10525
10526 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10527 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10528 if test "$cross_compiling" = yes; then
10529 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10530 See \`config.log' for more details." >&5
10531 echo "$as_me: error: cannot run test program while cross compiling
10532 See \`config.log' for more details." >&2;}
10533 { (exit 1); exit 1; }; }
10534 else
10535 cat >conftest.$ac_ext <<_ACEOF
10536
10537 /* confdefs.h. */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542
10543 # ifdef HAVE_INTTYPES_H
10544 #include <inttypes.h>
10545 # endif
10546 # ifdef HAVE_SYS_BITYPES_H
10547 #include <sys/bitypes.h>
10548 # endif
10549 #include <stdio.h>
10550 #include <sys/types.h>
10551
10552 main()
10553 {
10554 u_int64_t t = 1;
10555 char strbuf[16+1];
10556 sprintf(strbuf, "%016lx", t << 32);
10557 if (strcmp(strbuf, "0000000100000000") == 0)
10558 exit(0);
10559 else
10560 exit(1);
10561 }
10562
10563
10564 _ACEOF
10565 rm -f conftest$ac_exeext
10566 if { (ac_try="$ac_link"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_link") 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10576 { (case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_try") 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585
10586
10587 cat >>confdefs.h <<\_ACEOF
10588 #define PRId64 "ld"
10589 _ACEOF
10590
10591
10592 cat >>confdefs.h <<\_ACEOF
10593 #define PRIo64 "lo"
10594 _ACEOF
10595
10596
10597 cat >>confdefs.h <<\_ACEOF
10598 #define PRIx64 "lx"
10599 _ACEOF
10600
10601
10602 cat >>confdefs.h <<\_ACEOF
10603 #define PRIu64 "lu"
10604 _ACEOF
10605
10606 { echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6; }
10608
10609 else
10610 echo "$as_me: program exited with status $ac_status" >&5
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ( exit $ac_status )
10615
10616 { echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6; }
10618
10619
10620 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10621 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
10622 if test "$cross_compiling" = yes; then
10623 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10624 See \`config.log' for more details." >&5
10625 echo "$as_me: error: cannot run test program while cross compiling
10626 See \`config.log' for more details." >&2;}
10627 { (exit 1); exit 1; }; }
10628 else
10629 cat >conftest.$ac_ext <<_ACEOF
10630
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636
10637 # ifdef HAVE_INTTYPES_H
10638 #include <inttypes.h>
10639 # endif
10640 # ifdef HAVE_SYS_BITYPES_H
10641 #include <sys/bitypes.h>
10642 # endif
10643 #include <stdio.h>
10644 #include <sys/types.h>
10645
10646 main()
10647 {
10648 u_int64_t t = 1;
10649 char strbuf[16+1];
10650 sprintf(strbuf, "%016llx", t << 32);
10651 if (strcmp(strbuf, "0000000100000000") == 0)
10652 exit(0);
10653 else
10654 exit(1);
10655 }
10656
10657
10658 _ACEOF
10659 rm -f conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679
10680
10681 cat >>confdefs.h <<\_ACEOF
10682 #define PRId64 "lld"
10683 _ACEOF
10684
10685
10686 cat >>confdefs.h <<\_ACEOF
10687 #define PRIo64 "llo"
10688 _ACEOF
10689
10690
10691 cat >>confdefs.h <<\_ACEOF
10692 #define PRIx64 "llx"
10693 _ACEOF
10694
10695
10696 cat >>confdefs.h <<\_ACEOF
10697 #define PRIu64 "llu"
10698 _ACEOF
10699
10700 { echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6; }
10702
10703 else
10704 echo "$as_me: program exited with status $ac_status" >&5
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ( exit $ac_status )
10709
10710 { echo "$as_me:$LINENO: result: no" >&5
10711 echo "${ECHO_T}no" >&6; }
10712
10713
10714 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10715 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10716 if test "$cross_compiling" = yes; then
10717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10718 See \`config.log' for more details." >&5
10719 echo "$as_me: error: cannot run test program while cross compiling
10720 See \`config.log' for more details." >&2;}
10721 { (exit 1); exit 1; }; }
10722 else
10723 cat >conftest.$ac_ext <<_ACEOF
10724
10725 /* confdefs.h. */
10726 _ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730
10731 # ifdef HAVE_INTTYPES_H
10732 #include <inttypes.h>
10733 # endif
10734 # ifdef HAVE_SYS_BITYPES_H
10735 #include <sys/bitypes.h>
10736 # endif
10737 #include <stdio.h>
10738 #include <sys/types.h>
10739
10740 main()
10741 {
10742 u_int64_t t = 1;
10743 char strbuf[16+1];
10744 sprintf(strbuf, "%016Lx", t << 32);
10745 if (strcmp(strbuf, "0000000100000000") == 0)
10746 exit(0);
10747 else
10748 exit(1);
10749 }
10750
10751
10752 _ACEOF
10753 rm -f conftest$ac_exeext
10754 if { (ac_try="$ac_link"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_link") 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10764 { (case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_try") 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773
10774
10775 cat >>confdefs.h <<\_ACEOF
10776 #define PRId64 "Ld"
10777 _ACEOF
10778
10779
10780 cat >>confdefs.h <<\_ACEOF
10781 #define PRIo64 "Lo"
10782 _ACEOF
10783
10784
10785 cat >>confdefs.h <<\_ACEOF
10786 #define PRIx64 "Lx"
10787 _ACEOF
10788
10789
10790 cat >>confdefs.h <<\_ACEOF
10791 #define PRIu64 "Lu"
10792 _ACEOF
10793
10794 { echo "$as_me:$LINENO: result: yes" >&5
10795 echo "${ECHO_T}yes" >&6; }
10796
10797 else
10798 echo "$as_me: program exited with status $ac_status" >&5
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802 ( exit $ac_status )
10803
10804 { echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6; }
10806
10807
10808 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10809 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10810 if test "$cross_compiling" = yes; then
10811 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10812 See \`config.log' for more details." >&5
10813 echo "$as_me: error: cannot run test program while cross compiling
10814 See \`config.log' for more details." >&2;}
10815 { (exit 1); exit 1; }; }
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818
10819 /* confdefs.h. */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824
10825 # ifdef HAVE_INTTYPES_H
10826 #include <inttypes.h>
10827 # endif
10828 # ifdef HAVE_SYS_BITYPES_H
10829 #include <sys/bitypes.h>
10830 # endif
10831 #include <stdio.h>
10832 #include <sys/types.h>
10833
10834 main()
10835 {
10836 u_int64_t t = 1;
10837 char strbuf[16+1];
10838 sprintf(strbuf, "%016qx", t << 32);
10839 if (strcmp(strbuf, "0000000100000000") == 0)
10840 exit(0);
10841 else
10842 exit(1);
10843 }
10844
10845
10846 _ACEOF
10847 rm -f conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_link") 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10858 { (case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10861 esac
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_try") 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867
10868
10869 cat >>confdefs.h <<\_ACEOF
10870 #define PRId64 "qd"
10871 _ACEOF
10872
10873
10874 cat >>confdefs.h <<\_ACEOF
10875 #define PRIo64 "qo"
10876 _ACEOF
10877
10878
10879 cat >>confdefs.h <<\_ACEOF
10880 #define PRIx64 "qx"
10881 _ACEOF
10882
10883
10884 cat >>confdefs.h <<\_ACEOF
10885 #define PRIu64 "qu"
10886 _ACEOF
10887
10888 { echo "$as_me:$LINENO: result: yes" >&5
10889 echo "${ECHO_T}yes" >&6; }
10890
10891 else
10892 echo "$as_me: program exited with status $ac_status" >&5
10893 echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 ( exit $ac_status )
10897
10898 { echo "$as_me:$LINENO: result: no" >&5
10899 echo "${ECHO_T}no" >&6; }
10900
10901 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10902 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10903 { (exit 1); exit 1; }; }
10904
10905
10906 fi
10907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10908 fi
10909
10910
10911
10912
10913
10914 fi
10915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10916 fi
10917
10918
10919
10920
10921
10922 fi
10923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10924 fi
10925
10926
10927
10928
10929
10930 fi
10931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10932 fi
10933
10934
10935
10936 fi
10937
10938 #
10939 # Check for some headers introduced in later versions of libpcap
10940 # and used by some printers.
10941 #
10942 # Those headers use the {u_}intN_t types, so we must do this after
10943 # we check for what's needed to get them defined.
10944 #
10945 savedcppflags="$CPPFLAGS"
10946 CPPFLAGS="$CPPFLAGS $V_INCLS"
10947
10948 for ac_header in pcap/bluetooth.h
10949 do
10950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <tcpdump-stdinc.h>
10963
10964 #include <$ac_header>
10965 _ACEOF
10966 rm -f conftest.$ac_objext
10967 if { (ac_try="$ac_compile"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_compile") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest.$ac_objext; then
10983 eval "$as_ac_Header=yes"
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 eval "$as_ac_Header=no"
10989 fi
10990
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 fi
10993 ac_res=`eval echo '${'$as_ac_Header'}'`
10994 { echo "$as_me:$LINENO: result: $ac_res" >&5
10995 echo "${ECHO_T}$ac_res" >&6; }
10996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10997 cat >>confdefs.h <<_ACEOF
10998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10999 _ACEOF
11000
11001 fi
11002
11003 done
11004
11005
11006 for ac_header in pcap/usb.h
11007 do
11008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h. */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11020 #include <tcpdump-stdinc.h>
11021
11022 #include <$ac_header>
11023 _ACEOF
11024 rm -f conftest.$ac_objext
11025 if { (ac_try="$ac_compile"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_compile") 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest.$ac_objext; then
11041 eval "$as_ac_Header=yes"
11042 else
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046 eval "$as_ac_Header=no"
11047 fi
11048
11049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050 fi
11051 ac_res=`eval echo '${'$as_ac_Header'}'`
11052 { echo "$as_me:$LINENO: result: $ac_res" >&5
11053 echo "${ECHO_T}$ac_res" >&6; }
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055 cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11057 _ACEOF
11058
11059 fi
11060
11061 done
11062
11063 CPPFLAGS="$savedcppflags"
11064
11065 if test -n "$ac_tool_prefix"; then
11066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11070 if test "${ac_cv_prog_RANLIB+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073 if test -n "$RANLIB"; then
11074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11078 do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087 done
11088 done
11089 IFS=$as_save_IFS
11090
11091 fi
11092 fi
11093 RANLIB=$ac_cv_prog_RANLIB
11094 if test -n "$RANLIB"; then
11095 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11096 echo "${ECHO_T}$RANLIB" >&6; }
11097 else
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11100 fi
11101
11102
11103 fi
11104 if test -z "$ac_cv_prog_RANLIB"; then
11105 ac_ct_RANLIB=$RANLIB
11106 # Extract the first word of "ranlib", so it can be a program name with args.
11107 set dummy ranlib; ac_word=$2
11108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 if test -n "$ac_ct_RANLIB"; then
11114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 ac_cv_prog_ac_ct_RANLIB="ranlib"
11124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11126 fi
11127 done
11128 done
11129 IFS=$as_save_IFS
11130
11131 fi
11132 fi
11133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11134 if test -n "$ac_ct_RANLIB"; then
11135 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11136 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11137 else
11138 { echo "$as_me:$LINENO: result: no" >&5
11139 echo "${ECHO_T}no" >&6; }
11140 fi
11141
11142 if test "x$ac_ct_RANLIB" = x; then
11143 RANLIB=":"
11144 else
11145 case $cross_compiling:$ac_tool_warned in
11146 yes:)
11147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11148 whose name does not start with the host triplet. If you think this
11149 configuration is useful to you, please write to autoconf@gnu.org." >&5
11150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11151 whose name does not start with the host triplet. If you think this
11152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11153 ac_tool_warned=yes ;;
11154 esac
11155 RANLIB=$ac_ct_RANLIB
11156 fi
11157 else
11158 RANLIB="$ac_cv_prog_RANLIB"
11159 fi
11160
11161
11162 rm -f os-proto.h
11163 if test "${LBL_CFLAGS+set}" = set; then
11164 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11165 fi
11166 if test -f .devel ; then
11167 #
11168 # Skip all the warning option stuff on some compilers.
11169 #
11170 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
11171
11172 { echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option" >&5
11173 echo $ECHO_N "checking whether the compiler fails when given an unknown warning option... $ECHO_C" >&6; }
11174 save_CFLAGS="$CFLAGS"
11175 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182
11183 int
11184 main ()
11185 {
11186 return 0
11187 ;
11188 return 0;
11189 }
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208
11209 { echo "$as_me:$LINENO: result: no" >&5
11210 echo "${ECHO_T}no" >&6; }
11211 #
11212 # We're assuming this is clang, where
11213 # -Werror=unknown-warning-option is the appropriate
11214 # option to force the compiler to fail.
11215 #
11216 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
11217
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222
11223 { echo "$as_me:$LINENO: result: yes" >&5
11224 echo "${ECHO_T}yes" >&6; }
11225
11226 fi
11227
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 CFLAGS="$save_CFLAGS"
11230
11231
11232 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wall option" >&5
11233 echo $ECHO_N "checking whether the compiler supports the -Wall option... $ECHO_C" >&6; }
11234 save_CFLAGS="$CFLAGS"
11235 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242
11243 int
11244 main ()
11245 {
11246 return 0
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest.$ac_objext; then
11268
11269 { echo "$as_me:$LINENO: result: yes" >&5
11270 echo "${ECHO_T}yes" >&6; }
11271 CFLAGS="$save_CFLAGS"
11272 V_CCOPT="$V_CCOPT -Wall"
11273
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11277
11278
11279 { echo "$as_me:$LINENO: result: no" >&5
11280 echo "${ECHO_T}no" >&6; }
11281 CFLAGS="$save_CFLAGS"
11282
11283 fi
11284
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11286
11287
11288 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wmissing-prototypes option" >&5
11289 echo $ECHO_N "checking whether the compiler supports the -Wmissing-prototypes option... $ECHO_C" >&6; }
11290 save_CFLAGS="$CFLAGS"
11291 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298
11299 int
11300 main ()
11301 {
11302 return 0
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext
11308 if { (ac_try="$ac_compile"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_compile") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest.$ac_objext; then
11324
11325 { echo "$as_me:$LINENO: result: yes" >&5
11326 echo "${ECHO_T}yes" >&6; }
11327 CFLAGS="$save_CFLAGS"
11328 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
11329
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334
11335 { echo "$as_me:$LINENO: result: no" >&5
11336 echo "${ECHO_T}no" >&6; }
11337 CFLAGS="$save_CFLAGS"
11338
11339 fi
11340
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342
11343
11344 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wstrict-prototypes option" >&5
11345 echo $ECHO_N "checking whether the compiler supports the -Wstrict-prototypes option... $ECHO_C" >&6; }
11346 save_CFLAGS="$CFLAGS"
11347 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354
11355 int
11356 main ()
11357 {
11358 return 0
11359 ;
11360 return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (ac_try="$ac_compile"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest.$ac_objext; then
11380
11381 { echo "$as_me:$LINENO: result: yes" >&5
11382 echo "${ECHO_T}yes" >&6; }
11383 CFLAGS="$save_CFLAGS"
11384 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
11385
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390
11391 { echo "$as_me:$LINENO: result: no" >&5
11392 echo "${ECHO_T}no" >&6; }
11393 CFLAGS="$save_CFLAGS"
11394
11395 fi
11396
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398
11399
11400 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wwrite-strings option" >&5
11401 echo $ECHO_N "checking whether the compiler supports the -Wwrite-strings option... $ECHO_C" >&6; }
11402 save_CFLAGS="$CFLAGS"
11403 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h. */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410
11411 int
11412 main ()
11413 {
11414 return 0
11415 ;
11416 return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.$ac_objext; then
11436
11437 { echo "$as_me:$LINENO: result: yes" >&5
11438 echo "${ECHO_T}yes" >&6; }
11439 CFLAGS="$save_CFLAGS"
11440 V_CCOPT="$V_CCOPT -Wwrite-strings"
11441
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446
11447 { echo "$as_me:$LINENO: result: no" >&5
11448 echo "${ECHO_T}no" >&6; }
11449 CFLAGS="$save_CFLAGS"
11450
11451 fi
11452
11453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11454
11455
11456 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wpointer-arith option" >&5
11457 echo $ECHO_N "checking whether the compiler supports the -Wpointer-arith option... $ECHO_C" >&6; }
11458 save_CFLAGS="$CFLAGS"
11459 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h. */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466
11467 int
11468 main ()
11469 {
11470 return 0
11471 ;
11472 return 0;
11473 }
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.$ac_objext; then
11492
11493 { echo "$as_me:$LINENO: result: yes" >&5
11494 echo "${ECHO_T}yes" >&6; }
11495 CFLAGS="$save_CFLAGS"
11496 V_CCOPT="$V_CCOPT -Wpointer-arith"
11497
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502
11503 { echo "$as_me:$LINENO: result: no" >&5
11504 echo "${ECHO_T}no" >&6; }
11505 CFLAGS="$save_CFLAGS"
11506
11507 fi
11508
11509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11510
11511
11512 { echo "$as_me:$LINENO: checking whether the compiler supports the -W option" >&5
11513 echo $ECHO_N "checking whether the compiler supports the -W option... $ECHO_C" >&6; }
11514 save_CFLAGS="$CFLAGS"
11515 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522
11523 int
11524 main ()
11525 {
11526 return 0
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.$ac_objext; then
11548
11549 { echo "$as_me:$LINENO: result: yes" >&5
11550 echo "${ECHO_T}yes" >&6; }
11551 CFLAGS="$save_CFLAGS"
11552 V_CCOPT="$V_CCOPT -W"
11553
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558
11559 { echo "$as_me:$LINENO: result: no" >&5
11560 echo "${ECHO_T}no" >&6; }
11561 CFLAGS="$save_CFLAGS"
11562
11563 fi
11564
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566
11567 fi
11568
11569 { echo "$as_me:$LINENO: checking whether the compiler supports generating dependencies" >&5
11570 echo $ECHO_N "checking whether the compiler supports generating dependencies... $ECHO_C" >&6; }
11571 if test "$GCC" = yes ; then
11572 #
11573 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
11574 # though it's not); we assume that, in this case, the flag
11575 # would be -M.
11576 #
11577 ac_lbl_dependency_flag="-M"
11578 else
11579 #
11580 # Not GCC or a compiler deemed to be GCC; what platform is
11581 # this? (We're assuming that if the compiler isn't GCC
11582 # it's the compiler from the vendor of the OS; that won't
11583 # necessarily be true for x86 platforms, where it might be
11584 # the Intel C compiler.)
11585 #
11586 case "$host_os" in
11587
11588 irix*|osf*|darwin*)
11589 #
11590 # MIPS C for IRIX, DEC C, and clang all use -M.
11591 #
11592 ac_lbl_dependency_flag="-M"
11593 ;;
11594
11595 solaris*)
11596 #
11597 # Sun C uses -xM.
11598 #
11599 ac_lbl_dependency_flag="-xM"
11600 ;;
11601
11602 hpux*)
11603 #
11604 # HP's older C compilers don't support this.
11605 # HP's newer C compilers support this with
11606 # either +M or +Make; the older compilers
11607 # interpret +M as something completely
11608 # different, so we use +Make so we don't
11609 # think it works with the older compilers.
11610 #
11611 ac_lbl_dependency_flag="+Make"
11612 ;;
11613
11614 *)
11615 #
11616 # Not one of the above; assume no support for
11617 # generating dependencies.
11618 #
11619 ac_lbl_dependency_flag=""
11620 ;;
11621 esac
11622 fi
11623
11624 #
11625 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
11626 # complain about it?
11627 #
11628 # Note: clang doesn't seem to exit with an error status when handed
11629 # an unknown non-warning error, even if you pass it
11630 # -Werror=unknown-warning-option. However, it always supports
11631 # -M, so the fact that this test always succeeds with clang
11632 # isn't an issue.
11633 #
11634 if test ! -z "$ac_lbl_dependency_flag"; then
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 int main(void) { return 0; }
11642 _ACEOF
11643 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
11644 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
11645 { echo "$as_me:$LINENO: result: yes, with $ac_lbl_dependency_flag" >&5
11646 echo "${ECHO_T}yes, with $ac_lbl_dependency_flag" >&6; }
11647 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
11648 MKDEP='${srcdir}/mkdep'
11649 else
11650 { echo "$as_me:$LINENO: result: no" >&5
11651 echo "${ECHO_T}no" >&6; }
11652 #
11653 # We can't run mkdep, so have "make depend" do
11654 # nothing.
11655 #
11656 MKDEP=:
11657 fi
11658 rm -rf conftest*
11659 else
11660 { echo "$as_me:$LINENO: result: no" >&5
11661 echo "${ECHO_T}no" >&6; }
11662 #
11663 # We can't run mkdep, so have "make depend" do
11664 # nothing.
11665 #
11666 MKDEP=:
11667 fi
11668
11669
11670
11671 if test "$GCC" = yes ; then
11672 if test "${LBL_CFLAGS+set}" != set; then
11673 if test "$ac_cv_prog_cc_g" = yes ; then
11674 V_CCOPT="-g $V_CCOPT"
11675 fi
11676 fi
11677 else
11678 case "$host_os" in
11679
11680 irix6*)
11681 V_CCOPT="$V_CCOPT -n32"
11682 ;;
11683
11684 *)
11685 ;;
11686 esac
11687 fi
11688 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11689 name="lbl/os-$os.h"
11690 if test -f $name ; then
11691 ln -s $name os-proto.h
11692
11693 cat >>confdefs.h <<\_ACEOF
11694 #define HAVE_OS_PROTO_H 1
11695 _ACEOF
11696
11697 else
11698 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11699 echo "$as_me: WARNING: can't find $name" >&2;}
11700 fi
11701 fi
11702
11703 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11704 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11705 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h. */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714
11715 # include <sys/types.h>
11716 # include <sys/socket.h>
11717 int
11718 main ()
11719 {
11720 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11721 ;
11722 return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext
11726 if { (ac_try="$ac_compile"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_compile") 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } && {
11739 test -z "$ac_c_werror_flag" ||
11740 test ! -s conftest.err
11741 } && test -s conftest.$ac_objext; then
11742 ac_cv_lbl_sockaddr_has_sa_len=yes
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 ac_cv_lbl_sockaddr_has_sa_len=no
11748 fi
11749
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751 fi
11752
11753 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11754 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11755 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11756
11757 cat >>confdefs.h <<\_ACEOF
11758 #define HAVE_SOCKADDR_SA_LEN 1
11759 _ACEOF
11760
11761 fi
11762
11763 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11764 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11765 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768 case "$host_cpu" in
11769
11770 #
11771 # These are CPU types where:
11772 #
11773 # the CPU faults on an unaligned access, but at least some
11774 # OSes that support that CPU catch the fault and simulate
11775 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11776 # the simulation is slow, so we don't want to use it;
11777 #
11778 # the CPU, I infer (from the old
11779 #
11780 # XXX: should also check that they don't do weird things (like on arm)
11781 #
11782 # comment) doesn't fault on unaligned accesses, but doesn't
11783 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11784 #
11785 # for whatever reason, the test program doesn't work
11786 # (this has been claimed to be the case for several of those
11787 # CPUs - I don't know what the problem is; the problem
11788 # was reported as "the test program dumps core" for SuperH,
11789 # but that's what the test program is *supposed* to do -
11790 # it dumps core before it writes anything, so the test
11791 # for an empty output file should find an empty output
11792 # file and conclude that unaligned accesses don't work).
11793 #
11794 # This run-time test won't work if you're cross-compiling, so
11795 # in order to support cross-compiling for a particular CPU,
11796 # we have to wire in the list of CPU types anyway, as far as
11797 # I know, so perhaps we should just have a set of CPUs on
11798 # which we know it doesn't work, a set of CPUs on which we
11799 # know it does work, and have the script just fail on other
11800 # cpu types and update it when such a failure occurs.
11801 #
11802 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11803 ac_cv_lbl_unaligned_fail=yes
11804 ;;
11805
11806 *)
11807 cat >conftest.c <<EOF
11808 # include <sys/types.h>
11809 # include <sys/wait.h>
11810 # include <stdio.h>
11811 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11812 main() {
11813 unsigned int i;
11814 pid_t pid;
11815 int status;
11816 /* avoid "core dumped" message */
11817 pid = fork();
11818 if (pid < 0)
11819 exit(2);
11820 if (pid > 0) {
11821 /* parent */
11822 pid = waitpid(pid, &status, 0);
11823 if (pid < 0)
11824 exit(3);
11825 exit(!WIFEXITED(status));
11826 }
11827 /* child */
11828 i = *(unsigned int *)&a[1];
11829 printf("%d\n", i);
11830 exit(0);
11831 }
11832 EOF
11833 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11834 conftest.c $LIBS >/dev/null 2>&1
11835 if test ! -x conftest ; then
11836 ac_cv_lbl_unaligned_fail=yes
11837 else
11838 ./conftest >conftest.out
11839 if test ! -s conftest.out ; then
11840 ac_cv_lbl_unaligned_fail=yes
11841 else
11842 ac_cv_lbl_unaligned_fail=no
11843 fi
11844 fi
11845 rm -f -r conftest* core core.conftest
11846 ;;
11847 esac
11848 fi
11849
11850 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11851 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11852 if test $ac_cv_lbl_unaligned_fail = yes ; then
11853
11854 cat >>confdefs.h <<\_ACEOF
11855 #define LBL_ALIGN 1
11856 _ACEOF
11857
11858 fi
11859
11860
11861 { echo "$as_me:$LINENO: checking for h_errno" >&5
11862 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
11863 if test "${ac_cv_var_h_errno+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872
11873 # include <sys/types.h>
11874 # include <netdb.h>
11875 int
11876 main ()
11877 {
11878 int foo = h_errno;
11879 ;
11880 return 0;
11881 }
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (ac_try="$ac_compile"
11885 case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11888 esac
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_compile") 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest.$ac_objext; then
11900 ac_cv_var_h_errno=yes
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 ac_cv_var_h_errno=no
11906 fi
11907
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11909 fi
11910
11911 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11912 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11913 if test "$ac_cv_var_h_errno" = "yes"; then
11914
11915 cat >>confdefs.h <<\_ACEOF
11916 #define HAVE_H_ERRNO 1
11917 _ACEOF
11918
11919 fi
11920
11921
11922 # Check for OpenSSL libcrypto
11923 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto" >&5
11924 echo $ECHO_N "checking whether to use OpenSSL libcrypto... $ECHO_C" >&6; }
11925 # Specify location for both includes and libraries.
11926 want_libcrypto=ifavailable
11927
11928 # Check whether --with-crypto was given.
11929 if test "${with_crypto+set}" = set; then
11930 withval=$with_crypto;
11931 if test $withval = no
11932 then
11933 want_libcrypto=no
11934 { echo "$as_me:$LINENO: result: no" >&5
11935 echo "${ECHO_T}no" >&6; }
11936 elif test $withval = yes
11937 then
11938 want_libcrypto=yes
11939 { echo "$as_me:$LINENO: result: yes" >&5
11940 echo "${ECHO_T}yes" >&6; }
11941 fi
11942
11943 else
11944
11945 #
11946 # Use libcrypto if it's present, otherwise don't.
11947 #
11948 want_libcrypto=ifavailable
11949 { echo "$as_me:$LINENO: result: yes, if available" >&5
11950 echo "${ECHO_T}yes, if available" >&6; }
11951
11952 fi
11953
11954 if test "$want_libcrypto" != "no"; then
11955
11956 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11957 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
11958 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lcrypto $LIBS"
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h. */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char DES_cbc_encrypt ();
11977 int
11978 main ()
11979 {
11980 return DES_cbc_encrypt ();
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_link") 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest$ac_exeext &&
12002 $as_test_x conftest$ac_exeext; then
12003 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12004 else
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 ac_cv_lib_crypto_DES_cbc_encrypt=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_check_lib_save_LIBS
12014 fi
12015 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12016 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12017 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_LIBCRYPTO 1
12020 _ACEOF
12021
12022 LIBS="-lcrypto $LIBS"
12023
12024 fi
12025
12026
12027 for ac_header in openssl/evp.h
12028 do
12029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 fi
12036 ac_res=`eval echo '${'$as_ac_Header'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 else
12040 # Is the header compilable?
12041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <$ac_header>
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
12069 ac_header_compiler=yes
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 ac_header_compiler=no
12075 fi
12076
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12079 echo "${ECHO_T}$ac_header_compiler" >&6; }
12080
12081 # Is the header present?
12082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 #include <$ac_header>
12091 _ACEOF
12092 if { (ac_try="$ac_cpp conftest.$ac_ext"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } >/dev/null && {
12105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 }; then
12108 ac_header_preproc=yes
12109 else
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_header_preproc=no
12114 fi
12115
12116 rm -f conftest.err conftest.$ac_ext
12117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118 echo "${ECHO_T}$ac_header_preproc" >&6; }
12119
12120 # So? What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122 yes:no: )
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12127 ac_header_preproc=yes
12128 ;;
12129 no:yes:* )
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12142
12143 ;;
12144 esac
12145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 eval "$as_ac_Header=\$ac_header_preproc"
12151 fi
12152 ac_res=`eval echo '${'$as_ac_Header'}'`
12153 { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12155
12156 fi
12157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12160 _ACEOF
12161
12162 fi
12163
12164 done
12165
12166 fi
12167
12168 if test "$missing_includes" = "yes"; then
12169 CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
12170 V_INCLS="$V_INCLS -I$srcdir/missing"
12171 fi
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182 # Find a good install program. We prefer a C program (faster),
12183 # so one script is as good as another. But avoid the broken or
12184 # incompatible versions:
12185 # SysV /etc/install, /usr/sbin/install
12186 # SunOS /usr/etc/install
12187 # IRIX /sbin/install
12188 # AIX /bin/install
12189 # AmigaOS /C/install, which installs bootblocks on floppy discs
12190 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12191 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12192 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12193 # OS/2's system install, which has a completely different semantic
12194 # ./install, which can be erroneously created by make from ./install.sh.
12195 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12196 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12197 if test -z "$INSTALL"; then
12198 if test "${ac_cv_path_install+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 # Account for people who put trailing slashes in PATH elements.
12207 case $as_dir/ in
12208 ./ | .// | /cC/* | \
12209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12210 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12211 /usr/ucb/* ) ;;
12212 *)
12213 # OSF1 and SCO ODT 3.0 have their own names for install.
12214 # Don't use installbsd from OSF since it installs stuff as root
12215 # by default.
12216 for ac_prog in ginstall scoinst install; do
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12219 if test $ac_prog = install &&
12220 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12221 # AIX install. It has an incompatible calling convention.
12222 :
12223 elif test $ac_prog = install &&
12224 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12225 # program-specific install script used by HP pwplus--don't use.
12226 :
12227 else
12228 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12229 break 3
12230 fi
12231 fi
12232 done
12233 done
12234 ;;
12235 esac
12236 done
12237 IFS=$as_save_IFS
12238
12239
12240 fi
12241 if test "${ac_cv_path_install+set}" = set; then
12242 INSTALL=$ac_cv_path_install
12243 else
12244 # As a last resort, use the slow shell script. Don't cache a
12245 # value for INSTALL within a source directory, because that will
12246 # break other packages using the cache if that directory is
12247 # removed, or if the value is a relative name.
12248 INSTALL=$ac_install_sh
12249 fi
12250 fi
12251 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12252 echo "${ECHO_T}$INSTALL" >&6; }
12253
12254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12255 # It thinks the first close brace ends the variable substitution.
12256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12257
12258 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12259
12260 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12261
12262
12263 ac_config_headers="$ac_config_headers config.h"
12264
12265
12266 ac_config_commands="$ac_config_commands default-1"
12267
12268 ac_config_files="$ac_config_files Makefile tcpdump.1"
12269
12270 cat >confcache <<\_ACEOF
12271 # This file is a shell script that caches the results of configure
12272 # tests run on this system so they can be shared between configure
12273 # scripts and configure runs, see configure's option --config-cache.
12274 # It is not useful on other systems. If it contains results you don't
12275 # want to keep, you may remove or edit it.
12276 #
12277 # config.status only pays attention to the cache file if you give it
12278 # the --recheck option to rerun configure.
12279 #
12280 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12281 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12282 # following values.
12283
12284 _ACEOF
12285
12286 # The following way of writing the cache mishandles newlines in values,
12287 # but we know of no workaround that is simple, portable, and efficient.
12288 # So, we kill variables containing newlines.
12289 # Ultrix sh set writes to stderr and can't be redirected directly,
12290 # and sets the high bit in the cache file unless we assign to the vars.
12291 (
12292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12293 eval ac_val=\$$ac_var
12294 case $ac_val in #(
12295 *${as_nl}*)
12296 case $ac_var in #(
12297 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12298 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12299 esac
12300 case $ac_var in #(
12301 _ | IFS | as_nl) ;; #(
12302 *) $as_unset $ac_var ;;
12303 esac ;;
12304 esac
12305 done
12306
12307 (set) 2>&1 |
12308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12309 *${as_nl}ac_space=\ *)
12310 # `set' does not quote correctly, so add quotes (double-quote
12311 # substitution turns \\\\ into \\, and sed turns \\ into \).
12312 sed -n \
12313 "s/'/'\\\\''/g;
12314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12315 ;; #(
12316 *)
12317 # `set' quotes correctly as required by POSIX, so do not add quotes.
12318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12319 ;;
12320 esac |
12321 sort
12322 ) |
12323 sed '
12324 /^ac_cv_env_/b end
12325 t clear
12326 :clear
12327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12328 t end
12329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12330 :end' >>confcache
12331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12332 if test -w "$cache_file"; then
12333 test "x$cache_file" != "x/dev/null" &&
12334 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12335 echo "$as_me: updating cache $cache_file" >&6;}
12336 cat confcache >$cache_file
12337 else
12338 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12339 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12340 fi
12341 fi
12342 rm -f confcache
12343
12344 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12345 # Let make expand exec_prefix.
12346 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12347
12348 DEFS=-DHAVE_CONFIG_H
12349
12350 ac_libobjs=
12351 ac_ltlibobjs=
12352 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12353 # 1. Remove the extension, and $U if already installed.
12354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12355 ac_i=`echo "$ac_i" | sed "$ac_script"`
12356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12357 # will be set to the directory where LIBOBJS objects are built.
12358 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12359 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12360 done
12361 LIBOBJS=$ac_libobjs
12362
12363 LTLIBOBJS=$ac_ltlibobjs
12364
12365
12366
12367 : ${CONFIG_STATUS=./config.status}
12368 ac_clean_files_save=$ac_clean_files
12369 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12370 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12371 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12372 cat >$CONFIG_STATUS <<_ACEOF
12373 #! $SHELL
12374 # Generated by $as_me.
12375 # Run this file to recreate the current configuration.
12376 # Compiler output produced by configure, useful for debugging
12377 # configure, is in config.log if it exists.
12378
12379 debug=false
12380 ac_cs_recheck=false
12381 ac_cs_silent=false
12382 SHELL=\${CONFIG_SHELL-$SHELL}
12383 _ACEOF
12384
12385 cat >>$CONFIG_STATUS <<\_ACEOF
12386 ## --------------------- ##
12387 ## M4sh Initialization. ##
12388 ## --------------------- ##
12389
12390 # Be more Bourne compatible
12391 DUALCASE=1; export DUALCASE # for MKS sh
12392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12393 emulate sh
12394 NULLCMD=:
12395 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12396 # is contrary to our usage. Disable this feature.
12397 alias -g '${1+"$@"}'='"$@"'
12398 setopt NO_GLOB_SUBST
12399 else
12400 case `(set -o) 2>/dev/null` in
12401 *posix*) set -o posix ;;
12402 esac
12403
12404 fi
12405
12406
12407
12408
12409 # PATH needs CR
12410 # Avoid depending upon Character Ranges.
12411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12414 as_cr_digits='0123456789'
12415 as_cr_alnum=$as_cr_Letters$as_cr_digits
12416
12417 # The user is always right.
12418 if test "${PATH_SEPARATOR+set}" != set; then
12419 echo "#! /bin/sh" >conf$$.sh
12420 echo "exit 0" >>conf$$.sh
12421 chmod +x conf$$.sh
12422 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12423 PATH_SEPARATOR=';'
12424 else
12425 PATH_SEPARATOR=:
12426 fi
12427 rm -f conf$$.sh
12428 fi
12429
12430 # Support unset when possible.
12431 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12432 as_unset=unset
12433 else
12434 as_unset=false
12435 fi
12436
12437
12438 # IFS
12439 # We need space, tab and new line, in precisely that order. Quoting is
12440 # there to prevent editors from complaining about space-tab.
12441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12442 # splitting by setting IFS to empty value.)
12443 as_nl='
12444 '
12445 IFS=" "" $as_nl"
12446
12447 # Find who we are. Look in the path if we contain no directory separator.
12448 case $0 in
12449 *[\\/]* ) as_myself=$0 ;;
12450 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12452 do
12453 IFS=$as_save_IFS
12454 test -z "$as_dir" && as_dir=.
12455 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12456 done
12457 IFS=$as_save_IFS
12458
12459 ;;
12460 esac
12461 # We did not find ourselves, most probably we were run as `sh COMMAND'
12462 # in which case we are not to be found in the path.
12463 if test "x$as_myself" = x; then
12464 as_myself=$0
12465 fi
12466 if test ! -f "$as_myself"; then
12467 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12468 { (exit 1); exit 1; }
12469 fi
12470
12471 # Work around bugs in pre-3.0 UWIN ksh.
12472 for as_var in ENV MAIL MAILPATH
12473 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12474 done
12475 PS1='$ '
12476 PS2='> '
12477 PS4='+ '
12478
12479 # NLS nuisances.
12480 for as_var in \
12481 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12482 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12483 LC_TELEPHONE LC_TIME
12484 do
12485 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12486 eval $as_var=C; export $as_var
12487 else
12488 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12489 fi
12490 done
12491
12492 # Required to use basename.
12493 if expr a : '\(a\)' >/dev/null 2>&1 &&
12494 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12495 as_expr=expr
12496 else
12497 as_expr=false
12498 fi
12499
12500 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12501 as_basename=basename
12502 else
12503 as_basename=false
12504 fi
12505
12506
12507 # Name of the executable.
12508 as_me=`$as_basename -- "$0" ||
12509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12510 X"$0" : 'X\(//\)$' \| \
12511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12512 echo X/"$0" |
12513 sed '/^.*\/\([^/][^/]*\)\/*$/{
12514 s//\1/
12515 q
12516 }
12517 /^X\/\(\/\/\)$/{
12518 s//\1/
12519 q
12520 }
12521 /^X\/\(\/\).*/{
12522 s//\1/
12523 q
12524 }
12525 s/.*/./; q'`
12526
12527 # CDPATH.
12528 $as_unset CDPATH
12529
12530
12531
12532 as_lineno_1=$LINENO
12533 as_lineno_2=$LINENO
12534 test "x$as_lineno_1" != "x$as_lineno_2" &&
12535 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12536
12537 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12538 # uniformly replaced by the line number. The first 'sed' inserts a
12539 # line-number line after each line using $LINENO; the second 'sed'
12540 # does the real work. The second script uses 'N' to pair each
12541 # line-number line with the line containing $LINENO, and appends
12542 # trailing '-' during substitution so that $LINENO is not a special
12543 # case at line end.
12544 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12545 # scripts with optimization help from Paolo Bonzini. Blame Lee
12546 # E. McMahon (1931-1989) for sed's syntax. :-)
12547 sed -n '
12548 p
12549 /[$]LINENO/=
12550 ' <$as_myself |
12551 sed '
12552 s/[$]LINENO.*/&-/
12553 t lineno
12554 b
12555 :lineno
12556 N
12557 :loop
12558 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12559 t loop
12560 s/-\n.*//
12561 ' >$as_me.lineno &&
12562 chmod +x "$as_me.lineno" ||
12563 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12564 { (exit 1); exit 1; }; }
12565
12566 # Don't try to exec as it changes $[0], causing all sort of problems
12567 # (the dirname of $[0] is not the place where we might find the
12568 # original and so on. Autoconf is especially sensitive to this).
12569 . "./$as_me.lineno"
12570 # Exit status is that of the last command.
12571 exit
12572 }
12573
12574
12575 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12576 as_dirname=dirname
12577 else
12578 as_dirname=false
12579 fi
12580
12581 ECHO_C= ECHO_N= ECHO_T=
12582 case `echo -n x` in
12583 -n*)
12584 case `echo 'x\c'` in
12585 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12586 *) ECHO_C='\c';;
12587 esac;;
12588 *)
12589 ECHO_N='-n';;
12590 esac
12591
12592 if expr a : '\(a\)' >/dev/null 2>&1 &&
12593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12594 as_expr=expr
12595 else
12596 as_expr=false
12597 fi
12598
12599 rm -f conf$$ conf$$.exe conf$$.file
12600 if test -d conf$$.dir; then
12601 rm -f conf$$.dir/conf$$.file
12602 else
12603 rm -f conf$$.dir
12604 mkdir conf$$.dir
12605 fi
12606 echo >conf$$.file
12607 if ln -s conf$$.file conf$$ 2>/dev/null; then
12608 as_ln_s='ln -s'
12609 # ... but there are two gotchas:
12610 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12611 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12612 # In both cases, we have to default to `cp -p'.
12613 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12614 as_ln_s='cp -p'
12615 elif ln conf$$.file conf$$ 2>/dev/null; then
12616 as_ln_s=ln
12617 else
12618 as_ln_s='cp -p'
12619 fi
12620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12621 rmdir conf$$.dir 2>/dev/null
12622
12623 if mkdir -p . 2>/dev/null; then
12624 as_mkdir_p=:
12625 else
12626 test -d ./-p && rmdir ./-p
12627 as_mkdir_p=false
12628 fi
12629
12630 if test -x / >/dev/null 2>&1; then
12631 as_test_x='test -x'
12632 else
12633 if ls -dL / >/dev/null 2>&1; then
12634 as_ls_L_option=L
12635 else
12636 as_ls_L_option=
12637 fi
12638 as_test_x='
12639 eval sh -c '\''
12640 if test -d "$1"; then
12641 test -d "$1/.";
12642 else
12643 case $1 in
12644 -*)set "./$1";;
12645 esac;
12646 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12647 ???[sx]*):;;*)false;;esac;fi
12648 '\'' sh
12649 '
12650 fi
12651 as_executable_p=$as_test_x
12652
12653 # Sed expression to map a string onto a valid CPP name.
12654 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12655
12656 # Sed expression to map a string onto a valid variable name.
12657 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12658
12659
12660 exec 6>&1
12661
12662 # Save the log message, to keep $[0] and so on meaningful, and to
12663 # report actual input values of CONFIG_FILES etc. instead of their
12664 # values after options handling.
12665 ac_log="
12666 This file was extended by $as_me, which was
12667 generated by GNU Autoconf 2.61. Invocation command line was
12668
12669 CONFIG_FILES = $CONFIG_FILES
12670 CONFIG_HEADERS = $CONFIG_HEADERS
12671 CONFIG_LINKS = $CONFIG_LINKS
12672 CONFIG_COMMANDS = $CONFIG_COMMANDS
12673 $ $0 $@
12674
12675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12676 "
12677
12678 _ACEOF
12679
12680 cat >>$CONFIG_STATUS <<_ACEOF
12681 # Files that config.status was made for.
12682 config_files="$ac_config_files"
12683 config_headers="$ac_config_headers"
12684 config_commands="$ac_config_commands"
12685
12686 _ACEOF
12687
12688 cat >>$CONFIG_STATUS <<\_ACEOF
12689 ac_cs_usage="\
12690 \`$as_me' instantiates files from templates according to the
12691 current configuration.
12692
12693 Usage: $0 [OPTIONS] [FILE]...
12694
12695 -h, --help print this help, then exit
12696 -V, --version print version number and configuration settings, then exit
12697 -q, --quiet do not print progress messages
12698 -d, --debug don't remove temporary files
12699 --recheck update $as_me by reconfiguring in the same conditions
12700 --file=FILE[:TEMPLATE]
12701 instantiate the configuration file FILE
12702 --header=FILE[:TEMPLATE]
12703 instantiate the configuration header FILE
12704
12705 Configuration files:
12706 $config_files
12707
12708 Configuration headers:
12709 $config_headers
12710
12711 Configuration commands:
12712 $config_commands
12713
12714 Report bugs to <bug-autoconf@gnu.org>."
12715
12716 _ACEOF
12717 cat >>$CONFIG_STATUS <<_ACEOF
12718 ac_cs_version="\\
12719 config.status
12720 configured by $0, generated by GNU Autoconf 2.61,
12721 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12722
12723 Copyright (C) 2006 Free Software Foundation, Inc.
12724 This config.status script is free software; the Free Software Foundation
12725 gives unlimited permission to copy, distribute and modify it."
12726
12727 ac_pwd='$ac_pwd'
12728 srcdir='$srcdir'
12729 INSTALL='$INSTALL'
12730 _ACEOF
12731
12732 cat >>$CONFIG_STATUS <<\_ACEOF
12733 # If no file are specified by the user, then we need to provide default
12734 # value. By we need to know if files were specified by the user.
12735 ac_need_defaults=:
12736 while test $# != 0
12737 do
12738 case $1 in
12739 --*=*)
12740 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12741 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12742 ac_shift=:
12743 ;;
12744 *)
12745 ac_option=$1
12746 ac_optarg=$2
12747 ac_shift=shift
12748 ;;
12749 esac
12750
12751 case $ac_option in
12752 # Handling of the options.
12753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12754 ac_cs_recheck=: ;;
12755 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12756 echo "$ac_cs_version"; exit ;;
12757 --debug | --debu | --deb | --de | --d | -d )
12758 debug=: ;;
12759 --file | --fil | --fi | --f )
12760 $ac_shift
12761 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12762 ac_need_defaults=false;;
12763 --header | --heade | --head | --hea )
12764 $ac_shift
12765 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12766 ac_need_defaults=false;;
12767 --he | --h)
12768 # Conflict between --help and --header
12769 { echo "$as_me: error: ambiguous option: $1
12770 Try \`$0 --help' for more information." >&2
12771 { (exit 1); exit 1; }; };;
12772 --help | --hel | -h )
12773 echo "$ac_cs_usage"; exit ;;
12774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12775 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12776 ac_cs_silent=: ;;
12777
12778 # This is an error.
12779 -*) { echo "$as_me: error: unrecognized option: $1
12780 Try \`$0 --help' for more information." >&2
12781 { (exit 1); exit 1; }; } ;;
12782
12783 *) ac_config_targets="$ac_config_targets $1"
12784 ac_need_defaults=false ;;
12785
12786 esac
12787 shift
12788 done
12789
12790 ac_configure_extra_args=
12791
12792 if $ac_cs_silent; then
12793 exec 6>/dev/null
12794 ac_configure_extra_args="$ac_configure_extra_args --silent"
12795 fi
12796
12797 _ACEOF
12798 cat >>$CONFIG_STATUS <<_ACEOF
12799 if \$ac_cs_recheck; then
12800 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12801 CONFIG_SHELL=$SHELL
12802 export CONFIG_SHELL
12803 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12804 fi
12805
12806 _ACEOF
12807 cat >>$CONFIG_STATUS <<\_ACEOF
12808 exec 5>>config.log
12809 {
12810 echo
12811 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12812 ## Running $as_me. ##
12813 _ASBOX
12814 echo "$ac_log"
12815 } >&5
12816
12817 _ACEOF
12818 cat >>$CONFIG_STATUS <<_ACEOF
12819 #
12820 # INIT-COMMANDS
12821 #
12822
12823
12824 _ACEOF
12825
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12827
12828 # Handling of arguments.
12829 for ac_config_target in $ac_config_targets
12830 do
12831 case $ac_config_target in
12832 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12833 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12834 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12835 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
12836
12837 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12838 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12839 { (exit 1); exit 1; }; };;
12840 esac
12841 done
12842
12843
12844 # If the user did not use the arguments to specify the items to instantiate,
12845 # then the envvar interface is used. Set only those that are not.
12846 # We use the long form for the default assignment because of an extremely
12847 # bizarre bug on SunOS 4.1.3.
12848 if $ac_need_defaults; then
12849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12850 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12851 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12852 fi
12853
12854 # Have a temporary directory for convenience. Make it in the build tree
12855 # simply because there is no reason against having it here, and in addition,
12856 # creating and moving files from /tmp can sometimes cause problems.
12857 # Hook for its removal unless debugging.
12858 # Note that there is a small window in which the directory will not be cleaned:
12859 # after its creation but before its name has been assigned to `$tmp'.
12860 $debug ||
12861 {
12862 tmp=
12863 trap 'exit_status=$?
12864 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12865 ' 0
12866 trap '{ (exit 1); exit 1; }' 1 2 13 15
12867 }
12868 # Create a (secure) tmp directory for tmp files.
12869
12870 {
12871 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12872 test -n "$tmp" && test -d "$tmp"
12873 } ||
12874 {
12875 tmp=./conf$$-$RANDOM
12876 (umask 077 && mkdir "$tmp")
12877 } ||
12878 {
12879 echo "$me: cannot create a temporary directory in ." >&2
12880 { (exit 1); exit 1; }
12881 }
12882
12883 #
12884 # Set up the sed scripts for CONFIG_FILES section.
12885 #
12886
12887 # No need to generate the scripts if there are no CONFIG_FILES.
12888 # This happens for instance when ./config.status config.h
12889 if test -n "$CONFIG_FILES"; then
12890
12891 _ACEOF
12892
12893
12894
12895 ac_delim='%!_!# '
12896 for ac_last_try in false false false false false :; do
12897 cat >conf$$subs.sed <<_ACEOF
12898 SHELL!$SHELL$ac_delim
12899 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12900 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12901 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12902 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12903 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12904 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12905 exec_prefix!$exec_prefix$ac_delim
12906 prefix!$prefix$ac_delim
12907 program_transform_name!$program_transform_name$ac_delim
12908 bindir!$bindir$ac_delim
12909 sbindir!$sbindir$ac_delim
12910 libexecdir!$libexecdir$ac_delim
12911 datarootdir!$datarootdir$ac_delim
12912 datadir!$datadir$ac_delim
12913 sysconfdir!$sysconfdir$ac_delim
12914 sharedstatedir!$sharedstatedir$ac_delim
12915 localstatedir!$localstatedir$ac_delim
12916 includedir!$includedir$ac_delim
12917 oldincludedir!$oldincludedir$ac_delim
12918 docdir!$docdir$ac_delim
12919 infodir!$infodir$ac_delim
12920 htmldir!$htmldir$ac_delim
12921 dvidir!$dvidir$ac_delim
12922 pdfdir!$pdfdir$ac_delim
12923 psdir!$psdir$ac_delim
12924 libdir!$libdir$ac_delim
12925 localedir!$localedir$ac_delim
12926 mandir!$mandir$ac_delim
12927 DEFS!$DEFS$ac_delim
12928 ECHO_C!$ECHO_C$ac_delim
12929 ECHO_N!$ECHO_N$ac_delim
12930 ECHO_T!$ECHO_T$ac_delim
12931 LIBS!$LIBS$ac_delim
12932 build_alias!$build_alias$ac_delim
12933 host_alias!$host_alias$ac_delim
12934 target_alias!$target_alias$ac_delim
12935 build!$build$ac_delim
12936 build_cpu!$build_cpu$ac_delim
12937 build_vendor!$build_vendor$ac_delim
12938 build_os!$build_os$ac_delim
12939 host!$host$ac_delim
12940 host_cpu!$host_cpu$ac_delim
12941 host_vendor!$host_vendor$ac_delim
12942 host_os!$host_os$ac_delim
12943 SHLICC2!$SHLICC2$ac_delim
12944 CC!$CC$ac_delim
12945 CFLAGS!$CFLAGS$ac_delim
12946 LDFLAGS!$LDFLAGS$ac_delim
12947 CPPFLAGS!$CPPFLAGS$ac_delim
12948 ac_ct_CC!$ac_ct_CC$ac_delim
12949 EXEEXT!$EXEEXT$ac_delim
12950 OBJEXT!$OBJEXT$ac_delim
12951 CPP!$CPP$ac_delim
12952 GREP!$GREP$ac_delim
12953 EGREP!$EGREP$ac_delim
12954 LIBOBJS!$LIBOBJS$ac_delim
12955 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
12956 RANLIB!$RANLIB$ac_delim
12957 DEPENDENCY_CFLAG!$DEPENDENCY_CFLAG$ac_delim
12958 MKDEP!$MKDEP$ac_delim
12959 V_CCOPT!$V_CCOPT$ac_delim
12960 V_DEFS!$V_DEFS$ac_delim
12961 V_GROUP!$V_GROUP$ac_delim
12962 V_INCLS!$V_INCLS$ac_delim
12963 V_PCAPDEP!$V_PCAPDEP$ac_delim
12964 LOCALSRC!$LOCALSRC$ac_delim
12965 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12966 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12967 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12968 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12969 INSTALL_DATA!$INSTALL_DATA$ac_delim
12970 LTLIBOBJS!$LTLIBOBJS$ac_delim
12971 _ACEOF
12972
12973 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
12974 break
12975 elif $ac_last_try; then
12976 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12977 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12978 { (exit 1); exit 1; }; }
12979 else
12980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12981 fi
12982 done
12983
12984 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12985 if test -n "$ac_eof"; then
12986 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12987 ac_eof=`expr $ac_eof + 1`
12988 fi
12989
12990 cat >>$CONFIG_STATUS <<_ACEOF
12991 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12993 _ACEOF
12994 sed '
12995 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12996 s/^/s,@/; s/!/@,|#_!!_#|/
12997 :n
12998 t n
12999 s/'"$ac_delim"'$/,g/; t
13000 s/$/\\/; p
13001 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13002 ' >>$CONFIG_STATUS <conf$$subs.sed
13003 rm -f conf$$subs.sed
13004 cat >>$CONFIG_STATUS <<_ACEOF
13005 :end
13006 s/|#_!!_#|//g
13007 CEOF$ac_eof
13008 _ACEOF
13009
13010
13011 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13012 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13013 # trailing colons and then remove the whole line if VPATH becomes empty
13014 # (actually we leave an empty line to preserve line numbers).
13015 if test "x$srcdir" = x.; then
13016 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13017 s/:*\$(srcdir):*/:/
13018 s/:*\${srcdir}:*/:/
13019 s/:*@srcdir@:*/:/
13020 s/^\([^=]*=[ ]*\):*/\1/
13021 s/:*$//
13022 s/^[^=]*=[ ]*$//
13023 }'
13024 fi
13025
13026 cat >>$CONFIG_STATUS <<\_ACEOF
13027 fi # test -n "$CONFIG_FILES"
13028
13029
13030 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13031 do
13032 case $ac_tag in
13033 :[FHLC]) ac_mode=$ac_tag; continue;;
13034 esac
13035 case $ac_mode$ac_tag in
13036 :[FHL]*:*);;
13037 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13038 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13039 { (exit 1); exit 1; }; };;
13040 :[FH]-) ac_tag=-:-;;
13041 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13042 esac
13043 ac_save_IFS=$IFS
13044 IFS=:
13045 set x $ac_tag
13046 IFS=$ac_save_IFS
13047 shift
13048 ac_file=$1
13049 shift
13050
13051 case $ac_mode in
13052 :L) ac_source=$1;;
13053 :[FH])
13054 ac_file_inputs=
13055 for ac_f
13056 do
13057 case $ac_f in
13058 -) ac_f="$tmp/stdin";;
13059 *) # Look for the file first in the build tree, then in the source tree
13060 # (if the path is not absolute). The absolute path cannot be DOS-style,
13061 # because $ac_f cannot contain `:'.
13062 test -f "$ac_f" ||
13063 case $ac_f in
13064 [\\/$]*) false;;
13065 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13066 esac ||
13067 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13068 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13069 { (exit 1); exit 1; }; };;
13070 esac
13071 ac_file_inputs="$ac_file_inputs $ac_f"
13072 done
13073
13074 # Let's still pretend it is `configure' which instantiates (i.e., don't
13075 # use $as_me), people would be surprised to read:
13076 # /* config.h. Generated by config.status. */
13077 configure_input="Generated from "`IFS=:
13078 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13079 if test x"$ac_file" != x-; then
13080 configure_input="$ac_file. $configure_input"
13081 { echo "$as_me:$LINENO: creating $ac_file" >&5
13082 echo "$as_me: creating $ac_file" >&6;}
13083 fi
13084
13085 case $ac_tag in
13086 *:-:* | *:-) cat >"$tmp/stdin";;
13087 esac
13088 ;;
13089 esac
13090
13091 ac_dir=`$as_dirname -- "$ac_file" ||
13092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13093 X"$ac_file" : 'X\(//\)[^/]' \| \
13094 X"$ac_file" : 'X\(//\)$' \| \
13095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13096 echo X"$ac_file" |
13097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13098 s//\1/
13099 q
13100 }
13101 /^X\(\/\/\)[^/].*/{
13102 s//\1/
13103 q
13104 }
13105 /^X\(\/\/\)$/{
13106 s//\1/
13107 q
13108 }
13109 /^X\(\/\).*/{
13110 s//\1/
13111 q
13112 }
13113 s/.*/./; q'`
13114 { as_dir="$ac_dir"
13115 case $as_dir in #(
13116 -*) as_dir=./$as_dir;;
13117 esac
13118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13119 as_dirs=
13120 while :; do
13121 case $as_dir in #(
13122 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13123 *) as_qdir=$as_dir;;
13124 esac
13125 as_dirs="'$as_qdir' $as_dirs"
13126 as_dir=`$as_dirname -- "$as_dir" ||
13127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13128 X"$as_dir" : 'X\(//\)[^/]' \| \
13129 X"$as_dir" : 'X\(//\)$' \| \
13130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13131 echo X"$as_dir" |
13132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13133 s//\1/
13134 q
13135 }
13136 /^X\(\/\/\)[^/].*/{
13137 s//\1/
13138 q
13139 }
13140 /^X\(\/\/\)$/{
13141 s//\1/
13142 q
13143 }
13144 /^X\(\/\).*/{
13145 s//\1/
13146 q
13147 }
13148 s/.*/./; q'`
13149 test -d "$as_dir" && break
13150 done
13151 test -z "$as_dirs" || eval "mkdir $as_dirs"
13152 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13154 { (exit 1); exit 1; }; }; }
13155 ac_builddir=.
13156
13157 case "$ac_dir" in
13158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13159 *)
13160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13161 # A ".." for each directory in $ac_dir_suffix.
13162 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13163 case $ac_top_builddir_sub in
13164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13166 esac ;;
13167 esac
13168 ac_abs_top_builddir=$ac_pwd
13169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13170 # for backward compatibility:
13171 ac_top_builddir=$ac_top_build_prefix
13172
13173 case $srcdir in
13174 .) # We are building in place.
13175 ac_srcdir=.
13176 ac_top_srcdir=$ac_top_builddir_sub
13177 ac_abs_top_srcdir=$ac_pwd ;;
13178 [\\/]* | ?:[\\/]* ) # Absolute name.
13179 ac_srcdir=$srcdir$ac_dir_suffix;
13180 ac_top_srcdir=$srcdir
13181 ac_abs_top_srcdir=$srcdir ;;
13182 *) # Relative name.
13183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13184 ac_top_srcdir=$ac_top_build_prefix$srcdir
13185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13186 esac
13187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13188
13189
13190 case $ac_mode in
13191 :F)
13192 #
13193 # CONFIG_FILE
13194 #
13195
13196 case $INSTALL in
13197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13199 esac
13200 _ACEOF
13201
13202 cat >>$CONFIG_STATUS <<\_ACEOF
13203 # If the template does not know about datarootdir, expand it.
13204 # FIXME: This hack should be removed a few years after 2.60.
13205 ac_datarootdir_hack=; ac_datarootdir_seen=
13206
13207 case `sed -n '/datarootdir/ {
13208 p
13209 q
13210 }
13211 /@datadir@/p
13212 /@docdir@/p
13213 /@infodir@/p
13214 /@localedir@/p
13215 /@mandir@/p
13216 ' $ac_file_inputs` in
13217 *datarootdir*) ac_datarootdir_seen=yes;;
13218 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13219 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13220 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13221 _ACEOF
13222 cat >>$CONFIG_STATUS <<_ACEOF
13223 ac_datarootdir_hack='
13224 s&@datadir@&$datadir&g
13225 s&@docdir@&$docdir&g
13226 s&@infodir@&$infodir&g
13227 s&@localedir@&$localedir&g
13228 s&@mandir@&$mandir&g
13229 s&\\\${datarootdir}&$datarootdir&g' ;;
13230 esac
13231 _ACEOF
13232
13233 # Neutralize VPATH when `$srcdir' = `.'.
13234 # Shell code in configure.ac might set extrasub.
13235 # FIXME: do we really want to maintain this feature?
13236 cat >>$CONFIG_STATUS <<_ACEOF
13237 sed "$ac_vpsub
13238 $extrasub
13239 _ACEOF
13240 cat >>$CONFIG_STATUS <<\_ACEOF
13241 :t
13242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13243 s&@configure_input@&$configure_input&;t t
13244 s&@top_builddir@&$ac_top_builddir_sub&;t t
13245 s&@srcdir@&$ac_srcdir&;t t
13246 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13247 s&@top_srcdir@&$ac_top_srcdir&;t t
13248 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13249 s&@builddir@&$ac_builddir&;t t
13250 s&@abs_builddir@&$ac_abs_builddir&;t t
13251 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13252 s&@INSTALL@&$ac_INSTALL&;t t
13253 $ac_datarootdir_hack
13254 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13255
13256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13259 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13260 which seems to be undefined. Please make sure it is defined." >&5
13261 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13262 which seems to be undefined. Please make sure it is defined." >&2;}
13263
13264 rm -f "$tmp/stdin"
13265 case $ac_file in
13266 -) cat "$tmp/out"; rm -f "$tmp/out";;
13267 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13268 esac
13269 ;;
13270 :H)
13271 #
13272 # CONFIG_HEADER
13273 #
13274 _ACEOF
13275
13276 # Transform confdefs.h into a sed script `conftest.defines', that
13277 # substitutes the proper values into config.h.in to produce config.h.
13278 rm -f conftest.defines conftest.tail
13279 # First, append a space to every undef/define line, to ease matching.
13280 echo 's/$/ /' >conftest.defines
13281 # Then, protect against being on the right side of a sed subst, or in
13282 # an unquoted here document, in config.status. If some macros were
13283 # called several times there might be several #defines for the same
13284 # symbol, which is useless. But do not sort them, since the last
13285 # AC_DEFINE must be honored.
13286 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13287 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13288 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13289 # PARAMS is the parameter list in the macro definition--in most cases, it's
13290 # just an empty string.
13291 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13292 ac_dB='\\)[ (].*,\\1define\\2'
13293 ac_dC=' '
13294 ac_dD=' ,'
13295
13296 uniq confdefs.h |
13297 sed -n '
13298 t rset
13299 :rset
13300 s/^[ ]*#[ ]*define[ ][ ]*//
13301 t ok
13302 d
13303 :ok
13304 s/[\\&,]/\\&/g
13305 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13306 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13307 ' >>conftest.defines
13308
13309 # Remove the space that was appended to ease matching.
13310 # Then replace #undef with comments. This is necessary, for
13311 # example, in the case of _POSIX_SOURCE, which is predefined and required
13312 # on some systems where configure will not decide to define it.
13313 # (The regexp can be short, since the line contains either #define or #undef.)
13314 echo 's/ $//
13315 s,^[ #]*u.*,/* & */,' >>conftest.defines
13316
13317 # Break up conftest.defines:
13318 ac_max_sed_lines=50
13319
13320 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13321 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13322 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13323 # et cetera.
13324 ac_in='$ac_file_inputs'
13325 ac_out='"$tmp/out1"'
13326 ac_nxt='"$tmp/out2"'
13327
13328 while :
13329 do
13330 # Write a here document:
13331 cat >>$CONFIG_STATUS <<_ACEOF
13332 # First, check the format of the line:
13333 cat >"\$tmp/defines.sed" <<\\CEOF
13334 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13335 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13336 b
13337 :def
13338 _ACEOF
13339 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13340 echo 'CEOF
13341 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13342 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13343 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13344 grep . conftest.tail >/dev/null || break
13345 rm -f conftest.defines
13346 mv conftest.tail conftest.defines
13347 done
13348 rm -f conftest.defines conftest.tail
13349
13350 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13351 cat >>$CONFIG_STATUS <<\_ACEOF
13352 if test x"$ac_file" != x-; then
13353 echo "/* $configure_input */" >"$tmp/config.h"
13354 cat "$ac_result" >>"$tmp/config.h"
13355 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13356 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13357 echo "$as_me: $ac_file is unchanged" >&6;}
13358 else
13359 rm -f $ac_file
13360 mv "$tmp/config.h" $ac_file
13361 fi
13362 else
13363 echo "/* $configure_input */"
13364 cat "$ac_result"
13365 fi
13366 rm -f "$tmp/out12"
13367 ;;
13368
13369 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13370 echo "$as_me: executing $ac_file commands" >&6;}
13371 ;;
13372 esac
13373
13374
13375 case $ac_file$ac_mode in
13376 "default-1":C) if test -f .devel; then
13377 echo timestamp > stamp-h
13378 cat Makefile-devel-adds >> Makefile
13379 make depend
13380 fi ;;
13381
13382 esac
13383 done # for ac_tag
13384
13385
13386 { (exit 0); exit 0; }
13387 _ACEOF
13388 chmod +x $CONFIG_STATUS
13389 ac_clean_files=$ac_clean_files_save
13390
13391
13392 # configure is writing to config.log, and then calls config.status.
13393 # config.status does its own redirection, appending to config.log.
13394 # Unfortunately, on DOS this fails, as config.log is still kept open
13395 # by configure, so config.status won't be able to write to it; its
13396 # output is simply discarded. So we exec the FD to /dev/null,
13397 # effectively closing config.log, so it can be properly (re)opened and
13398 # appended to by config.status. When coming back to configure, we
13399 # need to make the FD available again.
13400 if test "$no_create" != yes; then
13401 ac_cs_success=:
13402 ac_config_status_args=
13403 test "$silent" = yes &&
13404 ac_config_status_args="$ac_config_status_args --quiet"
13405 exec 5>/dev/null
13406 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13407 exec 5>>config.log
13408 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13409 # would make configure fail if this is the last instruction.
13410 $ac_cs_success || { (exit 1); exit 1; }
13411 fi
13412
13413 exit 0