]> The Tcpdump Group git mirrors - tcpdump/blob - configure
use macros for VAT and WB port numbers
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 SHLICC2
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 CPP
671 GREP
672 EGREP
673 LIBOBJS
674 PCAP_CONFIG
675 RANLIB
676 V_CCOPT
677 V_DEFS
678 V_GROUP
679 V_INCLS
680 V_PCAPDEP
681 LOCALSRC
682 MAN_FILE_FORMATS
683 MAN_MISC_INFO
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 LTLIBOBJS'
688 ac_subst_files=''
689 ac_precious_vars='build_alias
690 host_alias
691 target_alias
692 CC
693 CFLAGS
694 LDFLAGS
695 LIBS
696 CPPFLAGS
697 CPP'
698
699
700 # Initialize some variables set by options.
701 ac_init_help=
702 ac_init_version=false
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
705 cache_file=/dev/null
706 exec_prefix=NONE
707 no_create=
708 no_recursion=
709 prefix=NONE
710 program_prefix=NONE
711 program_suffix=NONE
712 program_transform_name=s,x,x,
713 silent=
714 site=
715 srcdir=
716 verbose=
717 x_includes=NONE
718 x_libraries=NONE
719
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir='${exec_prefix}/bin'
727 sbindir='${exec_prefix}/sbin'
728 libexecdir='${exec_prefix}/libexec'
729 datarootdir='${prefix}/share'
730 datadir='${datarootdir}'
731 sysconfdir='${prefix}/etc'
732 sharedstatedir='${prefix}/com'
733 localstatedir='${prefix}/var'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
745
746 ac_prev=
747 ac_dashdash=
748 for ac_option
749 do
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\$ac_option
753 ac_prev=
754 continue
755 fi
756
757 case $ac_option in
758 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 *) ac_optarg=yes ;;
760 esac
761
762 # Accept the important Cygnus configure options, so we can diagnose typos.
763
764 case $ac_dashdash$ac_option in
765 --)
766 ac_dashdash=yes ;;
767
768 -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 ac_prev=bindir ;;
770 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771 bindir=$ac_optarg ;;
772
773 -build | --build | --buil | --bui | --bu)
774 ac_prev=build_alias ;;
775 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776 build_alias=$ac_optarg ;;
777
778 -cache-file | --cache-file | --cache-fil | --cache-fi \
779 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
780 ac_prev=cache_file ;;
781 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
782 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783 cache_file=$ac_optarg ;;
784
785 --config-cache | -C)
786 cache_file=config.cache ;;
787
788 -datadir | --datadir | --datadi | --datad)
789 ac_prev=datadir ;;
790 -datadir=* | --datadir=* | --datadi=* | --datad=*)
791 datadir=$ac_optarg ;;
792
793 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794 | --dataroo | --dataro | --datar)
795 ac_prev=datarootdir ;;
796 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798 datarootdir=$ac_optarg ;;
799
800 -disable-* | --disable-*)
801 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807 eval enable_$ac_feature=no ;;
808
809 -docdir | --docdir | --docdi | --doc | --do)
810 ac_prev=docdir ;;
811 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812 docdir=$ac_optarg ;;
813
814 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815 ac_prev=dvidir ;;
816 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817 dvidir=$ac_optarg ;;
818
819 -enable-* | --enable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=\$ac_optarg ;;
827
828 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
829 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
830 | --exec | --exe | --ex)
831 ac_prev=exec_prefix ;;
832 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
833 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
834 | --exec=* | --exe=* | --ex=*)
835 exec_prefix=$ac_optarg ;;
836
837 -gas | --gas | --ga | --g)
838 # Obsolete; use --with-gas.
839 with_gas=yes ;;
840
841 -help | --help | --hel | --he | -h)
842 ac_init_help=long ;;
843 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844 ac_init_help=recursive ;;
845 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846 ac_init_help=short ;;
847
848 -host | --host | --hos | --ho)
849 ac_prev=host_alias ;;
850 -host=* | --host=* | --hos=* | --ho=*)
851 host_alias=$ac_optarg ;;
852
853 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854 ac_prev=htmldir ;;
855 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856 | --ht=*)
857 htmldir=$ac_optarg ;;
858
859 -includedir | --includedir | --includedi | --included | --include \
860 | --includ | --inclu | --incl | --inc)
861 ac_prev=includedir ;;
862 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
863 | --includ=* | --inclu=* | --incl=* | --inc=*)
864 includedir=$ac_optarg ;;
865
866 -infodir | --infodir | --infodi | --infod | --info | --inf)
867 ac_prev=infodir ;;
868 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869 infodir=$ac_optarg ;;
870
871 -libdir | --libdir | --libdi | --libd)
872 ac_prev=libdir ;;
873 -libdir=* | --libdir=* | --libdi=* | --libd=*)
874 libdir=$ac_optarg ;;
875
876 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
877 | --libexe | --libex | --libe)
878 ac_prev=libexecdir ;;
879 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
880 | --libexe=* | --libex=* | --libe=*)
881 libexecdir=$ac_optarg ;;
882
883 -localedir | --localedir | --localedi | --localed | --locale)
884 ac_prev=localedir ;;
885 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886 localedir=$ac_optarg ;;
887
888 -localstatedir | --localstatedir | --localstatedi | --localstated \
889 | --localstate | --localstat | --localsta | --localst | --locals)
890 ac_prev=localstatedir ;;
891 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893 localstatedir=$ac_optarg ;;
894
895 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
896 ac_prev=mandir ;;
897 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898 mandir=$ac_optarg ;;
899
900 -nfp | --nfp | --nf)
901 # Obsolete; use --without-fp.
902 with_fp=no ;;
903
904 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905 | --no-cr | --no-c | -n)
906 no_create=yes ;;
907
908 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
909 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910 no_recursion=yes ;;
911
912 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
913 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
914 | --oldin | --oldi | --old | --ol | --o)
915 ac_prev=oldincludedir ;;
916 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
917 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
918 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919 oldincludedir=$ac_optarg ;;
920
921 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
922 ac_prev=prefix ;;
923 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924 prefix=$ac_optarg ;;
925
926 -program-prefix | --program-prefix | --program-prefi | --program-pref \
927 | --program-pre | --program-pr | --program-p)
928 ac_prev=program_prefix ;;
929 -program-prefix=* | --program-prefix=* | --program-prefi=* \
930 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931 program_prefix=$ac_optarg ;;
932
933 -program-suffix | --program-suffix | --program-suffi | --program-suff \
934 | --program-suf | --program-su | --program-s)
935 ac_prev=program_suffix ;;
936 -program-suffix=* | --program-suffix=* | --program-suffi=* \
937 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938 program_suffix=$ac_optarg ;;
939
940 -program-transform-name | --program-transform-name \
941 | --program-transform-nam | --program-transform-na \
942 | --program-transform-n | --program-transform- \
943 | --program-transform | --program-transfor \
944 | --program-transfo | --program-transf \
945 | --program-trans | --program-tran \
946 | --progr-tra | --program-tr | --program-t)
947 ac_prev=program_transform_name ;;
948 -program-transform-name=* | --program-transform-name=* \
949 | --program-transform-nam=* | --program-transform-na=* \
950 | --program-transform-n=* | --program-transform-=* \
951 | --program-transform=* | --program-transfor=* \
952 | --program-transfo=* | --program-transf=* \
953 | --program-trans=* | --program-tran=* \
954 | --progr-tra=* | --program-tr=* | --program-t=*)
955 program_transform_name=$ac_optarg ;;
956
957 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958 ac_prev=pdfdir ;;
959 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960 pdfdir=$ac_optarg ;;
961
962 -psdir | --psdir | --psdi | --psd | --ps)
963 ac_prev=psdir ;;
964 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965 psdir=$ac_optarg ;;
966
967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
968 | -silent | --silent | --silen | --sile | --sil)
969 silent=yes ;;
970
971 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
972 ac_prev=sbindir ;;
973 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
974 | --sbi=* | --sb=*)
975 sbindir=$ac_optarg ;;
976
977 -sharedstatedir | --sharedstatedir | --sharedstatedi \
978 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
979 | --sharedst | --shareds | --shared | --share | --shar \
980 | --sha | --sh)
981 ac_prev=sharedstatedir ;;
982 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
983 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
984 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
985 | --sha=* | --sh=*)
986 sharedstatedir=$ac_optarg ;;
987
988 -site | --site | --sit)
989 ac_prev=site ;;
990 -site=* | --site=* | --sit=*)
991 site=$ac_optarg ;;
992
993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
994 ac_prev=srcdir ;;
995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996 srcdir=$ac_optarg ;;
997
998 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
999 | --syscon | --sysco | --sysc | --sys | --sy)
1000 ac_prev=sysconfdir ;;
1001 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1002 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003 sysconfdir=$ac_optarg ;;
1004
1005 -target | --target | --targe | --targ | --tar | --ta | --t)
1006 ac_prev=target_alias ;;
1007 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008 target_alias=$ac_optarg ;;
1009
1010 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011 verbose=yes ;;
1012
1013 -version | --version | --versio | --versi | --vers | -V)
1014 ac_init_version=: ;;
1015
1016 -with-* | --with-*)
1017 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_$ac_package=\$ac_optarg ;;
1024
1025 -without-* | --without-*)
1026 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid package name: $ac_package" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032 eval with_$ac_package=no ;;
1033
1034 --x)
1035 # Obsolete; use --with-x.
1036 with_x=yes ;;
1037
1038 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1039 | --x-incl | --x-inc | --x-in | --x-i)
1040 ac_prev=x_includes ;;
1041 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1042 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1043 x_includes=$ac_optarg ;;
1044
1045 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1046 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1047 ac_prev=x_libraries ;;
1048 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1049 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1050 x_libraries=$ac_optarg ;;
1051
1052 -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 Try \`$0 --help' for more information." >&2
1054 { (exit 1); exit 1; }; }
1055 ;;
1056
1057 *=*)
1058 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062 { (exit 1); exit 1; }; }
1063 eval $ac_envvar=\$ac_optarg
1064 export $ac_envvar ;;
1065
1066 *)
1067 # FIXME: should be removed in autoconf 3.0.
1068 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072 ;;
1073
1074 esac
1075 done
1076
1077 if test -n "$ac_prev"; then
1078 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1079 { echo "$as_me: error: missing argument to $ac_option" >&2
1080 { (exit 1); exit 1; }; }
1081 fi
1082
1083 # Be sure to have absolute directory names.
1084 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1088 do
1089 eval ac_val=\$$ac_var
1090 case $ac_val in
1091 [\\/$]* | ?:[\\/]* ) continue;;
1092 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1093 esac
1094 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095 { (exit 1); exit 1; }; }
1096 done
1097
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1101 build=$build_alias
1102 host=$host_alias
1103 target=$target_alias
1104
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x; then
1107 if test "x$build_alias" = x; then
1108 cross_compiling=maybe
1109 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 If a cross compiler is detected then cross compile mode will be used." >&2
1111 elif test "x$build_alias" != "x$host_alias"; then
1112 cross_compiling=yes
1113 fi
1114 fi
1115
1116 ac_tool_prefix=
1117 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118
1119 test "$silent" = yes && exec 6>/dev/null
1120
1121
1122 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di=`ls -di .` &&
1124 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125 { echo "$as_me: error: Working directory cannot be determined" >&2
1126 { (exit 1); exit 1; }; }
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 { echo "$as_me: error: pwd does not report name of working directory" >&2
1129 { (exit 1); exit 1; }; }
1130
1131
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134 ac_srcdir_defaulted=yes
1135 # Try the directory containing this script, then the parent directory.
1136 ac_confdir=`$as_dirname -- "$0" ||
1137 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 X"$0" : 'X\(//\)[^/]' \| \
1139 X"$0" : 'X\(//\)$' \| \
1140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141 echo X"$0" |
1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143 s//\1/
1144 q
1145 }
1146 /^X\(\/\/\)[^/].*/{
1147 s//\1/
1148 q
1149 }
1150 /^X\(\/\/\)$/{
1151 s//\1/
1152 q
1153 }
1154 /^X\(\/\).*/{
1155 s//\1/
1156 q
1157 }
1158 s/.*/./; q'`
1159 srcdir=$ac_confdir
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1161 srcdir=..
1162 fi
1163 else
1164 ac_srcdir_defaulted=no
1165 fi
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169 { (exit 1); exit 1; }; }
1170 fi
1171 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 ac_abs_confdir=`(
1173 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174 { (exit 1); exit 1; }; }
1175 pwd)`
1176 # When building in place, set srcdir=.
1177 if test "$ac_abs_confdir" = "$ac_pwd"; then
1178 srcdir=.
1179 fi
1180 # Remove unnecessary trailing slashes from srcdir.
1181 # Double slashes in file names in object file debugging info
1182 # mess up M-x gdb in Emacs.
1183 case $srcdir in
1184 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185 esac
1186 for ac_var in $ac_precious_vars; do
1187 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188 eval ac_env_${ac_var}_value=\$${ac_var}
1189 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191 done
1192
1193 #
1194 # Report the --help message.
1195 #
1196 if test "$ac_init_help" = "long"; then
1197 # Omit some internal or obsolete options to make the list less imposing.
1198 # This message is too long to be a string in the A/UX 3.1 sh.
1199 cat <<_ACEOF
1200 \`configure' configures this package to adapt to many kinds of systems.
1201
1202 Usage: $0 [OPTION]... [VAR=VALUE]...
1203
1204 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 VAR=VALUE. See below for descriptions of some of the useful variables.
1206
1207 Defaults for the options are specified in brackets.
1208
1209 Configuration:
1210 -h, --help display this help and exit
1211 --help=short display options specific to this package
1212 --help=recursive display the short help of all the included packages
1213 -V, --version display version information and exit
1214 -q, --quiet, --silent do not print \`checking...' messages
1215 --cache-file=FILE cache test results in FILE [disabled]
1216 -C, --config-cache alias for \`--cache-file=config.cache'
1217 -n, --no-create do not create output files
1218 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1219
1220 Installation directories:
1221 --prefix=PREFIX install architecture-independent files in PREFIX
1222 [$ac_default_prefix]
1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1224 [PREFIX]
1225
1226 By default, \`make install' will install all the files in
1227 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 for instance \`--prefix=\$HOME'.
1230
1231 For better control, use the options below.
1232
1233 Fine tuning of the installation directories:
1234 --bindir=DIR user executables [EPREFIX/bin]
1235 --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 --libexecdir=DIR program executables [EPREFIX/libexec]
1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 --libdir=DIR object code libraries [EPREFIX/lib]
1241 --includedir=DIR C header files [PREFIX/include]
1242 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 --infodir=DIR info documentation [DATAROOTDIR/info]
1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 --mandir=DIR man documentation [DATAROOTDIR/man]
1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 --htmldir=DIR html documentation [DOCDIR]
1250 --dvidir=DIR dvi documentation [DOCDIR]
1251 --pdfdir=DIR pdf documentation [DOCDIR]
1252 --psdir=DIR ps documentation [DOCDIR]
1253 _ACEOF
1254
1255 cat <<\_ACEOF
1256
1257 System types:
1258 --build=BUILD configure for building on BUILD [guessed]
1259 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1260 _ACEOF
1261 fi
1262
1263 if test -n "$ac_init_help"; then
1264
1265 cat <<\_ACEOF
1266
1267 Optional Features:
1268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1270 --disable-universal don't build universal on OS X
1271 --enable-smb enable possibly-buggy SMB printer default=yes
1272 --disable-smb disable possibly-buggy SMB printer
1273 --enable-ipv6 enable ipv6 (with ipv4) support
1274 --disable-ipv6 disable ipv6 support
1275
1276 Optional Packages:
1277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1279 --without-gcc don't use gcc
1280 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1281 --without-smi don't link with libsmi
1282 --with-user=USERNAME drop privileges by default to USERNAME
1283 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1284 --with-crypto use OpenSSL libcrypto [default=yes, if available]
1285
1286 Some influential environment variables:
1287 CC C compiler command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1294 CPP C preprocessor
1295
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1298
1299 _ACEOF
1300 ac_status=$?
1301 fi
1302
1303 if test "$ac_init_help" = "recursive"; then
1304 # If there are subdirs, report their specific --help.
1305 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306 test -d "$ac_dir" || continue
1307 ac_builddir=.
1308
1309 case "$ac_dir" in
1310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 *)
1312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318 esac ;;
1319 esac
1320 ac_abs_top_builddir=$ac_pwd
1321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir=$ac_top_build_prefix
1324
1325 case $srcdir in
1326 .) # We are building in place.
1327 ac_srcdir=.
1328 ac_top_srcdir=$ac_top_builddir_sub
1329 ac_abs_top_srcdir=$ac_pwd ;;
1330 [\\/]* | ?:[\\/]* ) # Absolute name.
1331 ac_srcdir=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir=$srcdir
1333 ac_abs_top_srcdir=$srcdir ;;
1334 *) # Relative name.
1335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338 esac
1339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340
1341 cd "$ac_dir" || { ac_status=$?; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1344 echo &&
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1347 echo &&
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1349 else
1350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351 fi || ac_status=$?
1352 cd "$ac_pwd" || { ac_status=$?; break; }
1353 done
1354 fi
1355
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1358 cat <<\_ACEOF
1359 configure
1360 generated by GNU Autoconf 2.61
1361
1362 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364 This configure script is free software; the Free Software Foundation
1365 gives unlimited permission to copy, distribute and modify it.
1366 _ACEOF
1367 exit
1368 fi
1369 cat >config.log <<_ACEOF
1370 This file contains any messages produced by compilers while
1371 running configure, to aid debugging if configure makes a mistake.
1372
1373 It was created by $as_me, which was
1374 generated by GNU Autoconf 2.61. Invocation command line was
1375
1376 $ $0 $@
1377
1378 _ACEOF
1379 exec 5>>config.log
1380 {
1381 cat <<_ASUNAME
1382 ## --------- ##
1383 ## Platform. ##
1384 ## --------- ##
1385
1386 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1387 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1388 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1389 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1390 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1391
1392 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1393 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1394
1395 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1396 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1397 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1398 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1399 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1400 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1401 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1402
1403 _ASUNAME
1404
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 echo "PATH: $as_dir"
1411 done
1412 IFS=$as_save_IFS
1413
1414 } >&5
1415
1416 cat >&5 <<_ACEOF
1417
1418
1419 ## ----------- ##
1420 ## Core tests. ##
1421 ## ----------- ##
1422
1423 _ACEOF
1424
1425
1426 # Keep a trace of the command line.
1427 # Strip out --no-create and --no-recursion so they do not pile up.
1428 # Strip out --silent because we don't want to record it for future runs.
1429 # Also quote any args containing shell meta-characters.
1430 # Make two passes to allow for proper duplicate-argument suppression.
1431 ac_configure_args=
1432 ac_configure_args0=
1433 ac_configure_args1=
1434 ac_must_keep_next=false
1435 for ac_pass in 1 2
1436 do
1437 for ac_arg
1438 do
1439 case $ac_arg in
1440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1443 continue ;;
1444 *\'*)
1445 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 esac
1447 case $ac_pass in
1448 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1449 2)
1450 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451 if test $ac_must_keep_next = true; then
1452 ac_must_keep_next=false # Got value, back to normal.
1453 else
1454 case $ac_arg in
1455 *=* | --config-cache | -C | -disable-* | --disable-* \
1456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458 | -with-* | --with-* | -without-* | --without-* | --x)
1459 case "$ac_configure_args0 " in
1460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1461 esac
1462 ;;
1463 -* ) ac_must_keep_next=true ;;
1464 esac
1465 fi
1466 ac_configure_args="$ac_configure_args '$ac_arg'"
1467 ;;
1468 esac
1469 done
1470 done
1471 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1473
1474 # When interrupted or exit'd, cleanup temporary files, and complete
1475 # config.log. We remove comments because anyway the quotes in there
1476 # would cause problems or look ugly.
1477 # WARNING: Use '\'' to represent an apostrophe within the trap.
1478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 trap 'exit_status=$?
1480 # Save into config.log some information that might help in debugging.
1481 {
1482 echo
1483
1484 cat <<\_ASBOX
1485 ## ---------------- ##
1486 ## Cache variables. ##
1487 ## ---------------- ##
1488 _ASBOX
1489 echo
1490 # The following way of writing the cache mishandles newlines in values,
1491 (
1492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493 eval ac_val=\$$ac_var
1494 case $ac_val in #(
1495 *${as_nl}*)
1496 case $ac_var in #(
1497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1499 esac
1500 case $ac_var in #(
1501 _ | IFS | as_nl) ;; #(
1502 *) $as_unset $ac_var ;;
1503 esac ;;
1504 esac
1505 done
1506 (set) 2>&1 |
1507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508 *${as_nl}ac_space=\ *)
1509 sed -n \
1510 "s/'\''/'\''\\\\'\'''\''/g;
1511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1512 ;; #(
1513 *)
1514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1515 ;;
1516 esac |
1517 sort
1518 )
1519 echo
1520
1521 cat <<\_ASBOX
1522 ## ----------------- ##
1523 ## Output variables. ##
1524 ## ----------------- ##
1525 _ASBOX
1526 echo
1527 for ac_var in $ac_subst_vars
1528 do
1529 eval ac_val=\$$ac_var
1530 case $ac_val in
1531 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532 esac
1533 echo "$ac_var='\''$ac_val'\''"
1534 done | sort
1535 echo
1536
1537 if test -n "$ac_subst_files"; then
1538 cat <<\_ASBOX
1539 ## ------------------- ##
1540 ## File substitutions. ##
1541 ## ------------------- ##
1542 _ASBOX
1543 echo
1544 for ac_var in $ac_subst_files
1545 do
1546 eval ac_val=\$$ac_var
1547 case $ac_val in
1548 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549 esac
1550 echo "$ac_var='\''$ac_val'\''"
1551 done | sort
1552 echo
1553 fi
1554
1555 if test -s confdefs.h; then
1556 cat <<\_ASBOX
1557 ## ----------- ##
1558 ## confdefs.h. ##
1559 ## ----------- ##
1560 _ASBOX
1561 echo
1562 cat confdefs.h
1563 echo
1564 fi
1565 test "$ac_signal" != 0 &&
1566 echo "$as_me: caught signal $ac_signal"
1567 echo "$as_me: exit $exit_status"
1568 } >&5
1569 rm -f core *.core core.conftest.* &&
1570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1571 exit $exit_status
1572 ' 0
1573 for ac_signal in 1 2 13 15; do
1574 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1575 done
1576 ac_signal=0
1577
1578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 rm -f -r conftest* confdefs.h
1580
1581 # Predefined preprocessor variables.
1582
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_NAME "$PACKAGE_NAME"
1585 _ACEOF
1586
1587
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1590 _ACEOF
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_STRING "$PACKAGE_STRING"
1600 _ACEOF
1601
1602
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1605 _ACEOF
1606
1607
1608 # Let the site file select an alternate cache file if it wants to.
1609 # Prefer explicitly selected file to automatically selected ones.
1610 if test -n "$CONFIG_SITE"; then
1611 set x "$CONFIG_SITE"
1612 elif test "x$prefix" != xNONE; then
1613 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1614 else
1615 set x "$ac_default_prefix/share/config.site" \
1616 "$ac_default_prefix/etc/config.site"
1617 fi
1618 shift
1619 for ac_site_file
1620 do
1621 if test -r "$ac_site_file"; then
1622 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 echo "$as_me: loading site script $ac_site_file" >&6;}
1624 sed 's/^/| /' "$ac_site_file" >&5
1625 . "$ac_site_file"
1626 fi
1627 done
1628
1629 if test -r "$cache_file"; then
1630 # Some versions of bash will fail to source /dev/null (special
1631 # files actually), so we avoid doing that.
1632 if test -f "$cache_file"; then
1633 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 echo "$as_me: loading cache $cache_file" >&6;}
1635 case $cache_file in
1636 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637 *) . "./$cache_file";;
1638 esac
1639 fi
1640 else
1641 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 echo "$as_me: creating cache $cache_file" >&6;}
1643 >$cache_file
1644 fi
1645
1646 # Check that the precious variables saved in the cache have kept the same
1647 # value.
1648 ac_cache_corrupted=false
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651 eval ac_new_set=\$ac_env_${ac_var}_set
1652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653 eval ac_new_val=\$ac_env_${ac_var}_value
1654 case $ac_old_set,$ac_new_set in
1655 set,)
1656 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1657 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 ac_cache_corrupted=: ;;
1659 ,set)
1660 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1661 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1662 ac_cache_corrupted=: ;;
1663 ,);;
1664 *)
1665 if test "x$ac_old_val" != "x$ac_new_val"; then
1666 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1669 echo "$as_me: former value: $ac_old_val" >&2;}
1670 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1671 echo "$as_me: current value: $ac_new_val" >&2;}
1672 ac_cache_corrupted=:
1673 fi;;
1674 esac
1675 # Pass precious variables to config.status.
1676 if test "$ac_new_set" = set; then
1677 case $ac_new_val in
1678 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 *) ac_arg=$ac_var=$ac_new_val ;;
1680 esac
1681 case " $ac_configure_args " in
1682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1684 esac
1685 fi
1686 done
1687 if $ac_cache_corrupted; then
1688 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1689 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1690 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1692 { (exit 1); exit 1; }; }
1693 fi
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711 ac_ext=c
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716
1717
1718
1719 ac_aux_dir=
1720 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721 if test -f "$ac_dir/install-sh"; then
1722 ac_aux_dir=$ac_dir
1723 ac_install_sh="$ac_aux_dir/install-sh -c"
1724 break
1725 elif test -f "$ac_dir/install.sh"; then
1726 ac_aux_dir=$ac_dir
1727 ac_install_sh="$ac_aux_dir/install.sh -c"
1728 break
1729 elif test -f "$ac_dir/shtool"; then
1730 ac_aux_dir=$ac_dir
1731 ac_install_sh="$ac_aux_dir/shtool install -c"
1732 break
1733 fi
1734 done
1735 if test -z "$ac_aux_dir"; then
1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738 { (exit 1); exit 1; }; }
1739 fi
1740
1741 # These three variables are undocumented and unsupported,
1742 # and are intended to be withdrawn in a future Autoconf release.
1743 # They can cause serious problems if a builder's source tree is in a directory
1744 # whose full name contains unusual characters.
1745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1748
1749
1750 # Make sure we can run config.sub.
1751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 { (exit 1); exit 1; }; }
1755
1756 { echo "$as_me:$LINENO: checking build system type" >&5
1757 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 if test "${ac_cv_build+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 ac_build_alias=$build_alias
1762 test "x$ac_build_alias" = x &&
1763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764 test "x$ac_build_alias" = x &&
1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 { (exit 1); exit 1; }; }
1768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773 fi
1774 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 echo "${ECHO_T}$ac_cv_build" >&6; }
1776 case $ac_cv_build in
1777 *-*-*) ;;
1778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 echo "$as_me: error: invalid value of canonical build" >&2;}
1780 { (exit 1); exit 1; }; };;
1781 esac
1782 build=$ac_cv_build
1783 ac_save_IFS=$IFS; IFS='-'
1784 set x $ac_cv_build
1785 shift
1786 build_cpu=$1
1787 build_vendor=$2
1788 shift; shift
1789 # Remember, the first character of IFS is used to create $*,
1790 # except with old shells:
1791 build_os=$*
1792 IFS=$ac_save_IFS
1793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1794
1795
1796 { echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test "x$host_alias" = x; then
1802 ac_cv_host=$ac_cv_build
1803 else
1804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1808 fi
1809
1810 fi
1811 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 echo "${ECHO_T}$ac_cv_host" >&6; }
1813 case $ac_cv_host in
1814 *-*-*) ;;
1815 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 echo "$as_me: error: invalid value of canonical host" >&2;}
1817 { (exit 1); exit 1; }; };;
1818 esac
1819 host=$ac_cv_host
1820 ac_save_IFS=$IFS; IFS='-'
1821 set x $ac_cv_host
1822 shift
1823 host_cpu=$1
1824 host_vendor=$2
1825 shift; shift
1826 # Remember, the first character of IFS is used to create $*,
1827 # except with old shells:
1828 host_os=$*
1829 IFS=$ac_save_IFS
1830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840 # Check whether --with-gcc was given.
1841 if test "${with_gcc+set}" = set; then
1842 withval=$with_gcc;
1843 fi
1844
1845 V_CCOPT="-O"
1846 V_INCLS=""
1847 if test "${srcdir}" != "." ; then
1848 V_INCLS="-I$srcdir"
1849 fi
1850 if test "${CFLAGS+set}" = set; then
1851 LBL_CFLAGS="$CFLAGS"
1852 fi
1853 if test -z "$CC" ; then
1854 case "$host_os" in
1855
1856 bsdi*)
1857 # Extract the first word of "shlicc2", so it can be a program name with args.
1858 set dummy shlicc2; ac_word=$2
1859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$SHLICC2"; then
1865 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874 ac_cv_prog_SHLICC2="yes"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878 done
1879 done
1880 IFS=$as_save_IFS
1881
1882 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1883 fi
1884 fi
1885 SHLICC2=$ac_cv_prog_SHLICC2
1886 if test -n "$SHLICC2"; then
1887 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888 echo "${ECHO_T}$SHLICC2" >&6; }
1889 else
1890 { echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6; }
1892 fi
1893
1894
1895 if test $SHLICC2 = yes ; then
1896 CC=shlicc2
1897 export CC
1898 fi
1899 ;;
1900 esac
1901 fi
1902 if test -z "$CC" -a "$with_gcc" = no ; then
1903 CC=cc
1904 export CC
1905 fi
1906
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1933 fi
1934 done
1935 done
1936 IFS=$as_save_IFS
1937
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 { echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6; }
1944 else
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1947 fi
1948
1949
1950 fi
1951 if test -z "$ac_cv_prog_CC"; then
1952 ac_ct_CC=$CC
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_ac_ct_CC="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974 done
1975 done
1976 IFS=$as_save_IFS
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6; }
1984 else
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1987 fi
1988
1989 if test "x$ac_ct_CC" = x; then
1990 CC=""
1991 else
1992 case $cross_compiling:$ac_tool_warned in
1993 yes:)
1994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&5
1997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000 ac_tool_warned=yes ;;
2001 esac
2002 CC=$ac_ct_CC
2003 fi
2004 else
2005 CC="$ac_cv_prog_CC"
2006 fi
2007
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}cc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2030 fi
2031 done
2032 done
2033 IFS=$as_save_IFS
2034
2035 fi
2036 fi
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2041 else
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2044 fi
2045
2046
2047 fi
2048 fi
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 ac_prog_rejected=no
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected=yes
2070 continue
2071 fi
2072 ac_cv_prog_CC="cc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2075 fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2083 shift
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2088 shift
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090 fi
2091 fi
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104 fi
2105 if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then
2107 for ac_prog in cl.exe
2108 do
2109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2129 fi
2130 done
2131 done
2132 IFS=$as_save_IFS
2133
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 test -n "$CC" && break
2147 done
2148 fi
2149 if test -z "$CC"; then
2150 ac_ct_CC=$CC
2151 for ac_prog in cl.exe
2152 do
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 fi
2179 fi
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6; }
2184 else
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187 fi
2188
2189
2190 test -n "$ac_ct_CC" && break
2191 done
2192
2193 if test "x$ac_ct_CC" = x; then
2194 CC=""
2195 else
2196 case $cross_compiling:$ac_tool_warned in
2197 yes:)
2198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&5
2201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204 ac_tool_warned=yes ;;
2205 esac
2206 CC=$ac_ct_CC
2207 fi
2208 fi
2209
2210 fi
2211
2212
2213 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2218
2219 # Provide some information about the compiler.
2220 echo "$as_me:$LINENO: checking for C compiler version" >&5
2221 ac_compiler=`set X $ac_compile; echo $2`
2222 { (ac_try="$ac_compiler --version >&5"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler --version >&5") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (ac_try="$ac_compiler -v >&5"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler -v >&5") 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try="$ac_compiler -V >&5"
2243 case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -V >&5") 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259
2260 int
2261 main ()
2262 {
2263
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2272 # of exeext.
2273 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2274 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2275 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2276 #
2277 # List of possible output files, starting from the most likely.
2278 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279 # only as a last resort. b.out is created by i960 compilers.
2280 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2281 #
2282 # The IRIX 6 linker writes into existing files which may not be
2283 # executable, retaining their permissions. Remove them first so a
2284 # subsequent execution test works.
2285 ac_rmfiles=
2286 for ac_file in $ac_files
2287 do
2288 case $ac_file in
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2291 esac
2292 done
2293 rm -f $ac_rmfiles
2294
2295 if { (ac_try="$ac_link_default"
2296 case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link_default") 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 # so that the user can short-circuit this test for compilers unknown to
2309 # Autoconf.
2310 for ac_file in $ac_files ''
2311 do
2312 test -f "$ac_file" || continue
2313 case $ac_file in
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2315 ;;
2316 [ab].out )
2317 # We found the default executable, but exeext='' is most
2318 # certainly right.
2319 break;;
2320 *.* )
2321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2322 then :; else
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 fi
2325 # We set ac_cv_exeext here because the later test for it is not
2326 # safe: cross compilers may not add the suffix if given an `-o'
2327 # argument, so we may need to know it at that point already.
2328 # Even if this section looks crufty: it has the advantage of
2329 # actually working.
2330 break;;
2331 * )
2332 break;;
2333 esac
2334 done
2335 test "$ac_cv_exeext" = no && ac_cv_exeext=
2336
2337 else
2338 ac_file=''
2339 fi
2340
2341 { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343 if test -z "$ac_file"; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2352 fi
2353
2354 ac_exeext=$ac_cv_exeext
2355
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 # If not cross compiling, check that we can run a simple program.
2362 if test "$cross_compiling" != yes; then
2363 if { ac_try='./$ac_file'
2364 { (case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 cross_compiling=no
2374 else
2375 if test "$cross_compiling" = maybe; then
2376 cross_compiling=yes
2377 else
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot run C compiled programs.
2382 If you meant to cross compile, use \`--host'.
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2385 fi
2386 fi
2387 fi
2388 { echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2390
2391 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 ac_clean_files=$ac_clean_files_save
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2397 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398 echo "${ECHO_T}$cross_compiling" >&6; }
2399
2400 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2402 if { (ac_try="$ac_link"
2403 case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_link") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 # `rm'.
2416 for ac_file in conftest.exe conftest conftest.*; do
2417 test -f "$ac_file" || continue
2418 case $ac_file in
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 break;;
2422 * ) break;;
2423 esac
2424 done
2425 else
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2431 fi
2432
2433 rm -f conftest$ac_cv_exeext
2434 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2436
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2439 ac_exeext=$EXEEXT
2440 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h. */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2451
2452 int
2453 main ()
2454 {
2455
2456 ;
2457 return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { (ac_try="$ac_compile"
2462 case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in conftest.o conftest.obj conftest.*; do
2472 test -f "$ac_file" || continue;
2473 case $ac_file in
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476 break;;
2477 esac
2478 done
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2488 fi
2489
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491 fi
2492 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2495 ac_objext=$OBJEXT
2496 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507
2508 int
2509 main ()
2510 {
2511 #ifndef __GNUC__
2512 choke me
2513 #endif
2514
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then
2536 ac_compiler_gnu=yes
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_compiler_gnu=no
2542 fi
2543
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546
2547 fi
2548 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_cc_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 ac_save_c_werror_flag=$ac_c_werror_flag
2559 ac_c_werror_flag=yes
2560 ac_cv_prog_cc_g=no
2561 CFLAGS="-g"
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568
2569 int
2570 main ()
2571 {
2572
2573 ;
2574 return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2594 ac_cv_prog_cc_g=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 CFLAGS=""
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606
2607 int
2608 main ()
2609 {
2610
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.$ac_objext; then
2632 :
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_c_werror_flag=$ac_save_c_werror_flag
2638 CFLAGS="-g"
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645
2646 int
2647 main ()
2648 {
2649
2650 ;
2651 return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2671 ac_cv_prog_cc_g=yes
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676
2677 fi
2678
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 fi
2681
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 fi
2684
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2687 fi
2688 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692 elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2694 CFLAGS="-g -O2"
2695 else
2696 CFLAGS="-g"
2697 fi
2698 else
2699 if test "$GCC" = yes; then
2700 CFLAGS="-O2"
2701 else
2702 CFLAGS=
2703 fi
2704 fi
2705 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 ac_cv_prog_cc_c89=no
2711 ac_save_CC=$CC
2712 cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <stdarg.h>
2719 #include <stdio.h>
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2726 char **p;
2727 int i;
2728 {
2729 return p[i];
2730 }
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2732 {
2733 char *s;
2734 va_list v;
2735 va_start (v,p);
2736 s = g (p, va_arg (v,int));
2737 va_end (v);
2738 return s;
2739 }
2740
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std. */
2748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2749
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2752 #define FOO(x) 'x'
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2754
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 int argc;
2760 char **argv;
2761 int
2762 main ()
2763 {
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2765 ;
2766 return 0;
2767 }
2768 _ACEOF
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 do
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2790 ac_cv_prog_cc_c89=$ac_arg
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795
2796 fi
2797
2798 rm -f core conftest.err conftest.$ac_objext
2799 test "x$ac_cv_prog_cc_c89" != "xno" && break
2800 done
2801 rm -f conftest.$ac_ext
2802 CC=$ac_save_CC
2803
2804 fi
2805 # AC_CACHE_VAL
2806 case "x$ac_cv_prog_cc_c89" in
2807 x)
2808 { echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6; } ;;
2810 xno)
2811 { echo "$as_me:$LINENO: result: unsupported" >&5
2812 echo "${ECHO_T}unsupported" >&6; } ;;
2813 *)
2814 CC="$CC $ac_cv_prog_cc_c89"
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2817 esac
2818
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826
2827
2828
2829
2830 if test "$GCC" = yes ; then
2831 if test "$SHLICC2" = yes ; then
2832 ac_cv_lbl_gcc_vers=2
2833 V_CCOPT="-O2"
2834 else
2835 { echo "$as_me:$LINENO: checking gcc version" >&5
2836 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2837 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2841 sed -e '/^gcc version /!d' \
2842 -e 's/^gcc version //' \
2843 -e 's/ .*//' -e 's/^[^0-9]*//' \
2844 -e 's/\..*//'`
2845 fi
2846
2847 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2848 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2850 V_CCOPT="-O2"
2851 fi
2852 fi
2853 else
2854 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2855 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2856 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <sys/types.h>
2867 int
2868 main ()
2869 {
2870 int frob(int, char *)
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (ac_try="$ac_compile"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2892 ac_cv_lbl_cc_ansi_prototypes=yes
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ac_cv_lbl_cc_ansi_prototypes=no
2898 fi
2899
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 fi
2902
2903 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2906 case "$host_os" in
2907
2908 hpux*)
2909 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2910 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2911 savedcflags="$CFLAGS"
2912 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <sys/types.h>
2923 int
2924 main ()
2925 {
2926 int frob(int, char *)
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2948 ac_cv_lbl_cc_hpux_cc_aa=yes
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 ac_cv_lbl_cc_hpux_cc_aa=no
2954 fi
2955
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 fi
2958
2959 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2962 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2963 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966 CFLAGS="$savedcflags"
2967 V_CCOPT="-Aa $V_CCOPT"
2968
2969 cat >>confdefs.h <<\_ACEOF
2970 #define _HPUX_SOURCE 1
2971 _ACEOF
2972
2973 ;;
2974
2975 osf*)
2976 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2977 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2978 savedcflags="$CFLAGS"
2979 CFLAGS="-std1"
2980 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2990 int
2991 main ()
2992 {
2993 int frob(int, char *)
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_osf1_cc_std1=yes
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 ac_cv_lbl_cc_osf1_cc_std1=no
3021 fi
3022
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 fi
3025
3026 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3030 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033 CFLAGS="$savedcflags"
3034 V_CCOPT="-std1 $V_CCOPT"
3035 ;;
3036
3037 *)
3038 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3039 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3040 { (exit 1); exit 1; }; }
3041 ;;
3042 esac
3043 fi
3044 V_INCLS="$V_INCLS -I/usr/local/include"
3045 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3046
3047 case "$host_os" in
3048
3049 irix*)
3050 V_CCOPT="$V_CCOPT -xansi -signed -O"
3051 ;;
3052
3053 osf*)
3054 #
3055 # Presumed to be DEC OSF/1, Digital UNIX, or
3056 # Tru64 UNIX.
3057 #
3058 V_CCOPT="$V_CCOPT -O"
3059 ;;
3060
3061 ultrix*)
3062 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3063 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3064 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <sys/types.h>
3074 int
3075 main ()
3076 {
3077 struct a { int b; };
3078 void c(const struct a *)
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_cv_lbl_cc_const_proto=yes
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cv_lbl_cc_const_proto=no
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113 if test $ac_cv_lbl_cc_const_proto = no ; then
3114
3115 cat >>confdefs.h <<\_ACEOF
3116 #define const
3117 _ACEOF
3118
3119 fi
3120 ;;
3121 esac
3122 fi
3123
3124 { echo "$as_me:$LINENO: checking for inline" >&5
3125 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3126 save_CFLAGS="$CFLAGS"
3127 CFLAGS="$V_CCOPT"
3128 if test "${ac_cv_lbl_inline+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131
3132 ac_cv_lbl_inline=""
3133 ac_lbl_cc_inline=no
3134 for ac_lbl_inline in inline __inline__ __inline
3135 do
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #define inline $ac_lbl_inline
3143 static inline struct iltest *foo(void);
3144 struct iltest {
3145 int iltest1;
3146 int iltest2;
3147 };
3148
3149 static inline struct iltest *
3150 foo()
3151 {
3152 static struct iltest xxx;
3153
3154 return &xxx;
3155 }
3156 int
3157 main ()
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_lbl_cc_inline=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 if test "$ac_lbl_cc_inline" = yes ; then
3191 break;
3192 fi
3193 done
3194 if test "$ac_lbl_cc_inline" = yes ; then
3195 ac_cv_lbl_inline=$ac_lbl_inline
3196 fi
3197 fi
3198
3199 CFLAGS="$save_CFLAGS"
3200 if test ! -z "$ac_cv_lbl_inline" ; then
3201 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3202 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3203 else
3204 { echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6; }
3206 fi
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define inline $ac_cv_lbl_inline
3210 _ACEOF
3211
3212
3213 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3214 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3215 if test "${ac_cv___attribute__+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218
3219 cat >conftest.$ac_ext <<_ACEOF
3220
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226
3227 #include <stdlib.h>
3228
3229 static void foo(void) __attribute__ ((noreturn));
3230
3231 static void
3232 foo(void)
3233 {
3234 exit(1);
3235 }
3236
3237 int
3238 main(int argc, char **argv)
3239 {
3240 foo();
3241 }
3242
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3261 ac_cv___attribute__=yes
3262 else
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 ac_cv___attribute__=no
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 fi
3271
3272 if test "$ac_cv___attribute__" = "yes"; then
3273
3274 cat >>confdefs.h <<\_ACEOF
3275 #define HAVE___ATTRIBUTE__ 1
3276 _ACEOF
3277
3278 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3279 else
3280 V_DEFS="$V_DEFS -D_U_=\"\""
3281 fi
3282 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3283 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3284
3285 if test "$ac_cv___attribute__" = "yes"; then
3286
3287 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3288 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3289 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292
3293 cat >conftest.$ac_ext <<_ACEOF
3294
3295 /* confdefs.h. */
3296 _ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300
3301 #include <stdlib.h>
3302
3303 extern int (*foo)(const char *fmt, ...)
3304 __attribute__ ((format (printf, 1, 2)));
3305
3306 int
3307 main(int argc, char **argv)
3308 {
3309 (*foo)("%s", "test");
3310 }
3311
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.$ac_objext; then
3330 ac_cv___attribute___format_function_pointer=yes
3331 else
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3334
3335 ac_cv___attribute___format_function_pointer=no
3336 fi
3337
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 fi
3340
3341 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3342
3343 cat >>confdefs.h <<\_ACEOF
3344 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3345 _ACEOF
3346
3347 fi
3348 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3349 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3350
3351 fi
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3359 # On Suns, sometimes $CPP names a directory.
3360 if test -n "$CPP" && test -d "$CPP"; then
3361 CPP=
3362 fi
3363 if test -z "$CPP"; then
3364 if test "${ac_cv_prog_CPP+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 # Double quotes because CPP needs to be expanded
3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3369 do
3370 ac_preproc_ok=false
3371 for ac_c_preproc_warn_flag in '' yes
3372 do
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
3379 cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h. */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3385 #ifdef __STDC__
3386 # include <limits.h>
3387 #else
3388 # include <assert.h>
3389 #endif
3390 Syntax error
3391 _ACEOF
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null && {
3405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 }; then
3408 :
3409 else
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 # Broken: fails on valid input.
3414 continue
3415 fi
3416
3417 rm -f conftest.err conftest.$ac_ext
3418
3419 # OK, works on sane cases. Now check whether nonexistent headers
3420 # can be detected and how.
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427 #include <ac_nonexistent.h>
3428 _ACEOF
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null && {
3442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3443 test ! -s conftest.err
3444 }; then
3445 # Broken: success on invalid input.
3446 continue
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 # Passes both tests.
3452 ac_preproc_ok=:
3453 break
3454 fi
3455
3456 rm -f conftest.err conftest.$ac_ext
3457
3458 done
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then
3462 break
3463 fi
3464
3465 done
3466 ac_cv_prog_CPP=$CPP
3467
3468 fi
3469 CPP=$ac_cv_prog_CPP
3470 else
3471 ac_cv_prog_CPP=$CPP
3472 fi
3473 { echo "$as_me:$LINENO: result: $CPP" >&5
3474 echo "${ECHO_T}$CPP" >&6; }
3475 ac_preproc_ok=false
3476 for ac_c_preproc_warn_flag in '' yes
3477 do
3478 # Use a header file that comes with gcc, so configuring glibc
3479 # with a fresh cross-compiler works.
3480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3481 # <limits.h> exists even on freestanding compilers.
3482 # On the NeXT, cc -E runs the code through the compiler's parser,
3483 # not just through cpp. "Syntax error" is here to catch this case.
3484 cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h. */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 #ifdef __STDC__
3491 # include <limits.h>
3492 #else
3493 # include <assert.h>
3494 #endif
3495 Syntax error
3496 _ACEOF
3497 if { (ac_try="$ac_cpp conftest.$ac_ext"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null && {
3510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 }; then
3513 :
3514 else
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 # Broken: fails on valid input.
3519 continue
3520 fi
3521
3522 rm -f conftest.err conftest.$ac_ext
3523
3524 # OK, works on sane cases. Now check whether nonexistent headers
3525 # can be detected and how.
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <ac_nonexistent.h>
3533 _ACEOF
3534 if { (ac_try="$ac_cpp conftest.$ac_ext"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null && {
3547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3548 test ! -s conftest.err
3549 }; then
3550 # Broken: success on invalid input.
3551 continue
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 # Passes both tests.
3557 ac_preproc_ok=:
3558 break
3559 fi
3560
3561 rm -f conftest.err conftest.$ac_ext
3562
3563 done
3564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3565 rm -f conftest.err conftest.$ac_ext
3566 if $ac_preproc_ok; then
3567 :
3568 else
3569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&5
3571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3572 See \`config.log' for more details." >&2;}
3573 { (exit 1); exit 1; }; }
3574 fi
3575
3576 ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
3582
3583 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3584 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3585 if test "${ac_cv_path_GREP+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 # Extract the first word of "grep ggrep" to use in msg output
3589 if test -z "$GREP"; then
3590 set dummy grep ggrep; ac_prog_name=$2
3591 if test "${ac_cv_path_GREP+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594 ac_path_GREP_found=false
3595 # Loop through the user's path and test for each of PROGNAME-LIST
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3598 do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_prog in grep ggrep; do
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3604 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3605 # Check for GNU ac_path_GREP and select it if it is found.
3606 # Check for GNU $ac_path_GREP
3607 case `"$ac_path_GREP" --version 2>&1` in
3608 *GNU*)
3609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3610 *)
3611 ac_count=0
3612 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3613 while :
3614 do
3615 cat "conftest.in" "conftest.in" >"conftest.tmp"
3616 mv "conftest.tmp" "conftest.in"
3617 cp "conftest.in" "conftest.nl"
3618 echo 'GREP' >> "conftest.nl"
3619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3621 ac_count=`expr $ac_count + 1`
3622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3623 # Best one so far, save it but keep looking for a better one
3624 ac_cv_path_GREP="$ac_path_GREP"
3625 ac_path_GREP_max=$ac_count
3626 fi
3627 # 10*(2^10) chars as input seems more than enough
3628 test $ac_count -gt 10 && break
3629 done
3630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3631 esac
3632
3633
3634 $ac_path_GREP_found && break 3
3635 done
3636 done
3637
3638 done
3639 IFS=$as_save_IFS
3640
3641
3642 fi
3643
3644 GREP="$ac_cv_path_GREP"
3645 if test -z "$GREP"; then
3646 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3647 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3648 { (exit 1); exit 1; }; }
3649 fi
3650
3651 else
3652 ac_cv_path_GREP=$GREP
3653 fi
3654
3655
3656 fi
3657 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3658 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3659 GREP="$ac_cv_path_GREP"
3660
3661
3662 { echo "$as_me:$LINENO: checking for egrep" >&5
3663 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3664 if test "${ac_cv_path_EGREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3668 then ac_cv_path_EGREP="$GREP -E"
3669 else
3670 # Extract the first word of "egrep" to use in msg output
3671 if test -z "$EGREP"; then
3672 set dummy egrep; ac_prog_name=$2
3673 if test "${ac_cv_path_EGREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 ac_path_EGREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in egrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3687 # Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689 case `"$ac_path_EGREP" --version 2>&1` in
3690 *GNU*)
3691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692 *)
3693 ac_count=0
3694 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3695 while :
3696 do
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 ac_count=`expr $ac_count + 1`
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP="$ac_path_EGREP"
3707 ac_path_EGREP_max=$ac_count
3708 fi
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3711 done
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713 esac
3714
3715
3716 $ac_path_EGREP_found && break 3
3717 done
3718 done
3719
3720 done
3721 IFS=$as_save_IFS
3722
3723
3724 fi
3725
3726 EGREP="$ac_cv_path_EGREP"
3727 if test -z "$EGREP"; then
3728 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3729 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3730 { (exit 1); exit 1; }; }
3731 fi
3732
3733 else
3734 ac_cv_path_EGREP=$EGREP
3735 fi
3736
3737
3738 fi
3739 fi
3740 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3741 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3742 EGREP="$ac_cv_path_EGREP"
3743
3744
3745 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3746 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3747 if test "${ac_cv_header_stdc+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h. */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3756 #include <stdlib.h>
3757 #include <stdarg.h>
3758 #include <string.h>
3759 #include <float.h>
3760
3761 int
3762 main ()
3763 {
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compile") 2>conftest.er1
3777 ac_status=$?
3778 grep -v '^ *+' conftest.er1 >conftest.err
3779 rm -f conftest.er1
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } && {
3783 test -z "$ac_c_werror_flag" ||
3784 test ! -s conftest.err
3785 } && test -s conftest.$ac_objext; then
3786 ac_cv_header_stdc=yes
3787 else
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 ac_cv_header_stdc=no
3792 fi
3793
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795
3796 if test $ac_cv_header_stdc = yes; then
3797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 #include <string.h>
3805
3806 _ACEOF
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "memchr" >/dev/null 2>&1; then
3809 :
3810 else
3811 ac_cv_header_stdc=no
3812 fi
3813 rm -f conftest*
3814
3815 fi
3816
3817 if test $ac_cv_header_stdc = yes; then
3818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <stdlib.h>
3826
3827 _ACEOF
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 $EGREP "free" >/dev/null 2>&1; then
3830 :
3831 else
3832 ac_cv_header_stdc=no
3833 fi
3834 rm -f conftest*
3835
3836 fi
3837
3838 if test $ac_cv_header_stdc = yes; then
3839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3840 if test "$cross_compiling" = yes; then
3841 :
3842 else
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <ctype.h>
3850 #include <stdlib.h>
3851 #if ((' ' & 0x0FF) == 0x020)
3852 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3853 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3854 #else
3855 # define ISLOWER(c) \
3856 (('a' <= (c) && (c) <= 'i') \
3857 || ('j' <= (c) && (c) <= 'r') \
3858 || ('s' <= (c) && (c) <= 'z'))
3859 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3860 #endif
3861
3862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3863 int
3864 main ()
3865 {
3866 int i;
3867 for (i = 0; i < 256; i++)
3868 if (XOR (islower (i), ISLOWER (i))
3869 || toupper (i) != TOUPPER (i))
3870 return 2;
3871 return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest$ac_exeext
3875 if { (ac_try="$ac_link"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_link") 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3885 { (case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_try") 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 :
3895 else
3896 echo "$as_me: program exited with status $ac_status" >&5
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3899
3900 ( exit $ac_status )
3901 ac_cv_header_stdc=no
3902 fi
3903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3904 fi
3905
3906
3907 fi
3908 fi
3909 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3910 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3911 if test $ac_cv_header_stdc = yes; then
3912
3913 cat >>confdefs.h <<\_ACEOF
3914 #define STDC_HEADERS 1
3915 _ACEOF
3916
3917 fi
3918
3919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3930 inttypes.h stdint.h unistd.h
3931 do
3932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944 $ac_includes_default
3945
3946 #include <$ac_header>
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (ac_try="$ac_compile"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.$ac_objext; then
3965 eval "$as_ac_Header=yes"
3966 else
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 eval "$as_ac_Header=no"
3971 fi
3972
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 fi
3975 ac_res=`eval echo '${'$as_ac_Header'}'`
3976 { echo "$as_me:$LINENO: result: $ac_res" >&5
3977 echo "${ECHO_T}$ac_res" >&6; }
3978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3979 cat >>confdefs.h <<_ACEOF
3980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3981 _ACEOF
3982
3983 fi
3984
3985 done
3986
3987
3988
3989
3990
3991
3992 for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
3993 do
3994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 fi
4001 ac_res=`eval echo '${'$as_ac_Header'}'`
4002 { echo "$as_me:$LINENO: result: $ac_res" >&5
4003 echo "${ECHO_T}$ac_res" >&6; }
4004 else
4005 # Is the header compilable?
4006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 $ac_includes_default
4015 #include <$ac_header>
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 ac_header_compiler=yes
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 ac_header_compiler=no
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4044 echo "${ECHO_T}$ac_header_compiler" >&6; }
4045
4046 # Is the header present?
4047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <$ac_header>
4056 _ACEOF
4057 if { (ac_try="$ac_cpp conftest.$ac_ext"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } >/dev/null && {
4070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 }; then
4073 ac_header_preproc=yes
4074 else
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 ac_header_preproc=no
4079 fi
4080
4081 rm -f conftest.err conftest.$ac_ext
4082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4083 echo "${ECHO_T}$ac_header_preproc" >&6; }
4084
4085 # So? What about this header?
4086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4087 yes:no: )
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4092 ac_header_preproc=yes
4093 ;;
4094 no:yes:* )
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4107
4108 ;;
4109 esac
4110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 eval "$as_ac_Header=\$ac_header_preproc"
4116 fi
4117 ac_res=`eval echo '${'$as_ac_Header'}'`
4118 { echo "$as_me:$LINENO: result: $ac_res" >&5
4119 echo "${ECHO_T}$ac_res" >&6; }
4120
4121 fi
4122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123 cat >>confdefs.h <<_ACEOF
4124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4125 _ACEOF
4126
4127 fi
4128
4129 done
4130
4131
4132 for ac_header in net/pfvar.h
4133 do
4134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <sys/types.h>
4147 #include <sys/socket.h>
4148 #include <net/if.h>
4149
4150 #include <$ac_header>
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 eval "$as_ac_Header=yes"
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 eval "$as_ac_Header=no"
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 fi
4179 ac_res=`eval echo '${'$as_ac_Header'}'`
4180 { echo "$as_me:$LINENO: result: $ac_res" >&5
4181 echo "${ECHO_T}$ac_res" >&6; }
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 _ACEOF
4186
4187 fi
4188
4189 done
4190
4191 if test "$ac_cv_header_net_pfvar_h" = yes; then
4192 LOCALSRC="print-pflog.c $LOCALSRC"
4193 fi
4194
4195 for ac_header in netinet/if_ether.h
4196 do
4197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <sys/types.h>
4210 #include <sys/socket.h>
4211
4212 #include <$ac_header>
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && {
4228 test -z "$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4230 } && test -s conftest.$ac_objext; then
4231 eval "$as_ac_Header=yes"
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 eval "$as_ac_Header=no"
4237 fi
4238
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 ac_res=`eval echo '${'$as_ac_Header'}'`
4242 { echo "$as_me:$LINENO: result: $ac_res" >&5
4243 echo "${ECHO_T}$ac_res" >&6; }
4244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4245 cat >>confdefs.h <<_ACEOF
4246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4247 _ACEOF
4248
4249 fi
4250
4251 done
4252
4253 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4254 #
4255 # The simple test didn't work.
4256 # Do we need to include <net/if.h> first?
4257 # Unset ac_cv_header_netinet_if_ether_h so we don't
4258 # treat the previous failure as a cached value and
4259 # suppress the next test.
4260 #
4261 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4262 echo "$as_me: Rechecking with some additional includes" >&6;}
4263 unset ac_cv_header_netinet_if_ether_h
4264
4265 for ac_header in netinet/if_ether.h
4266 do
4267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h. */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #include <sys/types.h>
4280 #include <sys/socket.h>
4281 #include <netinet/in.h>
4282 struct mbuf;
4283 struct rtentry;
4284 #include <net/if.h>
4285
4286 #include <$ac_header>
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4290 case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } && {
4302 test -z "$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4304 } && test -s conftest.$ac_objext; then
4305 eval "$as_ac_Header=yes"
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 eval "$as_ac_Header=no"
4311 fi
4312
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 ac_res=`eval echo '${'$as_ac_Header'}'`
4316 { echo "$as_me:$LINENO: result: $ac_res" >&5
4317 echo "${ECHO_T}$ac_res" >&6; }
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322
4323 fi
4324
4325 done
4326
4327 fi
4328
4329 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4331 if test "${ac_cv_header_time+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <sys/types.h>
4341 #include <sys/time.h>
4342 #include <time.h>
4343
4344 int
4345 main ()
4346 {
4347 if ((struct tm *) 0)
4348 return 0;
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4370 ac_cv_header_time=yes
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ac_cv_header_time=no
4376 fi
4377
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4381 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4382 if test $ac_cv_header_time = yes; then
4383
4384 cat >>confdefs.h <<\_ACEOF
4385 #define TIME_WITH_SYS_TIME 1
4386 _ACEOF
4387
4388 fi
4389
4390
4391 case "$host_os" in
4392
4393 darwin*)
4394 # Check whether --enable-universal was given.
4395 if test "${enable_universal+set}" = set; then
4396 enableval=$enable_universal;
4397 fi
4398
4399 if test "$enable_universal" != "no"; then
4400 case "$host_os" in
4401
4402 darwin9.*)
4403 #
4404 # Leopard. Build for x86 and 32-bit PowerPC, with
4405 # x86 first. (That's what Apple does.)
4406 #
4407 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4408 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4409 ;;
4410
4411 darwin10.*)
4412 #
4413 # Snow Leopard. Build for x86-64 and x86, with
4414 # x86-64 first. (That's what Apple does.)
4415 #
4416 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4417 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4418 ;;
4419 esac
4420 fi
4421 ;;
4422
4423 linux*)
4424 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4425 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4426 if test "$cross_compiling" = yes; then
4427 if test "${ac_cv_linux_vers+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 ac_cv_linux_vers=unknown
4431 fi
4432
4433 else
4434 if test "${ac_cv_linux_vers+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_cv_linux_vers=`uname -r 2>&1 | \
4438 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4439 fi
4440
4441 fi
4442 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4443 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4444 if test $ac_cv_linux_vers = unknown ; then
4445 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4446 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4447 { (exit 1); exit 1; }; }
4448 fi
4449 if test $ac_cv_linux_vers -lt 2 ; then
4450 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4451 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4452 { (exit 1); exit 1; }; }
4453 fi
4454 ;;
4455
4456 *)
4457 ;;
4458 esac
4459
4460
4461
4462 # Check whether --with-smi was given.
4463 if test "${with_smi+set}" = set; then
4464 withval=$with_smi;
4465 else
4466 with_smi=yes
4467 fi
4468
4469
4470 if test "x$with_smi" != "xno" ; then
4471
4472 for ac_header in smi.h
4473 do
4474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 fi
4481 ac_res=`eval echo '${'$as_ac_Header'}'`
4482 { echo "$as_me:$LINENO: result: $ac_res" >&5
4483 echo "${ECHO_T}$ac_res" >&6; }
4484 else
4485 # Is the header compilable?
4486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 $ac_includes_default
4495 #include <$ac_header>
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_compile") 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && {
4511 test -z "$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 } && test -s conftest.$ac_objext; then
4514 ac_header_compiler=yes
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 ac_header_compiler=no
4520 fi
4521
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524 echo "${ECHO_T}$ac_header_compiler" >&6; }
4525
4526 # Is the header present?
4527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <$ac_header>
4536 _ACEOF
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 }; then
4553 ac_header_preproc=yes
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ac_header_preproc=no
4559 fi
4560
4561 rm -f conftest.err conftest.$ac_ext
4562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4563 echo "${ECHO_T}$ac_header_preproc" >&6; }
4564
4565 # So? What about this header?
4566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4567 yes:no: )
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4572 ac_header_preproc=yes
4573 ;;
4574 no:yes:* )
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4587
4588 ;;
4589 esac
4590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 eval "$as_ac_Header=\$ac_header_preproc"
4596 fi
4597 ac_res=`eval echo '${'$as_ac_Header'}'`
4598 { echo "$as_me:$LINENO: result: $ac_res" >&5
4599 echo "${ECHO_T}$ac_res" >&6; }
4600
4601 fi
4602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603 cat >>confdefs.h <<_ACEOF
4604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 _ACEOF
4606
4607 fi
4608
4609 done
4610
4611
4612 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4613 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4614 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-lsmi $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625
4626 /* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
4629 #ifdef __cplusplus
4630 extern "C"
4631 #endif
4632 char smiInit ();
4633 int
4634 main ()
4635 {
4636 return smiInit ();
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest$ac_exeext &&
4658 $as_test_x conftest$ac_exeext; then
4659 ac_cv_lib_smi_smiInit=yes
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ac_cv_lib_smi_smiInit=no
4665 fi
4666
4667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4668 conftest$ac_exeext conftest.$ac_ext
4669 LIBS=$ac_check_lib_save_LIBS
4670 fi
4671 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4672 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4673 if test $ac_cv_lib_smi_smiInit = yes; then
4674 cat >>confdefs.h <<_ACEOF
4675 #define HAVE_LIBSMI 1
4676 _ACEOF
4677
4678 LIBS="-lsmi $LIBS"
4679
4680 fi
4681
4682 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4683 then
4684 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4685 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4686 if test "$cross_compiling" = yes; then
4687 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4688 echo "${ECHO_T}not when cross-compiling" >&6; }
4689 libsmi=no
4690
4691 else
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 /* libsmi available check */
4699 #include <smi.h>
4700 main()
4701 {
4702 int current, revision, age, n;
4703 const int required = 2;
4704 if (smiInit(""))
4705 exit(1);
4706 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4707 exit(2);
4708 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4709 if (n != 3)
4710 exit(3);
4711 if (required < current - age || required > current)
4712 exit(4);
4713 exit(0);
4714 }
4715
4716 _ACEOF
4717 rm -f conftest$ac_exeext
4718 if { (ac_try="$ac_link"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_link") 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4728 { (case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_try") 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 { echo "$as_me:$LINENO: result: yes" >&5
4738 echo "${ECHO_T}yes" >&6; }
4739 cat >>confdefs.h <<\_ACEOF
4740 #define LIBSMI 1
4741 _ACEOF
4742
4743 libsmi=yes
4744 else
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ( exit $ac_status )
4750 case $? in
4751 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4752 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4753 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4754 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4755 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4756 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4757 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4758 echo "${ECHO_T}no - too old" >&6; } ;;
4759 *) { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; } ;;
4761 esac
4762 libsmi=no
4763 fi
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4765 fi
4766
4767
4768 fi
4769 fi
4770
4771 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4772 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4773 # Check whether --enable-smb was given.
4774 if test "${enable_smb+set}" = set; then
4775 enableval=$enable_smb;
4776 else
4777 enableval=yes
4778 fi
4779
4780 case "$enableval" in
4781 yes) { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4783 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4784 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4785 cat >>confdefs.h <<\_ACEOF
4786 #define TCPDUMP_DO_SMB 1
4787 _ACEOF
4788
4789 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4790 ;;
4791 *) { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4793 ;;
4794 esac
4795
4796
4797 # Check whether --with-user was given.
4798 if test "${with_user+set}" = set; then
4799 withval=$with_user;
4800 fi
4801
4802 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4803 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4804 if test ! -z "$with_user" ; then
4805 cat >>confdefs.h <<_ACEOF
4806 #define WITH_USER "$withval"
4807 _ACEOF
4808
4809 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4810 echo "${ECHO_T}to \"$withval\"" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 fi
4815
4816
4817 # Check whether --with-chroot was given.
4818 if test "${with_chroot+set}" = set; then
4819 withval=$with_chroot;
4820 fi
4821
4822 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4823 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4824 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define WITH_CHROOT "$withval"
4827 _ACEOF
4828
4829 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4830 echo "${ECHO_T}to \"$withval\"" >&6; }
4831 else
4832 { echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6; }
4834 fi
4835
4836 #
4837 # We must check this before checking whether to enable IPv6, because,
4838 # on some platforms (such as SunOS 5.x), the test program requires
4839 # the extra networking libraries.
4840 #
4841
4842 # Most operating systems have gethostbyname() in the default searched
4843 # libraries (i.e. libc):
4844 # Some OSes (eg. Solaris) place it in libnsl
4845 # Some strange OSes (SINIX) have it in libsocket:
4846 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4847 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4848 if test "${ac_cv_search_gethostbyname+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851 ac_func_search_save_LIBS=$LIBS
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858
4859 /* Override any GCC internal prototype to avoid an error.
4860 Use char because int might match the return type of a GCC
4861 builtin and then its argument prototype would still apply. */
4862 #ifdef __cplusplus
4863 extern "C"
4864 #endif
4865 char gethostbyname ();
4866 int
4867 main ()
4868 {
4869 return gethostbyname ();
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 for ac_lib in '' nsl socket resolv; do
4875 if test -z "$ac_lib"; then
4876 ac_res="none required"
4877 else
4878 ac_res=-l$ac_lib
4879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4880 fi
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_link") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest$ac_exeext &&
4898 $as_test_x conftest$ac_exeext; then
4899 ac_cv_search_gethostbyname=$ac_res
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904
4905 fi
4906
4907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4908 conftest$ac_exeext
4909 if test "${ac_cv_search_gethostbyname+set}" = set; then
4910 break
4911 fi
4912 done
4913 if test "${ac_cv_search_gethostbyname+set}" = set; then
4914 :
4915 else
4916 ac_cv_search_gethostbyname=no
4917 fi
4918 rm conftest.$ac_ext
4919 LIBS=$ac_func_search_save_LIBS
4920 fi
4921 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4922 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4923 ac_res=$ac_cv_search_gethostbyname
4924 if test "$ac_res" != no; then
4925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4926
4927 fi
4928
4929 # Unfortunately libsocket sometimes depends on libnsl and
4930 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
4931 if test "$ac_cv_search_gethostbyname" = "no"
4932 then
4933 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
4934 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
4935 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 ac_check_lib_save_LIBS=$LIBS
4939 LIBS="-lsocket -lnsl $LIBS"
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946
4947 /* Override any GCC internal prototype to avoid an error.
4948 Use char because int might match the return type of a GCC
4949 builtin and then its argument prototype would still apply. */
4950 #ifdef __cplusplus
4951 extern "C"
4952 #endif
4953 char gethostbyname ();
4954 int
4955 main ()
4956 {
4957 return gethostbyname ();
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext conftest$ac_exeext
4963 if { (ac_try="$ac_link"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_link") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest$ac_exeext &&
4979 $as_test_x conftest$ac_exeext; then
4980 ac_cv_lib_socket_gethostbyname=yes
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_cv_lib_socket_gethostbyname=no
4986 fi
4987
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4989 conftest$ac_exeext conftest.$ac_ext
4990 LIBS=$ac_check_lib_save_LIBS
4991 fi
4992 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4993 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
4994 if test $ac_cv_lib_socket_gethostbyname = yes; then
4995 LIBS="-lsocket -lnsl $LIBS"
4996 fi
4997
4998 fi
4999 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5000 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5001 if test "${ac_cv_search_socket+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 ac_func_search_save_LIBS=$LIBS
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011
5012 /* Override any GCC internal prototype to avoid an error.
5013 Use char because int might match the return type of a GCC
5014 builtin and then its argument prototype would still apply. */
5015 #ifdef __cplusplus
5016 extern "C"
5017 #endif
5018 char socket ();
5019 int
5020 main ()
5021 {
5022 return socket ();
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 for ac_lib in '' socket; do
5028 if test -z "$ac_lib"; then
5029 ac_res="none required"
5030 else
5031 ac_res=-l$ac_lib
5032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5033 fi
5034 rm -f conftest.$ac_objext conftest$ac_exeext
5035 if { (ac_try="$ac_link"
5036 case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_link") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest$ac_exeext &&
5051 $as_test_x conftest$ac_exeext; then
5052 ac_cv_search_socket=$ac_res
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057
5058 fi
5059
5060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5061 conftest$ac_exeext
5062 if test "${ac_cv_search_socket+set}" = set; then
5063 break
5064 fi
5065 done
5066 if test "${ac_cv_search_socket+set}" = set; then
5067 :
5068 else
5069 ac_cv_search_socket=no
5070 fi
5071 rm conftest.$ac_ext
5072 LIBS=$ac_func_search_save_LIBS
5073 fi
5074 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5075 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5076 ac_res=$ac_cv_search_socket
5077 if test "$ac_res" != no; then
5078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5079
5080 else
5081 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5082 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5083 if test "${ac_cv_lib_socket_socket+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 ac_check_lib_save_LIBS=$LIBS
5087 LIBS="-lsocket -lnsl $LIBS"
5088 cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h. */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094
5095 /* Override any GCC internal prototype to avoid an error.
5096 Use char because int might match the return type of a GCC
5097 builtin and then its argument prototype would still apply. */
5098 #ifdef __cplusplus
5099 extern "C"
5100 #endif
5101 char socket ();
5102 int
5103 main ()
5104 {
5105 return socket ();
5106 ;
5107 return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5112 case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_link") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && {
5124 test -z "$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 } && test -s conftest$ac_exeext &&
5127 $as_test_x conftest$ac_exeext; then
5128 ac_cv_lib_socket_socket=yes
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_cv_lib_socket_socket=no
5134 fi
5135
5136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5137 conftest$ac_exeext conftest.$ac_ext
5138 LIBS=$ac_check_lib_save_LIBS
5139 fi
5140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5141 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5142 if test $ac_cv_lib_socket_socket = yes; then
5143 LIBS="-lsocket -lnsl $LIBS"
5144 fi
5145
5146 fi
5147
5148 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5149 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5150 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5151 if test "${ac_cv_search_putmsg+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154 ac_func_search_save_LIBS=$LIBS
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161
5162 /* Override any GCC internal prototype to avoid an error.
5163 Use char because int might match the return type of a GCC
5164 builtin and then its argument prototype would still apply. */
5165 #ifdef __cplusplus
5166 extern "C"
5167 #endif
5168 char putmsg ();
5169 int
5170 main ()
5171 {
5172 return putmsg ();
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 for ac_lib in '' str; do
5178 if test -z "$ac_lib"; then
5179 ac_res="none required"
5180 else
5181 ac_res=-l$ac_lib
5182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5183 fi
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (ac_try="$ac_link"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_link") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest$ac_exeext &&
5201 $as_test_x conftest$ac_exeext; then
5202 ac_cv_search_putmsg=$ac_res
5203 else
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207
5208 fi
5209
5210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5211 conftest$ac_exeext
5212 if test "${ac_cv_search_putmsg+set}" = set; then
5213 break
5214 fi
5215 done
5216 if test "${ac_cv_search_putmsg+set}" = set; then
5217 :
5218 else
5219 ac_cv_search_putmsg=no
5220 fi
5221 rm conftest.$ac_ext
5222 LIBS=$ac_func_search_save_LIBS
5223 fi
5224 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5225 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5226 ac_res=$ac_cv_search_putmsg
5227 if test "$ac_res" != no; then
5228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5229
5230 fi
5231
5232
5233
5234 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5235 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5236 # Check whether --enable-ipv6 was given.
5237 if test "${enable_ipv6+set}" = set; then
5238 enableval=$enable_ipv6; case "$enableval" in
5239 yes) { echo "$as_me:$LINENO: result: yes" >&5
5240 echo "${ECHO_T}yes" >&6; }
5241 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"
5242 cat >>confdefs.h <<\_ACEOF
5243 #define INET6 1
5244 _ACEOF
5245
5246 ipv6=yes
5247 ;;
5248 *)
5249 { echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6; }
5251 ipv6=no
5252 ;;
5253 esac
5254 else
5255 if test "$cross_compiling" = yes; then
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5258 ipv6=no
5259
5260 else
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 /* AF_INET6 available check */
5268 #include <sys/types.h>
5269 #include <sys/socket.h>
5270 main()
5271 {
5272 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5273 exit(1);
5274 else
5275 exit(0);
5276 }
5277
5278 _ACEOF
5279 rm -f conftest$ac_exeext
5280 if { (ac_try="$ac_link"
5281 case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_link") 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5290 { (case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_try") 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 { echo "$as_me:$LINENO: result: yes" >&5
5300 echo "${ECHO_T}yes" >&6; }
5301 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"
5302 cat >>confdefs.h <<\_ACEOF
5303 #define INET6 1
5304 _ACEOF
5305
5306 ipv6=yes
5307 else
5308 echo "$as_me: program exited with status $ac_status" >&5
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 ( exit $ac_status )
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5315 ipv6=no
5316 fi
5317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5318 fi
5319
5320
5321 fi
5322
5323
5324 ipv6type=unknown
5325 ipv6lib=none
5326 ipv6trylibc=no
5327
5328 if test "$ipv6" = "yes"; then
5329 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5330 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5331 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
5332 case $i in
5333 inria)
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <netinet/in.h>
5341 #ifdef IPV6_INRIA_VERSION
5342 yes
5343 #endif
5344 _ACEOF
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 $EGREP "yes" >/dev/null 2>&1; then
5347 ipv6type=$i;
5348 CFLAGS="-DINET6 $CFLAGS"
5349 fi
5350 rm -f conftest*
5351
5352 ;;
5353 kame)
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <netinet/in.h>
5361 #ifdef __KAME__
5362 yes
5363 #endif
5364 _ACEOF
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "yes" >/dev/null 2>&1; then
5367 ipv6type=$i;
5368 ipv6lib=inet6;
5369 ipv6libdir=/usr/local/v6/lib;
5370 ipv6trylibc=yes;
5371 CFLAGS="-DINET6 $CFLAGS"
5372 fi
5373 rm -f conftest*
5374
5375 ;;
5376 linux-glibc)
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <features.h>
5384 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5385 yes
5386 #endif
5387 _ACEOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "yes" >/dev/null 2>&1; then
5390 ipv6type=$i;
5391 CFLAGS="-DINET6 $CFLAGS"
5392 fi
5393 rm -f conftest*
5394
5395 ;;
5396 linux-libinet6)
5397 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5398 ipv6type=$i
5399 ipv6lib=inet6
5400 ipv6libdir=/usr/inet6/lib
5401 ipv6trylibc=yes;
5402 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5403 fi
5404 ;;
5405 toshiba)
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <sys/param.h>
5413 #ifdef _TOSHIBA_INET6
5414 yes
5415 #endif
5416 _ACEOF
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "yes" >/dev/null 2>&1; then
5419 ipv6type=$i;
5420 ipv6lib=inet6;
5421 ipv6libdir=/usr/local/v6/lib;
5422 CFLAGS="-DINET6 $CFLAGS"
5423 fi
5424 rm -f conftest*
5425
5426 ;;
5427 v6d)
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include </usr/local/v6/include/sys/v6config.h>
5435 #ifdef __V6D__
5436 yes
5437 #endif
5438 _ACEOF
5439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440 $EGREP "yes" >/dev/null 2>&1; then
5441 ipv6type=$i;
5442 ipv6lib=v6;
5443 ipv6libdir=/usr/local/v6/lib;
5444 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5445 fi
5446 rm -f conftest*
5447
5448 ;;
5449 zeta)
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <sys/param.h>
5457 #ifdef _ZETA_MINAMI_INET6
5458 yes
5459 #endif
5460 _ACEOF
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "yes" >/dev/null 2>&1; then
5463 ipv6type=$i;
5464 ipv6lib=inet6;
5465 ipv6libdir=/usr/local/v6/lib;
5466 CFLAGS="-DINET6 $CFLAGS"
5467 fi
5468 rm -f conftest*
5469
5470 ;;
5471 esac
5472 if test "$ipv6type" != "unknown"; then
5473 break
5474 fi
5475 done
5476 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5477 echo "${ECHO_T}$ipv6type" >&6; }
5478 fi
5479
5480 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5481 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5482 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5483 echo "You have $ipv6lib library, using it"
5484 else
5485 if test "$ipv6trylibc" = "yes"; then
5486 echo "You do not have $ipv6lib library, using libc"
5487 else
5488 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5489 echo "You need to fetch lib$ipv6lib.a from appropriate"
5490 echo 'ipv6 kit and compile beforehand.'
5491 exit 1
5492 fi
5493 fi
5494 fi
5495
5496
5497 if test "$ipv6" = "yes"; then
5498 #
5499 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5500 # function in libc; there are "ngetaddrinfo()" and
5501 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5502 # "getaddrinfo" to be either "ngetaddrinfo" or
5503 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5504 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5505 #
5506 # So this test doesn't work on Tru64 5.1, and possibly
5507 # on other 5.x releases. This causes the configure
5508 # script to become confused, and results in libpcap
5509 # being unbuildable.
5510 #
5511 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5512 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5513 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 ac_func_search_save_LIBS=$LIBS
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523
5524 /* Override any GCC internal prototype to avoid an error.
5525 Use char because int might match the return type of a GCC
5526 builtin and then its argument prototype would still apply. */
5527 #ifdef __cplusplus
5528 extern "C"
5529 #endif
5530 char getaddrinfo ();
5531 int
5532 main ()
5533 {
5534 return getaddrinfo ();
5535 ;
5536 return 0;
5537 }
5538 _ACEOF
5539 for ac_lib in '' socket; do
5540 if test -z "$ac_lib"; then
5541 ac_res="none required"
5542 else
5543 ac_res=-l$ac_lib
5544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5545 fi
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (ac_try="$ac_link"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_link") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest$ac_exeext &&
5563 $as_test_x conftest$ac_exeext; then
5564 ac_cv_search_getaddrinfo=$ac_res
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5568
5569
5570 fi
5571
5572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5573 conftest$ac_exeext
5574 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5575 break
5576 fi
5577 done
5578 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5579 :
5580 else
5581 ac_cv_search_getaddrinfo=no
5582 fi
5583 rm conftest.$ac_ext
5584 LIBS=$ac_func_search_save_LIBS
5585 fi
5586 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5587 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5588 ac_res=$ac_cv_search_getaddrinfo
5589 if test "$ac_res" != no; then
5590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5591 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5592 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5593 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596 if test "$cross_compiling" = yes; then
5597 td_cv_buggygetaddrinfo=yes
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605
5606 #include <sys/types.h>
5607 #include <netdb.h>
5608 #include <string.h>
5609 #include <sys/socket.h>
5610 #include <netinet/in.h>
5611
5612 main()
5613 {
5614 int passive, gaierr, inet4 = 0, inet6 = 0;
5615 struct addrinfo hints, *ai, *aitop;
5616 char straddr[INET6_ADDRSTRLEN], strport[16];
5617
5618 for (passive = 0; passive <= 1; passive++) {
5619 memset(&hints, 0, sizeof(hints));
5620 hints.ai_family = AF_UNSPEC;
5621 hints.ai_flags = passive ? AI_PASSIVE : 0;
5622 hints.ai_socktype = SOCK_STREAM;
5623 hints.ai_protocol = IPPROTO_TCP;
5624 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5625 (void)gai_strerror(gaierr);
5626 goto bad;
5627 }
5628 for (ai = aitop; ai; ai = ai->ai_next) {
5629 if (ai->ai_addr == NULL ||
5630 ai->ai_addrlen == 0 ||
5631 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5632 straddr, sizeof(straddr), strport, sizeof(strport),
5633 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5634 goto bad;
5635 }
5636 switch (ai->ai_family) {
5637 case AF_INET:
5638 if (strcmp(strport, "54321") != 0) {
5639 goto bad;
5640 }
5641 if (passive) {
5642 if (strcmp(straddr, "0.0.0.0") != 0) {
5643 goto bad;
5644 }
5645 } else {
5646 if (strcmp(straddr, "127.0.0.1") != 0) {
5647 goto bad;
5648 }
5649 }
5650 inet4++;
5651 break;
5652 case AF_INET6:
5653 if (strcmp(strport, "54321") != 0) {
5654 goto bad;
5655 }
5656 if (passive) {
5657 if (strcmp(straddr, "::") != 0) {
5658 goto bad;
5659 }
5660 } else {
5661 if (strcmp(straddr, "::1") != 0) {
5662 goto bad;
5663 }
5664 }
5665 inet6++;
5666 break;
5667 case AF_UNSPEC:
5668 goto bad;
5669 break;
5670 #ifdef AF_UNIX
5671 case AF_UNIX:
5672 #else
5673 #ifdef AF_LOCAL
5674 case AF_LOCAL:
5675 #endif
5676 #endif
5677 default:
5678 /* another family support? */
5679 break;
5680 }
5681 }
5682 }
5683
5684 /* supported family should be 2, unsupported family should be 0 */
5685 if (!(inet4 == 0 || inet4 == 2))
5686 goto bad;
5687 if (!(inet6 == 0 || inet6 == 2))
5688 goto bad;
5689
5690 if (aitop)
5691 freeaddrinfo(aitop);
5692 exit(0);
5693
5694 bad:
5695 if (aitop)
5696 freeaddrinfo(aitop);
5697 exit(1);
5698 }
5699
5700 _ACEOF
5701 rm -f conftest$ac_exeext
5702 if { (ac_try="$ac_link"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_link") 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5712 { (case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_try") 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 td_cv_buggygetaddrinfo=no
5722 else
5723 echo "$as_me: program exited with status $ac_status" >&5
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727 ( exit $ac_status )
5728 td_cv_buggygetaddrinfo=yes
5729 fi
5730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5731 fi
5732
5733
5734 fi
5735
5736 if test "$td_cv_buggygetaddrinfo" = no; then
5737 { echo "$as_me:$LINENO: result: good" >&5
5738 echo "${ECHO_T}good" >&6; }
5739 else
5740 { echo "$as_me:$LINENO: result: buggy" >&5
5741 echo "${ECHO_T}buggy" >&6; }
5742 fi
5743
5744 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5745 #
5746 # XXX - it doesn't appear that "ipv6type" can ever be
5747 # set to "linux". Should this be testing for
5748 # "linux-glibc", or for that *or* "linux-libinet6"?
5749 # If the latter, note that "linux-libinet6" is also
5750 # the type given to some non-Linux OSes.
5751 #
5752 if test "$ipv6type" != "linux"; then
5753 echo 'Fatal: You must get working getaddrinfo() function.'
5754 echo ' or you can specify "--disable-ipv6"'.
5755 exit 1
5756 else
5757 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5758 echo ' Better upgrade your system library to newest version'
5759 echo ' of GNU C library (aka glibc).'
5760 fi
5761 fi
5762
5763 fi
5764
5765
5766 for ac_func in getnameinfo
5767 do
5768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5782 #define $ac_func innocuous_$ac_func
5783
5784 /* System header to define __stub macros and hopefully few prototypes,
5785 which can conflict with char $ac_func (); below.
5786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5787 <limits.h> exists even on freestanding compilers. */
5788
5789 #ifdef __STDC__
5790 # include <limits.h>
5791 #else
5792 # include <assert.h>
5793 #endif
5794
5795 #undef $ac_func
5796
5797 /* Override any GCC internal prototype to avoid an error.
5798 Use char because int might match the return type of a GCC
5799 builtin and then its argument prototype would still apply. */
5800 #ifdef __cplusplus
5801 extern "C"
5802 #endif
5803 char $ac_func ();
5804 /* The GNU C library defines this for functions which it implements
5805 to always fail with ENOSYS. Some functions are actually named
5806 something starting with __ and the normal name is an alias. */
5807 #if defined __stub_$ac_func || defined __stub___$ac_func
5808 choke me
5809 #endif
5810
5811 int
5812 main ()
5813 {
5814 return $ac_func ();
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 rm -f conftest.$ac_objext conftest$ac_exeext
5820 if { (ac_try="$ac_link"
5821 case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_link") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest$ac_exeext &&
5836 $as_test_x conftest$ac_exeext; then
5837 eval "$as_ac_var=yes"
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 eval "$as_ac_var=no"
5843 fi
5844
5845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5846 conftest$ac_exeext conftest.$ac_ext
5847 fi
5848 ac_res=`eval echo '${'$as_ac_var'}'`
5849 { echo "$as_me:$LINENO: result: $ac_res" >&5
5850 echo "${ECHO_T}$ac_res" >&6; }
5851 if test `eval echo '${'$as_ac_var'}'` = yes; then
5852 cat >>confdefs.h <<_ACEOF
5853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5854 _ACEOF
5855
5856 else
5857 case " $LIBOBJS " in
5858 *" $ac_func.$ac_objext "* ) ;;
5859 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5860 ;;
5861 esac
5862
5863 fi
5864 done
5865
5866
5867 fi
5868
5869 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5870 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5871 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <netdnet/dnetdb.h>
5881
5882 _ACEOF
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5885 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5886 else
5887 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5888 fi
5889 rm -f conftest*
5890
5891 fi
5892 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5893 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5894 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5895 cat >>confdefs.h <<\_ACEOF
5896 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5897 _ACEOF
5898
5899 fi
5900
5901
5902 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5903 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5904 if test "${ac_cv_addrinfo+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913
5914 # include <netdb.h>
5915 int
5916 main ()
5917 {
5918 struct addrinfo a
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (ac_try="$ac_compile"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.$ac_objext; then
5940 ac_cv_addrinfo=yes
5941 else
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cv_addrinfo=no
5946 fi
5947
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 fi
5950
5951 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5952 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5953 if test $ac_cv_addrinfo = yes; then
5954 cat >>confdefs.h <<\_ACEOF
5955 #define HAVE_ADDRINFO 1
5956 _ACEOF
5957
5958 else
5959 cat >>confdefs.h <<\_ACEOF
5960 #define NEED_ADDRINFO_H 1
5961 _ACEOF
5962
5963 fi
5964
5965 if test "$ac_cv_addrinfo" = no; then
5966 missing_includes=yes
5967 fi
5968
5969
5970 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5971 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5972 if test "${ac_cv_maxserv+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 #include <netdb.h>
5982 #ifdef NI_MAXSERV
5983 yes
5984 #endif
5985 _ACEOF
5986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5987 $EGREP "yes" >/dev/null 2>&1; then
5988 ac_cv_maxserv=yes
5989 else
5990 ac_cv_maxserv=no
5991 fi
5992 rm -f conftest*
5993
5994 fi
5995
5996 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5997 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5998 if test $ac_cv_maxserv != yes; then
5999 cat >>confdefs.h <<\_ACEOF
6000 #define NEED_ADDRINFO_H 1
6001 _ACEOF
6002
6003 fi
6004
6005 if test "$ac_cv_maxserv" = no; then
6006 missing_includes=yes
6007 fi
6008
6009
6010 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6011 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
6012 if test "${ac_cv_namereqd+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 #include <netdb.h>
6022 #ifdef NI_NOFQDN
6023 yes
6024 #endif
6025 _ACEOF
6026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6027 $EGREP "yes" >/dev/null 2>&1; then
6028 ac_cv_namereqd=yes
6029 else
6030 ac_cv_namereqd=no
6031 fi
6032 rm -f conftest*
6033
6034 fi
6035
6036 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6037 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
6038 if test $ac_cv_namereqd != yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define NEED_ADDRINFO_H 1
6041 _ACEOF
6042
6043 fi
6044
6045 if test "$ac_cv_namereqd" = no; then
6046 missing_includes=yes
6047 fi
6048
6049
6050 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6051 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
6052 if test "${ac_cv_sa_storage+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061
6062 # include <sys/types.h>
6063 # include <sys/socket.h>
6064 int
6065 main ()
6066 {
6067 struct sockaddr_storage s
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6074 case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6089 ac_cv_sa_storage=yes
6090 else
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 ac_cv_sa_storage=no
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 fi
6099
6100 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6101 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
6102 if test $ac_cv_sa_storage = yes; then
6103 cat >>confdefs.h <<\_ACEOF
6104 #define HAVE_SOCKADDR_STORAGE 1
6105 _ACEOF
6106
6107 fi
6108
6109 if test "$ac_cv_sa_storage" = no; then
6110 missing_includes=yes
6111 fi
6112
6113
6114
6115
6116
6117
6118
6119 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6120 do
6121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6135 #define $ac_func innocuous_$ac_func
6136
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func (); below.
6139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6140 <limits.h> exists even on freestanding compilers. */
6141
6142 #ifdef __STDC__
6143 # include <limits.h>
6144 #else
6145 # include <assert.h>
6146 #endif
6147
6148 #undef $ac_func
6149
6150 /* Override any GCC internal prototype to avoid an error.
6151 Use char because int might match the return type of a GCC
6152 builtin and then its argument prototype would still apply. */
6153 #ifdef __cplusplus
6154 extern "C"
6155 #endif
6156 char $ac_func ();
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined __stub_$ac_func || defined __stub___$ac_func
6161 choke me
6162 #endif
6163
6164 int
6165 main ()
6166 {
6167 return $ac_func ();
6168 ;
6169 return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (ac_try="$ac_link"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_link") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest$ac_exeext &&
6189 $as_test_x conftest$ac_exeext; then
6190 eval "$as_ac_var=yes"
6191 else
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195 eval "$as_ac_var=no"
6196 fi
6197
6198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6199 conftest$ac_exeext conftest.$ac_ext
6200 fi
6201 ac_res=`eval echo '${'$as_ac_var'}'`
6202 { echo "$as_me:$LINENO: result: $ac_res" >&5
6203 echo "${ECHO_T}$ac_res" >&6; }
6204 if test `eval echo '${'$as_ac_var'}'` = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6207 _ACEOF
6208
6209 else
6210 case " $LIBOBJS " in
6211 *" $ac_func.$ac_objext "* ) ;;
6212 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6213 ;;
6214 esac
6215
6216 fi
6217 done
6218
6219
6220
6221
6222
6223 for ac_func in fork vfork strftime
6224 do
6225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6239 #define $ac_func innocuous_$ac_func
6240
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char $ac_func (); below.
6243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244 <limits.h> exists even on freestanding compilers. */
6245
6246 #ifdef __STDC__
6247 # include <limits.h>
6248 #else
6249 # include <assert.h>
6250 #endif
6251
6252 #undef $ac_func
6253
6254 /* Override any GCC internal prototype to avoid an error.
6255 Use char because int might match the return type of a GCC
6256 builtin and then its argument prototype would still apply. */
6257 #ifdef __cplusplus
6258 extern "C"
6259 #endif
6260 char $ac_func ();
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined __stub_$ac_func || defined __stub___$ac_func
6265 choke me
6266 #endif
6267
6268 int
6269 main ()
6270 {
6271 return $ac_func ();
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest$ac_exeext &&
6293 $as_test_x conftest$ac_exeext; then
6294 eval "$as_ac_var=yes"
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 eval "$as_ac_var=no"
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303 conftest$ac_exeext conftest.$ac_ext
6304 fi
6305 ac_res=`eval echo '${'$as_ac_var'}'`
6306 { echo "$as_me:$LINENO: result: $ac_res" >&5
6307 echo "${ECHO_T}$ac_res" >&6; }
6308 if test `eval echo '${'$as_ac_var'}'` = yes; then
6309 cat >>confdefs.h <<_ACEOF
6310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6311 _ACEOF
6312
6313 fi
6314 done
6315
6316
6317
6318 for ac_func in setlinebuf alarm
6319 do
6320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6334 #define $ac_func innocuous_$ac_func
6335
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func (); below.
6338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339 <limits.h> exists even on freestanding compilers. */
6340
6341 #ifdef __STDC__
6342 # include <limits.h>
6343 #else
6344 # include <assert.h>
6345 #endif
6346
6347 #undef $ac_func
6348
6349 /* Override any GCC internal prototype to avoid an error.
6350 Use char because int might match the return type of a GCC
6351 builtin and then its argument prototype would still apply. */
6352 #ifdef __cplusplus
6353 extern "C"
6354 #endif
6355 char $ac_func ();
6356 /* The GNU C library defines this for functions which it implements
6357 to always fail with ENOSYS. Some functions are actually named
6358 something starting with __ and the normal name is an alias. */
6359 #if defined __stub_$ac_func || defined __stub___$ac_func
6360 choke me
6361 #endif
6362
6363 int
6364 main ()
6365 {
6366 return $ac_func ();
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (ac_try="$ac_link"
6373 case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376 esac
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_link") 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && {
6385 test -z "$ac_c_werror_flag" ||
6386 test ! -s conftest.err
6387 } && test -s conftest$ac_exeext &&
6388 $as_test_x conftest$ac_exeext; then
6389 eval "$as_ac_var=yes"
6390 else
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394 eval "$as_ac_var=no"
6395 fi
6396
6397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6398 conftest$ac_exeext conftest.$ac_ext
6399 fi
6400 ac_res=`eval echo '${'$as_ac_var'}'`
6401 { echo "$as_me:$LINENO: result: $ac_res" >&5
6402 echo "${ECHO_T}$ac_res" >&6; }
6403 if test `eval echo '${'$as_ac_var'}'` = yes; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6406 _ACEOF
6407
6408 fi
6409 done
6410
6411
6412 needsnprintf=no
6413
6414
6415 for ac_func in vsnprintf snprintf
6416 do
6417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6431 #define $ac_func innocuous_$ac_func
6432
6433 /* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char $ac_func (); below.
6435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6436 <limits.h> exists even on freestanding compilers. */
6437
6438 #ifdef __STDC__
6439 # include <limits.h>
6440 #else
6441 # include <assert.h>
6442 #endif
6443
6444 #undef $ac_func
6445
6446 /* Override any GCC internal prototype to avoid an error.
6447 Use char because int might match the return type of a GCC
6448 builtin and then its argument prototype would still apply. */
6449 #ifdef __cplusplus
6450 extern "C"
6451 #endif
6452 char $ac_func ();
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined __stub_$ac_func || defined __stub___$ac_func
6457 choke me
6458 #endif
6459
6460 int
6461 main ()
6462 {
6463 return $ac_func ();
6464 ;
6465 return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (ac_try="$ac_link"
6470 case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473 esac
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_link") 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && {
6482 test -z "$ac_c_werror_flag" ||
6483 test ! -s conftest.err
6484 } && test -s conftest$ac_exeext &&
6485 $as_test_x conftest$ac_exeext; then
6486 eval "$as_ac_var=yes"
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 eval "$as_ac_var=no"
6492 fi
6493
6494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6495 conftest$ac_exeext conftest.$ac_ext
6496 fi
6497 ac_res=`eval echo '${'$as_ac_var'}'`
6498 { echo "$as_me:$LINENO: result: $ac_res" >&5
6499 echo "${ECHO_T}$ac_res" >&6; }
6500 if test `eval echo '${'$as_ac_var'}'` = yes; then
6501 cat >>confdefs.h <<_ACEOF
6502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6503 _ACEOF
6504
6505 else
6506 needsnprintf=yes
6507 fi
6508 done
6509
6510 if test $needsnprintf = yes; then
6511 case " $LIBOBJS " in
6512 *" snprintf.$ac_objext "* ) ;;
6513 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6514 ;;
6515 esac
6516
6517 fi
6518
6519
6520 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6521 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6522 if test "${ac_cv_type_signal+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <sys/types.h>
6532 #include <signal.h>
6533
6534 int
6535 main ()
6536 {
6537 return *(signal (0, 0)) (0) == 1;
6538 ;
6539 return 0;
6540 }
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (ac_try="$ac_compile"
6544 case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_cv_type_signal=int
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_cv_type_signal=void
6565 fi
6566
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6570 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6571
6572 cat >>confdefs.h <<_ACEOF
6573 #define RETSIGTYPE $ac_cv_type_signal
6574 _ACEOF
6575
6576
6577 if test "$ac_cv_type_signal" = void ; then
6578
6579 cat >>confdefs.h <<\_ACEOF
6580 #define RETSIGVAL
6581 _ACEOF
6582
6583 else
6584
6585 cat >>confdefs.h <<\_ACEOF
6586 #define RETSIGVAL (0)
6587 _ACEOF
6588
6589 fi
6590 case "$host_os" in
6591
6592 irix*)
6593
6594 cat >>confdefs.h <<\_ACEOF
6595 #define _BSD_SIGNALS 1
6596 _ACEOF
6597
6598 ;;
6599
6600 *)
6601
6602 for ac_func in sigaction
6603 do
6604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6618 #define $ac_func innocuous_$ac_func
6619
6620 /* System header to define __stub macros and hopefully few prototypes,
6621 which can conflict with char $ac_func (); below.
6622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6623 <limits.h> exists even on freestanding compilers. */
6624
6625 #ifdef __STDC__
6626 # include <limits.h>
6627 #else
6628 # include <assert.h>
6629 #endif
6630
6631 #undef $ac_func
6632
6633 /* Override any GCC internal prototype to avoid an error.
6634 Use char because int might match the return type of a GCC
6635 builtin and then its argument prototype would still apply. */
6636 #ifdef __cplusplus
6637 extern "C"
6638 #endif
6639 char $ac_func ();
6640 /* The GNU C library defines this for functions which it implements
6641 to always fail with ENOSYS. Some functions are actually named
6642 something starting with __ and the normal name is an alias. */
6643 #if defined __stub_$ac_func || defined __stub___$ac_func
6644 choke me
6645 #endif
6646
6647 int
6648 main ()
6649 {
6650 return $ac_func ();
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (ac_try="$ac_link"
6657 case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660 esac
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_link") 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && {
6669 test -z "$ac_c_werror_flag" ||
6670 test ! -s conftest.err
6671 } && test -s conftest$ac_exeext &&
6672 $as_test_x conftest$ac_exeext; then
6673 eval "$as_ac_var=yes"
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6677
6678 eval "$as_ac_var=no"
6679 fi
6680
6681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6682 conftest$ac_exeext conftest.$ac_ext
6683 fi
6684 ac_res=`eval echo '${'$as_ac_var'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687 if test `eval echo '${'$as_ac_var'}'` = yes; then
6688 cat >>confdefs.h <<_ACEOF
6689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6690 _ACEOF
6691
6692 fi
6693 done
6694
6695 if test $ac_cv_func_sigaction = no ; then
6696
6697 for ac_func in sigset
6698 do
6699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6713 #define $ac_func innocuous_$ac_func
6714
6715 /* System header to define __stub macros and hopefully few prototypes,
6716 which can conflict with char $ac_func (); below.
6717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718 <limits.h> exists even on freestanding compilers. */
6719
6720 #ifdef __STDC__
6721 # include <limits.h>
6722 #else
6723 # include <assert.h>
6724 #endif
6725
6726 #undef $ac_func
6727
6728 /* Override any GCC internal prototype to avoid an error.
6729 Use char because int might match the return type of a GCC
6730 builtin and then its argument prototype would still apply. */
6731 #ifdef __cplusplus
6732 extern "C"
6733 #endif
6734 char $ac_func ();
6735 /* The GNU C library defines this for functions which it implements
6736 to always fail with ENOSYS. Some functions are actually named
6737 something starting with __ and the normal name is an alias. */
6738 #if defined __stub_$ac_func || defined __stub___$ac_func
6739 choke me
6740 #endif
6741
6742 int
6743 main ()
6744 {
6745 return $ac_func ();
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest.$ac_objext conftest$ac_exeext
6751 if { (ac_try="$ac_link"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_link") 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest$ac_exeext &&
6767 $as_test_x conftest$ac_exeext; then
6768 eval "$as_ac_var=yes"
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773 eval "$as_ac_var=no"
6774 fi
6775
6776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6777 conftest$ac_exeext conftest.$ac_ext
6778 fi
6779 ac_res=`eval echo '${'$as_ac_var'}'`
6780 { echo "$as_me:$LINENO: result: $ac_res" >&5
6781 echo "${ECHO_T}$ac_res" >&6; }
6782 if test `eval echo '${'$as_ac_var'}'` = yes; then
6783 cat >>confdefs.h <<_ACEOF
6784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6785 _ACEOF
6786
6787 fi
6788 done
6789
6790 fi
6791 ;;
6792 esac
6793
6794 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6795 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6796 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 ac_func_search_save_LIBS=$LIBS
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806
6807 /* Override any GCC internal prototype to avoid an error.
6808 Use char because int might match the return type of a GCC
6809 builtin and then its argument prototype would still apply. */
6810 #ifdef __cplusplus
6811 extern "C"
6812 #endif
6813 char dnet_htoa ();
6814 int
6815 main ()
6816 {
6817 return dnet_htoa ();
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 for ac_lib in '' dnet; do
6823 if test -z "$ac_lib"; then
6824 ac_res="none required"
6825 else
6826 ac_res=-l$ac_lib
6827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6828 fi
6829 rm -f conftest.$ac_objext conftest$ac_exeext
6830 if { (ac_try="$ac_link"
6831 case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834 esac
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_link") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest$ac_exeext &&
6846 $as_test_x conftest$ac_exeext; then
6847 ac_cv_search_dnet_htoa=$ac_res
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852
6853 fi
6854
6855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6856 conftest$ac_exeext
6857 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6858 break
6859 fi
6860 done
6861 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6862 :
6863 else
6864 ac_cv_search_dnet_htoa=no
6865 fi
6866 rm conftest.$ac_ext
6867 LIBS=$ac_func_search_save_LIBS
6868 fi
6869 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6870 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6871 ac_res=$ac_cv_search_dnet_htoa
6872 if test "$ac_res" != no; then
6873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6874 cat >>confdefs.h <<\_ACEOF
6875 #define HAVE_DNET_HTOA 1
6876 _ACEOF
6877
6878 fi
6879
6880
6881
6882 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6883 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6884 if test "${ac_cv_lib_rpc_main+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 ac_check_lib_save_LIBS=$LIBS
6888 LIBS="-lrpc $LIBS"
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895
6896
6897 int
6898 main ()
6899 {
6900 return main ();
6901 ;
6902 return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext &&
6922 $as_test_x conftest$ac_exeext; then
6923 ac_cv_lib_rpc_main=yes
6924 else
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 ac_cv_lib_rpc_main=no
6929 fi
6930
6931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6932 conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6934 fi
6935 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6936 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6937 if test $ac_cv_lib_rpc_main = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define HAVE_LIBRPC 1
6940 _ACEOF
6941
6942 LIBS="-lrpc $LIBS"
6943
6944 fi
6945
6946 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6947 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6948 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951 ac_func_search_save_LIBS=$LIBS
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958
6959 /* Override any GCC internal prototype to avoid an error.
6960 Use char because int might match the return type of a GCC
6961 builtin and then its argument prototype would still apply. */
6962 #ifdef __cplusplus
6963 extern "C"
6964 #endif
6965 char getrpcbynumber ();
6966 int
6967 main ()
6968 {
6969 return getrpcbynumber ();
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 for ac_lib in '' nsl; do
6975 if test -z "$ac_lib"; then
6976 ac_res="none required"
6977 else
6978 ac_res=-l$ac_lib
6979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6980 fi
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_link") 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest$ac_exeext &&
6998 $as_test_x conftest$ac_exeext; then
6999 ac_cv_search_getrpcbynumber=$ac_res
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004
7005 fi
7006
7007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7008 conftest$ac_exeext
7009 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7010 break
7011 fi
7012 done
7013 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7014 :
7015 else
7016 ac_cv_search_getrpcbynumber=no
7017 fi
7018 rm conftest.$ac_ext
7019 LIBS=$ac_func_search_save_LIBS
7020 fi
7021 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7022 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
7023 ac_res=$ac_cv_search_getrpcbynumber
7024 if test "$ac_res" != no; then
7025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7026 cat >>confdefs.h <<\_ACEOF
7027 #define HAVE_GETRPCBYNUMBER 1
7028 _ACEOF
7029
7030 fi
7031
7032
7033
7034
7035 LBL_LIBS="$LIBS"
7036 pfopen=/usr/examples/packetfilter/pfopen.c
7037 if test -f $pfopen ; then
7038
7039 for ac_func in pfopen
7040 do
7041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7055 #define $ac_func innocuous_$ac_func
7056
7057 /* System header to define __stub macros and hopefully few prototypes,
7058 which can conflict with char $ac_func (); below.
7059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7060 <limits.h> exists even on freestanding compilers. */
7061
7062 #ifdef __STDC__
7063 # include <limits.h>
7064 #else
7065 # include <assert.h>
7066 #endif
7067
7068 #undef $ac_func
7069
7070 /* Override any GCC internal prototype to avoid an error.
7071 Use char because int might match the return type of a GCC
7072 builtin and then its argument prototype would still apply. */
7073 #ifdef __cplusplus
7074 extern "C"
7075 #endif
7076 char $ac_func ();
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined __stub_$ac_func || defined __stub___$ac_func
7081 choke me
7082 #endif
7083
7084 int
7085 main ()
7086 {
7087 return $ac_func ();
7088 ;
7089 return 0;
7090 }
7091 _ACEOF
7092 rm -f conftest.$ac_objext conftest$ac_exeext
7093 if { (ac_try="$ac_link"
7094 case "(($ac_try" in
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7097 esac
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_link") 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } && {
7106 test -z "$ac_c_werror_flag" ||
7107 test ! -s conftest.err
7108 } && test -s conftest$ac_exeext &&
7109 $as_test_x conftest$ac_exeext; then
7110 eval "$as_ac_var=yes"
7111 else
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 eval "$as_ac_var=no"
7116 fi
7117
7118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7119 conftest$ac_exeext conftest.$ac_ext
7120 fi
7121 ac_res=`eval echo '${'$as_ac_var'}'`
7122 { echo "$as_me:$LINENO: result: $ac_res" >&5
7123 echo "${ECHO_T}$ac_res" >&6; }
7124 if test `eval echo '${'$as_ac_var'}'` = yes; then
7125 cat >>confdefs.h <<_ACEOF
7126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7127 _ACEOF
7128
7129 fi
7130 done
7131
7132 if test $ac_cv_func_pfopen = "no" ; then
7133 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7134 echo "${ECHO_T}Using $pfopen" >&6; }
7135 LIBS="$LIBS $pfopen"
7136 fi
7137 fi
7138 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7139 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7140 libpcap=FAIL
7141 lastdir=FAIL
7142 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7143 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7144 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7145 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7146 sed -e 's/-PRE-GIT$//' `
7147 if test $lastdir = $basedir ; then
7148 continue;
7149 fi
7150 lastdir=$dir
7151 if test -r $dir/libpcap.a ; then
7152 libpcap=$dir/libpcap.a
7153 d=$dir
7154 fi
7155 done
7156 if test $libpcap = FAIL ; then
7157 { echo "$as_me:$LINENO: result: not found" >&5
7158 echo "${ECHO_T}not found" >&6; }
7159
7160 #
7161 # Look for pcap-config.
7162 #
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 case $PCAP_CONFIG in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7174 ;;
7175 *)
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 ;;
7192 esac
7193 fi
7194 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7195 if test -n "$PCAP_CONFIG"; then
7196 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7197 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7198 else
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7206 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7207 # Extract the first word of "pcap-config", so it can be a program name with args.
7208 set dummy pcap-config; ac_word=$2
7209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7211 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 case $ac_pt_PCAP_CONFIG in
7215 [\\/]* | ?:[\\/]*)
7216 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7217 ;;
7218 *)
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 ;;
7235 esac
7236 fi
7237 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7238 if test -n "$ac_pt_PCAP_CONFIG"; then
7239 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7240 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7241 else
7242 { echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6; }
7244 fi
7245
7246 if test "x$ac_pt_PCAP_CONFIG" = x; then
7247 PCAP_CONFIG=""
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250 yes:)
7251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7252 whose name does not start with the host triplet. If you think this
7253 configuration is useful to you, please write to autoconf@gnu.org." >&5
7254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7255 whose name does not start with the host triplet. If you think this
7256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7257 ac_tool_warned=yes ;;
7258 esac
7259 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7260 fi
7261 else
7262 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7263 fi
7264
7265 if test -n "$PCAP_CONFIG" ; then
7266 #
7267 # Found - use it to get the include flags for
7268 # libpcap and the flags to link with libpcap.
7269 #
7270 # Please read section 11.6 "Shell Substitutions"
7271 # in the autoconf manual before doing anything
7272 # to this that involves quoting. Especially note
7273 # the statement "There is just no portable way to use
7274 # double-quoted strings inside double-quoted back-quoted
7275 # expressions (pfew!)."
7276 #
7277 cflags=`"$PCAP_CONFIG" --cflags`
7278 V_INCLS="$cflags $V_INCLS"
7279 libpcap=`"$PCAP_CONFIG" --libs`
7280 else
7281 #
7282 # Not found; look for pcap.
7283 #
7284 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7285 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7286 if test "${ac_cv_lib_pcap_main+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-lpcap $LIBS"
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297
7298
7299 int
7300 main ()
7301 {
7302 return main ();
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 rm -f conftest.$ac_objext conftest$ac_exeext
7308 if { (ac_try="$ac_link"
7309 case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314 (eval "$ac_link") 2>conftest.er1
7315 ac_status=$?
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } && {
7321 test -z "$ac_c_werror_flag" ||
7322 test ! -s conftest.err
7323 } && test -s conftest$ac_exeext &&
7324 $as_test_x conftest$ac_exeext; then
7325 ac_cv_lib_pcap_main=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330 ac_cv_lib_pcap_main=no
7331 fi
7332
7333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7334 conftest$ac_exeext conftest.$ac_ext
7335 LIBS=$ac_check_lib_save_LIBS
7336 fi
7337 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7338 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7339 if test $ac_cv_lib_pcap_main = yes; then
7340 libpcap="-lpcap"
7341 fi
7342
7343 if test $libpcap = FAIL ; then
7344 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7345 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7346 { (exit 1); exit 1; }; }
7347 fi
7348 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7349 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7350 if test \( ! -r /usr/local/include/pcap.h \) -a \
7351 \( ! -r /usr/include/pcap.h \); then
7352 if test -r /usr/local/include/pcap/pcap.h; then
7353 d="/usr/local/include/pcap"
7354 elif test -r /usr/include/pcap/pcap.h; then
7355 d="/usr/include/pcap"
7356 fi
7357 fi
7358 if test -z "$d" ; then
7359 { echo "$as_me:$LINENO: result: not found" >&5
7360 echo "${ECHO_T}not found" >&6; }
7361 else
7362 V_INCLS="-I$d $V_INCLS"
7363 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7364 echo "${ECHO_T}found -- -I$d added" >&6; }
7365 fi
7366 fi
7367 else
7368 V_PCAPDEP=$libpcap
7369 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7370 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7371 if test -r $d/pcap.h; then
7372 V_INCLS="-I$d $V_INCLS"
7373 elif test -r $places/pcap.h; then
7374 V_INCLS="-I$places $V_INCLS"
7375 else
7376 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7377 echo "$as_me: error: cannot find pcap.h" >&2;}
7378 { (exit see INSTALL); exit see INSTALL; }; }
7379 fi
7380 { echo "$as_me:$LINENO: result: $libpcap" >&5
7381 echo "${ECHO_T}$libpcap" >&6; }
7382 # Extract the first word of "pcap-config", so it can be a program name with args.
7383 set dummy pcap-config; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 case $PCAP_CONFIG in
7390 [\\/]* | ?:[\\/]*)
7391 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7392 ;;
7393 *)
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $d
7396 do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 ;;
7410 esac
7411 fi
7412 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7413 if test -n "$PCAP_CONFIG"; then
7414 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7415 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7416 else
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7419 fi
7420
7421
7422 if test -n "$PCAP_CONFIG"; then
7423 #
7424 # The libpcap directory has a pcap-config script.
7425 # Use it to get any additioal libraries needed
7426 # to link with the libpcap archive library in
7427 # that directory.
7428 #
7429 # Please read section 11.6 "Shell Substitutions"
7430 # in the autoconf manual before doing anything
7431 # to this that involves quoting. Especially note
7432 # the statement "There is just no portable way to use
7433 # double-quoted strings inside double-quoted back-quoted
7434 # expressions (pfew!)."
7435 #
7436 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7437 libpcap="$libpcap $additional_libs"
7438 fi
7439 fi
7440 LIBS="$libpcap $LIBS"
7441 if ! test -n "$PCAP_CONFIG" ; then
7442 #
7443 # We don't have pcap-config; find out any additional link flags
7444 # we need. (If we have pcap-config, we assume it tells us what
7445 # we need.)
7446 #
7447 case "$host_os" in
7448
7449 aix*)
7450 #
7451 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7452 # present, as we use the STREAMS routines.
7453 #
7454 # (XXX - true only if we're linking with a static libpcap?)
7455 #
7456 pseexe="/lib/pse.exp"
7457 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7458 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7459 if test -f $pseexe ; then
7460 { echo "$as_me:$LINENO: result: yes" >&5
7461 echo "${ECHO_T}yes" >&6; }
7462 LIBS="$LIBS -I:$pseexe"
7463 fi
7464
7465 #
7466 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7467 # we use them to load the BPF module.
7468 #
7469 # (XXX - true only if we're linking with a static libpcap?)
7470 #
7471 LIBS="$LIBS -lodm -lcfg"
7472 ;;
7473 esac
7474 fi
7475
7476 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7477 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7478 if test "${ac_cv_func_pcap_loop+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h. */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7487 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7489 #define pcap_loop innocuous_pcap_loop
7490
7491 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char pcap_loop (); below.
7493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7494 <limits.h> exists even on freestanding compilers. */
7495
7496 #ifdef __STDC__
7497 # include <limits.h>
7498 #else
7499 # include <assert.h>
7500 #endif
7501
7502 #undef pcap_loop
7503
7504 /* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7507 #ifdef __cplusplus
7508 extern "C"
7509 #endif
7510 char pcap_loop ();
7511 /* The GNU C library defines this for functions which it implements
7512 to always fail with ENOSYS. Some functions are actually named
7513 something starting with __ and the normal name is an alias. */
7514 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7515 choke me
7516 #endif
7517
7518 int
7519 main ()
7520 {
7521 return pcap_loop ();
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (ac_try="$ac_link"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_link") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest$ac_exeext &&
7543 $as_test_x conftest$ac_exeext; then
7544 ac_cv_func_pcap_loop=yes
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7548
7549 ac_cv_func_pcap_loop=no
7550 fi
7551
7552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7553 conftest$ac_exeext conftest.$ac_ext
7554 fi
7555 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7556 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7557 if test $ac_cv_func_pcap_loop = yes; then
7558 :
7559 else
7560
7561 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7562 config.log file in your report. If you have downloaded libpcap from
7563 tcpdump.org, and built it yourself, please also include the config.log
7564 file from the libpcap source directory, the Makefile from the libpcap
7565 source directory, and the output of the make process for libpcap, as
7566 this could be a problem with the libpcap that was built, and we will
7567 not be able to determine why this is happening, and thus will not be
7568 able to fix it, without that information, as we have not been able to
7569 reproduce this problem ourselves." >&5
7570 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7571 config.log file in your report. If you have downloaded libpcap from
7572 tcpdump.org, and built it yourself, please also include the config.log
7573 file from the libpcap source directory, the Makefile from the libpcap
7574 source directory, and the output of the make process for libpcap, as
7575 this could be a problem with the libpcap that was built, and we will
7576 not be able to determine why this is happening, and thus will not be
7577 able to fix it, without that information, as we have not been able to
7578 reproduce this problem ourselves." >&2;}
7579 { (exit 1); exit 1; }; }
7580
7581 fi
7582
7583
7584 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7585 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7586 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h. */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7597 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7598
7599 /* System header to define __stub macros and hopefully few prototypes,
7600 which can conflict with char pcap_list_datalinks (); below.
7601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7602 <limits.h> exists even on freestanding compilers. */
7603
7604 #ifdef __STDC__
7605 # include <limits.h>
7606 #else
7607 # include <assert.h>
7608 #endif
7609
7610 #undef pcap_list_datalinks
7611
7612 /* Override any GCC internal prototype to avoid an error.
7613 Use char because int might match the return type of a GCC
7614 builtin and then its argument prototype would still apply. */
7615 #ifdef __cplusplus
7616 extern "C"
7617 #endif
7618 char pcap_list_datalinks ();
7619 /* The GNU C library defines this for functions which it implements
7620 to always fail with ENOSYS. Some functions are actually named
7621 something starting with __ and the normal name is an alias. */
7622 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7623 choke me
7624 #endif
7625
7626 int
7627 main ()
7628 {
7629 return pcap_list_datalinks ();
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 rm -f conftest.$ac_objext conftest$ac_exeext
7635 if { (ac_try="$ac_link"
7636 case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_link") 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest$ac_exeext &&
7651 $as_test_x conftest$ac_exeext; then
7652 ac_cv_func_pcap_list_datalinks=yes
7653 else
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ac_cv_func_pcap_list_datalinks=no
7658 fi
7659
7660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7661 conftest$ac_exeext conftest.$ac_ext
7662 fi
7663 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7664 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7665 if test $ac_cv_func_pcap_list_datalinks = yes; then
7666 cat >>confdefs.h <<\_ACEOF
7667 #define HAVE_PCAP_LIST_DATALINKS 1
7668 _ACEOF
7669
7670 else
7671
7672 case " $LIBOBJS " in
7673 *" datalinks.$ac_objext "* ) ;;
7674 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7675 ;;
7676 esac
7677
7678
7679 fi
7680
7681 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7682 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7683 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7694 #define pcap_set_datalink innocuous_pcap_set_datalink
7695
7696 /* System header to define __stub macros and hopefully few prototypes,
7697 which can conflict with char pcap_set_datalink (); below.
7698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699 <limits.h> exists even on freestanding compilers. */
7700
7701 #ifdef __STDC__
7702 # include <limits.h>
7703 #else
7704 # include <assert.h>
7705 #endif
7706
7707 #undef pcap_set_datalink
7708
7709 /* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7712 #ifdef __cplusplus
7713 extern "C"
7714 #endif
7715 char pcap_set_datalink ();
7716 /* The GNU C library defines this for functions which it implements
7717 to always fail with ENOSYS. Some functions are actually named
7718 something starting with __ and the normal name is an alias. */
7719 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7720 choke me
7721 #endif
7722
7723 int
7724 main ()
7725 {
7726 return pcap_set_datalink ();
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_link") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest$ac_exeext &&
7748 $as_test_x conftest$ac_exeext; then
7749 ac_cv_func_pcap_set_datalink=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ac_cv_func_pcap_set_datalink=no
7755 fi
7756
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758 conftest$ac_exeext conftest.$ac_ext
7759 fi
7760 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7761 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7762 if test $ac_cv_func_pcap_set_datalink = yes; then
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_PCAP_SET_DATALINK 1
7765 _ACEOF
7766
7767 fi
7768
7769 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7770 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7771 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7782 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7783
7784 /* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char pcap_datalink_name_to_val (); below.
7786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787 <limits.h> exists even on freestanding compilers. */
7788
7789 #ifdef __STDC__
7790 # include <limits.h>
7791 #else
7792 # include <assert.h>
7793 #endif
7794
7795 #undef pcap_datalink_name_to_val
7796
7797 /* Override any GCC internal prototype to avoid an error.
7798 Use char because int might match the return type of a GCC
7799 builtin and then its argument prototype would still apply. */
7800 #ifdef __cplusplus
7801 extern "C"
7802 #endif
7803 char pcap_datalink_name_to_val ();
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7808 choke me
7809 #endif
7810
7811 int
7812 main ()
7813 {
7814 return pcap_datalink_name_to_val ();
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7821 case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_link") 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && {
7833 test -z "$ac_c_werror_flag" ||
7834 test ! -s conftest.err
7835 } && test -s conftest$ac_exeext &&
7836 $as_test_x conftest$ac_exeext; then
7837 ac_cv_func_pcap_datalink_name_to_val=yes
7838 else
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_cv_func_pcap_datalink_name_to_val=no
7843 fi
7844
7845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7846 conftest$ac_exeext conftest.$ac_ext
7847 fi
7848 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7849 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7850 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7851
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7854 _ACEOF
7855
7856 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7857 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7858 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7869 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7870
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char pcap_datalink_val_to_description (); below.
7873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7874 <limits.h> exists even on freestanding compilers. */
7875
7876 #ifdef __STDC__
7877 # include <limits.h>
7878 #else
7879 # include <assert.h>
7880 #endif
7881
7882 #undef pcap_datalink_val_to_description
7883
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 char pcap_datalink_val_to_description ();
7891 /* The GNU C library defines this for functions which it implements
7892 to always fail with ENOSYS. Some functions are actually named
7893 something starting with __ and the normal name is an alias. */
7894 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7895 choke me
7896 #endif
7897
7898 int
7899 main ()
7900 {
7901 return pcap_datalink_val_to_description ();
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (ac_try="$ac_link"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_link") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest$ac_exeext &&
7923 $as_test_x conftest$ac_exeext; then
7924 ac_cv_func_pcap_datalink_val_to_description=yes
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929 ac_cv_func_pcap_datalink_val_to_description=no
7930 fi
7931
7932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7933 conftest$ac_exeext conftest.$ac_ext
7934 fi
7935 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7936 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7937 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7938 cat >>confdefs.h <<\_ACEOF
7939 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7940 _ACEOF
7941
7942 else
7943
7944 case " $LIBOBJS " in
7945 *" dlnames.$ac_objext "* ) ;;
7946 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7947 ;;
7948 esac
7949
7950
7951 fi
7952
7953
7954 else
7955
7956 case " $LIBOBJS " in
7957 *" dlnames.$ac_objext "* ) ;;
7958 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7959 ;;
7960 esac
7961
7962
7963 fi
7964
7965
7966
7967 for ac_func in pcap_breakloop
7968 do
7969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975 cat >conftest.$ac_ext <<_ACEOF
7976 /* confdefs.h. */
7977 _ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7983 #define $ac_func innocuous_$ac_func
7984
7985 /* System header to define __stub macros and hopefully few prototypes,
7986 which can conflict with char $ac_func (); below.
7987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988 <limits.h> exists even on freestanding compilers. */
7989
7990 #ifdef __STDC__
7991 # include <limits.h>
7992 #else
7993 # include <assert.h>
7994 #endif
7995
7996 #undef $ac_func
7997
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 char $ac_func ();
8005 /* The GNU C library defines this for functions which it implements
8006 to always fail with ENOSYS. Some functions are actually named
8007 something starting with __ and the normal name is an alias. */
8008 #if defined __stub_$ac_func || defined __stub___$ac_func
8009 choke me
8010 #endif
8011
8012 int
8013 main ()
8014 {
8015 return $ac_func ();
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest$ac_exeext &&
8037 $as_test_x conftest$ac_exeext; then
8038 eval "$as_ac_var=yes"
8039 else
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 eval "$as_ac_var=no"
8044 fi
8045
8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8047 conftest$ac_exeext conftest.$ac_ext
8048 fi
8049 ac_res=`eval echo '${'$as_ac_var'}'`
8050 { echo "$as_me:$LINENO: result: $ac_res" >&5
8051 echo "${ECHO_T}$ac_res" >&6; }
8052 if test `eval echo '${'$as_ac_var'}'` = yes; then
8053 cat >>confdefs.h <<_ACEOF
8054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8055 _ACEOF
8056
8057 fi
8058 done
8059
8060
8061 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8062 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8063 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8074 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8075
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char pcap_dump_ftell (); below.
8078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079 <limits.h> exists even on freestanding compilers. */
8080
8081 #ifdef __STDC__
8082 # include <limits.h>
8083 #else
8084 # include <assert.h>
8085 #endif
8086
8087 #undef pcap_dump_ftell
8088
8089 /* Override any GCC internal prototype to avoid an error.
8090 Use char because int might match the return type of a GCC
8091 builtin and then its argument prototype would still apply. */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 char pcap_dump_ftell ();
8096 /* The GNU C library defines this for functions which it implements
8097 to always fail with ENOSYS. Some functions are actually named
8098 something starting with __ and the normal name is an alias. */
8099 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8100 choke me
8101 #endif
8102
8103 int
8104 main ()
8105 {
8106 return pcap_dump_ftell ();
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest$ac_exeext &&
8128 $as_test_x conftest$ac_exeext; then
8129 ac_cv_func_pcap_dump_ftell=yes
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ac_cv_func_pcap_dump_ftell=no
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8138 conftest$ac_exeext conftest.$ac_ext
8139 fi
8140 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8141 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8142 if test $ac_cv_func_pcap_dump_ftell = yes; then
8143 cat >>confdefs.h <<\_ACEOF
8144 #define HAVE_PCAP_DUMP_FTELL 1
8145 _ACEOF
8146
8147 else
8148
8149 case " $LIBOBJS " in
8150 *" pcap_dump_ftell.$ac_objext "* ) ;;
8151 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8152 ;;
8153 esac
8154
8155
8156 fi
8157
8158
8159
8160 #
8161 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8162 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8163 #
8164 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8165 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8166 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8167 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8168 # it does not ship with a libc symbol "inet_ntop()", it ships with
8169 # "_inet_ntop()", and has a #define macro in one of the system headers
8170 # to rename it.
8171 #
8172 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8173 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8174 cat >conftest.$ac_ext <<_ACEOF
8175 /* confdefs.h. */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 #include <sys/types.h>
8181 #include <sys/socket.h>
8182 #include <netinet/in.h>
8183 #include <arpa/inet.h>
8184 int
8185 main ()
8186 {
8187 char src[4], dst[128];
8188 inet_ntop(AF_INET, src, dst, sizeof(dst));
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
8211 { echo "$as_me:$LINENO: result: yes" >&5
8212 echo "${ECHO_T}yes" >&6; }
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8219 case " $LIBOBJS " in
8220 *" inet_ntop.$ac_objext "* ) ;;
8221 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8222 ;;
8223 esac
8224
8225 fi
8226
8227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8228 conftest$ac_exeext conftest.$ac_ext
8229 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8230 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #include <sys/types.h>
8238 #include <sys/socket.h>
8239 #include <netinet/in.h>
8240 #include <arpa/inet.h>
8241 int
8242 main ()
8243 {
8244 char src[128], dst[4];
8245 inet_pton(AF_INET, src, dst);
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (ac_try="$ac_link"
8252 case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_link") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest$ac_exeext &&
8267 $as_test_x conftest$ac_exeext; then
8268 { echo "$as_me:$LINENO: result: yes" >&5
8269 echo "${ECHO_T}yes" >&6; }
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 { echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6; }
8276 case " $LIBOBJS " in
8277 *" inet_pton.$ac_objext "* ) ;;
8278 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8279 ;;
8280 esac
8281
8282 fi
8283
8284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8285 conftest$ac_exeext conftest.$ac_ext
8286 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8287 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 #include <sys/types.h>
8295 #include <netinet/in.h>
8296 #include <arpa/inet.h>
8297 int
8298 main ()
8299 {
8300 char src[128];
8301 struct in_addr dst;
8302 inet_aton(src, &dst);
8303 ;
8304 return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (ac_try="$ac_link"
8309 case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_link") 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest$ac_exeext &&
8324 $as_test_x conftest$ac_exeext; then
8325 { echo "$as_me:$LINENO: result: yes" >&5
8326 echo "${ECHO_T}yes" >&6; }
8327 else
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331 { echo "$as_me:$LINENO: result: no" >&5
8332 echo "${ECHO_T}no" >&6; }
8333 case " $LIBOBJS " in
8334 *" inet_aton.$ac_objext "* ) ;;
8335 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8336 ;;
8337 esac
8338
8339 fi
8340
8341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8342 conftest$ac_exeext conftest.$ac_ext
8343
8344 #
8345 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8346 #
8347 # You are in a twisty little maze of UN*Xes, all different.
8348 # Some might not have ether_ntohost().
8349 # Some might have it, but not declare it in any header file.
8350 # Some might have it, but declare it in <netinet/if_ether.h>.
8351 # Some might have it, but declare it in <netinet/ether.h>
8352 # (And some might have it but document it as something declared in
8353 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8354 #
8355 # Before you is a C compiler.
8356 #
8357
8358 for ac_func in ether_ntohost
8359 do
8360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h. */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8374 #define $ac_func innocuous_$ac_func
8375
8376 /* System header to define __stub macros and hopefully few prototypes,
8377 which can conflict with char $ac_func (); below.
8378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8379 <limits.h> exists even on freestanding compilers. */
8380
8381 #ifdef __STDC__
8382 # include <limits.h>
8383 #else
8384 # include <assert.h>
8385 #endif
8386
8387 #undef $ac_func
8388
8389 /* Override any GCC internal prototype to avoid an error.
8390 Use char because int might match the return type of a GCC
8391 builtin and then its argument prototype would still apply. */
8392 #ifdef __cplusplus
8393 extern "C"
8394 #endif
8395 char $ac_func ();
8396 /* The GNU C library defines this for functions which it implements
8397 to always fail with ENOSYS. Some functions are actually named
8398 something starting with __ and the normal name is an alias. */
8399 #if defined __stub_$ac_func || defined __stub___$ac_func
8400 choke me
8401 #endif
8402
8403 int
8404 main ()
8405 {
8406 return $ac_func ();
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (ac_try="$ac_link"
8413 case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_link") 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && {
8425 test -z "$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 } && test -s conftest$ac_exeext &&
8428 $as_test_x conftest$ac_exeext; then
8429 eval "$as_ac_var=yes"
8430 else
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 eval "$as_ac_var=no"
8435 fi
8436
8437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8438 conftest$ac_exeext conftest.$ac_ext
8439 fi
8440 ac_res=`eval echo '${'$as_ac_var'}'`
8441 { echo "$as_me:$LINENO: result: $ac_res" >&5
8442 echo "${ECHO_T}$ac_res" >&6; }
8443 if test `eval echo '${'$as_ac_var'}'` = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446 _ACEOF
8447
8448 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8449 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8450 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453
8454 if test "$cross_compiling" = yes; then
8455 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8456 else
8457 cat >conftest.$ac_ext <<_ACEOF
8458 /* confdefs.h. */
8459 _ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463
8464 #include <netdb.h>
8465 #include <sys/types.h>
8466 #include <sys/param.h>
8467 #include <sys/socket.h>
8468
8469 int
8470 main(int argc, char **argv)
8471 {
8472 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8473 char name[MAXHOSTNAMELEN];
8474
8475 ether_ntohost(name, (struct ether_addr *)ea);
8476 exit(0);
8477 }
8478
8479 _ACEOF
8480 rm -f conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_buggy_ether_ntohost=no
8501 else
8502 echo "$as_me: program exited with status $ac_status" >&5
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ( exit $ac_status )
8507 ac_cv_buggy_ether_ntohost=yes
8508 fi
8509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8510 fi
8511
8512
8513 fi
8514 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8515 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8516 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8517 cat >>confdefs.h <<\_ACEOF
8518 #define USE_ETHER_NTOHOST 1
8519 _ACEOF
8520
8521 fi
8522
8523 fi
8524 done
8525
8526 if test "$ac_cv_func_ether_ntohost" = yes -a \
8527 "$ac_cv_buggy_ether_ntohost" = "no"; then
8528 #
8529 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8530 #
8531 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8532 #
8533 # Yes. Does it declare ether_ntohost()?
8534 #
8535 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8536 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8537 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546
8547 #include <sys/types.h>
8548 #include <sys/socket.h>
8549 #include <netinet/in.h>
8550 #include <arpa/inet.h>
8551 struct mbuf;
8552 struct rtentry;
8553 #include <net/if.h>
8554 #include <netinet/if_ether.h>
8555
8556
8557 int
8558 main ()
8559 {
8560 #ifndef ether_ntohost
8561 (void) ether_ntohost;
8562 #endif
8563
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_have_decl_ether_ntohost=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ac_cv_have_decl_ether_ntohost=no
8591 fi
8592
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 fi
8595 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8596 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8597 if test $ac_cv_have_decl_ether_ntohost = yes; then
8598
8599
8600 cat >>confdefs.h <<\_ACEOF
8601 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8602 _ACEOF
8603
8604
8605 fi
8606
8607 fi
8608 #
8609 # Did that succeed?
8610 #
8611 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8612 #
8613 # No, how about <netinet/ether.h>, as on Linux?
8614 #
8615
8616 for ac_header in netinet/ether.h
8617 do
8618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 fi
8625 ac_res=`eval echo '${'$as_ac_Header'}'`
8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
8627 echo "${ECHO_T}$ac_res" >&6; }
8628 else
8629 # Is the header compilable?
8630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8639 #include <$ac_header>
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_header_compiler=yes
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 ac_header_compiler=no
8664 fi
8665
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8668 echo "${ECHO_T}$ac_header_compiler" >&6; }
8669
8670 # Is the header present?
8671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 #include <$ac_header>
8680 _ACEOF
8681 if { (ac_try="$ac_cpp conftest.$ac_ext"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } >/dev/null && {
8694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8695 test ! -s conftest.err
8696 }; then
8697 ac_header_preproc=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_header_preproc=no
8703 fi
8704
8705 rm -f conftest.err conftest.$ac_ext
8706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707 echo "${ECHO_T}$ac_header_preproc" >&6; }
8708
8709 # So? What about this header?
8710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8711 yes:no: )
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8716 ac_header_preproc=yes
8717 ;;
8718 no:yes:* )
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8731
8732 ;;
8733 esac
8734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739 eval "$as_ac_Header=\$ac_header_preproc"
8740 fi
8741 ac_res=`eval echo '${'$as_ac_Header'}'`
8742 { echo "$as_me:$LINENO: result: $ac_res" >&5
8743 echo "${ECHO_T}$ac_res" >&6; }
8744
8745 fi
8746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8749 _ACEOF
8750
8751 fi
8752
8753 done
8754
8755 if test "$ac_cv_header_netinet_ether_h" = yes; then
8756 #
8757 # We have it - does it declare ether_ntohost()?
8758 # Unset ac_cv_have_decl_ether_ntohost so we don't
8759 # treat the previous failure as a cached value and
8760 # suppress the next test.
8761 #
8762 unset ac_cv_have_decl_ether_ntohost
8763 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8764 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8765 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774
8775 #include <netinet/ether.h>
8776
8777
8778 int
8779 main ()
8780 {
8781 #ifndef ether_ntohost
8782 (void) ether_ntohost;
8783 #endif
8784
8785 ;
8786 return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (ac_try="$ac_compile"
8791 case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_compile") 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8805 } && test -s conftest.$ac_objext; then
8806 ac_cv_have_decl_ether_ntohost=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 ac_cv_have_decl_ether_ntohost=no
8812 fi
8813
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815 fi
8816 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8817 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8818 if test $ac_cv_have_decl_ether_ntohost = yes; then
8819
8820
8821 cat >>confdefs.h <<\_ACEOF
8822 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8823 _ACEOF
8824
8825
8826 fi
8827
8828 fi
8829 fi
8830 #
8831 # Is ether_ntohost() declared?
8832 #
8833 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8834 #
8835 # No, we'll have to declare it ourselves.
8836 # Do we have "struct ether_addr"?
8837 #
8838 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8839 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8840 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849
8850 #include <sys/types.h>
8851 #include <sys/socket.h>
8852 #include <netinet/in.h>
8853 #include <arpa/inet.h>
8854 struct mbuf;
8855 struct rtentry;
8856 #include <net/if.h>
8857 #include <netinet/if_ether.h>
8858
8859
8860 typedef struct ether_addr ac__type_new_;
8861 int
8862 main ()
8863 {
8864 if ((ac__type_new_ *) 0)
8865 return 0;
8866 if (sizeof (ac__type_new_))
8867 return 0;
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest.$ac_objext
8873 if { (ac_try="$ac_compile"
8874 case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_cv_type_struct_ether_addr=yes
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_cv_type_struct_ether_addr=no
8895 fi
8896
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8900 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8901 if test $ac_cv_type_struct_ether_addr = yes; then
8902
8903 cat >>confdefs.h <<_ACEOF
8904 #define HAVE_STRUCT_ETHER_ADDR 1
8905 _ACEOF
8906
8907
8908 fi
8909
8910
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_DECL_ETHER_NTOHOST 0
8913 _ACEOF
8914
8915 else
8916
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_DECL_ETHER_NTOHOST 1
8919 _ACEOF
8920
8921 fi
8922 fi
8923
8924 # libdlpi is needed for Solaris 11 and later.
8925 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8926 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8927 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 ac_check_lib_save_LIBS=$LIBS
8931 LIBS="-ldlpi -L/lib $LIBS"
8932 cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h. */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938
8939 /* Override any GCC internal prototype to avoid an error.
8940 Use char because int might match the return type of a GCC
8941 builtin and then its argument prototype would still apply. */
8942 #ifdef __cplusplus
8943 extern "C"
8944 #endif
8945 char dlpi_walk ();
8946 int
8947 main ()
8948 {
8949 return dlpi_walk ();
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (ac_try="$ac_link"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_link") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest$ac_exeext &&
8971 $as_test_x conftest$ac_exeext; then
8972 ac_cv_lib_dlpi_dlpi_walk=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_cv_lib_dlpi_dlpi_walk=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8983 fi
8984 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8985 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8986 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8987 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8988 fi
8989
8990
8991
8992 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8993 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8994 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003
9004 # include <sys/types.h>
9005 # include <sys/socket.h>
9006 int
9007 main ()
9008 {
9009 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9010 ;
9011 return 0;
9012 }
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (ac_try="$ac_compile"
9016 case "(($ac_try" in
9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_compile") 2>conftest.er1
9022 ac_status=$?
9023 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest.$ac_objext; then
9031 ac_cv_sockaddr_has_sa_len=yes
9032 else
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_cv_sockaddr_has_sa_len=no
9037 fi
9038
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 fi
9041
9042 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9043 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9044 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9045 cat >>confdefs.h <<\_ACEOF
9046 #define HAVE_SOCKADDR_SA_LEN 1
9047 _ACEOF
9048
9049 fi
9050
9051 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9052 missing_includes=yes
9053 fi
9054
9055 #
9056 # Do we have the new open API? Check for pcap_create, and assume that,
9057 # if we do, we also have pcap_activate() and the other new routines
9058 # introduced in libpcap 1.0.0.
9059 #
9060
9061 for ac_func in pcap_create
9062 do
9063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h. */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h. */
9075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9077 #define $ac_func innocuous_$ac_func
9078
9079 /* System header to define __stub macros and hopefully few prototypes,
9080 which can conflict with char $ac_func (); below.
9081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9082 <limits.h> exists even on freestanding compilers. */
9083
9084 #ifdef __STDC__
9085 # include <limits.h>
9086 #else
9087 # include <assert.h>
9088 #endif
9089
9090 #undef $ac_func
9091
9092 /* Override any GCC internal prototype to avoid an error.
9093 Use char because int might match the return type of a GCC
9094 builtin and then its argument prototype would still apply. */
9095 #ifdef __cplusplus
9096 extern "C"
9097 #endif
9098 char $ac_func ();
9099 /* The GNU C library defines this for functions which it implements
9100 to always fail with ENOSYS. Some functions are actually named
9101 something starting with __ and the normal name is an alias. */
9102 #if defined __stub_$ac_func || defined __stub___$ac_func
9103 choke me
9104 #endif
9105
9106 int
9107 main ()
9108 {
9109 return $ac_func ();
9110 ;
9111 return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (ac_try="$ac_link"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_link") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest$ac_exeext &&
9131 $as_test_x conftest$ac_exeext; then
9132 eval "$as_ac_var=yes"
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137 eval "$as_ac_var=no"
9138 fi
9139
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141 conftest$ac_exeext conftest.$ac_ext
9142 fi
9143 ac_res=`eval echo '${'$as_ac_var'}'`
9144 { echo "$as_me:$LINENO: result: $ac_res" >&5
9145 echo "${ECHO_T}$ac_res" >&6; }
9146 if test `eval echo '${'$as_ac_var'}'` = yes; then
9147 cat >>confdefs.h <<_ACEOF
9148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9149 _ACEOF
9150
9151 fi
9152 done
9153
9154 if test $ac_cv_func_pcap_create = "yes" ; then
9155 #
9156 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9157 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9158 #
9159
9160 for ac_func in pcap_set_tstamp_type
9161 do
9162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9176 #define $ac_func innocuous_$ac_func
9177
9178 /* System header to define __stub macros and hopefully few prototypes,
9179 which can conflict with char $ac_func (); below.
9180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9181 <limits.h> exists even on freestanding compilers. */
9182
9183 #ifdef __STDC__
9184 # include <limits.h>
9185 #else
9186 # include <assert.h>
9187 #endif
9188
9189 #undef $ac_func
9190
9191 /* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 char $ac_func ();
9198 /* The GNU C library defines this for functions which it implements
9199 to always fail with ENOSYS. Some functions are actually named
9200 something starting with __ and the normal name is an alias. */
9201 #if defined __stub_$ac_func || defined __stub___$ac_func
9202 choke me
9203 #endif
9204
9205 int
9206 main ()
9207 {
9208 return $ac_func ();
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9215 case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218 esac
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_link") 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } && {
9227 test -z "$ac_c_werror_flag" ||
9228 test ! -s conftest.err
9229 } && test -s conftest$ac_exeext &&
9230 $as_test_x conftest$ac_exeext; then
9231 eval "$as_ac_var=yes"
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236 eval "$as_ac_var=no"
9237 fi
9238
9239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9240 conftest$ac_exeext conftest.$ac_ext
9241 fi
9242 ac_res=`eval echo '${'$as_ac_var'}'`
9243 { echo "$as_me:$LINENO: result: $ac_res" >&5
9244 echo "${ECHO_T}$ac_res" >&6; }
9245 if test `eval echo '${'$as_ac_var'}'` = yes; then
9246 cat >>confdefs.h <<_ACEOF
9247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9248 _ACEOF
9249
9250 fi
9251 done
9252
9253 fi
9254
9255
9256
9257
9258 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9259 do
9260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h. */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9274 #define $ac_func innocuous_$ac_func
9275
9276 /* System header to define __stub macros and hopefully few prototypes,
9277 which can conflict with char $ac_func (); below.
9278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9279 <limits.h> exists even on freestanding compilers. */
9280
9281 #ifdef __STDC__
9282 # include <limits.h>
9283 #else
9284 # include <assert.h>
9285 #endif
9286
9287 #undef $ac_func
9288
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 char $ac_func ();
9296 /* The GNU C library defines this for functions which it implements
9297 to always fail with ENOSYS. Some functions are actually named
9298 something starting with __ and the normal name is an alias. */
9299 #if defined __stub_$ac_func || defined __stub___$ac_func
9300 choke me
9301 #endif
9302
9303 int
9304 main ()
9305 {
9306 return $ac_func ();
9307 ;
9308 return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (ac_try="$ac_link"
9313 case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_link") 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } && {
9325 test -z "$ac_c_werror_flag" ||
9326 test ! -s conftest.err
9327 } && test -s conftest$ac_exeext &&
9328 $as_test_x conftest$ac_exeext; then
9329 eval "$as_ac_var=yes"
9330 else
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9333
9334 eval "$as_ac_var=no"
9335 fi
9336
9337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9338 conftest$ac_exeext conftest.$ac_ext
9339 fi
9340 ac_res=`eval echo '${'$as_ac_var'}'`
9341 { echo "$as_me:$LINENO: result: $ac_res" >&5
9342 echo "${ECHO_T}$ac_res" >&6; }
9343 if test `eval echo '${'$as_ac_var'}'` = yes; then
9344 cat >>confdefs.h <<_ACEOF
9345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9346 _ACEOF
9347
9348 fi
9349 done
9350
9351 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9352 savedcppflags="$CPPFLAGS"
9353 CPPFLAGS="$CPPFLAGS $V_INCLS"
9354 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9355 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9356 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #include <pcap.h>
9366
9367 typedef pcap_if_t ac__type_new_;
9368 int
9369 main ()
9370 {
9371 if ((ac__type_new_ *) 0)
9372 return 0;
9373 if (sizeof (ac__type_new_))
9374 return 0;
9375 ;
9376 return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 ac_cv_type_pcap_if_t=yes
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401 ac_cv_type_pcap_if_t=no
9402 fi
9403
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 fi
9406 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9407 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9408 if test $ac_cv_type_pcap_if_t = yes; then
9409
9410 cat >>confdefs.h <<_ACEOF
9411 #define HAVE_PCAP_IF_T 1
9412 _ACEOF
9413
9414
9415 fi
9416
9417 CPPFLAGS="$savedcppflags"
9418 fi
9419
9420 if test $ac_cv_func_pcap_lib_version = "no" ; then
9421 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9422 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429
9430 int
9431 main ()
9432 {
9433
9434 extern char pcap_version[];
9435
9436 return (int)pcap_version;
9437
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext conftest$ac_exeext
9443 if { (ac_try="$ac_link"
9444 case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447 esac
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_link") 2>conftest.er1
9450 ac_status=$?
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && {
9456 test -z "$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9458 } && test -s conftest$ac_exeext &&
9459 $as_test_x conftest$ac_exeext; then
9460 ac_lbl_cv_pcap_version_defined=yes
9461 else
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465 ac_lbl_cv_pcap_version_defined=no
9466 fi
9467
9468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9469 conftest$ac_exeext conftest.$ac_ext
9470 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9471 { echo "$as_me:$LINENO: result: yes" >&5
9472 echo "${ECHO_T}yes" >&6; }
9473 cat >>confdefs.h <<\_ACEOF
9474 #define HAVE_PCAP_VERSION 1
9475 _ACEOF
9476
9477 else
9478 { echo "$as_me:$LINENO: result: no" >&5
9479 echo "${ECHO_T}no" >&6; }
9480 fi
9481 fi
9482 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9483 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490
9491 int
9492 main ()
9493 {
9494
9495 extern int pcap_debug;
9496
9497 return pcap_debug;
9498
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest$ac_exeext &&
9520 $as_test_x conftest$ac_exeext; then
9521 ac_lbl_cv_pcap_debug_defined=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_lbl_cv_pcap_debug_defined=no
9527 fi
9528
9529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530 conftest$ac_exeext conftest.$ac_ext
9531 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9532 { echo "$as_me:$LINENO: result: yes" >&5
9533 echo "${ECHO_T}yes" >&6; }
9534 cat >>confdefs.h <<\_ACEOF
9535 #define HAVE_PCAP_DEBUG 1
9536 _ACEOF
9537
9538 else
9539 { echo "$as_me:$LINENO: result: no" >&5
9540 echo "${ECHO_T}no" >&6; }
9541 #
9542 # OK, what about "yydebug"?
9543 #
9544 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9545 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552
9553 int
9554 main ()
9555 {
9556
9557 extern int yydebug;
9558
9559 return yydebug;
9560
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (ac_try="$ac_link"
9567 case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_link") 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest$ac_exeext &&
9582 $as_test_x conftest$ac_exeext; then
9583 ac_lbl_cv_yydebug_defined=yes
9584 else
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_lbl_cv_yydebug_defined=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 conftest$ac_exeext conftest.$ac_ext
9593 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9594 { echo "$as_me:$LINENO: result: yes" >&5
9595 echo "${ECHO_T}yes" >&6; }
9596 cat >>confdefs.h <<\_ACEOF
9597 #define HAVE_YYDEBUG 1
9598 _ACEOF
9599
9600 else
9601 { echo "$as_me:$LINENO: result: no" >&5
9602 echo "${ECHO_T}no" >&6; }
9603 fi
9604 fi
9605
9606 for ac_func in bpf_dump
9607 do
9608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 else
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define $ac_func innocuous_$ac_func
9623
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9628
9629 #ifdef __STDC__
9630 # include <limits.h>
9631 #else
9632 # include <assert.h>
9633 #endif
9634
9635 #undef $ac_func
9636
9637 /* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9640 #ifdef __cplusplus
9641 extern "C"
9642 #endif
9643 char $ac_func ();
9644 /* The GNU C library defines this for functions which it implements
9645 to always fail with ENOSYS. Some functions are actually named
9646 something starting with __ and the normal name is an alias. */
9647 #if defined __stub_$ac_func || defined __stub___$ac_func
9648 choke me
9649 #endif
9650
9651 int
9652 main ()
9653 {
9654 return $ac_func ();
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (ac_try="$ac_link"
9661 case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_link") 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } && {
9673 test -z "$ac_c_werror_flag" ||
9674 test ! -s conftest.err
9675 } && test -s conftest$ac_exeext &&
9676 $as_test_x conftest$ac_exeext; then
9677 eval "$as_ac_var=yes"
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 eval "$as_ac_var=no"
9683 fi
9684
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9687 fi
9688 ac_res=`eval echo '${'$as_ac_var'}'`
9689 { echo "$as_me:$LINENO: result: $ac_res" >&5
9690 echo "${ECHO_T}$ac_res" >&6; }
9691 if test `eval echo '${'$as_ac_var'}'` = yes; then
9692 cat >>confdefs.h <<_ACEOF
9693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9694 _ACEOF
9695
9696 else
9697 case " $LIBOBJS " in
9698 *" $ac_func.$ac_objext "* ) ;;
9699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9700 ;;
9701 esac
9702
9703 fi
9704 done
9705
9706
9707 V_GROUP=0
9708 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9709 V_GROUP=wheel
9710 fi
9711 #
9712 # Assume V7/BSD convention for man pages (file formats in section 5,
9713 # miscellaneous info in section 7).
9714 #
9715 MAN_FILE_FORMATS=5
9716 MAN_MISC_INFO=7
9717 case "$host_os" in
9718
9719 aix*)
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define _SUN 1
9723 _ACEOF
9724
9725 ;;
9726
9727 hpux*)
9728 #
9729 # Use System V conventions for man pages.
9730 #
9731 MAN_FILE_FORMATS=4
9732 MAN_MISC_INFO=5
9733 ;;
9734
9735 irix*)
9736 V_GROUP=sys
9737
9738 #
9739 # Use System V conventions for man pages.
9740 #
9741 MAN_FILE_FORMATS=4
9742 MAN_MISC_INFO=5
9743 ;;
9744
9745 osf*)
9746 V_GROUP=system
9747
9748 #
9749 # Use System V conventions for man pages.
9750 #
9751 MAN_FILE_FORMATS=4
9752 MAN_MISC_INFO=5
9753 ;;
9754
9755 solaris*)
9756 V_GROUP=sys
9757
9758 #
9759 # Use System V conventions for man pages.
9760 #
9761 MAN_FILE_FORMATS=4
9762 MAN_MISC_INFO=5
9763 ;;
9764 esac
9765
9766 if test -f /dev/bpf0 ; then
9767 V_GROUP=bpf
9768 fi
9769
9770
9771 for ac_header in sys/bitypes.h
9772 do
9773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 fi
9780 ac_res=`eval echo '${'$as_ac_Header'}'`
9781 { echo "$as_me:$LINENO: result: $ac_res" >&5
9782 echo "${ECHO_T}$ac_res" >&6; }
9783 else
9784 # Is the header compilable?
9785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (ac_try="$ac_compile"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_compile") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest.$ac_objext; then
9813 ac_header_compiler=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_header_compiler=no
9819 fi
9820
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9823 echo "${ECHO_T}$ac_header_compiler" >&6; }
9824
9825 # Is the header present?
9826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <$ac_header>
9835 _ACEOF
9836 if { (ac_try="$ac_cpp conftest.$ac_ext"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } >/dev/null && {
9849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 }; then
9852 ac_header_preproc=yes
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_header_preproc=no
9858 fi
9859
9860 rm -f conftest.err conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9862 echo "${ECHO_T}$ac_header_preproc" >&6; }
9863
9864 # So? What about this header?
9865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9866 yes:no: )
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9871 ac_header_preproc=yes
9872 ;;
9873 no:yes:* )
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9886
9887 ;;
9888 esac
9889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 eval "$as_ac_Header=\$ac_header_preproc"
9895 fi
9896 ac_res=`eval echo '${'$as_ac_Header'}'`
9897 { echo "$as_me:$LINENO: result: $ac_res" >&5
9898 echo "${ECHO_T}$ac_res" >&6; }
9899
9900 fi
9901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904 _ACEOF
9905
9906 fi
9907
9908 done
9909
9910
9911 { echo "$as_me:$LINENO: checking for int8_t" >&5
9912 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9913 if test "${ac_cv_type_int8_t+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 $ac_includes_default
9923 #ifdef HAVE_SYS_BITYPES_H
9924 #include <sys/bitypes.h>
9925 #endif
9926
9927 typedef int8_t ac__type_new_;
9928 int
9929 main ()
9930 {
9931 if ((ac__type_new_ *) 0)
9932 return 0;
9933 if (sizeof (ac__type_new_))
9934 return 0;
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 rm -f conftest.$ac_objext
9940 if { (ac_try="$ac_compile"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_compile") 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest.$ac_objext; then
9956 ac_cv_type_int8_t=yes
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 ac_cv_type_int8_t=no
9962 fi
9963
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 fi
9966 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9967 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9968 if test $ac_cv_type_int8_t = yes; then
9969 :
9970 else
9971
9972 cat >>confdefs.h <<\_ACEOF
9973 #define int8_t signed char
9974 _ACEOF
9975
9976 fi
9977
9978 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9979 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9980 if test "${ac_cv_type_u_int8_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #ifdef HAVE_SYS_BITYPES_H
9991 #include <sys/bitypes.h>
9992 #endif
9993
9994 typedef u_int8_t ac__type_new_;
9995 int
9996 main ()
9997 {
9998 if ((ac__type_new_ *) 0)
9999 return 0;
10000 if (sizeof (ac__type_new_))
10001 return 0;
10002 ;
10003 return 0;
10004 }
10005 _ACEOF
10006 rm -f conftest.$ac_objext
10007 if { (ac_try="$ac_compile"
10008 case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10011 esac
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_compile") 2>conftest.er1
10014 ac_status=$?
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && {
10020 test -z "$ac_c_werror_flag" ||
10021 test ! -s conftest.err
10022 } && test -s conftest.$ac_objext; then
10023 ac_cv_type_u_int8_t=yes
10024 else
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 ac_cv_type_u_int8_t=no
10029 fi
10030
10031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10032 fi
10033 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10034 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10035 if test $ac_cv_type_u_int8_t = yes; then
10036 :
10037 else
10038
10039 cat >>confdefs.h <<\_ACEOF
10040 #define u_int8_t unsigned char
10041 _ACEOF
10042
10043 fi
10044
10045 { echo "$as_me:$LINENO: checking for int16_t" >&5
10046 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10047 if test "${ac_cv_type_int16_t+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 typedef int16_t ac__type_new_;
10058 int
10059 main ()
10060 {
10061 if ((ac__type_new_ *) 0)
10062 return 0;
10063 if (sizeof (ac__type_new_))
10064 return 0;
10065 ;
10066 return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext
10070 if { (ac_try="$ac_compile"
10071 case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_compile") 2>conftest.er1
10077 ac_status=$?
10078 grep -v '^ *+' conftest.er1 >conftest.err
10079 rm -f conftest.er1
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && {
10083 test -z "$ac_c_werror_flag" ||
10084 test ! -s conftest.err
10085 } && test -s conftest.$ac_objext; then
10086 ac_cv_type_int16_t=yes
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 ac_cv_type_int16_t=no
10092 fi
10093
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 fi
10096 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10097 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10098 if test $ac_cv_type_int16_t = yes; then
10099 :
10100 else
10101
10102 cat >>confdefs.h <<\_ACEOF
10103 #define int16_t short
10104 _ACEOF
10105
10106 $ac_includes_default
10107 #ifdef HAVE_SYS_BITYPES_H
10108 #include <sys/bitypes.h>
10109 #endif
10110 fi
10111
10112 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10113 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10114 if test "${ac_cv_type_u_int16_t+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 else
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 $ac_includes_default
10124 #ifdef HAVE_SYS_BITYPES_H
10125 #include <sys/bitypes.h>
10126 #endif
10127
10128 typedef u_int16_t ac__type_new_;
10129 int
10130 main ()
10131 {
10132 if ((ac__type_new_ *) 0)
10133 return 0;
10134 if (sizeof (ac__type_new_))
10135 return 0;
10136 ;
10137 return 0;
10138 }
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10157 ac_cv_type_u_int16_t=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_cv_type_u_int16_t=no
10163 fi
10164
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166 fi
10167 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10168 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10169 if test $ac_cv_type_u_int16_t = yes; then
10170 :
10171 else
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define u_int16_t unsigned short
10175 _ACEOF
10176
10177 fi
10178
10179 { echo "$as_me:$LINENO: checking for int32_t" >&5
10180 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10181 if test "${ac_cv_type_int32_t+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 $ac_includes_default
10191 #ifdef HAVE_SYS_BITYPES_H
10192 #include <sys/bitypes.h>
10193 #endif
10194
10195 typedef int32_t ac__type_new_;
10196 int
10197 main ()
10198 {
10199 if ((ac__type_new_ *) 0)
10200 return 0;
10201 if (sizeof (ac__type_new_))
10202 return 0;
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest.$ac_objext
10208 if { (ac_try="$ac_compile"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_compile") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest.$ac_objext; then
10224 ac_cv_type_int32_t=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_cv_type_int32_t=no
10230 fi
10231
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10235 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10236 if test $ac_cv_type_int32_t = yes; then
10237 :
10238 else
10239
10240 cat >>confdefs.h <<\_ACEOF
10241 #define int32_t int
10242 _ACEOF
10243
10244 fi
10245
10246 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10247 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10248 if test "${ac_cv_type_u_int32_t+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h. */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 $ac_includes_default
10258 #ifdef HAVE_SYS_BITYPES_H
10259 #include <sys/bitypes.h>
10260 #endif
10261
10262 typedef u_int32_t ac__type_new_;
10263 int
10264 main ()
10265 {
10266 if ((ac__type_new_ *) 0)
10267 return 0;
10268 if (sizeof (ac__type_new_))
10269 return 0;
10270 ;
10271 return 0;
10272 }
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (ac_try="$ac_compile"
10276 case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279 esac
10280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10281 (eval "$ac_compile") 2>conftest.er1
10282 ac_status=$?
10283 grep -v '^ *+' conftest.er1 >conftest.err
10284 rm -f conftest.er1
10285 cat conftest.err >&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && {
10288 test -z "$ac_c_werror_flag" ||
10289 test ! -s conftest.err
10290 } && test -s conftest.$ac_objext; then
10291 ac_cv_type_u_int32_t=yes
10292 else
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296 ac_cv_type_u_int32_t=no
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300 fi
10301 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10302 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10303 if test $ac_cv_type_u_int32_t = yes; then
10304 :
10305 else
10306
10307 cat >>confdefs.h <<\_ACEOF
10308 #define u_int32_t unsigned int
10309 _ACEOF
10310
10311 fi
10312
10313 { echo "$as_me:$LINENO: checking for int64_t" >&5
10314 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10315 if test "${ac_cv_type_int64_t+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318 cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h. */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 #ifdef HAVE_SYS_BITYPES_H
10326 #include <sys/bitypes.h>
10327 #endif
10328
10329 typedef int64_t ac__type_new_;
10330 int
10331 main ()
10332 {
10333 if ((ac__type_new_ *) 0)
10334 return 0;
10335 if (sizeof (ac__type_new_))
10336 return 0;
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (ac_try="$ac_compile"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10346 esac
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10358 ac_cv_type_int64_t=yes
10359 else
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10362
10363 ac_cv_type_int64_t=no
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10367 fi
10368 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10369 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10370 if test $ac_cv_type_int64_t = yes; then
10371 :
10372 else
10373
10374 cat >>confdefs.h <<\_ACEOF
10375 #define int64_t long long
10376 _ACEOF
10377
10378 fi
10379
10380 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10381 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10382 if test "${ac_cv_type_u_int64_t+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 $ac_includes_default
10392 #ifdef HAVE_SYS_BITYPES_H
10393 #include <sys/bitypes.h>
10394 #endif
10395
10396 typedef u_int64_t ac__type_new_;
10397 int
10398 main ()
10399 {
10400 if ((ac__type_new_ *) 0)
10401 return 0;
10402 if (sizeof (ac__type_new_))
10403 return 0;
10404 ;
10405 return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10425 ac_cv_type_u_int64_t=yes
10426 else
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_cv_type_u_int64_t=no
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 fi
10435 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10436 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10437 if test $ac_cv_type_u_int64_t = yes; then
10438 :
10439 else
10440
10441 cat >>confdefs.h <<\_ACEOF
10442 #define u_int64_t unsigned long long
10443 _ACEOF
10444
10445 fi
10446
10447
10448 #
10449 # We can't just check for <inttypes.h> - some systems have one that
10450 # doesn't define all the PRI[doxu]64 macros.
10451 #
10452
10453 for ac_header in inttypes.h
10454 do
10455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 fi
10462 ac_res=`eval echo '${'$as_ac_Header'}'`
10463 { echo "$as_me:$LINENO: result: $ac_res" >&5
10464 echo "${ECHO_T}$ac_res" >&6; }
10465 else
10466 # Is the header compilable?
10467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 #include <$ac_header>
10477 _ACEOF
10478 rm -f conftest.$ac_objext
10479 if { (ac_try="$ac_compile"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_compile") 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest.$ac_objext; then
10495 ac_header_compiler=yes
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 ac_header_compiler=no
10501 fi
10502
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10505 echo "${ECHO_T}$ac_header_compiler" >&6; }
10506
10507 # Is the header present?
10508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 #include <$ac_header>
10517 _ACEOF
10518 if { (ac_try="$ac_cpp conftest.$ac_ext"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } >/dev/null && {
10531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 }; then
10534 ac_header_preproc=yes
10535 else
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539 ac_header_preproc=no
10540 fi
10541
10542 rm -f conftest.err conftest.$ac_ext
10543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10544 echo "${ECHO_T}$ac_header_preproc" >&6; }
10545
10546 # So? What about this header?
10547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10548 yes:no: )
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10553 ac_header_preproc=yes
10554 ;;
10555 no:yes:* )
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10568
10569 ;;
10570 esac
10571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 eval "$as_ac_Header=\$ac_header_preproc"
10577 fi
10578 ac_res=`eval echo '${'$as_ac_Header'}'`
10579 { echo "$as_me:$LINENO: result: $ac_res" >&5
10580 echo "${ECHO_T}$ac_res" >&6; }
10581
10582 fi
10583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10584 cat >>confdefs.h <<_ACEOF
10585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10586 _ACEOF
10587
10588 #
10589 # OK, we have inttypes.h, but does it define those macros?
10590 #
10591 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10592 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10593 cat >conftest.$ac_ext <<_ACEOF
10594
10595 /* confdefs.h. */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600
10601 #include <inttypes.h>
10602 #include <stdio.h>
10603 #include <sys/types.h>
10604 #ifdef HAVE_SYS_BITYPES_H
10605 #include <sys/bitypes.h>
10606 #endif
10607
10608 main()
10609 {
10610 printf("%" PRId64 "\n", (u_int64_t)1);
10611 printf("%" PRIo64 "\n", (u_int64_t)1);
10612 printf("%" PRIx64 "\n", (u_int64_t)1);
10613 printf("%" PRIu64 "\n", (u_int64_t)1);
10614 }
10615
10616
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (ac_try="$ac_compile"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
10635
10636 { echo "$as_me:$LINENO: result: yes" >&5
10637 echo "${ECHO_T}yes" >&6; }
10638 ac_lbl_inttypes_h_defines_formats=yes
10639
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644
10645 { echo "$as_me:$LINENO: result: no" >&5
10646 echo "${ECHO_T}no" >&6; }
10647 ac_lbl_inttypes_h_defines_formats=no
10648
10649 fi
10650
10651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652
10653 else
10654
10655 #
10656 # We don't have inttypes.h, so it obviously can't define those
10657 # macros.
10658 #
10659 ac_lbl_inttypes_h_defines_formats=no
10660
10661 fi
10662
10663 done
10664
10665 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10666
10667 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10668 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10669 if test "$cross_compiling" = yes; then
10670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10671 See \`config.log' for more details." >&5
10672 echo "$as_me: error: cannot run test program while cross compiling
10673 See \`config.log' for more details." >&2;}
10674 { (exit 1); exit 1; }; }
10675 else
10676 cat >conftest.$ac_ext <<_ACEOF
10677
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683
10684 # ifdef HAVE_INTTYPES_H
10685 #include <inttypes.h>
10686 # endif
10687 # ifdef HAVE_SYS_BITYPES_H
10688 #include <sys/bitypes.h>
10689 # endif
10690 #include <stdio.h>
10691 #include <sys/types.h>
10692
10693 main()
10694 {
10695 u_int64_t t = 1;
10696 char strbuf[16+1];
10697 sprintf(strbuf, "%016lx", t << 32);
10698 if (strcmp(strbuf, "0000000100000000") == 0)
10699 exit(0);
10700 else
10701 exit(1);
10702 }
10703
10704
10705 _ACEOF
10706 rm -f conftest$ac_exeext
10707 if { (ac_try="$ac_link"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726
10727 cat >>confdefs.h <<\_ACEOF
10728 #define PRId64 "ld"
10729 _ACEOF
10730
10731 cat >>confdefs.h <<\_ACEOF
10732 #define PRIo64 "lo"
10733 _ACEOF
10734
10735 cat >>confdefs.h <<\_ACEOF
10736 #define PRIx64 "lx"
10737 _ACEOF
10738
10739 cat >>confdefs.h <<\_ACEOF
10740 #define PRIu64 "lu"
10741 _ACEOF
10742
10743 { echo "$as_me:$LINENO: result: yes" >&5
10744 echo "${ECHO_T}yes" >&6; }
10745
10746 else
10747 echo "$as_me: program exited with status $ac_status" >&5
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ( exit $ac_status )
10752
10753 { echo "$as_me:$LINENO: result: no" >&5
10754 echo "${ECHO_T}no" >&6; }
10755
10756
10757 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10758 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
10759 if test "$cross_compiling" = yes; then
10760 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10761 See \`config.log' for more details." >&5
10762 echo "$as_me: error: cannot run test program while cross compiling
10763 See \`config.log' for more details." >&2;}
10764 { (exit 1); exit 1; }; }
10765 else
10766 cat >conftest.$ac_ext <<_ACEOF
10767
10768 /* confdefs.h. */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773
10774 # ifdef HAVE_INTTYPES_H
10775 #include <inttypes.h>
10776 # endif
10777 # ifdef HAVE_SYS_BITYPES_H
10778 #include <sys/bitypes.h>
10779 # endif
10780 #include <stdio.h>
10781 #include <sys/types.h>
10782
10783 main()
10784 {
10785 u_int64_t t = 1;
10786 char strbuf[16+1];
10787 sprintf(strbuf, "%016llx", t << 32);
10788 if (strcmp(strbuf, "0000000100000000") == 0)
10789 exit(0);
10790 else
10791 exit(1);
10792 }
10793
10794
10795 _ACEOF
10796 rm -f conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816
10817 cat >>confdefs.h <<\_ACEOF
10818 #define PRId64 "lld"
10819 _ACEOF
10820
10821 cat >>confdefs.h <<\_ACEOF
10822 #define PRIo64 "llo"
10823 _ACEOF
10824
10825 cat >>confdefs.h <<\_ACEOF
10826 #define PRIx64 "llx"
10827 _ACEOF
10828
10829 cat >>confdefs.h <<\_ACEOF
10830 #define PRIu64 "llu"
10831 _ACEOF
10832
10833 { echo "$as_me:$LINENO: result: yes" >&5
10834 echo "${ECHO_T}yes" >&6; }
10835
10836 else
10837 echo "$as_me: program exited with status $ac_status" >&5
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 ( exit $ac_status )
10842
10843 { echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6; }
10845
10846
10847 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10848 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10849 if test "$cross_compiling" = yes; then
10850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10851 See \`config.log' for more details." >&5
10852 echo "$as_me: error: cannot run test program while cross compiling
10853 See \`config.log' for more details." >&2;}
10854 { (exit 1); exit 1; }; }
10855 else
10856 cat >conftest.$ac_ext <<_ACEOF
10857
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863
10864 # ifdef HAVE_INTTYPES_H
10865 #include <inttypes.h>
10866 # endif
10867 # ifdef HAVE_SYS_BITYPES_H
10868 #include <sys/bitypes.h>
10869 # endif
10870 #include <stdio.h>
10871 #include <sys/types.h>
10872
10873 main()
10874 {
10875 u_int64_t t = 1;
10876 char strbuf[16+1];
10877 sprintf(strbuf, "%016Lx", t << 32);
10878 if (strcmp(strbuf, "0000000100000000") == 0)
10879 exit(0);
10880 else
10881 exit(1);
10882 }
10883
10884
10885 _ACEOF
10886 rm -f conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_link") 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10897 { (case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902 (eval "$ac_try") 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906
10907 cat >>confdefs.h <<\_ACEOF
10908 #define PRId64 "Ld"
10909 _ACEOF
10910
10911 cat >>confdefs.h <<\_ACEOF
10912 #define PRIo64 "Lo"
10913 _ACEOF
10914
10915 cat >>confdefs.h <<\_ACEOF
10916 #define PRIx64 "Lx"
10917 _ACEOF
10918
10919 cat >>confdefs.h <<\_ACEOF
10920 #define PRIu64 "Lu"
10921 _ACEOF
10922
10923 { echo "$as_me:$LINENO: result: yes" >&5
10924 echo "${ECHO_T}yes" >&6; }
10925
10926 else
10927 echo "$as_me: program exited with status $ac_status" >&5
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931 ( exit $ac_status )
10932
10933 { echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6; }
10935
10936
10937 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10938 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10939 if test "$cross_compiling" = yes; then
10940 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10941 See \`config.log' for more details." >&5
10942 echo "$as_me: error: cannot run test program while cross compiling
10943 See \`config.log' for more details." >&2;}
10944 { (exit 1); exit 1; }; }
10945 else
10946 cat >conftest.$ac_ext <<_ACEOF
10947
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953
10954 # ifdef HAVE_INTTYPES_H
10955 #include <inttypes.h>
10956 # endif
10957 # ifdef HAVE_SYS_BITYPES_H
10958 #include <sys/bitypes.h>
10959 # endif
10960 #include <stdio.h>
10961 #include <sys/types.h>
10962
10963 main()
10964 {
10965 u_int64_t t = 1;
10966 char strbuf[16+1];
10967 sprintf(strbuf, "%016qx", t << 32);
10968 if (strcmp(strbuf, "0000000100000000") == 0)
10969 exit(0);
10970 else
10971 exit(1);
10972 }
10973
10974
10975 _ACEOF
10976 rm -f conftest$ac_exeext
10977 if { (ac_try="$ac_link"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981 esac
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_link") 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10987 { (case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_try") 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996
10997 cat >>confdefs.h <<\_ACEOF
10998 #define PRId64 "qd"
10999 _ACEOF
11000
11001 cat >>confdefs.h <<\_ACEOF
11002 #define PRIo64 "qo"
11003 _ACEOF
11004
11005 cat >>confdefs.h <<\_ACEOF
11006 #define PRIx64 "qx"
11007 _ACEOF
11008
11009 cat >>confdefs.h <<\_ACEOF
11010 #define PRIu64 "qu"
11011 _ACEOF
11012
11013 { echo "$as_me:$LINENO: result: yes" >&5
11014 echo "${ECHO_T}yes" >&6; }
11015
11016 else
11017 echo "$as_me: program exited with status $ac_status" >&5
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 ( exit $ac_status )
11022
11023 { echo "$as_me:$LINENO: result: no" >&5
11024 echo "${ECHO_T}no" >&6; }
11025
11026 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11027 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11028 { (exit 1); exit 1; }; }
11029
11030
11031 fi
11032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11033 fi
11034
11035
11036
11037
11038
11039 fi
11040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11041 fi
11042
11043
11044
11045
11046
11047 fi
11048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11049 fi
11050
11051
11052
11053
11054
11055 fi
11056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11057 fi
11058
11059
11060
11061 fi
11062
11063 #
11064 # Check for some headers introduced in later versions of libpcap
11065 # and used by some printers.
11066 #
11067 # Those headers use the {u_}intN_t types, so we must do this after
11068 # we check for what's needed to get them defined.
11069 #
11070 savedcppflags="$CPPFLAGS"
11071 CPPFLAGS="$CPPFLAGS $V_INCLS"
11072
11073 for ac_header in pcap/bluetooth.h
11074 do
11075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 #include <tcpdump-stdinc.h>
11088
11089 #include <$ac_header>
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11108 eval "$as_ac_Header=yes"
11109 else
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 eval "$as_ac_Header=no"
11114 fi
11115
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 fi
11118 ac_res=`eval echo '${'$as_ac_Header'}'`
11119 { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11124 _ACEOF
11125
11126 fi
11127
11128 done
11129
11130
11131 for ac_header in pcap/usb.h
11132 do
11133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 #include <tcpdump-stdinc.h>
11146
11147 #include <$ac_header>
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_compile") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest.$ac_objext; then
11166 eval "$as_ac_Header=yes"
11167 else
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 eval "$as_ac_Header=no"
11172 fi
11173
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 fi
11176 ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11182 _ACEOF
11183
11184 fi
11185
11186 done
11187
11188 CPPFLAGS="$savedcppflags"
11189
11190 if test -n "$ac_tool_prefix"; then
11191 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11195 if test "${ac_cv_prog_RANLIB+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198 if test -n "$RANLIB"; then
11199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11200 else
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212 done
11213 done
11214 IFS=$as_save_IFS
11215
11216 fi
11217 fi
11218 RANLIB=$ac_cv_prog_RANLIB
11219 if test -n "$RANLIB"; then
11220 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11221 echo "${ECHO_T}$RANLIB" >&6; }
11222 else
11223 { echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6; }
11225 fi
11226
11227
11228 fi
11229 if test -z "$ac_cv_prog_RANLIB"; then
11230 ac_ct_RANLIB=$RANLIB
11231 # Extract the first word of "ranlib", so it can be a program name with args.
11232 set dummy ranlib; ac_word=$2
11233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11235 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238 if test -n "$ac_ct_RANLIB"; then
11239 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11240 else
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11243 do
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248 ac_cv_prog_ac_ct_RANLIB="ranlib"
11249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11251 fi
11252 done
11253 done
11254 IFS=$as_save_IFS
11255
11256 fi
11257 fi
11258 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11259 if test -n "$ac_ct_RANLIB"; then
11260 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11261 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11262 else
11263 { echo "$as_me:$LINENO: result: no" >&5
11264 echo "${ECHO_T}no" >&6; }
11265 fi
11266
11267 if test "x$ac_ct_RANLIB" = x; then
11268 RANLIB=":"
11269 else
11270 case $cross_compiling:$ac_tool_warned in
11271 yes:)
11272 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11273 whose name does not start with the host triplet. If you think this
11274 configuration is useful to you, please write to autoconf@gnu.org." >&5
11275 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11276 whose name does not start with the host triplet. If you think this
11277 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11278 ac_tool_warned=yes ;;
11279 esac
11280 RANLIB=$ac_ct_RANLIB
11281 fi
11282 else
11283 RANLIB="$ac_cv_prog_RANLIB"
11284 fi
11285
11286
11287 rm -f os-proto.h
11288 if test "${LBL_CFLAGS+set}" = set; then
11289 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11290 fi
11291 if test -f .devel ; then
11292 if test "$GCC" = yes ; then
11293 if test "${LBL_CFLAGS+set}" != set; then
11294 if test "$ac_cv_prog_cc_g" = yes ; then
11295 V_CCOPT="-g $V_CCOPT"
11296 fi
11297 V_CCOPT="$V_CCOPT -Wall"
11298 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11299 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
11300 fi
11301 fi
11302 else
11303 case "$host_os" in
11304
11305 irix6*)
11306 V_CCOPT="$V_CCOPT -n32"
11307 ;;
11308
11309 *)
11310 ;;
11311 esac
11312 fi
11313 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11314 name="lbl/os-$os.h"
11315 if test -f $name ; then
11316 ln -s $name os-proto.h
11317
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_OS_PROTO_H 1
11320 _ACEOF
11321
11322 else
11323 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11324 echo "$as_me: WARNING: can't find $name" >&2;}
11325 fi
11326 fi
11327
11328 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11329 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11330 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h. */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339
11340 # include <sys/types.h>
11341 # include <sys/socket.h>
11342 int
11343 main ()
11344 {
11345 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11346 ;
11347 return 0;
11348 }
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (ac_try="$ac_compile"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_compile") 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } && {
11364 test -z "$ac_c_werror_flag" ||
11365 test ! -s conftest.err
11366 } && test -s conftest.$ac_objext; then
11367 ac_cv_lbl_sockaddr_has_sa_len=yes
11368 else
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_cv_lbl_sockaddr_has_sa_len=no
11373 fi
11374
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 fi
11377
11378 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11379 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11380 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11381
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_SOCKADDR_SA_LEN 1
11384 _ACEOF
11385
11386 fi
11387
11388 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11389 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11390 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 case "$host_cpu" in
11394
11395 #
11396 # These are CPU types where:
11397 #
11398 # the CPU faults on an unaligned access, but at least some
11399 # OSes that support that CPU catch the fault and simulate
11400 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11401 # the simulation is slow, so we don't want to use it;
11402 #
11403 # the CPU, I infer (from the old
11404 #
11405 # XXX: should also check that they don't do weird things (like on arm)
11406 #
11407 # comment) doesn't fault on unaligned accesses, but doesn't
11408 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11409 #
11410 # for whatever reason, the test program doesn't work
11411 # (this has been claimed to be the case for several of those
11412 # CPUs - I don't know what the problem is; the problem
11413 # was reported as "the test program dumps core" for SuperH,
11414 # but that's what the test program is *supposed* to do -
11415 # it dumps core before it writes anything, so the test
11416 # for an empty output file should find an empty output
11417 # file and conclude that unaligned accesses don't work).
11418 #
11419 # This run-time test won't work if you're cross-compiling, so
11420 # in order to support cross-compiling for a particular CPU,
11421 # we have to wire in the list of CPU types anyway, as far as
11422 # I know, so perhaps we should just have a set of CPUs on
11423 # which we know it doesn't work, a set of CPUs on which we
11424 # know it does work, and have the script just fail on other
11425 # cpu types and update it when such a failure occurs.
11426 #
11427 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11428 ac_cv_lbl_unaligned_fail=yes
11429 ;;
11430
11431 *)
11432 cat >conftest.c <<EOF
11433 # include <sys/types.h>
11434 # include <sys/wait.h>
11435 # include <stdio.h>
11436 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11437 main() {
11438 unsigned int i;
11439 pid_t pid;
11440 int status;
11441 /* avoid "core dumped" message */
11442 pid = fork();
11443 if (pid < 0)
11444 exit(2);
11445 if (pid > 0) {
11446 /* parent */
11447 pid = waitpid(pid, &status, 0);
11448 if (pid < 0)
11449 exit(3);
11450 exit(!WIFEXITED(status));
11451 }
11452 /* child */
11453 i = *(unsigned int *)&a[1];
11454 printf("%d\n", i);
11455 exit(0);
11456 }
11457 EOF
11458 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11459 conftest.c $LIBS >/dev/null 2>&1
11460 if test ! -x conftest ; then
11461 ac_cv_lbl_unaligned_fail=yes
11462 else
11463 ./conftest >conftest.out
11464 if test ! -s conftest.out ; then
11465 ac_cv_lbl_unaligned_fail=yes
11466 else
11467 ac_cv_lbl_unaligned_fail=no
11468 fi
11469 fi
11470 rm -f -r conftest* core core.conftest
11471 ;;
11472 esac
11473 fi
11474
11475 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11476 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11477 if test $ac_cv_lbl_unaligned_fail = yes ; then
11478
11479 cat >>confdefs.h <<\_ACEOF
11480 #define LBL_ALIGN 1
11481 _ACEOF
11482
11483 fi
11484
11485
11486 { echo "$as_me:$LINENO: checking for h_errno" >&5
11487 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
11488 if test "${ac_cv_var_h_errno+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h. */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497
11498 # include <sys/types.h>
11499 # include <netdb.h>
11500 int
11501 main ()
11502 {
11503 int foo = h_errno;
11504 ;
11505 return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513 esac
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.$ac_objext; then
11525 ac_cv_var_h_errno=yes
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11529
11530 ac_cv_var_h_errno=no
11531 fi
11532
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 fi
11535
11536 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11537 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11538 if test "$ac_cv_var_h_errno" = "yes"; then
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_H_ERRNO 1
11541 _ACEOF
11542
11543 fi
11544
11545
11546 # Check for OpenSSL libcrypto
11547 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto" >&5
11548 echo $ECHO_N "checking whether to use OpenSSL libcrypto... $ECHO_C" >&6; }
11549 # Specify location for both includes and libraries.
11550 want_libcrypto=ifavailable
11551
11552 # Check whether --with-crypto was given.
11553 if test "${with_crypto+set}" = set; then
11554 withval=$with_crypto;
11555 if test $withval = no
11556 then
11557 want_libcrypto=no
11558 { echo "$as_me:$LINENO: result: no" >&5
11559 echo "${ECHO_T}no" >&6; }
11560 elif test $withval = yes
11561 then
11562 want_libcrypto=yes
11563 { echo "$as_me:$LINENO: result: yes" >&5
11564 echo "${ECHO_T}yes" >&6; }
11565 fi
11566
11567 else
11568
11569 #
11570 # Use libcrypto if it's present, otherwise don't.
11571 #
11572 want_libcrypto=ifavailable
11573 { echo "$as_me:$LINENO: result: yes, if available" >&5
11574 echo "${ECHO_T}yes, if available" >&6; }
11575
11576 fi
11577
11578 if test "$want_libcrypto" != "no"; then
11579
11580 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11581 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
11582 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585 ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-lcrypto $LIBS"
11587 cat >conftest.$ac_ext <<_ACEOF
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char DES_cbc_encrypt ();
11601 int
11602 main ()
11603 {
11604 return DES_cbc_encrypt ();
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (ac_try="$ac_link"
11611 case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614 esac
11615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_link") 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest$ac_exeext &&
11626 $as_test_x conftest$ac_exeext; then
11627 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11628 else
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 ac_cv_lib_crypto_DES_cbc_encrypt=no
11633 fi
11634
11635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11640 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
11641 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define HAVE_LIBCRYPTO 1
11644 _ACEOF
11645
11646 LIBS="-lcrypto $LIBS"
11647
11648 fi
11649
11650
11651 for ac_header in openssl/evp.h
11652 do
11653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 fi
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11663 else
11664 # Is the header compilable?
11665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11668 /* confdefs.h. */
11669 _ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 $ac_includes_default
11674 #include <$ac_header>
11675 _ACEOF
11676 rm -f conftest.$ac_objext
11677 if { (ac_try="$ac_compile"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.$ac_objext; then
11693 ac_header_compiler=yes
11694 else
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 ac_header_compiler=no
11699 fi
11700
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6; }
11704
11705 # Is the header present?
11706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
11715 _ACEOF
11716 if { (ac_try="$ac_cpp conftest.$ac_ext"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } >/dev/null && {
11729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11730 test ! -s conftest.err
11731 }; then
11732 ac_header_preproc=yes
11733 else
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_header_preproc=no
11738 fi
11739
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11743
11744 # So? What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746 yes:no: )
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751 ac_header_preproc=yes
11752 ;;
11753 no:yes:* )
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11766
11767 ;;
11768 esac
11769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774 eval "$as_ac_Header=\$ac_header_preproc"
11775 fi
11776 ac_res=`eval echo '${'$as_ac_Header'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11779
11780 fi
11781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11784 _ACEOF
11785
11786 fi
11787
11788 done
11789
11790 fi
11791
11792 if test "$missing_includes" = "yes"; then
11793 CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
11794 V_INCLS="$V_INCLS -I$srcdir/missing"
11795 fi
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806 # Find a good install program. We prefer a C program (faster),
11807 # so one script is as good as another. But avoid the broken or
11808 # incompatible versions:
11809 # SysV /etc/install, /usr/sbin/install
11810 # SunOS /usr/etc/install
11811 # IRIX /sbin/install
11812 # AIX /bin/install
11813 # AmigaOS /C/install, which installs bootblocks on floppy discs
11814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11817 # OS/2's system install, which has a completely different semantic
11818 # ./install, which can be erroneously created by make from ./install.sh.
11819 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11820 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11821 if test -z "$INSTALL"; then
11822 if test "${ac_cv_path_install+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11827 do
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 # Account for people who put trailing slashes in PATH elements.
11831 case $as_dir/ in
11832 ./ | .// | /cC/* | \
11833 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11834 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11835 /usr/ucb/* ) ;;
11836 *)
11837 # OSF1 and SCO ODT 3.0 have their own names for install.
11838 # Don't use installbsd from OSF since it installs stuff as root
11839 # by default.
11840 for ac_prog in ginstall scoinst install; do
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11843 if test $ac_prog = install &&
11844 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11845 # AIX install. It has an incompatible calling convention.
11846 :
11847 elif test $ac_prog = install &&
11848 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11849 # program-specific install script used by HP pwplus--don't use.
11850 :
11851 else
11852 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11853 break 3
11854 fi
11855 fi
11856 done
11857 done
11858 ;;
11859 esac
11860 done
11861 IFS=$as_save_IFS
11862
11863
11864 fi
11865 if test "${ac_cv_path_install+set}" = set; then
11866 INSTALL=$ac_cv_path_install
11867 else
11868 # As a last resort, use the slow shell script. Don't cache a
11869 # value for INSTALL within a source directory, because that will
11870 # break other packages using the cache if that directory is
11871 # removed, or if the value is a relative name.
11872 INSTALL=$ac_install_sh
11873 fi
11874 fi
11875 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11876 echo "${ECHO_T}$INSTALL" >&6; }
11877
11878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11879 # It thinks the first close brace ends the variable substitution.
11880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11881
11882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11883
11884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11885
11886
11887 ac_config_headers="$ac_config_headers config.h"
11888
11889
11890 ac_config_commands="$ac_config_commands default-1"
11891
11892 ac_config_files="$ac_config_files Makefile tcpdump.1"
11893
11894 cat >confcache <<\_ACEOF
11895 # This file is a shell script that caches the results of configure
11896 # tests run on this system so they can be shared between configure
11897 # scripts and configure runs, see configure's option --config-cache.
11898 # It is not useful on other systems. If it contains results you don't
11899 # want to keep, you may remove or edit it.
11900 #
11901 # config.status only pays attention to the cache file if you give it
11902 # the --recheck option to rerun configure.
11903 #
11904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11906 # following values.
11907
11908 _ACEOF
11909
11910 # The following way of writing the cache mishandles newlines in values,
11911 # but we know of no workaround that is simple, portable, and efficient.
11912 # So, we kill variables containing newlines.
11913 # Ultrix sh set writes to stderr and can't be redirected directly,
11914 # and sets the high bit in the cache file unless we assign to the vars.
11915 (
11916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11917 eval ac_val=\$$ac_var
11918 case $ac_val in #(
11919 *${as_nl}*)
11920 case $ac_var in #(
11921 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11922 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11923 esac
11924 case $ac_var in #(
11925 _ | IFS | as_nl) ;; #(
11926 *) $as_unset $ac_var ;;
11927 esac ;;
11928 esac
11929 done
11930
11931 (set) 2>&1 |
11932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11933 *${as_nl}ac_space=\ *)
11934 # `set' does not quote correctly, so add quotes (double-quote
11935 # substitution turns \\\\ into \\, and sed turns \\ into \).
11936 sed -n \
11937 "s/'/'\\\\''/g;
11938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11939 ;; #(
11940 *)
11941 # `set' quotes correctly as required by POSIX, so do not add quotes.
11942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11943 ;;
11944 esac |
11945 sort
11946 ) |
11947 sed '
11948 /^ac_cv_env_/b end
11949 t clear
11950 :clear
11951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11952 t end
11953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11954 :end' >>confcache
11955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11956 if test -w "$cache_file"; then
11957 test "x$cache_file" != "x/dev/null" &&
11958 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11959 echo "$as_me: updating cache $cache_file" >&6;}
11960 cat confcache >$cache_file
11961 else
11962 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11963 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11964 fi
11965 fi
11966 rm -f confcache
11967
11968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11969 # Let make expand exec_prefix.
11970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11971
11972 DEFS=-DHAVE_CONFIG_H
11973
11974 ac_libobjs=
11975 ac_ltlibobjs=
11976 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11977 # 1. Remove the extension, and $U if already installed.
11978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11979 ac_i=`echo "$ac_i" | sed "$ac_script"`
11980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11981 # will be set to the directory where LIBOBJS objects are built.
11982 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11983 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11984 done
11985 LIBOBJS=$ac_libobjs
11986
11987 LTLIBOBJS=$ac_ltlibobjs
11988
11989
11990
11991 : ${CONFIG_STATUS=./config.status}
11992 ac_clean_files_save=$ac_clean_files
11993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11994 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11995 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11996 cat >$CONFIG_STATUS <<_ACEOF
11997 #! $SHELL
11998 # Generated by $as_me.
11999 # Run this file to recreate the current configuration.
12000 # Compiler output produced by configure, useful for debugging
12001 # configure, is in config.log if it exists.
12002
12003 debug=false
12004 ac_cs_recheck=false
12005 ac_cs_silent=false
12006 SHELL=\${CONFIG_SHELL-$SHELL}
12007 _ACEOF
12008
12009 cat >>$CONFIG_STATUS <<\_ACEOF
12010 ## --------------------- ##
12011 ## M4sh Initialization. ##
12012 ## --------------------- ##
12013
12014 # Be more Bourne compatible
12015 DUALCASE=1; export DUALCASE # for MKS sh
12016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12017 emulate sh
12018 NULLCMD=:
12019 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12020 # is contrary to our usage. Disable this feature.
12021 alias -g '${1+"$@"}'='"$@"'
12022 setopt NO_GLOB_SUBST
12023 else
12024 case `(set -o) 2>/dev/null` in
12025 *posix*) set -o posix ;;
12026 esac
12027
12028 fi
12029
12030
12031
12032
12033 # PATH needs CR
12034 # Avoid depending upon Character Ranges.
12035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12038 as_cr_digits='0123456789'
12039 as_cr_alnum=$as_cr_Letters$as_cr_digits
12040
12041 # The user is always right.
12042 if test "${PATH_SEPARATOR+set}" != set; then
12043 echo "#! /bin/sh" >conf$$.sh
12044 echo "exit 0" >>conf$$.sh
12045 chmod +x conf$$.sh
12046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12047 PATH_SEPARATOR=';'
12048 else
12049 PATH_SEPARATOR=:
12050 fi
12051 rm -f conf$$.sh
12052 fi
12053
12054 # Support unset when possible.
12055 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12056 as_unset=unset
12057 else
12058 as_unset=false
12059 fi
12060
12061
12062 # IFS
12063 # We need space, tab and new line, in precisely that order. Quoting is
12064 # there to prevent editors from complaining about space-tab.
12065 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12066 # splitting by setting IFS to empty value.)
12067 as_nl='
12068 '
12069 IFS=" "" $as_nl"
12070
12071 # Find who we are. Look in the path if we contain no directory separator.
12072 case $0 in
12073 *[\\/]* ) as_myself=$0 ;;
12074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075 for as_dir in $PATH
12076 do
12077 IFS=$as_save_IFS
12078 test -z "$as_dir" && as_dir=.
12079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12080 done
12081 IFS=$as_save_IFS
12082
12083 ;;
12084 esac
12085 # We did not find ourselves, most probably we were run as `sh COMMAND'
12086 # in which case we are not to be found in the path.
12087 if test "x$as_myself" = x; then
12088 as_myself=$0
12089 fi
12090 if test ! -f "$as_myself"; then
12091 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12092 { (exit 1); exit 1; }
12093 fi
12094
12095 # Work around bugs in pre-3.0 UWIN ksh.
12096 for as_var in ENV MAIL MAILPATH
12097 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12098 done
12099 PS1='$ '
12100 PS2='> '
12101 PS4='+ '
12102
12103 # NLS nuisances.
12104 for as_var in \
12105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12107 LC_TELEPHONE LC_TIME
12108 do
12109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12110 eval $as_var=C; export $as_var
12111 else
12112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12113 fi
12114 done
12115
12116 # Required to use basename.
12117 if expr a : '\(a\)' >/dev/null 2>&1 &&
12118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12119 as_expr=expr
12120 else
12121 as_expr=false
12122 fi
12123
12124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12125 as_basename=basename
12126 else
12127 as_basename=false
12128 fi
12129
12130
12131 # Name of the executable.
12132 as_me=`$as_basename -- "$0" ||
12133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12134 X"$0" : 'X\(//\)$' \| \
12135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12136 echo X/"$0" |
12137 sed '/^.*\/\([^/][^/]*\)\/*$/{
12138 s//\1/
12139 q
12140 }
12141 /^X\/\(\/\/\)$/{
12142 s//\1/
12143 q
12144 }
12145 /^X\/\(\/\).*/{
12146 s//\1/
12147 q
12148 }
12149 s/.*/./; q'`
12150
12151 # CDPATH.
12152 $as_unset CDPATH
12153
12154
12155
12156 as_lineno_1=$LINENO
12157 as_lineno_2=$LINENO
12158 test "x$as_lineno_1" != "x$as_lineno_2" &&
12159 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12160
12161 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12162 # uniformly replaced by the line number. The first 'sed' inserts a
12163 # line-number line after each line using $LINENO; the second 'sed'
12164 # does the real work. The second script uses 'N' to pair each
12165 # line-number line with the line containing $LINENO, and appends
12166 # trailing '-' during substitution so that $LINENO is not a special
12167 # case at line end.
12168 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12169 # scripts with optimization help from Paolo Bonzini. Blame Lee
12170 # E. McMahon (1931-1989) for sed's syntax. :-)
12171 sed -n '
12172 p
12173 /[$]LINENO/=
12174 ' <$as_myself |
12175 sed '
12176 s/[$]LINENO.*/&-/
12177 t lineno
12178 b
12179 :lineno
12180 N
12181 :loop
12182 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12183 t loop
12184 s/-\n.*//
12185 ' >$as_me.lineno &&
12186 chmod +x "$as_me.lineno" ||
12187 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12188 { (exit 1); exit 1; }; }
12189
12190 # Don't try to exec as it changes $[0], causing all sort of problems
12191 # (the dirname of $[0] is not the place where we might find the
12192 # original and so on. Autoconf is especially sensitive to this).
12193 . "./$as_me.lineno"
12194 # Exit status is that of the last command.
12195 exit
12196 }
12197
12198
12199 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12200 as_dirname=dirname
12201 else
12202 as_dirname=false
12203 fi
12204
12205 ECHO_C= ECHO_N= ECHO_T=
12206 case `echo -n x` in
12207 -n*)
12208 case `echo 'x\c'` in
12209 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12210 *) ECHO_C='\c';;
12211 esac;;
12212 *)
12213 ECHO_N='-n';;
12214 esac
12215
12216 if expr a : '\(a\)' >/dev/null 2>&1 &&
12217 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12218 as_expr=expr
12219 else
12220 as_expr=false
12221 fi
12222
12223 rm -f conf$$ conf$$.exe conf$$.file
12224 if test -d conf$$.dir; then
12225 rm -f conf$$.dir/conf$$.file
12226 else
12227 rm -f conf$$.dir
12228 mkdir conf$$.dir
12229 fi
12230 echo >conf$$.file
12231 if ln -s conf$$.file conf$$ 2>/dev/null; then
12232 as_ln_s='ln -s'
12233 # ... but there are two gotchas:
12234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12236 # In both cases, we have to default to `cp -p'.
12237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12238 as_ln_s='cp -p'
12239 elif ln conf$$.file conf$$ 2>/dev/null; then
12240 as_ln_s=ln
12241 else
12242 as_ln_s='cp -p'
12243 fi
12244 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12245 rmdir conf$$.dir 2>/dev/null
12246
12247 if mkdir -p . 2>/dev/null; then
12248 as_mkdir_p=:
12249 else
12250 test -d ./-p && rmdir ./-p
12251 as_mkdir_p=false
12252 fi
12253
12254 if test -x / >/dev/null 2>&1; then
12255 as_test_x='test -x'
12256 else
12257 if ls -dL / >/dev/null 2>&1; then
12258 as_ls_L_option=L
12259 else
12260 as_ls_L_option=
12261 fi
12262 as_test_x='
12263 eval sh -c '\''
12264 if test -d "$1"; then
12265 test -d "$1/.";
12266 else
12267 case $1 in
12268 -*)set "./$1";;
12269 esac;
12270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12271 ???[sx]*):;;*)false;;esac;fi
12272 '\'' sh
12273 '
12274 fi
12275 as_executable_p=$as_test_x
12276
12277 # Sed expression to map a string onto a valid CPP name.
12278 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12279
12280 # Sed expression to map a string onto a valid variable name.
12281 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12282
12283
12284 exec 6>&1
12285
12286 # Save the log message, to keep $[0] and so on meaningful, and to
12287 # report actual input values of CONFIG_FILES etc. instead of their
12288 # values after options handling.
12289 ac_log="
12290 This file was extended by $as_me, which was
12291 generated by GNU Autoconf 2.61. Invocation command line was
12292
12293 CONFIG_FILES = $CONFIG_FILES
12294 CONFIG_HEADERS = $CONFIG_HEADERS
12295 CONFIG_LINKS = $CONFIG_LINKS
12296 CONFIG_COMMANDS = $CONFIG_COMMANDS
12297 $ $0 $@
12298
12299 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12300 "
12301
12302 _ACEOF
12303
12304 cat >>$CONFIG_STATUS <<_ACEOF
12305 # Files that config.status was made for.
12306 config_files="$ac_config_files"
12307 config_headers="$ac_config_headers"
12308 config_commands="$ac_config_commands"
12309
12310 _ACEOF
12311
12312 cat >>$CONFIG_STATUS <<\_ACEOF
12313 ac_cs_usage="\
12314 \`$as_me' instantiates files from templates according to the
12315 current configuration.
12316
12317 Usage: $0 [OPTIONS] [FILE]...
12318
12319 -h, --help print this help, then exit
12320 -V, --version print version number and configuration settings, then exit
12321 -q, --quiet do not print progress messages
12322 -d, --debug don't remove temporary files
12323 --recheck update $as_me by reconfiguring in the same conditions
12324 --file=FILE[:TEMPLATE]
12325 instantiate the configuration file FILE
12326 --header=FILE[:TEMPLATE]
12327 instantiate the configuration header FILE
12328
12329 Configuration files:
12330 $config_files
12331
12332 Configuration headers:
12333 $config_headers
12334
12335 Configuration commands:
12336 $config_commands
12337
12338 Report bugs to <bug-autoconf@gnu.org>."
12339
12340 _ACEOF
12341 cat >>$CONFIG_STATUS <<_ACEOF
12342 ac_cs_version="\\
12343 config.status
12344 configured by $0, generated by GNU Autoconf 2.61,
12345 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12346
12347 Copyright (C) 2006 Free Software Foundation, Inc.
12348 This config.status script is free software; the Free Software Foundation
12349 gives unlimited permission to copy, distribute and modify it."
12350
12351 ac_pwd='$ac_pwd'
12352 srcdir='$srcdir'
12353 INSTALL='$INSTALL'
12354 _ACEOF
12355
12356 cat >>$CONFIG_STATUS <<\_ACEOF
12357 # If no file are specified by the user, then we need to provide default
12358 # value. By we need to know if files were specified by the user.
12359 ac_need_defaults=:
12360 while test $# != 0
12361 do
12362 case $1 in
12363 --*=*)
12364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12366 ac_shift=:
12367 ;;
12368 *)
12369 ac_option=$1
12370 ac_optarg=$2
12371 ac_shift=shift
12372 ;;
12373 esac
12374
12375 case $ac_option in
12376 # Handling of the options.
12377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12378 ac_cs_recheck=: ;;
12379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12380 echo "$ac_cs_version"; exit ;;
12381 --debug | --debu | --deb | --de | --d | -d )
12382 debug=: ;;
12383 --file | --fil | --fi | --f )
12384 $ac_shift
12385 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12386 ac_need_defaults=false;;
12387 --header | --heade | --head | --hea )
12388 $ac_shift
12389 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12390 ac_need_defaults=false;;
12391 --he | --h)
12392 # Conflict between --help and --header
12393 { echo "$as_me: error: ambiguous option: $1
12394 Try \`$0 --help' for more information." >&2
12395 { (exit 1); exit 1; }; };;
12396 --help | --hel | -h )
12397 echo "$ac_cs_usage"; exit ;;
12398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12400 ac_cs_silent=: ;;
12401
12402 # This is an error.
12403 -*) { echo "$as_me: error: unrecognized option: $1
12404 Try \`$0 --help' for more information." >&2
12405 { (exit 1); exit 1; }; } ;;
12406
12407 *) ac_config_targets="$ac_config_targets $1"
12408 ac_need_defaults=false ;;
12409
12410 esac
12411 shift
12412 done
12413
12414 ac_configure_extra_args=
12415
12416 if $ac_cs_silent; then
12417 exec 6>/dev/null
12418 ac_configure_extra_args="$ac_configure_extra_args --silent"
12419 fi
12420
12421 _ACEOF
12422 cat >>$CONFIG_STATUS <<_ACEOF
12423 if \$ac_cs_recheck; then
12424 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12425 CONFIG_SHELL=$SHELL
12426 export CONFIG_SHELL
12427 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12428 fi
12429
12430 _ACEOF
12431 cat >>$CONFIG_STATUS <<\_ACEOF
12432 exec 5>>config.log
12433 {
12434 echo
12435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12436 ## Running $as_me. ##
12437 _ASBOX
12438 echo "$ac_log"
12439 } >&5
12440
12441 _ACEOF
12442 cat >>$CONFIG_STATUS <<_ACEOF
12443 #
12444 # INIT-COMMANDS
12445 #
12446
12447
12448 _ACEOF
12449
12450 cat >>$CONFIG_STATUS <<\_ACEOF
12451
12452 # Handling of arguments.
12453 for ac_config_target in $ac_config_targets
12454 do
12455 case $ac_config_target in
12456 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12457 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12458 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12459 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
12460
12461 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12462 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12463 { (exit 1); exit 1; }; };;
12464 esac
12465 done
12466
12467
12468 # If the user did not use the arguments to specify the items to instantiate,
12469 # then the envvar interface is used. Set only those that are not.
12470 # We use the long form for the default assignment because of an extremely
12471 # bizarre bug on SunOS 4.1.3.
12472 if $ac_need_defaults; then
12473 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12474 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12476 fi
12477
12478 # Have a temporary directory for convenience. Make it in the build tree
12479 # simply because there is no reason against having it here, and in addition,
12480 # creating and moving files from /tmp can sometimes cause problems.
12481 # Hook for its removal unless debugging.
12482 # Note that there is a small window in which the directory will not be cleaned:
12483 # after its creation but before its name has been assigned to `$tmp'.
12484 $debug ||
12485 {
12486 tmp=
12487 trap 'exit_status=$?
12488 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12489 ' 0
12490 trap '{ (exit 1); exit 1; }' 1 2 13 15
12491 }
12492 # Create a (secure) tmp directory for tmp files.
12493
12494 {
12495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12496 test -n "$tmp" && test -d "$tmp"
12497 } ||
12498 {
12499 tmp=./conf$$-$RANDOM
12500 (umask 077 && mkdir "$tmp")
12501 } ||
12502 {
12503 echo "$me: cannot create a temporary directory in ." >&2
12504 { (exit 1); exit 1; }
12505 }
12506
12507 #
12508 # Set up the sed scripts for CONFIG_FILES section.
12509 #
12510
12511 # No need to generate the scripts if there are no CONFIG_FILES.
12512 # This happens for instance when ./config.status config.h
12513 if test -n "$CONFIG_FILES"; then
12514
12515 _ACEOF
12516
12517
12518
12519 ac_delim='%!_!# '
12520 for ac_last_try in false false false false false :; do
12521 cat >conf$$subs.sed <<_ACEOF
12522 SHELL!$SHELL$ac_delim
12523 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12524 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12525 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12526 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12527 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12528 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12529 exec_prefix!$exec_prefix$ac_delim
12530 prefix!$prefix$ac_delim
12531 program_transform_name!$program_transform_name$ac_delim
12532 bindir!$bindir$ac_delim
12533 sbindir!$sbindir$ac_delim
12534 libexecdir!$libexecdir$ac_delim
12535 datarootdir!$datarootdir$ac_delim
12536 datadir!$datadir$ac_delim
12537 sysconfdir!$sysconfdir$ac_delim
12538 sharedstatedir!$sharedstatedir$ac_delim
12539 localstatedir!$localstatedir$ac_delim
12540 includedir!$includedir$ac_delim
12541 oldincludedir!$oldincludedir$ac_delim
12542 docdir!$docdir$ac_delim
12543 infodir!$infodir$ac_delim
12544 htmldir!$htmldir$ac_delim
12545 dvidir!$dvidir$ac_delim
12546 pdfdir!$pdfdir$ac_delim
12547 psdir!$psdir$ac_delim
12548 libdir!$libdir$ac_delim
12549 localedir!$localedir$ac_delim
12550 mandir!$mandir$ac_delim
12551 DEFS!$DEFS$ac_delim
12552 ECHO_C!$ECHO_C$ac_delim
12553 ECHO_N!$ECHO_N$ac_delim
12554 ECHO_T!$ECHO_T$ac_delim
12555 LIBS!$LIBS$ac_delim
12556 build_alias!$build_alias$ac_delim
12557 host_alias!$host_alias$ac_delim
12558 target_alias!$target_alias$ac_delim
12559 build!$build$ac_delim
12560 build_cpu!$build_cpu$ac_delim
12561 build_vendor!$build_vendor$ac_delim
12562 build_os!$build_os$ac_delim
12563 host!$host$ac_delim
12564 host_cpu!$host_cpu$ac_delim
12565 host_vendor!$host_vendor$ac_delim
12566 host_os!$host_os$ac_delim
12567 SHLICC2!$SHLICC2$ac_delim
12568 CC!$CC$ac_delim
12569 CFLAGS!$CFLAGS$ac_delim
12570 LDFLAGS!$LDFLAGS$ac_delim
12571 CPPFLAGS!$CPPFLAGS$ac_delim
12572 ac_ct_CC!$ac_ct_CC$ac_delim
12573 EXEEXT!$EXEEXT$ac_delim
12574 OBJEXT!$OBJEXT$ac_delim
12575 CPP!$CPP$ac_delim
12576 GREP!$GREP$ac_delim
12577 EGREP!$EGREP$ac_delim
12578 LIBOBJS!$LIBOBJS$ac_delim
12579 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
12580 RANLIB!$RANLIB$ac_delim
12581 V_CCOPT!$V_CCOPT$ac_delim
12582 V_DEFS!$V_DEFS$ac_delim
12583 V_GROUP!$V_GROUP$ac_delim
12584 V_INCLS!$V_INCLS$ac_delim
12585 V_PCAPDEP!$V_PCAPDEP$ac_delim
12586 LOCALSRC!$LOCALSRC$ac_delim
12587 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12588 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12589 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12590 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12591 INSTALL_DATA!$INSTALL_DATA$ac_delim
12592 LTLIBOBJS!$LTLIBOBJS$ac_delim
12593 _ACEOF
12594
12595 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
12596 break
12597 elif $ac_last_try; then
12598 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12599 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12600 { (exit 1); exit 1; }; }
12601 else
12602 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12603 fi
12604 done
12605
12606 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12607 if test -n "$ac_eof"; then
12608 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12609 ac_eof=`expr $ac_eof + 1`
12610 fi
12611
12612 cat >>$CONFIG_STATUS <<_ACEOF
12613 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12615 _ACEOF
12616 sed '
12617 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12618 s/^/s,@/; s/!/@,|#_!!_#|/
12619 :n
12620 t n
12621 s/'"$ac_delim"'$/,g/; t
12622 s/$/\\/; p
12623 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12624 ' >>$CONFIG_STATUS <conf$$subs.sed
12625 rm -f conf$$subs.sed
12626 cat >>$CONFIG_STATUS <<_ACEOF
12627 :end
12628 s/|#_!!_#|//g
12629 CEOF$ac_eof
12630 _ACEOF
12631
12632
12633 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12634 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12635 # trailing colons and then remove the whole line if VPATH becomes empty
12636 # (actually we leave an empty line to preserve line numbers).
12637 if test "x$srcdir" = x.; then
12638 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12639 s/:*\$(srcdir):*/:/
12640 s/:*\${srcdir}:*/:/
12641 s/:*@srcdir@:*/:/
12642 s/^\([^=]*=[ ]*\):*/\1/
12643 s/:*$//
12644 s/^[^=]*=[ ]*$//
12645 }'
12646 fi
12647
12648 cat >>$CONFIG_STATUS <<\_ACEOF
12649 fi # test -n "$CONFIG_FILES"
12650
12651
12652 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12653 do
12654 case $ac_tag in
12655 :[FHLC]) ac_mode=$ac_tag; continue;;
12656 esac
12657 case $ac_mode$ac_tag in
12658 :[FHL]*:*);;
12659 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12660 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12661 { (exit 1); exit 1; }; };;
12662 :[FH]-) ac_tag=-:-;;
12663 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12664 esac
12665 ac_save_IFS=$IFS
12666 IFS=:
12667 set x $ac_tag
12668 IFS=$ac_save_IFS
12669 shift
12670 ac_file=$1
12671 shift
12672
12673 case $ac_mode in
12674 :L) ac_source=$1;;
12675 :[FH])
12676 ac_file_inputs=
12677 for ac_f
12678 do
12679 case $ac_f in
12680 -) ac_f="$tmp/stdin";;
12681 *) # Look for the file first in the build tree, then in the source tree
12682 # (if the path is not absolute). The absolute path cannot be DOS-style,
12683 # because $ac_f cannot contain `:'.
12684 test -f "$ac_f" ||
12685 case $ac_f in
12686 [\\/$]*) false;;
12687 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12688 esac ||
12689 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12690 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12691 { (exit 1); exit 1; }; };;
12692 esac
12693 ac_file_inputs="$ac_file_inputs $ac_f"
12694 done
12695
12696 # Let's still pretend it is `configure' which instantiates (i.e., don't
12697 # use $as_me), people would be surprised to read:
12698 # /* config.h. Generated by config.status. */
12699 configure_input="Generated from "`IFS=:
12700 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12701 if test x"$ac_file" != x-; then
12702 configure_input="$ac_file. $configure_input"
12703 { echo "$as_me:$LINENO: creating $ac_file" >&5
12704 echo "$as_me: creating $ac_file" >&6;}
12705 fi
12706
12707 case $ac_tag in
12708 *:-:* | *:-) cat >"$tmp/stdin";;
12709 esac
12710 ;;
12711 esac
12712
12713 ac_dir=`$as_dirname -- "$ac_file" ||
12714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12715 X"$ac_file" : 'X\(//\)[^/]' \| \
12716 X"$ac_file" : 'X\(//\)$' \| \
12717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12718 echo X"$ac_file" |
12719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12720 s//\1/
12721 q
12722 }
12723 /^X\(\/\/\)[^/].*/{
12724 s//\1/
12725 q
12726 }
12727 /^X\(\/\/\)$/{
12728 s//\1/
12729 q
12730 }
12731 /^X\(\/\).*/{
12732 s//\1/
12733 q
12734 }
12735 s/.*/./; q'`
12736 { as_dir="$ac_dir"
12737 case $as_dir in #(
12738 -*) as_dir=./$as_dir;;
12739 esac
12740 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12741 as_dirs=
12742 while :; do
12743 case $as_dir in #(
12744 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12745 *) as_qdir=$as_dir;;
12746 esac
12747 as_dirs="'$as_qdir' $as_dirs"
12748 as_dir=`$as_dirname -- "$as_dir" ||
12749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12750 X"$as_dir" : 'X\(//\)[^/]' \| \
12751 X"$as_dir" : 'X\(//\)$' \| \
12752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12753 echo X"$as_dir" |
12754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12755 s//\1/
12756 q
12757 }
12758 /^X\(\/\/\)[^/].*/{
12759 s//\1/
12760 q
12761 }
12762 /^X\(\/\/\)$/{
12763 s//\1/
12764 q
12765 }
12766 /^X\(\/\).*/{
12767 s//\1/
12768 q
12769 }
12770 s/.*/./; q'`
12771 test -d "$as_dir" && break
12772 done
12773 test -z "$as_dirs" || eval "mkdir $as_dirs"
12774 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12775 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12776 { (exit 1); exit 1; }; }; }
12777 ac_builddir=.
12778
12779 case "$ac_dir" in
12780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12781 *)
12782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12783 # A ".." for each directory in $ac_dir_suffix.
12784 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12785 case $ac_top_builddir_sub in
12786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12788 esac ;;
12789 esac
12790 ac_abs_top_builddir=$ac_pwd
12791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12792 # for backward compatibility:
12793 ac_top_builddir=$ac_top_build_prefix
12794
12795 case $srcdir in
12796 .) # We are building in place.
12797 ac_srcdir=.
12798 ac_top_srcdir=$ac_top_builddir_sub
12799 ac_abs_top_srcdir=$ac_pwd ;;
12800 [\\/]* | ?:[\\/]* ) # Absolute name.
12801 ac_srcdir=$srcdir$ac_dir_suffix;
12802 ac_top_srcdir=$srcdir
12803 ac_abs_top_srcdir=$srcdir ;;
12804 *) # Relative name.
12805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12806 ac_top_srcdir=$ac_top_build_prefix$srcdir
12807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12808 esac
12809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12810
12811
12812 case $ac_mode in
12813 :F)
12814 #
12815 # CONFIG_FILE
12816 #
12817
12818 case $INSTALL in
12819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12821 esac
12822 _ACEOF
12823
12824 cat >>$CONFIG_STATUS <<\_ACEOF
12825 # If the template does not know about datarootdir, expand it.
12826 # FIXME: This hack should be removed a few years after 2.60.
12827 ac_datarootdir_hack=; ac_datarootdir_seen=
12828
12829 case `sed -n '/datarootdir/ {
12830 p
12831 q
12832 }
12833 /@datadir@/p
12834 /@docdir@/p
12835 /@infodir@/p
12836 /@localedir@/p
12837 /@mandir@/p
12838 ' $ac_file_inputs` in
12839 *datarootdir*) ac_datarootdir_seen=yes;;
12840 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12841 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12842 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12843 _ACEOF
12844 cat >>$CONFIG_STATUS <<_ACEOF
12845 ac_datarootdir_hack='
12846 s&@datadir@&$datadir&g
12847 s&@docdir@&$docdir&g
12848 s&@infodir@&$infodir&g
12849 s&@localedir@&$localedir&g
12850 s&@mandir@&$mandir&g
12851 s&\\\${datarootdir}&$datarootdir&g' ;;
12852 esac
12853 _ACEOF
12854
12855 # Neutralize VPATH when `$srcdir' = `.'.
12856 # Shell code in configure.ac might set extrasub.
12857 # FIXME: do we really want to maintain this feature?
12858 cat >>$CONFIG_STATUS <<_ACEOF
12859 sed "$ac_vpsub
12860 $extrasub
12861 _ACEOF
12862 cat >>$CONFIG_STATUS <<\_ACEOF
12863 :t
12864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12865 s&@configure_input@&$configure_input&;t t
12866 s&@top_builddir@&$ac_top_builddir_sub&;t t
12867 s&@srcdir@&$ac_srcdir&;t t
12868 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12869 s&@top_srcdir@&$ac_top_srcdir&;t t
12870 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12871 s&@builddir@&$ac_builddir&;t t
12872 s&@abs_builddir@&$ac_abs_builddir&;t t
12873 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12874 s&@INSTALL@&$ac_INSTALL&;t t
12875 $ac_datarootdir_hack
12876 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12877
12878 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12879 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12881 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12882 which seems to be undefined. Please make sure it is defined." >&5
12883 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12884 which seems to be undefined. Please make sure it is defined." >&2;}
12885
12886 rm -f "$tmp/stdin"
12887 case $ac_file in
12888 -) cat "$tmp/out"; rm -f "$tmp/out";;
12889 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12890 esac
12891 ;;
12892 :H)
12893 #
12894 # CONFIG_HEADER
12895 #
12896 _ACEOF
12897
12898 # Transform confdefs.h into a sed script `conftest.defines', that
12899 # substitutes the proper values into config.h.in to produce config.h.
12900 rm -f conftest.defines conftest.tail
12901 # First, append a space to every undef/define line, to ease matching.
12902 echo 's/$/ /' >conftest.defines
12903 # Then, protect against being on the right side of a sed subst, or in
12904 # an unquoted here document, in config.status. If some macros were
12905 # called several times there might be several #defines for the same
12906 # symbol, which is useless. But do not sort them, since the last
12907 # AC_DEFINE must be honored.
12908 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12909 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12910 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12911 # PARAMS is the parameter list in the macro definition--in most cases, it's
12912 # just an empty string.
12913 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12914 ac_dB='\\)[ (].*,\\1define\\2'
12915 ac_dC=' '
12916 ac_dD=' ,'
12917
12918 uniq confdefs.h |
12919 sed -n '
12920 t rset
12921 :rset
12922 s/^[ ]*#[ ]*define[ ][ ]*//
12923 t ok
12924 d
12925 :ok
12926 s/[\\&,]/\\&/g
12927 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12928 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12929 ' >>conftest.defines
12930
12931 # Remove the space that was appended to ease matching.
12932 # Then replace #undef with comments. This is necessary, for
12933 # example, in the case of _POSIX_SOURCE, which is predefined and required
12934 # on some systems where configure will not decide to define it.
12935 # (The regexp can be short, since the line contains either #define or #undef.)
12936 echo 's/ $//
12937 s,^[ #]*u.*,/* & */,' >>conftest.defines
12938
12939 # Break up conftest.defines:
12940 ac_max_sed_lines=50
12941
12942 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12943 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12944 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12945 # et cetera.
12946 ac_in='$ac_file_inputs'
12947 ac_out='"$tmp/out1"'
12948 ac_nxt='"$tmp/out2"'
12949
12950 while :
12951 do
12952 # Write a here document:
12953 cat >>$CONFIG_STATUS <<_ACEOF
12954 # First, check the format of the line:
12955 cat >"\$tmp/defines.sed" <<\\CEOF
12956 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12957 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12958 b
12959 :def
12960 _ACEOF
12961 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12962 echo 'CEOF
12963 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12964 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12965 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12966 grep . conftest.tail >/dev/null || break
12967 rm -f conftest.defines
12968 mv conftest.tail conftest.defines
12969 done
12970 rm -f conftest.defines conftest.tail
12971
12972 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12973 cat >>$CONFIG_STATUS <<\_ACEOF
12974 if test x"$ac_file" != x-; then
12975 echo "/* $configure_input */" >"$tmp/config.h"
12976 cat "$ac_result" >>"$tmp/config.h"
12977 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12978 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12979 echo "$as_me: $ac_file is unchanged" >&6;}
12980 else
12981 rm -f $ac_file
12982 mv "$tmp/config.h" $ac_file
12983 fi
12984 else
12985 echo "/* $configure_input */"
12986 cat "$ac_result"
12987 fi
12988 rm -f "$tmp/out12"
12989 ;;
12990
12991 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12992 echo "$as_me: executing $ac_file commands" >&6;}
12993 ;;
12994 esac
12995
12996
12997 case $ac_file$ac_mode in
12998 "default-1":C) if test -f .devel; then
12999 echo timestamp > stamp-h
13000 cat Makefile-devel-adds >> Makefile
13001 make depend
13002 fi ;;
13003
13004 esac
13005 done # for ac_tag
13006
13007
13008 { (exit 0); exit 0; }
13009 _ACEOF
13010 chmod +x $CONFIG_STATUS
13011 ac_clean_files=$ac_clean_files_save
13012
13013
13014 # configure is writing to config.log, and then calls config.status.
13015 # config.status does its own redirection, appending to config.log.
13016 # Unfortunately, on DOS this fails, as config.log is still kept open
13017 # by configure, so config.status won't be able to write to it; its
13018 # output is simply discarded. So we exec the FD to /dev/null,
13019 # effectively closing config.log, so it can be properly (re)opened and
13020 # appended to by config.status. When coming back to configure, we
13021 # need to make the FD available again.
13022 if test "$no_create" != yes; then
13023 ac_cs_success=:
13024 ac_config_status_args=
13025 test "$silent" = yes &&
13026 ac_config_status_args="$ac_config_status_args --quiet"
13027 exec 5>/dev/null
13028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13029 exec 5>>config.log
13030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13031 # would make configure fail if this is the last instruction.
13032 $ac_cs_success || { (exit 1); exit 1; }
13033 fi
13034
13035 exit 0