]> The Tcpdump Group git mirrors - tcpdump/blob - configure
fix parsing of syslog priority (GH #264)
[tcpdump] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="tcpdump.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHLICC2
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CPP
670 GREP
671 EGREP
672 LIBOBJS
673 PCAP_CONFIG
674 RANLIB
675 DEPENDENCY_CFLAG
676 MKDEP
677 V_CCOPT
678 V_DEFS
679 V_GROUP
680 V_INCLS
681 V_PCAPDEP
682 LOCALSRC
683 MAN_FILE_FORMATS
684 MAN_MISC_INFO
685 INSTALL_PROGRAM
686 INSTALL_SCRIPT
687 INSTALL_DATA
688 LTLIBOBJS'
689 ac_subst_files=''
690 ac_precious_vars='build_alias
691 host_alias
692 target_alias
693 CC
694 CFLAGS
695 LDFLAGS
696 LIBS
697 CPPFLAGS
698 CPP'
699
700
701 # Initialize some variables set by options.
702 ac_init_help=
703 ac_init_version=false
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
706 cache_file=/dev/null
707 exec_prefix=NONE
708 no_create=
709 no_recursion=
710 prefix=NONE
711 program_prefix=NONE
712 program_suffix=NONE
713 program_transform_name=s,x,x,
714 silent=
715 site=
716 srcdir=
717 verbose=
718 x_includes=NONE
719 x_libraries=NONE
720
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir='${exec_prefix}/bin'
728 sbindir='${exec_prefix}/sbin'
729 libexecdir='${exec_prefix}/libexec'
730 datarootdir='${prefix}/share'
731 datadir='${datarootdir}'
732 sysconfdir='${prefix}/etc'
733 sharedstatedir='${prefix}/com'
734 localstatedir='${prefix}/var'
735 includedir='${prefix}/include'
736 oldincludedir='/usr/include'
737 docdir='${datarootdir}/doc/${PACKAGE}'
738 infodir='${datarootdir}/info'
739 htmldir='${docdir}'
740 dvidir='${docdir}'
741 pdfdir='${docdir}'
742 psdir='${docdir}'
743 libdir='${exec_prefix}/lib'
744 localedir='${datarootdir}/locale'
745 mandir='${datarootdir}/man'
746
747 ac_prev=
748 ac_dashdash=
749 for ac_option
750 do
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\$ac_option
754 ac_prev=
755 continue
756 fi
757
758 case $ac_option in
759 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 *) ac_optarg=yes ;;
761 esac
762
763 # Accept the important Cygnus configure options, so we can diagnose typos.
764
765 case $ac_dashdash$ac_option in
766 --)
767 ac_dashdash=yes ;;
768
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
770 ac_prev=bindir ;;
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 bindir=$ac_optarg ;;
773
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
778
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
785
786 --config-cache | -C)
787 cache_file=config.cache ;;
788
789 -datadir | --datadir | --datadi | --datad)
790 ac_prev=datadir ;;
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
793
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
800
801 -disable-* | --disable-*)
802 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_$ac_feature=no ;;
809
810 -docdir | --docdir | --docdi | --doc | --do)
811 ac_prev=docdir ;;
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
813 docdir=$ac_optarg ;;
814
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
816 ac_prev=dvidir ;;
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
818 dvidir=$ac_optarg ;;
819
820 -enable-* | --enable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=\$ac_optarg ;;
828
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
837
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
840 with_gas=yes ;;
841
842 -help | --help | --hel | --he | -h)
843 ac_init_help=long ;;
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
848
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
853
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855 ac_prev=htmldir ;;
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857 | --ht=*)
858 htmldir=$ac_optarg ;;
859
860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
866
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
868 ac_prev=infodir ;;
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
871
872 -libdir | --libdir | --libdi | --libd)
873 ac_prev=libdir ;;
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
875 libdir=$ac_optarg ;;
876
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
883
884 -localedir | --localedir | --localedi | --localed | --locale)
885 ac_prev=localedir ;;
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
888
889 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;;
895
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897 ac_prev=mandir ;;
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 mandir=$ac_optarg ;;
900
901 -nfp | --nfp | --nf)
902 # Obsolete; use --without-fp.
903 with_fp=no ;;
904
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
907 no_create=yes ;;
908
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911 no_recursion=yes ;;
912
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
921
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923 ac_prev=prefix ;;
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925 prefix=$ac_optarg ;;
926
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
933
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
940
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
957
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959 ac_prev=pdfdir ;;
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961 pdfdir=$ac_optarg ;;
962
963 -psdir | --psdir | --psdi | --psd | --ps)
964 ac_prev=psdir ;;
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966 psdir=$ac_optarg ;;
967
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
970 silent=yes ;;
971
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973 ac_prev=sbindir ;;
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975 | --sbi=* | --sb=*)
976 sbindir=$ac_optarg ;;
977
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
981 | --sha | --sh)
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986 | --sha=* | --sh=*)
987 sharedstatedir=$ac_optarg ;;
988
989 -site | --site | --sit)
990 ac_prev=site ;;
991 -site=* | --site=* | --sit=*)
992 site=$ac_optarg ;;
993
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995 ac_prev=srcdir ;;
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997 srcdir=$ac_optarg ;;
998
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1005
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1010
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012 verbose=yes ;;
1013
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1016
1017 -with-* | --with-*)
1018 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_$ac_package=\$ac_optarg ;;
1025
1026 -without-* | --without-*)
1027 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_$ac_package=no ;;
1034
1035 --x)
1036 # Obsolete; use --with-x.
1037 with_x=yes ;;
1038
1039 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1040 | --x-incl | --x-inc | --x-in | --x-i)
1041 ac_prev=x_includes ;;
1042 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1043 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1044 x_includes=$ac_optarg ;;
1045
1046 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1047 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1048 ac_prev=x_libraries ;;
1049 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1050 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1051 x_libraries=$ac_optarg ;;
1052
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054 Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1056 ;;
1057
1058 *=*)
1059 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\$ac_optarg
1065 export $ac_envvar ;;
1066
1067 *)
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 ;;
1074
1075 esac
1076 done
1077
1078 if test -n "$ac_prev"; then
1079 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1082 fi
1083
1084 # Be sure to have absolute directory names.
1085 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1089 do
1090 eval ac_val=\$$ac_var
1091 case $ac_val in
1092 [\\/$]* | ?:[\\/]* ) continue;;
1093 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1094 esac
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1097 done
1098
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1102 build=$build_alias
1103 host=$host_alias
1104 target=$target_alias
1105
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x; then
1108 if test "x$build_alias" = x; then
1109 cross_compiling=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1113 cross_compiling=yes
1114 fi
1115 fi
1116
1117 ac_tool_prefix=
1118 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1119
1120 test "$silent" = yes && exec 6>/dev/null
1121
1122
1123 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di=`ls -di .` &&
1125 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1131
1132
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir=`$as_dirname -- "$0" ||
1138 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1142 echo X"$0" |
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)[^/].*/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\/\)$/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\).*/{
1156 s//\1/
1157 q
1158 }
1159 s/.*/./; q'`
1160 srcdir=$ac_confdir
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1162 srcdir=..
1163 fi
1164 else
1165 ac_srcdir_defaulted=no
1166 fi
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1171 fi
1172 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1173 ac_abs_confdir=`(
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1176 pwd)`
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1179 srcdir=.
1180 fi
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1184 case $srcdir in
1185 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1186 esac
1187 for ac_var in $ac_precious_vars; do
1188 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_${ac_var}_value=\$${ac_var}
1190 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1192 done
1193
1194 #
1195 # Report the --help message.
1196 #
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1200 cat <<_ACEOF
1201 \`configure' configures this package to adapt to many kinds of systems.
1202
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1204
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1207
1208 Defaults for the options are specified in brackets.
1209
1210 Configuration:
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1220
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1225 [PREFIX]
1226
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1231
1232 For better control, use the options below.
1233
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1254 _ACEOF
1255
1256 cat <<\_ACEOF
1257
1258 System types:
1259 --build=BUILD configure for building on BUILD [guessed]
1260 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1261 _ACEOF
1262 fi
1263
1264 if test -n "$ac_init_help"; then
1265
1266 cat <<\_ACEOF
1267
1268 Optional Features:
1269 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1270 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1271 --disable-universal don't build universal on OS X
1272 --enable-smb enable possibly-buggy SMB printer default=yes
1273 --disable-smb disable possibly-buggy SMB printer
1274 --enable-ipv6 enable ipv6 (with ipv4) support
1275 --disable-ipv6 disable ipv6 support
1276
1277 Optional Packages:
1278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1280 --without-gcc don't use gcc
1281 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1282 --without-smi don't link with libsmi
1283 --with-user=USERNAME drop privileges by default to USERNAME
1284 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1285 --with-crypto use OpenSSL libcrypto [default=yes, if available]
1286
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1295 CPP C preprocessor
1296
1297 Use these variables to override the choices made by `configure' or to help
1298 it to find libraries and programs with nonstandard names/locations.
1299
1300 _ACEOF
1301 ac_status=$?
1302 fi
1303
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" || continue
1308 ac_builddir=.
1309
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *)
1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1325
1326 case $srcdir in
1327 .) # We are building in place.
1328 ac_srcdir=.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1335 *) # Relative name.
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1348 echo &&
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1350 else
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 fi || ac_status=$?
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1354 done
1355 fi
1356
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359 cat <<\_ACEOF
1360 configure
1361 generated by GNU Autoconf 2.61
1362
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368 exit
1369 fi
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1373
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1376
1377 $ $0 $@
1378
1379 _ACEOF
1380 exec 5>>config.log
1381 {
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1386
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1395
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1403
1404 _ASUNAME
1405
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409 IFS=$as_save_IFS
1410 test -z "$as_dir" && as_dir=.
1411 echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1414
1415 } >&5
1416
1417 cat >&5 <<_ACEOF
1418
1419
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1423
1424 _ACEOF
1425
1426
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1437 do
1438 for ac_arg
1439 do
1440 case $ac_arg in
1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443 | -silent | --silent | --silen | --sile | --sil)
1444 continue ;;
1445 *\'*)
1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 esac
1448 case $ac_pass in
1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450 2)
1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true; then
1453 ac_must_keep_next=false # Got value, back to normal.
1454 else
1455 case $ac_arg in
1456 *=* | --config-cache | -C | -disable-* | --disable-* \
1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459 | -with-* | --with-* | -without-* | --without-* | --x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462 esac
1463 ;;
1464 -* ) ac_must_keep_next=true ;;
1465 esac
1466 fi
1467 ac_configure_args="$ac_configure_args '$ac_arg'"
1468 ;;
1469 esac
1470 done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1482 {
1483 echo
1484
1485 cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490 echo
1491 # The following way of writing the cache mishandles newlines in values,
1492 (
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1495 case $ac_val in #(
1496 *${as_nl}*)
1497 case $ac_var in #(
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500 esac
1501 case $ac_var in #(
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1504 esac ;;
1505 esac
1506 done
1507 (set) 2>&1 |
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1510 sed -n \
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513 ;; #(
1514 *)
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516 ;;
1517 esac |
1518 sort
1519 )
1520 echo
1521
1522 cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527 echo
1528 for ac_var in $ac_subst_vars
1529 do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in
1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 esac
1534 echo "$ac_var='\''$ac_val'\''"
1535 done | sort
1536 echo
1537
1538 if test -n "$ac_subst_files"; then
1539 cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544 echo
1545 for ac_var in $ac_subst_files
1546 do
1547 eval ac_val=\$$ac_var
1548 case $ac_val in
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 esac
1551 echo "$ac_var='\''$ac_val'\''"
1552 done | sort
1553 echo
1554 fi
1555
1556 if test -s confdefs.h; then
1557 cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562 echo
1563 cat confdefs.h
1564 echo
1565 fi
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1569 } >&5
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572 exit $exit_status
1573 ' 0
1574 for ac_signal in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1578
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1581
1582 # Predefined preprocessor variables.
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1597
1598
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1602
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1607
1608
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616 set x "$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1618 fi
1619 shift
1620 for ac_site_file
1621 do
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1626 . "$ac_site_file"
1627 fi
1628 done
1629
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636 case $cache_file in
1637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638 *) . "./$cache_file";;
1639 esac
1640 fi
1641 else
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644 >$cache_file
1645 fi
1646
1647 # Check that the precious variables saved in the cache have kept the same
1648 # value.
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652 eval ac_new_set=\$ac_env_${ac_var}_set
1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654 eval ac_new_val=\$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1656 set,)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,set)
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted=: ;;
1664 ,);;
1665 *)
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted=:
1674 fi;;
1675 esac
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1678 case $ac_new_val in
1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg=$ac_var=$ac_new_val ;;
1681 esac
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685 esac
1686 fi
1687 done
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712 ac_ext=c
1713 ac_cpp='$CPP $CPPFLAGS'
1714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719
1720 ac_aux_dir=
1721 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722 if test -f "$ac_dir/install-sh"; then
1723 ac_aux_dir=$ac_dir
1724 ac_install_sh="$ac_aux_dir/install-sh -c"
1725 break
1726 elif test -f "$ac_dir/install.sh"; then
1727 ac_aux_dir=$ac_dir
1728 ac_install_sh="$ac_aux_dir/install.sh -c"
1729 break
1730 elif test -f "$ac_dir/shtool"; then
1731 ac_aux_dir=$ac_dir
1732 ac_install_sh="$ac_aux_dir/shtool install -c"
1733 break
1734 fi
1735 done
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1741
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1747 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1748 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1749
1750
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755 { (exit 1); exit 1; }; }
1756
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762 ac_build_alias=$build_alias
1763 test "x$ac_build_alias" = x &&
1764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x &&
1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768 { (exit 1); exit 1; }; }
1769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772 { (exit 1); exit 1; }; }
1773
1774 fi
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1778 *-*-*) ;;
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781 { (exit 1); exit 1; }; };;
1782 esac
1783 build=$ac_cv_build
1784 ac_save_IFS=$IFS; IFS='-'
1785 set x $ac_cv_build
1786 shift
1787 build_cpu=$1
1788 build_vendor=$2
1789 shift; shift
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1792 build_os=$*
1793 IFS=$ac_save_IFS
1794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1795
1796
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test "x$host_alias" = x; then
1803 ac_cv_host=$ac_cv_build
1804 else
1805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1810
1811 fi
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1814 case $ac_cv_host in
1815 *-*-*) ;;
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818 { (exit 1); exit 1; }; };;
1819 esac
1820 host=$ac_cv_host
1821 ac_save_IFS=$IFS; IFS='-'
1822 set x $ac_cv_host
1823 shift
1824 host_cpu=$1
1825 host_vendor=$2
1826 shift; shift
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1829 host_os=$*
1830 IFS=$ac_save_IFS
1831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1843 withval=$with_gcc;
1844 fi
1845
1846 V_CCOPT="-O"
1847 V_INCLS=""
1848 if test "${srcdir}" != "." ; then
1849 V_INCLS="-I$srcdir"
1850 fi
1851 if test "${CFLAGS+set}" = set; then
1852 LBL_CFLAGS="$CFLAGS"
1853 fi
1854 if test -z "$CC" ; then
1855 case "$host_os" in
1856
1857 bsdi*)
1858 # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2; ac_word=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$SHLICC2"; then
1866 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_SHLICC2="yes"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879 done
1880 done
1881 IFS=$as_save_IFS
1882
1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1884 fi
1885 fi
1886 SHLICC2=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1890 else
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1893 fi
1894
1895
1896 if test $SHLICC2 = yes ; then
1897 CC=shlicc2
1898 export CC
1899 fi
1900 ;;
1901 esac
1902 fi
1903 if test -z "$CC" -a "$with_gcc" = no ; then
1904 CC=cc
1905 export CC
1906 fi
1907
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 CC=$ac_cv_prog_CC
1942 if test -n "$CC"; then
1943 { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1945 else
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1948 fi
1949
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953 ac_ct_CC=$CC
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_ac_ct_CC="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 else
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990 if test "x$ac_ct_CC" = x; then
1991 CC=""
1992 else
1993 case $cross_compiling:$ac_tool_warned in
1994 yes:)
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned=yes ;;
2002 esac
2003 CC=$ac_ct_CC
2004 fi
2005 else
2006 CC="$ac_cv_prog_CC"
2007 fi
2008
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}cc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="${ac_tool_prefix}cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048 fi
2049 fi
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected=yes
2071 continue
2072 fi
2073 ac_cv_prog_CC="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077 done
2078 done
2079 IFS=$as_save_IFS
2080
2081 if test $ac_prog_rejected = yes; then
2082 # We found a bogon in the path, so make sure we never use it.
2083 set dummy $ac_cv_prog_CC
2084 shift
2085 if test $# != 0; then
2086 # We chose a different compiler from the bogus one.
2087 # However, it has the same basename, so the bogon will be chosen
2088 # first if we set CC to just the basename; use the full file name.
2089 shift
2090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2091 fi
2092 fi
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105 fi
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog in cl.exe
2109 do
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147 test -n "$CC" && break
2148 done
2149 fi
2150 if test -z "$CC"; then
2151 ac_ct_CC=$CC
2152 for ac_prog in cl.exe
2153 do
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 else
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190
2191 test -n "$ac_ct_CC" && break
2192 done
2193
2194 if test "x$ac_ct_CC" = x; then
2195 CC=""
2196 else
2197 case $cross_compiling:$ac_tool_warned in
2198 yes:)
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet. If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned=yes ;;
2206 esac
2207 CC=$ac_ct_CC
2208 fi
2209 fi
2210
2211 fi
2212
2213
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2219
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler=`set X $ac_compile; echo $2`
2223 { (ac_try="$ac_compiler --version >&5"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler --version >&5") 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2234 case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237 esac
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -v >&5") 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 { (ac_try="$ac_compiler -V >&5"
2244 case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247 esac
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler -V >&5") 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2253
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2260
2261 int
2262 main ()
2263 {
2264
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2273 # of exeext.
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 #
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2280 # only as a last resort. b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 #
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions. Remove them first so a
2285 # subsequent execution test works.
2286 ac_rmfiles=
2287 for ac_file in $ac_files
2288 do
2289 case $ac_file in
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292 esac
2293 done
2294 rm -f $ac_rmfiles
2295
2296 if { (ac_try="$ac_link_default"
2297 case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300 esac
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_link_default") 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2310 # Autoconf.
2311 for ac_file in $ac_files ''
2312 do
2313 test -f "$ac_file" || continue
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2316 ;;
2317 [ab].out )
2318 # We found the default executable, but exeext='' is most
2319 # certainly right.
2320 break;;
2321 *.* )
2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323 then :; else
2324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 fi
2326 # We set ac_cv_exeext here because the later test for it is not
2327 # safe: cross compilers may not add the suffix if given an `-o'
2328 # argument, so we may need to know it at that point already.
2329 # Even if this section looks crufty: it has the advantage of
2330 # actually working.
2331 break;;
2332 * )
2333 break;;
2334 esac
2335 done
2336 test "$ac_cv_exeext" = no && ac_cv_exeext=
2337
2338 else
2339 ac_file=''
2340 fi
2341
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352 { (exit 77); exit 77; }; }
2353 fi
2354
2355 ac_exeext=$ac_cv_exeext
2356
2357 # Check that the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try='./$ac_file'
2365 { (case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_try") 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 cross_compiling=no
2375 else
2376 if test "$cross_compiling" = maybe; then
2377 cross_compiling=yes
2378 else
2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2386 fi
2387 fi
2388 fi
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2391
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2400
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_link") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2414 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 # `rm'.
2417 for ac_file in conftest.exe conftest conftest.*; do
2418 test -f "$ac_file" || continue
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 break;;
2423 * ) break;;
2424 esac
2425 done
2426 else
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433
2434 rm -f conftest$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437
2438 rm -f conftest.$ac_ext
2439 EXEEXT=$ac_cv_exeext
2440 ac_exeext=$EXEEXT
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h. */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452
2453 int
2454 main ()
2455 {
2456
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in conftest.o conftest.obj conftest.*; do
2473 test -f "$ac_file" || continue;
2474 case $ac_file in
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477 break;;
2478 esac
2479 done
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2508
2509 int
2510 main ()
2511 {
2512 #ifndef __GNUC__
2513 choke me
2514 #endif
2515
2516 ;
2517 return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2537 ac_compiler_gnu=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_compiler_gnu=no
2543 fi
2544
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2547
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2561 ac_cv_prog_cc_g=no
2562 CFLAGS="-g"
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573
2574 ;
2575 return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2595 ac_cv_prog_cc_g=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 CFLAGS=""
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607
2608 int
2609 main ()
2610 {
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2633 :
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2639 CFLAGS="-g"
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646
2647 int
2648 main ()
2649 {
2650
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2672 ac_cv_prog_cc_g=yes
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677
2678 fi
2679
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2688 fi
2689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692 CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694 if test "$GCC" = yes; then
2695 CFLAGS="-g -O2"
2696 else
2697 CFLAGS="-g"
2698 fi
2699 else
2700 if test "$GCC" = yes; then
2701 CFLAGS="-O2"
2702 else
2703 CFLAGS=
2704 fi
2705 fi
2706 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2707 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 ac_cv_prog_cc_c89=no
2712 ac_save_CC=$CC
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2719 #include <stdarg.h>
2720 #include <stdio.h>
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2727 char **p;
2728 int i;
2729 {
2730 return p[i];
2731 }
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2733 {
2734 char *s;
2735 va_list v;
2736 va_start (v,p);
2737 s = g (p, va_arg (v,int));
2738 va_end (v);
2739 return s;
2740 }
2741
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2743 function prototypes and stuff, but not '\xHH' hex character constants.
2744 These don't provoke an error unfortunately, instead are silently treated
2745 as 'x'. The following induces an error, until -std is added to get
2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2747 array size at least. It's necessary to write '\x00'==0 to get something
2748 that's true only with -std. */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752 inside strings and character constants. */
2753 #define FOO(x) 'x'
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762 int
2763 main ()
2764 {
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2766 ;
2767 return 0;
2768 }
2769 _ACEOF
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 do
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 ac_cv_prog_cc_c89=$ac_arg
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext
2800 test "x$ac_cv_prog_cc_c89" != "xno" && break
2801 done
2802 rm -f conftest.$ac_ext
2803 CC=$ac_save_CC
2804
2805 fi
2806 # AC_CACHE_VAL
2807 case "x$ac_cv_prog_cc_c89" in
2808 x)
2809 { echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6; } ;;
2811 xno)
2812 { echo "$as_me:$LINENO: result: unsupported" >&5
2813 echo "${ECHO_T}unsupported" >&6; } ;;
2814 *)
2815 CC="$CC $ac_cv_prog_cc_c89"
2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2818 esac
2819
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828
2829
2830
2831 if test "$GCC" = yes ; then
2832 if test "$SHLICC2" = yes ; then
2833 ac_cv_lbl_gcc_vers=2
2834 V_CCOPT="-O2"
2835 else
2836 { echo "$as_me:$LINENO: checking gcc version" >&5
2837 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842 sed -e '/^gcc version /!d' \
2843 -e 's/^gcc version //' \
2844 -e 's/ .*//' -e 's/^[^0-9]*//' \
2845 -e 's/\..*//'`
2846 fi
2847
2848 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2851 V_CCOPT="-O2"
2852 fi
2853 fi
2854
2855 #
2856 # -Werror forces warnings to be errors.
2857 #
2858 ac_lbl_cc_force_warning_errors=-Werror
2859 else
2860 V_INCLS="$V_INCLS -I/usr/local/include"
2861 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2862
2863 case "$host_os" in
2864
2865 darwin*)
2866 #
2867 # This is assumed either to be GCC or clang, both
2868 # of which use -Werror to force warnings to be errors.
2869 #
2870 ac_lbl_cc_force_warning_errors=-Werror
2871 ;;
2872
2873 hpux*)
2874 #
2875 # HP C, which is what we presume we're using, doesn't
2876 # exit with a non-zero exit status if we hand it an
2877 # invalid -W flag, can't be forced to do so even with
2878 # +We, and doesn't handle GCC-style -W flags, so we
2879 # don't want to try using GCC-style -W flags.
2880 #
2881 ac_lbl_cc_dont_try_gcc_dashW=yes
2882 ;;
2883
2884 irix*)
2885 #
2886 # MIPS C, which is what we presume we're using, doesn't
2887 # necessarily exit with a non-zero exit status if we
2888 # hand it an invalid -W flag, can't be forced to do
2889 # so, and doesn't handle GCC-style -W flags, so we
2890 # don't want to try using GCC-style -W flags.
2891 #
2892 ac_lbl_cc_dont_try_gcc_dashW=yes
2893 V_CCOPT="$V_CCOPT -xansi -signed -O"
2894 ;;
2895
2896 osf*)
2897 #
2898 # Presumed to be DEC OSF/1, Digital UNIX, or
2899 # Tru64 UNIX.
2900 #
2901 # The DEC C compiler, which is what we presume we're
2902 # using, doesn't exit with a non-zero exit status if we
2903 # hand it an invalid -W flag, can't be forced to do
2904 # so, and doesn't handle GCC-style -W flags, so we
2905 # don't want to try using GCC-style -W flags.
2906 #
2907 ac_lbl_cc_dont_try_gcc_dashW=yes
2908 V_CCOPT="$V_CCOPT -O"
2909 ;;
2910
2911 solaris*)
2912 #
2913 # Assumed to be Sun C, which requires -errwarn to force
2914 # warnings to be treated as errors.
2915 #
2916 ac_lbl_cc_force_warning_errors=-errwarn
2917 ;;
2918
2919 ultrix*)
2920 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2921 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2922 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #include <sys/types.h>
2933 int
2934 main ()
2935 {
2936 struct a { int b; };
2937 void c(const struct a *)
2938 ;
2939 return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2944 case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947 esac
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2959 ac_cv_lbl_cc_const_proto=yes
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 ac_cv_lbl_cc_const_proto=no
2965 fi
2966
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 fi
2969
2970 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2971 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
2972 if test $ac_cv_lbl_cc_const_proto = no ; then
2973
2974 cat >>confdefs.h <<\_ACEOF
2975 #define const
2976 _ACEOF
2977
2978 fi
2979 ;;
2980 esac
2981 fi
2982
2983 { echo "$as_me:$LINENO: checking for inline" >&5
2984 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
2985 save_CFLAGS="$CFLAGS"
2986 CFLAGS="$V_CCOPT"
2987 if test "${ac_cv_lbl_inline+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990
2991 ac_cv_lbl_inline=""
2992 ac_lbl_cc_inline=no
2993 for ac_lbl_inline in inline __inline__ __inline
2994 do
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #define inline $ac_lbl_inline
3002 static inline struct iltest *foo(void);
3003 struct iltest {
3004 int iltest1;
3005 int iltest2;
3006 };
3007
3008 static inline struct iltest *
3009 foo()
3010 {
3011 static struct iltest xxx;
3012
3013 return &xxx;
3014 }
3015 int
3016 main ()
3017 {
3018
3019 ;
3020 return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3040 ac_lbl_cc_inline=yes
3041 else
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045
3046 fi
3047
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 if test "$ac_lbl_cc_inline" = yes ; then
3050 break;
3051 fi
3052 done
3053 if test "$ac_lbl_cc_inline" = yes ; then
3054 ac_cv_lbl_inline=$ac_lbl_inline
3055 fi
3056 fi
3057
3058 CFLAGS="$save_CFLAGS"
3059 if test ! -z "$ac_cv_lbl_inline" ; then
3060 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3061 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3062 else
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3065 fi
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define inline $ac_cv_lbl_inline
3069 _ACEOF
3070
3071
3072 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3073 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3074 if test "${ac_cv___attribute__+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077
3078 cat >conftest.$ac_ext <<_ACEOF
3079
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085
3086 #include <stdlib.h>
3087
3088 static void foo(void) __attribute__ ((noreturn));
3089
3090 static void
3091 foo(void)
3092 {
3093 exit(1);
3094 }
3095
3096 int
3097 main(int argc, char **argv)
3098 {
3099 foo();
3100 }
3101
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } && {
3117 test -z "$ac_c_werror_flag" ||
3118 test ! -s conftest.err
3119 } && test -s conftest.$ac_objext; then
3120 ac_cv___attribute__=yes
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 ac_cv___attribute__=no
3126 fi
3127
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 fi
3130
3131 if test "$ac_cv___attribute__" = "yes"; then
3132
3133 cat >>confdefs.h <<\_ACEOF
3134 #define HAVE___ATTRIBUTE__ 1
3135 _ACEOF
3136
3137 else
3138 #
3139 # We can't use __attribute__, so we can't use __attribute__((unused)),
3140 # so we define _U_ to an empty string.
3141 #
3142 V_DEFS="$V_DEFS -D_U_=\"\""
3143 fi
3144 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3145 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3146
3147 if test "$ac_cv___attribute__" = "yes"; then
3148
3149 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) can be used without warnings" >&5
3150 echo $ECHO_N "checking whether __attribute__((unused)) can be used without warnings... $ECHO_C" >&6; }
3151 if test "${ac_cv___attribute___unused+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154
3155 save_CFLAGS="$CFLAGS"
3156 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3157 cat >conftest.$ac_ext <<_ACEOF
3158
3159 /* confdefs.h. */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164
3165 #include <stdlib.h>
3166 #include <stdio.h>
3167
3168 int
3169 main(int argc __attribute((unused)), char **argv __attribute((unused)))
3170 {
3171 printf("Hello, world!\n");
3172 return 0;
3173 }
3174
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3184 ac_status=$?
3185 grep -v '^ *+' conftest.er1 >conftest.err
3186 rm -f conftest.er1
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_cv___attribute___unused=yes
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 ac_cv___attribute___unused=no
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 CFLAGS="$save_CFLAGS"
3205 if test "$ac_cv___attribute___unused" = "yes"; then
3206 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3207 else
3208 V_DEFS="$V_DEFS -D_U_=\"\""
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv___attribute___unused" >&5
3211 echo "${ECHO_T}$ac_cv___attribute___unused" >&6; }
3212
3213
3214 { echo "$as_me:$LINENO: checking whether __attribute__((noreturn)) can be applied to function pointers without warnings" >&5
3215 echo $ECHO_N "checking whether __attribute__((noreturn)) can be applied to function pointers without warnings... $ECHO_C" >&6; }
3216 if test "${ac_cv___attribute___noreturn_function_pointer+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219
3220 save_CFLAGS="$CFLAGS"
3221 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3222 cat >conftest.$ac_ext <<_ACEOF
3223
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229
3230 #include <stdlib.h>
3231
3232 extern int (*foo)(int i)
3233 __attribute__ ((noreturn));
3234
3235 int
3236 main(int argc, char **argv)
3237 {
3238 (*foo)(1);
3239 }
3240
3241 _ACEOF
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compile") 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } && {
3256 test -z "$ac_c_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest.$ac_objext; then
3259 ac_cv___attribute___noreturn_function_pointer=yes
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 ac_cv___attribute___noreturn_function_pointer=no
3265 fi
3266
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 fi
3269
3270 CFLAGS="$save_CFLAGS"
3271 if test "$ac_cv___attribute___noreturn_function_pointer" = "yes"; then
3272
3273 cat >>confdefs.h <<\_ACEOF
3274 #define __ATTRIBUTE___NORETURN_OK_FOR_FUNCTION_POINTERS 1
3275 _ACEOF
3276
3277 fi
3278 { echo "$as_me:$LINENO: result: $ac_cv___attribute___noreturn_function_pointer" >&5
3279 echo "${ECHO_T}$ac_cv___attribute___noreturn_function_pointer" >&6; }
3280
3281
3282 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be used without warnings" >&5
3283 echo $ECHO_N "checking whether __attribute__((format)) can be used without warnings... $ECHO_C" >&6; }
3284 if test "${ac_cv___attribute___format+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287
3288 save_CFLAGS="$CFLAGS"
3289 CFLAGS="$CFLAGS $ac_lbl_cc_force_warning_errors"
3290 cat >conftest.$ac_ext <<_ACEOF
3291
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297
3298 #include <stdlib.h>
3299
3300 extern int foo(const char *fmt, ...)
3301 __attribute__ ((format (printf, 1, 2)));
3302
3303 int
3304 main(int argc, char **argv)
3305 {
3306 foo("%s", "test");
3307 }
3308
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } && {
3324 test -z "$ac_c_werror_flag" ||
3325 test ! -s conftest.err
3326 } && test -s conftest.$ac_objext; then
3327 ac_cv___attribute___format=yes
3328 else
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332 ac_cv___attribute___format=no
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337
3338 CFLAGS="$save_CFLAGS"
3339 if test "$ac_cv___attribute___format" = "yes"; then
3340
3341 cat >>confdefs.h <<\_ACEOF
3342 #define __ATTRIBUTE___FORMAT_OK 1
3343 _ACEOF
3344
3345 fi
3346 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format" >&5
3347 echo "${ECHO_T}$ac_cv___attribute___format" >&6; }
3348
3349 if test "$ac_cv___attribute___format" = "yes"; then
3350
3351 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3352 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3353 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356
3357 cat >conftest.$ac_ext <<_ACEOF
3358
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364
3365 #include <stdlib.h>
3366
3367 extern int (*foo)(const char *fmt, ...)
3368 __attribute__ ((format (printf, 1, 2)));
3369
3370 int
3371 main(int argc, char **argv)
3372 {
3373 (*foo)("%s", "test");
3374 }
3375
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv___attribute___format_function_pointer=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 ac_cv___attribute___format_function_pointer=no
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404
3405 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3406
3407 cat >>confdefs.h <<\_ACEOF
3408 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3409 _ACEOF
3410
3411 fi
3412 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3413 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3414
3415 fi
3416 fi
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3424 # On Suns, sometimes $CPP names a directory.
3425 if test -n "$CPP" && test -d "$CPP"; then
3426 CPP=
3427 fi
3428 if test -z "$CPP"; then
3429 if test "${ac_cv_prog_CPP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3434 do
3435 ac_preproc_ok=false
3436 for ac_c_preproc_warn_flag in '' yes
3437 do
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error" is here to catch this case.
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #ifdef __STDC__
3451 # include <limits.h>
3452 #else
3453 # include <assert.h>
3454 #endif
3455 Syntax error
3456 _ACEOF
3457 if { (ac_try="$ac_cpp conftest.$ac_ext"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } >/dev/null && {
3470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 }; then
3473 :
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 # Broken: fails on valid input.
3479 continue
3480 fi
3481
3482 rm -f conftest.err conftest.$ac_ext
3483
3484 # OK, works on sane cases. Now check whether nonexistent headers
3485 # can be detected and how.
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3492 #include <ac_nonexistent.h>
3493 _ACEOF
3494 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev/null && {
3507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3509 }; then
3510 # Broken: success on invalid input.
3511 continue
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 # Passes both tests.
3517 ac_preproc_ok=:
3518 break
3519 fi
3520
3521 rm -f conftest.err conftest.$ac_ext
3522
3523 done
3524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525 rm -f conftest.err conftest.$ac_ext
3526 if $ac_preproc_ok; then
3527 break
3528 fi
3529
3530 done
3531 ac_cv_prog_CPP=$CPP
3532
3533 fi
3534 CPP=$ac_cv_prog_CPP
3535 else
3536 ac_cv_prog_CPP=$CPP
3537 fi
3538 { echo "$as_me:$LINENO: result: $CPP" >&5
3539 echo "${ECHO_T}$CPP" >&6; }
3540 ac_preproc_ok=false
3541 for ac_c_preproc_warn_flag in '' yes
3542 do
3543 # Use a header file that comes with gcc, so configuring glibc
3544 # with a fresh cross-compiler works.
3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3546 # <limits.h> exists even on freestanding compilers.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #ifdef __STDC__
3556 # include <limits.h>
3557 #else
3558 # include <assert.h>
3559 #endif
3560 Syntax error
3561 _ACEOF
3562 if { (ac_try="$ac_cpp conftest.$ac_ext"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } >/dev/null && {
3575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3577 }; then
3578 :
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 # Broken: fails on valid input.
3584 continue
3585 fi
3586
3587 rm -f conftest.err conftest.$ac_ext
3588
3589 # OK, works on sane cases. Now check whether nonexistent headers
3590 # can be detected and how.
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <ac_nonexistent.h>
3598 _ACEOF
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 }; then
3615 # Broken: success on invalid input.
3616 continue
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 # Passes both tests.
3622 ac_preproc_ok=:
3623 break
3624 fi
3625
3626 rm -f conftest.err conftest.$ac_ext
3627
3628 done
3629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3630 rm -f conftest.err conftest.$ac_ext
3631 if $ac_preproc_ok; then
3632 :
3633 else
3634 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&5
3636 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3637 See \`config.log' for more details." >&2;}
3638 { (exit 1); exit 1; }; }
3639 fi
3640
3641 ac_ext=c
3642 ac_cpp='$CPP $CPPFLAGS'
3643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647
3648 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3649 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3650 if test "${ac_cv_path_GREP+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 # Extract the first word of "grep ggrep" to use in msg output
3654 if test -z "$GREP"; then
3655 set dummy grep ggrep; ac_prog_name=$2
3656 if test "${ac_cv_path_GREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 ac_path_GREP_found=false
3660 # Loop through the user's path and test for each of PROGNAME-LIST
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_prog in grep ggrep; do
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3669 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3670 # Check for GNU ac_path_GREP and select it if it is found.
3671 # Check for GNU $ac_path_GREP
3672 case `"$ac_path_GREP" --version 2>&1` in
3673 *GNU*)
3674 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 *)
3676 ac_count=0
3677 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3678 while :
3679 do
3680 cat "conftest.in" "conftest.in" >"conftest.tmp"
3681 mv "conftest.tmp" "conftest.in"
3682 cp "conftest.in" "conftest.nl"
3683 echo 'GREP' >> "conftest.nl"
3684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3686 ac_count=`expr $ac_count + 1`
3687 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3688 # Best one so far, save it but keep looking for a better one
3689 ac_cv_path_GREP="$ac_path_GREP"
3690 ac_path_GREP_max=$ac_count
3691 fi
3692 # 10*(2^10) chars as input seems more than enough
3693 test $ac_count -gt 10 && break
3694 done
3695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3696 esac
3697
3698
3699 $ac_path_GREP_found && break 3
3700 done
3701 done
3702
3703 done
3704 IFS=$as_save_IFS
3705
3706
3707 fi
3708
3709 GREP="$ac_cv_path_GREP"
3710 if test -z "$GREP"; then
3711 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3712 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3713 { (exit 1); exit 1; }; }
3714 fi
3715
3716 else
3717 ac_cv_path_GREP=$GREP
3718 fi
3719
3720
3721 fi
3722 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3723 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3724 GREP="$ac_cv_path_GREP"
3725
3726
3727 { echo "$as_me:$LINENO: checking for egrep" >&5
3728 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3729 if test "${ac_cv_path_EGREP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3733 then ac_cv_path_EGREP="$GREP -E"
3734 else
3735 # Extract the first word of "egrep" to use in msg output
3736 if test -z "$EGREP"; then
3737 set dummy egrep; ac_prog_name=$2
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 ac_path_EGREP_found=false
3742 # Loop through the user's path and test for each of PROGNAME-LIST
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_prog in egrep; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3751 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3752 # Check for GNU ac_path_EGREP and select it if it is found.
3753 # Check for GNU $ac_path_EGREP
3754 case `"$ac_path_EGREP" --version 2>&1` in
3755 *GNU*)
3756 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 *)
3758 ac_count=0
3759 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3760 while :
3761 do
3762 cat "conftest.in" "conftest.in" >"conftest.tmp"
3763 mv "conftest.tmp" "conftest.in"
3764 cp "conftest.in" "conftest.nl"
3765 echo 'EGREP' >> "conftest.nl"
3766 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3767 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3768 ac_count=`expr $ac_count + 1`
3769 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3770 # Best one so far, save it but keep looking for a better one
3771 ac_cv_path_EGREP="$ac_path_EGREP"
3772 ac_path_EGREP_max=$ac_count
3773 fi
3774 # 10*(2^10) chars as input seems more than enough
3775 test $ac_count -gt 10 && break
3776 done
3777 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778 esac
3779
3780
3781 $ac_path_EGREP_found && break 3
3782 done
3783 done
3784
3785 done
3786 IFS=$as_save_IFS
3787
3788
3789 fi
3790
3791 EGREP="$ac_cv_path_EGREP"
3792 if test -z "$EGREP"; then
3793 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3794 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3795 { (exit 1); exit 1; }; }
3796 fi
3797
3798 else
3799 ac_cv_path_EGREP=$EGREP
3800 fi
3801
3802
3803 fi
3804 fi
3805 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3806 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3807 EGREP="$ac_cv_path_EGREP"
3808
3809
3810 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3811 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3812 if test "${ac_cv_header_stdc+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <stdlib.h>
3822 #include <stdarg.h>
3823 #include <string.h>
3824 #include <float.h>
3825
3826 int
3827 main ()
3828 {
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_compile") 2>conftest.er1
3842 ac_status=$?
3843 grep -v '^ *+' conftest.er1 >conftest.err
3844 rm -f conftest.er1
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } && {
3848 test -z "$ac_c_werror_flag" ||
3849 test ! -s conftest.err
3850 } && test -s conftest.$ac_objext; then
3851 ac_cv_header_stdc=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_cv_header_stdc=no
3857 fi
3858
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860
3861 if test $ac_cv_header_stdc = yes; then
3862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <string.h>
3870
3871 _ACEOF
3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873 $EGREP "memchr" >/dev/null 2>&1; then
3874 :
3875 else
3876 ac_cv_header_stdc=no
3877 fi
3878 rm -f conftest*
3879
3880 fi
3881
3882 if test $ac_cv_header_stdc = yes; then
3883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 #include <stdlib.h>
3891
3892 _ACEOF
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "free" >/dev/null 2>&1; then
3895 :
3896 else
3897 ac_cv_header_stdc=no
3898 fi
3899 rm -f conftest*
3900
3901 fi
3902
3903 if test $ac_cv_header_stdc = yes; then
3904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3905 if test "$cross_compiling" = yes; then
3906 :
3907 else
3908 cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h. */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3914 #include <ctype.h>
3915 #include <stdlib.h>
3916 #if ((' ' & 0x0FF) == 0x020)
3917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3919 #else
3920 # define ISLOWER(c) \
3921 (('a' <= (c) && (c) <= 'i') \
3922 || ('j' <= (c) && (c) <= 'r') \
3923 || ('s' <= (c) && (c) <= 'z'))
3924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3925 #endif
3926
3927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3928 int
3929 main ()
3930 {
3931 int i;
3932 for (i = 0; i < 256; i++)
3933 if (XOR (islower (i), ISLOWER (i))
3934 || toupper (i) != TOUPPER (i))
3935 return 2;
3936 return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest$ac_exeext
3940 if { (ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_link") 2>&5
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 :
3960 else
3961 echo "$as_me: program exited with status $ac_status" >&5
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 ( exit $ac_status )
3966 ac_cv_header_stdc=no
3967 fi
3968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3969 fi
3970
3971
3972 fi
3973 fi
3974 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3975 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3976 if test $ac_cv_header_stdc = yes; then
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define STDC_HEADERS 1
3980 _ACEOF
3981
3982 fi
3983
3984 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3995 inttypes.h stdint.h unistd.h
3996 do
3997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4010
4011 #include <$ac_header>
4012 _ACEOF
4013 rm -f conftest.$ac_objext
4014 if { (ac_try="$ac_compile"
4015 case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4030 eval "$as_ac_Header=yes"
4031 else
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 eval "$as_ac_Header=no"
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040 ac_res=`eval echo '${'$as_ac_Header'}'`
4041 { echo "$as_me:$LINENO: result: $ac_res" >&5
4042 echo "${ECHO_T}$ac_res" >&6; }
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h <<_ACEOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046 _ACEOF
4047
4048 fi
4049
4050 done
4051
4052
4053
4054
4055
4056
4057 for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
4058 do
4059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 fi
4066 ac_res=`eval echo '${'$as_ac_Header'}'`
4067 { echo "$as_me:$LINENO: result: $ac_res" >&5
4068 echo "${ECHO_T}$ac_res" >&6; }
4069 else
4070 # Is the header compilable?
4071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 $ac_includes_default
4080 #include <$ac_header>
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_c_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_header_compiler=yes
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 ac_header_compiler=no
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4109 echo "${ECHO_T}$ac_header_compiler" >&6; }
4110
4111 # Is the header present?
4112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <$ac_header>
4121 _ACEOF
4122 if { (ac_try="$ac_cpp conftest.$ac_ext"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } >/dev/null && {
4135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 }; then
4138 ac_header_preproc=yes
4139 else
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 ac_header_preproc=no
4144 fi
4145
4146 rm -f conftest.err conftest.$ac_ext
4147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4148 echo "${ECHO_T}$ac_header_preproc" >&6; }
4149
4150 # So? What about this header?
4151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4152 yes:no: )
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4157 ac_header_preproc=yes
4158 ;;
4159 no:yes:* )
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4172
4173 ;;
4174 esac
4175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 eval "$as_ac_Header=\$ac_header_preproc"
4181 fi
4182 ac_res=`eval echo '${'$as_ac_Header'}'`
4183 { echo "$as_me:$LINENO: result: $ac_res" >&5
4184 echo "${ECHO_T}$ac_res" >&6; }
4185
4186 fi
4187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h <<_ACEOF
4189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4190 _ACEOF
4191
4192 fi
4193
4194 done
4195
4196
4197 for ac_header in net/pfvar.h
4198 do
4199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <sys/types.h>
4212 #include <sys/socket.h>
4213 #include <net/if.h>
4214
4215 #include <$ac_header>
4216 _ACEOF
4217 rm -f conftest.$ac_objext
4218 if { (ac_try="$ac_compile"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_compile") 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_c_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest.$ac_objext; then
4234 eval "$as_ac_Header=yes"
4235 else
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 eval "$as_ac_Header=no"
4240 fi
4241
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 fi
4244 ac_res=`eval echo '${'$as_ac_Header'}'`
4245 { echo "$as_me:$LINENO: result: $ac_res" >&5
4246 echo "${ECHO_T}$ac_res" >&6; }
4247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4248 cat >>confdefs.h <<_ACEOF
4249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 _ACEOF
4251
4252 fi
4253
4254 done
4255
4256 if test "$ac_cv_header_net_pfvar_h" = yes; then
4257 LOCALSRC="print-pflog.c $LOCALSRC"
4258 fi
4259
4260 for ac_header in netinet/if_ether.h
4261 do
4262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274 #include <sys/types.h>
4275 #include <sys/socket.h>
4276
4277 #include <$ac_header>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
4296 eval "$as_ac_Header=yes"
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 eval "$as_ac_Header=no"
4302 fi
4303
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 ac_res=`eval echo '${'$as_ac_Header'}'`
4307 { echo "$as_me:$LINENO: result: $ac_res" >&5
4308 echo "${ECHO_T}$ac_res" >&6; }
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 _ACEOF
4313
4314 fi
4315
4316 done
4317
4318 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4319 #
4320 # The simple test didn't work.
4321 # Do we need to include <net/if.h> first?
4322 # Unset ac_cv_header_netinet_if_ether_h so we don't
4323 # treat the previous failure as a cached value and
4324 # suppress the next test.
4325 #
4326 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4327 echo "$as_me: Rechecking with some additional includes" >&6;}
4328 unset ac_cv_header_netinet_if_ether_h
4329
4330 for ac_header in netinet/if_ether.h
4331 do
4332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <sys/types.h>
4345 #include <sys/socket.h>
4346 #include <netinet/in.h>
4347 struct mbuf;
4348 struct rtentry;
4349 #include <net/if.h>
4350
4351 #include <$ac_header>
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 eval "$as_ac_Header=yes"
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 eval "$as_ac_Header=no"
4376 fi
4377
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 ac_res=`eval echo '${'$as_ac_Header'}'`
4381 { echo "$as_me:$LINENO: result: $ac_res" >&5
4382 echo "${ECHO_T}$ac_res" >&6; }
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4386 _ACEOF
4387
4388 fi
4389
4390 done
4391
4392 fi
4393
4394 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4396 if test "${ac_cv_header_time+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <sys/types.h>
4406 #include <sys/time.h>
4407 #include <time.h>
4408
4409 int
4410 main ()
4411 {
4412 if ((struct tm *) 0)
4413 return 0;
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (ac_try="$ac_compile"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.$ac_objext; then
4435 ac_cv_header_time=yes
4436 else
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 ac_cv_header_time=no
4441 fi
4442
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 fi
4445 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4446 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4447 if test $ac_cv_header_time = yes; then
4448
4449 cat >>confdefs.h <<\_ACEOF
4450 #define TIME_WITH_SYS_TIME 1
4451 _ACEOF
4452
4453 fi
4454
4455
4456 case "$host_os" in
4457
4458 darwin*)
4459 # Check whether --enable-universal was given.
4460 if test "${enable_universal+set}" = set; then
4461 enableval=$enable_universal;
4462 fi
4463
4464 if test "$enable_universal" != "no"; then
4465 case "$host_os" in
4466
4467 darwin9.*)
4468 #
4469 # Leopard. Build for x86 and 32-bit PowerPC, with
4470 # x86 first. (That's what Apple does.)
4471 #
4472 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4473 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4474 ;;
4475
4476 darwin10.*)
4477 #
4478 # Snow Leopard. Build for x86-64 and x86, with
4479 # x86-64 first. (That's what Apple does.)
4480 #
4481 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4482 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4483 ;;
4484 esac
4485 fi
4486 ;;
4487
4488 linux*)
4489 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4490 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4491 if test "$cross_compiling" = yes; then
4492 if test "${ac_cv_linux_vers+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 ac_cv_linux_vers=unknown
4496 fi
4497
4498 else
4499 if test "${ac_cv_linux_vers+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 ac_cv_linux_vers=`uname -r 2>&1 | \
4503 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4504 fi
4505
4506 fi
4507 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4508 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4509 if test $ac_cv_linux_vers = unknown ; then
4510 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4511 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4512 { (exit 1); exit 1; }; }
4513 fi
4514 if test $ac_cv_linux_vers -lt 2 ; then
4515 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4516 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4517 { (exit 1); exit 1; }; }
4518 fi
4519 ;;
4520
4521 *)
4522 ;;
4523 esac
4524
4525
4526
4527 # Check whether --with-smi was given.
4528 if test "${with_smi+set}" = set; then
4529 withval=$with_smi;
4530 else
4531 with_smi=yes
4532 fi
4533
4534
4535 if test "x$with_smi" != "xno" ; then
4536
4537 for ac_header in smi.h
4538 do
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 fi
4546 ac_res=`eval echo '${'$as_ac_Header'}'`
4547 { echo "$as_me:$LINENO: result: $ac_res" >&5
4548 echo "${ECHO_T}$ac_res" >&6; }
4549 else
4550 # Is the header compilable?
4551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4560 #include <$ac_header>
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (ac_try="$ac_compile"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_compile") 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && {
4576 test -z "$ac_c_werror_flag" ||
4577 test ! -s conftest.err
4578 } && test -s conftest.$ac_objext; then
4579 ac_header_compiler=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 ac_header_compiler=no
4585 fi
4586
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4589 echo "${ECHO_T}$ac_header_compiler" >&6; }
4590
4591 # Is the header present?
4592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <$ac_header>
4601 _ACEOF
4602 if { (ac_try="$ac_cpp conftest.$ac_ext"
4603 case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4609 ac_status=$?
4610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev/null && {
4615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4616 test ! -s conftest.err
4617 }; then
4618 ac_header_preproc=yes
4619 else
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ac_header_preproc=no
4624 fi
4625
4626 rm -f conftest.err conftest.$ac_ext
4627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4628 echo "${ECHO_T}$ac_header_preproc" >&6; }
4629
4630 # So? What about this header?
4631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4632 yes:no: )
4633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4637 ac_header_preproc=yes
4638 ;;
4639 no:yes:* )
4640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4652
4653 ;;
4654 esac
4655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 eval "$as_ac_Header=\$ac_header_preproc"
4661 fi
4662 ac_res=`eval echo '${'$as_ac_Header'}'`
4663 { echo "$as_me:$LINENO: result: $ac_res" >&5
4664 echo "${ECHO_T}$ac_res" >&6; }
4665
4666 fi
4667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4668 cat >>confdefs.h <<_ACEOF
4669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4670 _ACEOF
4671
4672 fi
4673
4674 done
4675
4676
4677 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4678 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4679 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_check_lib_save_LIBS=$LIBS
4683 LIBS="-lsmi $LIBS"
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690
4691 /* Override any GCC internal prototype to avoid an error.
4692 Use char because int might match the return type of a GCC
4693 builtin and then its argument prototype would still apply. */
4694 #ifdef __cplusplus
4695 extern "C"
4696 #endif
4697 char smiInit ();
4698 int
4699 main ()
4700 {
4701 return smiInit ();
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (ac_try="$ac_link"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_link") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest$ac_exeext &&
4723 $as_test_x conftest$ac_exeext; then
4724 ac_cv_lib_smi_smiInit=yes
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4728
4729 ac_cv_lib_smi_smiInit=no
4730 fi
4731
4732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4733 conftest$ac_exeext conftest.$ac_ext
4734 LIBS=$ac_check_lib_save_LIBS
4735 fi
4736 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4737 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4738 if test $ac_cv_lib_smi_smiInit = yes; then
4739 cat >>confdefs.h <<_ACEOF
4740 #define HAVE_LIBSMI 1
4741 _ACEOF
4742
4743 LIBS="-lsmi $LIBS"
4744
4745 fi
4746
4747 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4748 then
4749 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4750 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4751 if test "$cross_compiling" = yes; then
4752 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4753 echo "${ECHO_T}not when cross-compiling" >&6; }
4754 libsmi=no
4755
4756 else
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 /* libsmi available check */
4764 #include <smi.h>
4765 main()
4766 {
4767 int current, revision, age, n;
4768 const int required = 2;
4769 if (smiInit(""))
4770 exit(1);
4771 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4772 exit(2);
4773 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4774 if (n != 3)
4775 exit(3);
4776 if (required < current - age || required > current)
4777 exit(4);
4778 exit(0);
4779 }
4780
4781 _ACEOF
4782 rm -f conftest$ac_exeext
4783 if { (ac_try="$ac_link"
4784 case "(($ac_try" in
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4787 esac
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_link") 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4793 { (case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_try") 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 { echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6; }
4804
4805 cat >>confdefs.h <<\_ACEOF
4806 #define LIBSMI 1
4807 _ACEOF
4808
4809 libsmi=yes
4810 else
4811 echo "$as_me: program exited with status $ac_status" >&5
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ( exit $ac_status )
4816 case $? in
4817 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4818 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4819 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4820 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4821 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4822 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4823 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4824 echo "${ECHO_T}no - too old" >&6; } ;;
4825 *) { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; } ;;
4827 esac
4828 libsmi=no
4829 fi
4830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4831 fi
4832
4833
4834 fi
4835 fi
4836
4837 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4838 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4839 # Check whether --enable-smb was given.
4840 if test "${enable_smb+set}" = set; then
4841 enableval=$enable_smb;
4842 else
4843 enableval=yes
4844 fi
4845
4846 case "$enableval" in
4847 yes) { echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6; }
4849 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4850 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4851
4852 cat >>confdefs.h <<\_ACEOF
4853 #define TCPDUMP_DO_SMB 1
4854 _ACEOF
4855
4856 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4857 ;;
4858 *) { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 ;;
4861 esac
4862
4863
4864 # Check whether --with-user was given.
4865 if test "${with_user+set}" = set; then
4866 withval=$with_user;
4867 fi
4868
4869 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4870 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4871 if test ! -z "$with_user" ; then
4872
4873 cat >>confdefs.h <<_ACEOF
4874 #define WITH_USER "$withval"
4875 _ACEOF
4876
4877 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4878 echo "${ECHO_T}to \"$withval\"" >&6; }
4879 else
4880 { echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6; }
4882 fi
4883
4884
4885 # Check whether --with-chroot was given.
4886 if test "${with_chroot+set}" = set; then
4887 withval=$with_chroot;
4888 fi
4889
4890 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4891 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4892 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4893
4894 cat >>confdefs.h <<_ACEOF
4895 #define WITH_CHROOT "$withval"
4896 _ACEOF
4897
4898 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4899 echo "${ECHO_T}to \"$withval\"" >&6; }
4900 else
4901 { echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6; }
4903 fi
4904
4905 #
4906 # We must check this before checking whether to enable IPv6, because,
4907 # on some platforms (such as SunOS 5.x), the test program requires
4908 # the extra networking libraries.
4909 #
4910
4911 # Most operating systems have gethostbyname() in the default searched
4912 # libraries (i.e. libc):
4913 # Some OSes (eg. Solaris) place it in libnsl
4914 # Some strange OSes (SINIX) have it in libsocket:
4915 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4916 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4917 if test "${ac_cv_search_gethostbyname+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 ac_func_search_save_LIBS=$LIBS
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927
4928 /* Override any GCC internal prototype to avoid an error.
4929 Use char because int might match the return type of a GCC
4930 builtin and then its argument prototype would still apply. */
4931 #ifdef __cplusplus
4932 extern "C"
4933 #endif
4934 char gethostbyname ();
4935 int
4936 main ()
4937 {
4938 return gethostbyname ();
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 for ac_lib in '' nsl socket resolv; do
4944 if test -z "$ac_lib"; then
4945 ac_res="none required"
4946 else
4947 ac_res=-l$ac_lib
4948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4949 fi
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (ac_try="$ac_link"
4952 case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955 esac
4956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4957 (eval "$ac_link") 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } && {
4964 test -z "$ac_c_werror_flag" ||
4965 test ! -s conftest.err
4966 } && test -s conftest$ac_exeext &&
4967 $as_test_x conftest$ac_exeext; then
4968 ac_cv_search_gethostbyname=$ac_res
4969 else
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973
4974 fi
4975
4976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4977 conftest$ac_exeext
4978 if test "${ac_cv_search_gethostbyname+set}" = set; then
4979 break
4980 fi
4981 done
4982 if test "${ac_cv_search_gethostbyname+set}" = set; then
4983 :
4984 else
4985 ac_cv_search_gethostbyname=no
4986 fi
4987 rm conftest.$ac_ext
4988 LIBS=$ac_func_search_save_LIBS
4989 fi
4990 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4991 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4992 ac_res=$ac_cv_search_gethostbyname
4993 if test "$ac_res" != no; then
4994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4995
4996 fi
4997
4998 # Unfortunately libsocket sometimes depends on libnsl and
4999 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
5000 if test "$ac_cv_search_gethostbyname" = "no"
5001 then
5002 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
5003 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
5004 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lsocket -lnsl $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5019 #ifdef __cplusplus
5020 extern "C"
5021 #endif
5022 char gethostbyname ();
5023 int
5024 main ()
5025 {
5026 return gethostbyname ();
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (ac_try="$ac_link"
5033 case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest$ac_exeext &&
5048 $as_test_x conftest$ac_exeext; then
5049 ac_cv_lib_socket_gethostbyname=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 ac_cv_lib_socket_gethostbyname=no
5055 fi
5056
5057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5058 conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5060 fi
5061 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
5062 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
5063 if test $ac_cv_lib_socket_gethostbyname = yes; then
5064 LIBS="-lsocket -lnsl $LIBS"
5065 fi
5066
5067 fi
5068 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5069 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5070 if test "${ac_cv_search_socket+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 ac_func_search_save_LIBS=$LIBS
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080
5081 /* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
5084 #ifdef __cplusplus
5085 extern "C"
5086 #endif
5087 char socket ();
5088 int
5089 main ()
5090 {
5091 return socket ();
5092 ;
5093 return 0;
5094 }
5095 _ACEOF
5096 for ac_lib in '' socket; do
5097 if test -z "$ac_lib"; then
5098 ac_res="none required"
5099 else
5100 ac_res=-l$ac_lib
5101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5102 fi
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (ac_try="$ac_link"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5110 (eval "$ac_link") 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && {
5117 test -z "$ac_c_werror_flag" ||
5118 test ! -s conftest.err
5119 } && test -s conftest$ac_exeext &&
5120 $as_test_x conftest$ac_exeext; then
5121 ac_cv_search_socket=$ac_res
5122 else
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126
5127 fi
5128
5129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5130 conftest$ac_exeext
5131 if test "${ac_cv_search_socket+set}" = set; then
5132 break
5133 fi
5134 done
5135 if test "${ac_cv_search_socket+set}" = set; then
5136 :
5137 else
5138 ac_cv_search_socket=no
5139 fi
5140 rm conftest.$ac_ext
5141 LIBS=$ac_func_search_save_LIBS
5142 fi
5143 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5144 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5145 ac_res=$ac_cv_search_socket
5146 if test "$ac_res" != no; then
5147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5148
5149 else
5150 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5151 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5152 if test "${ac_cv_lib_socket_socket+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 ac_check_lib_save_LIBS=$LIBS
5156 LIBS="-lsocket -lnsl $LIBS"
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163
5164 /* Override any GCC internal prototype to avoid an error.
5165 Use char because int might match the return type of a GCC
5166 builtin and then its argument prototype would still apply. */
5167 #ifdef __cplusplus
5168 extern "C"
5169 #endif
5170 char socket ();
5171 int
5172 main ()
5173 {
5174 return socket ();
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (ac_try="$ac_link"
5181 case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_link") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest$ac_exeext &&
5196 $as_test_x conftest$ac_exeext; then
5197 ac_cv_lib_socket_socket=yes
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ac_cv_lib_socket_socket=no
5203 fi
5204
5205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5208 fi
5209 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5210 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5211 if test $ac_cv_lib_socket_socket = yes; then
5212 LIBS="-lsocket -lnsl $LIBS"
5213 fi
5214
5215 fi
5216
5217 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
5218 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
5219 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
5220 if test "${ac_cv_search_putmsg+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 ac_func_search_save_LIBS=$LIBS
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230
5231 /* Override any GCC internal prototype to avoid an error.
5232 Use char because int might match the return type of a GCC
5233 builtin and then its argument prototype would still apply. */
5234 #ifdef __cplusplus
5235 extern "C"
5236 #endif
5237 char putmsg ();
5238 int
5239 main ()
5240 {
5241 return putmsg ();
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 for ac_lib in '' str; do
5247 if test -z "$ac_lib"; then
5248 ac_res="none required"
5249 else
5250 ac_res=-l$ac_lib
5251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5252 fi
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (ac_try="$ac_link"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_link") 2>conftest.er1
5261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } && {
5267 test -z "$ac_c_werror_flag" ||
5268 test ! -s conftest.err
5269 } && test -s conftest$ac_exeext &&
5270 $as_test_x conftest$ac_exeext; then
5271 ac_cv_search_putmsg=$ac_res
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276
5277 fi
5278
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext
5281 if test "${ac_cv_search_putmsg+set}" = set; then
5282 break
5283 fi
5284 done
5285 if test "${ac_cv_search_putmsg+set}" = set; then
5286 :
5287 else
5288 ac_cv_search_putmsg=no
5289 fi
5290 rm conftest.$ac_ext
5291 LIBS=$ac_func_search_save_LIBS
5292 fi
5293 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
5294 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
5295 ac_res=$ac_cv_search_putmsg
5296 if test "$ac_res" != no; then
5297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5298
5299 fi
5300
5301
5302
5303 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
5304 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
5305 # Check whether --enable-ipv6 was given.
5306 if test "${enable_ipv6+set}" = set; then
5307 enableval=$enable_ipv6; case "$enableval" in
5308 yes) { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5310 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"
5311
5312 cat >>confdefs.h <<\_ACEOF
5313 #define INET6 1
5314 _ACEOF
5315
5316 ipv6=yes
5317 ;;
5318 *)
5319 { echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6; }
5321 ipv6=no
5322 ;;
5323 esac
5324 else
5325 if test "$cross_compiling" = yes; then
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5328 ipv6=no
5329
5330 else
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 /* AF_INET6 available check */
5338 #include <sys/types.h>
5339 #include <sys/socket.h>
5340 main()
5341 {
5342 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
5343 exit(1);
5344 else
5345 exit(0);
5346 }
5347
5348 _ACEOF
5349 rm -f conftest$ac_exeext
5350 if { (ac_try="$ac_link"
5351 case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_link") 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5360 { (case "(($ac_try" in
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5363 esac
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_try") 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 { echo "$as_me:$LINENO: result: yes" >&5
5370 echo "${ECHO_T}yes" >&6; }
5371 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"
5372
5373 cat >>confdefs.h <<\_ACEOF
5374 #define INET6 1
5375 _ACEOF
5376
5377 ipv6=yes
5378 else
5379 echo "$as_me: program exited with status $ac_status" >&5
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ( exit $ac_status )
5384 { echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6; }
5386 ipv6=no
5387 fi
5388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5389 fi
5390
5391
5392 fi
5393
5394
5395 ipv6type=unknown
5396 ipv6lib=none
5397 ipv6trylibc=no
5398
5399 if test "$ipv6" = "yes"; then
5400 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
5401 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
5402 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
5403 case $i in
5404 inria)
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <netinet/in.h>
5412 #ifdef IPV6_INRIA_VERSION
5413 yes
5414 #endif
5415 _ACEOF
5416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5417 $EGREP "yes" >/dev/null 2>&1; then
5418 ipv6type=$i;
5419 CFLAGS="-DINET6 $CFLAGS"
5420 fi
5421 rm -f conftest*
5422
5423 ;;
5424 kame)
5425 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <netinet/in.h>
5432 #ifdef __KAME__
5433 yes
5434 #endif
5435 _ACEOF
5436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 $EGREP "yes" >/dev/null 2>&1; then
5438 ipv6type=$i;
5439 ipv6lib=inet6;
5440 ipv6libdir=/usr/local/v6/lib;
5441 ipv6trylibc=yes;
5442 CFLAGS="-DINET6 $CFLAGS"
5443 fi
5444 rm -f conftest*
5445
5446 ;;
5447 linux-glibc)
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 #include <features.h>
5455 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5456 yes
5457 #endif
5458 _ACEOF
5459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5460 $EGREP "yes" >/dev/null 2>&1; then
5461 ipv6type=$i;
5462 CFLAGS="-DINET6 $CFLAGS"
5463 fi
5464 rm -f conftest*
5465
5466 ;;
5467 linux-libinet6)
5468 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5469 ipv6type=$i
5470 ipv6lib=inet6
5471 ipv6libdir=/usr/inet6/lib
5472 ipv6trylibc=yes;
5473 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5474 fi
5475 ;;
5476 toshiba)
5477 cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h. */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 #include <sys/param.h>
5484 #ifdef _TOSHIBA_INET6
5485 yes
5486 #endif
5487 _ACEOF
5488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5489 $EGREP "yes" >/dev/null 2>&1; then
5490 ipv6type=$i;
5491 ipv6lib=inet6;
5492 ipv6libdir=/usr/local/v6/lib;
5493 CFLAGS="-DINET6 $CFLAGS"
5494 fi
5495 rm -f conftest*
5496
5497 ;;
5498 v6d)
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 #include </usr/local/v6/include/sys/v6config.h>
5506 #ifdef __V6D__
5507 yes
5508 #endif
5509 _ACEOF
5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511 $EGREP "yes" >/dev/null 2>&1; then
5512 ipv6type=$i;
5513 ipv6lib=v6;
5514 ipv6libdir=/usr/local/v6/lib;
5515 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5516 fi
5517 rm -f conftest*
5518
5519 ;;
5520 zeta)
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <sys/param.h>
5528 #ifdef _ZETA_MINAMI_INET6
5529 yes
5530 #endif
5531 _ACEOF
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "yes" >/dev/null 2>&1; then
5534 ipv6type=$i;
5535 ipv6lib=inet6;
5536 ipv6libdir=/usr/local/v6/lib;
5537 CFLAGS="-DINET6 $CFLAGS"
5538 fi
5539 rm -f conftest*
5540
5541 ;;
5542 esac
5543 if test "$ipv6type" != "unknown"; then
5544 break
5545 fi
5546 done
5547 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5548 echo "${ECHO_T}$ipv6type" >&6; }
5549 fi
5550
5551 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5552 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5553 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5554 echo "You have $ipv6lib library, using it"
5555 else
5556 if test "$ipv6trylibc" = "yes"; then
5557 echo "You do not have $ipv6lib library, using libc"
5558 else
5559 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5560 echo "You need to fetch lib$ipv6lib.a from appropriate"
5561 echo 'ipv6 kit and compile beforehand.'
5562 exit 1
5563 fi
5564 fi
5565 fi
5566
5567
5568 if test "$ipv6" = "yes"; then
5569 #
5570 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5571 # function in libc; there are "ngetaddrinfo()" and
5572 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5573 # "getaddrinfo" to be either "ngetaddrinfo" or
5574 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5575 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5576 #
5577 # So this test doesn't work on Tru64 5.1, and possibly
5578 # on other 5.x releases. This causes the configure
5579 # script to become confused, and results in libpcap
5580 # being unbuildable.
5581 #
5582 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5583 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5584 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 ac_func_search_save_LIBS=$LIBS
5588 cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h. */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h. */
5594
5595 /* Override any GCC internal prototype to avoid an error.
5596 Use char because int might match the return type of a GCC
5597 builtin and then its argument prototype would still apply. */
5598 #ifdef __cplusplus
5599 extern "C"
5600 #endif
5601 char getaddrinfo ();
5602 int
5603 main ()
5604 {
5605 return getaddrinfo ();
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 for ac_lib in '' socket; do
5611 if test -z "$ac_lib"; then
5612 ac_res="none required"
5613 else
5614 ac_res=-l$ac_lib
5615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext
5618 if { (ac_try="$ac_link"
5619 case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_link") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest$ac_exeext &&
5634 $as_test_x conftest$ac_exeext; then
5635 ac_cv_search_getaddrinfo=$ac_res
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640
5641 fi
5642
5643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5644 conftest$ac_exeext
5645 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5646 break
5647 fi
5648 done
5649 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5650 :
5651 else
5652 ac_cv_search_getaddrinfo=no
5653 fi
5654 rm conftest.$ac_ext
5655 LIBS=$ac_func_search_save_LIBS
5656 fi
5657 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5658 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5659 ac_res=$ac_cv_search_getaddrinfo
5660 if test "$ac_res" != no; then
5661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5662 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5663 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5664 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 if test "$cross_compiling" = yes; then
5668 td_cv_buggygetaddrinfo=yes
5669 else
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676
5677 #include <sys/types.h>
5678 #include <netdb.h>
5679 #include <string.h>
5680 #include <sys/socket.h>
5681 #include <netinet/in.h>
5682
5683 main()
5684 {
5685 int passive, gaierr, inet4 = 0, inet6 = 0;
5686 struct addrinfo hints, *ai, *aitop;
5687 char straddr[INET6_ADDRSTRLEN], strport[16];
5688
5689 for (passive = 0; passive <= 1; passive++) {
5690 memset(&hints, 0, sizeof(hints));
5691 hints.ai_family = AF_UNSPEC;
5692 hints.ai_flags = passive ? AI_PASSIVE : 0;
5693 hints.ai_socktype = SOCK_STREAM;
5694 hints.ai_protocol = IPPROTO_TCP;
5695 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5696 (void)gai_strerror(gaierr);
5697 goto bad;
5698 }
5699 for (ai = aitop; ai; ai = ai->ai_next) {
5700 if (ai->ai_addr == NULL ||
5701 ai->ai_addrlen == 0 ||
5702 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5703 straddr, sizeof(straddr), strport, sizeof(strport),
5704 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5705 goto bad;
5706 }
5707 switch (ai->ai_family) {
5708 case AF_INET:
5709 if (strcmp(strport, "54321") != 0) {
5710 goto bad;
5711 }
5712 if (passive) {
5713 if (strcmp(straddr, "0.0.0.0") != 0) {
5714 goto bad;
5715 }
5716 } else {
5717 if (strcmp(straddr, "127.0.0.1") != 0) {
5718 goto bad;
5719 }
5720 }
5721 inet4++;
5722 break;
5723 case AF_INET6:
5724 if (strcmp(strport, "54321") != 0) {
5725 goto bad;
5726 }
5727 if (passive) {
5728 if (strcmp(straddr, "::") != 0) {
5729 goto bad;
5730 }
5731 } else {
5732 if (strcmp(straddr, "::1") != 0) {
5733 goto bad;
5734 }
5735 }
5736 inet6++;
5737 break;
5738 case AF_UNSPEC:
5739 goto bad;
5740 break;
5741 #ifdef AF_UNIX
5742 case AF_UNIX:
5743 #else
5744 #ifdef AF_LOCAL
5745 case AF_LOCAL:
5746 #endif
5747 #endif
5748 default:
5749 /* another family support? */
5750 break;
5751 }
5752 }
5753 }
5754
5755 /* supported family should be 2, unsupported family should be 0 */
5756 if (!(inet4 == 0 || inet4 == 2))
5757 goto bad;
5758 if (!(inet6 == 0 || inet6 == 2))
5759 goto bad;
5760
5761 if (aitop)
5762 freeaddrinfo(aitop);
5763 exit(0);
5764
5765 bad:
5766 if (aitop)
5767 freeaddrinfo(aitop);
5768 exit(1);
5769 }
5770
5771 _ACEOF
5772 rm -f conftest$ac_exeext
5773 if { (ac_try="$ac_link"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_link") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 td_cv_buggygetaddrinfo=no
5793 else
5794 echo "$as_me: program exited with status $ac_status" >&5
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798 ( exit $ac_status )
5799 td_cv_buggygetaddrinfo=yes
5800 fi
5801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5802 fi
5803
5804
5805 fi
5806
5807 if test "$td_cv_buggygetaddrinfo" = no; then
5808 { echo "$as_me:$LINENO: result: good" >&5
5809 echo "${ECHO_T}good" >&6; }
5810 else
5811 { echo "$as_me:$LINENO: result: buggy" >&5
5812 echo "${ECHO_T}buggy" >&6; }
5813 fi
5814
5815 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5816 #
5817 # XXX - it doesn't appear that "ipv6type" can ever be
5818 # set to "linux". Should this be testing for
5819 # "linux-glibc", or for that *or* "linux-libinet6"?
5820 # If the latter, note that "linux-libinet6" is also
5821 # the type given to some non-Linux OSes.
5822 #
5823 if test "$ipv6type" != "linux"; then
5824 echo 'Fatal: You must get working getaddrinfo() function.'
5825 echo ' or you can specify "--disable-ipv6"'.
5826 exit 1
5827 else
5828 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5829 echo ' Better upgrade your system library to newest version'
5830 echo ' of GNU C library (aka glibc).'
5831 fi
5832 fi
5833
5834 fi
5835
5836
5837 for ac_func in getnameinfo
5838 do
5839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5853 #define $ac_func innocuous_$ac_func
5854
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char $ac_func (); below.
5857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5858 <limits.h> exists even on freestanding compilers. */
5859
5860 #ifdef __STDC__
5861 # include <limits.h>
5862 #else
5863 # include <assert.h>
5864 #endif
5865
5866 #undef $ac_func
5867
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5871 #ifdef __cplusplus
5872 extern "C"
5873 #endif
5874 char $ac_func ();
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined __stub_$ac_func || defined __stub___$ac_func
5879 choke me
5880 #endif
5881
5882 int
5883 main ()
5884 {
5885 return $ac_func ();
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (ac_try="$ac_link"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
5908 eval "$as_ac_var=yes"
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 eval "$as_ac_var=no"
5914 fi
5915
5916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917 conftest$ac_exeext conftest.$ac_ext
5918 fi
5919 ac_res=`eval echo '${'$as_ac_var'}'`
5920 { echo "$as_me:$LINENO: result: $ac_res" >&5
5921 echo "${ECHO_T}$ac_res" >&6; }
5922 if test `eval echo '${'$as_ac_var'}'` = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5925 _ACEOF
5926
5927 else
5928 case " $LIBOBJS " in
5929 *" $ac_func.$ac_objext "* ) ;;
5930 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5931 ;;
5932 esac
5933
5934 fi
5935 done
5936
5937
5938 fi
5939
5940 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5941 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5942 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #include <netdnet/dnetdb.h>
5952
5953 _ACEOF
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5956 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5957 else
5958 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5959 fi
5960 rm -f conftest*
5961
5962 fi
5963 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5964 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5965 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5966
5967 cat >>confdefs.h <<\_ACEOF
5968 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5969 _ACEOF
5970
5971 fi
5972
5973
5974 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5975 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5976 if test "${ac_cv_addrinfo+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985
5986 # include <netdb.h>
5987 int
5988 main ()
5989 {
5990 struct addrinfo a
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (ac_try="$ac_compile"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_addrinfo=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ac_cv_addrinfo=no
6018 fi
6019
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 fi
6022
6023 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6024 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
6025 if test $ac_cv_addrinfo = yes; then
6026
6027 cat >>confdefs.h <<\_ACEOF
6028 #define HAVE_ADDRINFO 1
6029 _ACEOF
6030
6031 else
6032
6033 cat >>confdefs.h <<\_ACEOF
6034 #define NEED_ADDRINFO_H 1
6035 _ACEOF
6036
6037 fi
6038
6039 if test "$ac_cv_addrinfo" = no; then
6040 missing_includes=yes
6041 fi
6042
6043
6044 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6045 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
6046 if test "${ac_cv_maxserv+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 cat >conftest.$ac_ext <<_ACEOF
6050 /* confdefs.h. */
6051 _ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <netdb.h>
6056 #ifdef NI_MAXSERV
6057 yes
6058 #endif
6059 _ACEOF
6060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061 $EGREP "yes" >/dev/null 2>&1; then
6062 ac_cv_maxserv=yes
6063 else
6064 ac_cv_maxserv=no
6065 fi
6066 rm -f conftest*
6067
6068 fi
6069
6070 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6071 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
6072 if test $ac_cv_maxserv != yes; then
6073 cat >>confdefs.h <<\_ACEOF
6074 #define NEED_ADDRINFO_H 1
6075 _ACEOF
6076
6077 fi
6078
6079 if test "$ac_cv_maxserv" = no; then
6080 missing_includes=yes
6081 fi
6082
6083
6084 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6085 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
6086 if test "${ac_cv_namereqd+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <netdb.h>
6096 #ifdef NI_NOFQDN
6097 yes
6098 #endif
6099 _ACEOF
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "yes" >/dev/null 2>&1; then
6102 ac_cv_namereqd=yes
6103 else
6104 ac_cv_namereqd=no
6105 fi
6106 rm -f conftest*
6107
6108 fi
6109
6110 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6111 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
6112 if test $ac_cv_namereqd != yes; then
6113 cat >>confdefs.h <<\_ACEOF
6114 #define NEED_ADDRINFO_H 1
6115 _ACEOF
6116
6117 fi
6118
6119 if test "$ac_cv_namereqd" = no; then
6120 missing_includes=yes
6121 fi
6122
6123
6124 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6125 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
6126 if test "${ac_cv_sa_storage+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135
6136 # include <sys/types.h>
6137 # include <sys/socket.h>
6138 int
6139 main ()
6140 {
6141 struct sockaddr_storage s
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 ac_cv_sa_storage=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_cv_sa_storage=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173
6174 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6175 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
6176 if test $ac_cv_sa_storage = yes; then
6177
6178 cat >>confdefs.h <<\_ACEOF
6179 #define HAVE_SOCKADDR_STORAGE 1
6180 _ACEOF
6181
6182 fi
6183
6184 if test "$ac_cv_sa_storage" = no; then
6185 missing_includes=yes
6186 fi
6187
6188
6189
6190
6191
6192
6193
6194 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6195 do
6196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6210 #define $ac_func innocuous_$ac_func
6211
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func (); below.
6214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6215 <limits.h> exists even on freestanding compilers. */
6216
6217 #ifdef __STDC__
6218 # include <limits.h>
6219 #else
6220 # include <assert.h>
6221 #endif
6222
6223 #undef $ac_func
6224
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6228 #ifdef __cplusplus
6229 extern "C"
6230 #endif
6231 char $ac_func ();
6232 /* The GNU C library defines this for functions which it implements
6233 to always fail with ENOSYS. Some functions are actually named
6234 something starting with __ and the normal name is an alias. */
6235 #if defined __stub_$ac_func || defined __stub___$ac_func
6236 choke me
6237 #endif
6238
6239 int
6240 main ()
6241 {
6242 return $ac_func ();
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 eval "$as_ac_var=yes"
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 eval "$as_ac_var=no"
6271 fi
6272
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6274 conftest$ac_exeext conftest.$ac_ext
6275 fi
6276 ac_res=`eval echo '${'$as_ac_var'}'`
6277 { echo "$as_me:$LINENO: result: $ac_res" >&5
6278 echo "${ECHO_T}$ac_res" >&6; }
6279 if test `eval echo '${'$as_ac_var'}'` = yes; then
6280 cat >>confdefs.h <<_ACEOF
6281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6282 _ACEOF
6283
6284 else
6285 case " $LIBOBJS " in
6286 *" $ac_func.$ac_objext "* ) ;;
6287 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6288 ;;
6289 esac
6290
6291 fi
6292 done
6293
6294
6295
6296
6297
6298 for ac_func in fork vfork strftime
6299 do
6300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6314 #define $ac_func innocuous_$ac_func
6315
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func (); below.
6318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6319 <limits.h> exists even on freestanding compilers. */
6320
6321 #ifdef __STDC__
6322 # include <limits.h>
6323 #else
6324 # include <assert.h>
6325 #endif
6326
6327 #undef $ac_func
6328
6329 /* Override any GCC internal prototype to avoid an error.
6330 Use char because int might match the return type of a GCC
6331 builtin and then its argument prototype would still apply. */
6332 #ifdef __cplusplus
6333 extern "C"
6334 #endif
6335 char $ac_func ();
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined __stub_$ac_func || defined __stub___$ac_func
6340 choke me
6341 #endif
6342
6343 int
6344 main ()
6345 {
6346 return $ac_func ();
6347 ;
6348 return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (ac_try="$ac_link"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_link") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest$ac_exeext &&
6368 $as_test_x conftest$ac_exeext; then
6369 eval "$as_ac_var=yes"
6370 else
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 eval "$as_ac_var=no"
6375 fi
6376
6377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6378 conftest$ac_exeext conftest.$ac_ext
6379 fi
6380 ac_res=`eval echo '${'$as_ac_var'}'`
6381 { echo "$as_me:$LINENO: result: $ac_res" >&5
6382 echo "${ECHO_T}$ac_res" >&6; }
6383 if test `eval echo '${'$as_ac_var'}'` = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6386 _ACEOF
6387
6388 fi
6389 done
6390
6391
6392
6393 for ac_func in setlinebuf alarm
6394 do
6395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6409 #define $ac_func innocuous_$ac_func
6410
6411 /* System header to define __stub macros and hopefully few prototypes,
6412 which can conflict with char $ac_func (); below.
6413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6414 <limits.h> exists even on freestanding compilers. */
6415
6416 #ifdef __STDC__
6417 # include <limits.h>
6418 #else
6419 # include <assert.h>
6420 #endif
6421
6422 #undef $ac_func
6423
6424 /* Override any GCC internal prototype to avoid an error.
6425 Use char because int might match the return type of a GCC
6426 builtin and then its argument prototype would still apply. */
6427 #ifdef __cplusplus
6428 extern "C"
6429 #endif
6430 char $ac_func ();
6431 /* The GNU C library defines this for functions which it implements
6432 to always fail with ENOSYS. Some functions are actually named
6433 something starting with __ and the normal name is an alias. */
6434 #if defined __stub_$ac_func || defined __stub___$ac_func
6435 choke me
6436 #endif
6437
6438 int
6439 main ()
6440 {
6441 return $ac_func ();
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext conftest$ac_exeext
6447 if { (ac_try="$ac_link"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_link") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest$ac_exeext &&
6463 $as_test_x conftest$ac_exeext; then
6464 eval "$as_ac_var=yes"
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469 eval "$as_ac_var=no"
6470 fi
6471
6472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6473 conftest$ac_exeext conftest.$ac_ext
6474 fi
6475 ac_res=`eval echo '${'$as_ac_var'}'`
6476 { echo "$as_me:$LINENO: result: $ac_res" >&5
6477 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_var'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6481 _ACEOF
6482
6483 fi
6484 done
6485
6486
6487 needsnprintf=no
6488
6489
6490 for ac_func in vsnprintf snprintf
6491 do
6492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6506 #define $ac_func innocuous_$ac_func
6507
6508 /* System header to define __stub macros and hopefully few prototypes,
6509 which can conflict with char $ac_func (); below.
6510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6511 <limits.h> exists even on freestanding compilers. */
6512
6513 #ifdef __STDC__
6514 # include <limits.h>
6515 #else
6516 # include <assert.h>
6517 #endif
6518
6519 #undef $ac_func
6520
6521 /* Override any GCC internal prototype to avoid an error.
6522 Use char because int might match the return type of a GCC
6523 builtin and then its argument prototype would still apply. */
6524 #ifdef __cplusplus
6525 extern "C"
6526 #endif
6527 char $ac_func ();
6528 /* The GNU C library defines this for functions which it implements
6529 to always fail with ENOSYS. Some functions are actually named
6530 something starting with __ and the normal name is an alias. */
6531 #if defined __stub_$ac_func || defined __stub___$ac_func
6532 choke me
6533 #endif
6534
6535 int
6536 main ()
6537 {
6538 return $ac_func ();
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 rm -f conftest.$ac_objext conftest$ac_exeext
6544 if { (ac_try="$ac_link"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_link") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && {
6557 test -z "$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 } && test -s conftest$ac_exeext &&
6560 $as_test_x conftest$ac_exeext; then
6561 eval "$as_ac_var=yes"
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 eval "$as_ac_var=no"
6567 fi
6568
6569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6570 conftest$ac_exeext conftest.$ac_ext
6571 fi
6572 ac_res=`eval echo '${'$as_ac_var'}'`
6573 { echo "$as_me:$LINENO: result: $ac_res" >&5
6574 echo "${ECHO_T}$ac_res" >&6; }
6575 if test `eval echo '${'$as_ac_var'}'` = yes; then
6576 cat >>confdefs.h <<_ACEOF
6577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6578 _ACEOF
6579
6580 else
6581 needsnprintf=yes
6582 fi
6583 done
6584
6585 if test $needsnprintf = yes; then
6586 case " $LIBOBJS " in
6587 *" snprintf.$ac_objext "* ) ;;
6588 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6589 ;;
6590 esac
6591
6592 fi
6593
6594
6595 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6596 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6597 if test "${ac_cv_type_signal+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #include <sys/types.h>
6607 #include <signal.h>
6608
6609 int
6610 main ()
6611 {
6612 return *(signal (0, 0)) (0) == 1;
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (ac_try="$ac_compile"
6619 case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622 esac
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6634 ac_cv_type_signal=int
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 ac_cv_type_signal=void
6640 fi
6641
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 fi
6644 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6645 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6646
6647 cat >>confdefs.h <<_ACEOF
6648 #define RETSIGTYPE $ac_cv_type_signal
6649 _ACEOF
6650
6651
6652 if test "$ac_cv_type_signal" = void ; then
6653
6654 cat >>confdefs.h <<\_ACEOF
6655 #define RETSIGVAL
6656 _ACEOF
6657
6658 else
6659
6660 cat >>confdefs.h <<\_ACEOF
6661 #define RETSIGVAL (0)
6662 _ACEOF
6663
6664 fi
6665 case "$host_os" in
6666
6667 irix*)
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define _BSD_SIGNALS 1
6671 _ACEOF
6672
6673 ;;
6674
6675 *)
6676
6677 for ac_func in sigaction
6678 do
6679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6693 #define $ac_func innocuous_$ac_func
6694
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char $ac_func (); below.
6697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698 <limits.h> exists even on freestanding compilers. */
6699
6700 #ifdef __STDC__
6701 # include <limits.h>
6702 #else
6703 # include <assert.h>
6704 #endif
6705
6706 #undef $ac_func
6707
6708 /* Override any GCC internal prototype to avoid an error.
6709 Use char because int might match the return type of a GCC
6710 builtin and then its argument prototype would still apply. */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 char $ac_func ();
6715 /* The GNU C library defines this for functions which it implements
6716 to always fail with ENOSYS. Some functions are actually named
6717 something starting with __ and the normal name is an alias. */
6718 #if defined __stub_$ac_func || defined __stub___$ac_func
6719 choke me
6720 #endif
6721
6722 int
6723 main ()
6724 {
6725 return $ac_func ();
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_link") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest$ac_exeext &&
6747 $as_test_x conftest$ac_exeext; then
6748 eval "$as_ac_var=yes"
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 eval "$as_ac_var=no"
6754 fi
6755
6756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6757 conftest$ac_exeext conftest.$ac_ext
6758 fi
6759 ac_res=`eval echo '${'$as_ac_var'}'`
6760 { echo "$as_me:$LINENO: result: $ac_res" >&5
6761 echo "${ECHO_T}$ac_res" >&6; }
6762 if test `eval echo '${'$as_ac_var'}'` = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6765 _ACEOF
6766
6767 fi
6768 done
6769
6770 if test $ac_cv_func_sigaction = no ; then
6771
6772 for ac_func in sigset
6773 do
6774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6788 #define $ac_func innocuous_$ac_func
6789
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char $ac_func (); below.
6792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793 <limits.h> exists even on freestanding compilers. */
6794
6795 #ifdef __STDC__
6796 # include <limits.h>
6797 #else
6798 # include <assert.h>
6799 #endif
6800
6801 #undef $ac_func
6802
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6806 #ifdef __cplusplus
6807 extern "C"
6808 #endif
6809 char $ac_func ();
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined __stub_$ac_func || defined __stub___$ac_func
6814 choke me
6815 #endif
6816
6817 int
6818 main ()
6819 {
6820 return $ac_func ();
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 rm -f conftest.$ac_objext conftest$ac_exeext
6826 if { (ac_try="$ac_link"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_link") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest$ac_exeext &&
6842 $as_test_x conftest$ac_exeext; then
6843 eval "$as_ac_var=yes"
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 eval "$as_ac_var=no"
6849 fi
6850
6851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6852 conftest$ac_exeext conftest.$ac_ext
6853 fi
6854 ac_res=`eval echo '${'$as_ac_var'}'`
6855 { echo "$as_me:$LINENO: result: $ac_res" >&5
6856 echo "${ECHO_T}$ac_res" >&6; }
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6860 _ACEOF
6861
6862 fi
6863 done
6864
6865 fi
6866 ;;
6867 esac
6868
6869 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6870 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6871 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 ac_func_search_save_LIBS=$LIBS
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 char dnet_htoa ();
6889 int
6890 main ()
6891 {
6892 return dnet_htoa ();
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 for ac_lib in '' dnet; do
6898 if test -z "$ac_lib"; then
6899 ac_res="none required"
6900 else
6901 ac_res=-l$ac_lib
6902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6903 fi
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (ac_try="$ac_link"
6906 case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_link") 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest$ac_exeext &&
6921 $as_test_x conftest$ac_exeext; then
6922 ac_cv_search_dnet_htoa=$ac_res
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927
6928 fi
6929
6930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6931 conftest$ac_exeext
6932 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6933 break
6934 fi
6935 done
6936 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6937 :
6938 else
6939 ac_cv_search_dnet_htoa=no
6940 fi
6941 rm conftest.$ac_ext
6942 LIBS=$ac_func_search_save_LIBS
6943 fi
6944 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6945 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6946 ac_res=$ac_cv_search_dnet_htoa
6947 if test "$ac_res" != no; then
6948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6949
6950 cat >>confdefs.h <<\_ACEOF
6951 #define HAVE_DNET_HTOA 1
6952 _ACEOF
6953
6954 fi
6955
6956
6957
6958 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6959 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6960 if test "${ac_cv_lib_rpc_main+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 ac_check_lib_save_LIBS=$LIBS
6964 LIBS="-lrpc $LIBS"
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971
6972
6973 int
6974 main ()
6975 {
6976 return main ();
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
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_lib_rpc_main=yes
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 ac_cv_lib_rpc_main=no
7005 fi
7006
7007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7008 conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7010 fi
7011 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7012 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
7013 if test $ac_cv_lib_rpc_main = yes; then
7014 cat >>confdefs.h <<_ACEOF
7015 #define HAVE_LIBRPC 1
7016 _ACEOF
7017
7018 LIBS="-lrpc $LIBS"
7019
7020 fi
7021
7022 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7023 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
7024 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 ac_func_search_save_LIBS=$LIBS
7028 cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034
7035 /* Override any GCC internal prototype to avoid an error.
7036 Use char because int might match the return type of a GCC
7037 builtin and then its argument prototype would still apply. */
7038 #ifdef __cplusplus
7039 extern "C"
7040 #endif
7041 char getrpcbynumber ();
7042 int
7043 main ()
7044 {
7045 return getrpcbynumber ();
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 for ac_lib in '' nsl; do
7051 if test -z "$ac_lib"; then
7052 ac_res="none required"
7053 else
7054 ac_res=-l$ac_lib
7055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7056 fi
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest$ac_exeext &&
7074 $as_test_x conftest$ac_exeext; then
7075 ac_cv_search_getrpcbynumber=$ac_res
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080
7081 fi
7082
7083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7084 conftest$ac_exeext
7085 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7086 break
7087 fi
7088 done
7089 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7090 :
7091 else
7092 ac_cv_search_getrpcbynumber=no
7093 fi
7094 rm conftest.$ac_ext
7095 LIBS=$ac_func_search_save_LIBS
7096 fi
7097 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7098 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
7099 ac_res=$ac_cv_search_getrpcbynumber
7100 if test "$ac_res" != no; then
7101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define HAVE_GETRPCBYNUMBER 1
7105 _ACEOF
7106
7107 fi
7108
7109
7110
7111
7112 LBL_LIBS="$LIBS"
7113 pfopen=/usr/examples/packetfilter/pfopen.c
7114 if test -f $pfopen ; then
7115
7116 for ac_func in pfopen
7117 do
7118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7132 #define $ac_func innocuous_$ac_func
7133
7134 /* System header to define __stub macros and hopefully few prototypes,
7135 which can conflict with char $ac_func (); below.
7136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7137 <limits.h> exists even on freestanding compilers. */
7138
7139 #ifdef __STDC__
7140 # include <limits.h>
7141 #else
7142 # include <assert.h>
7143 #endif
7144
7145 #undef $ac_func
7146
7147 /* Override any GCC internal prototype to avoid an error.
7148 Use char because int might match the return type of a GCC
7149 builtin and then its argument prototype would still apply. */
7150 #ifdef __cplusplus
7151 extern "C"
7152 #endif
7153 char $ac_func ();
7154 /* The GNU C library defines this for functions which it implements
7155 to always fail with ENOSYS. Some functions are actually named
7156 something starting with __ and the normal name is an alias. */
7157 #if defined __stub_$ac_func || defined __stub___$ac_func
7158 choke me
7159 #endif
7160
7161 int
7162 main ()
7163 {
7164 return $ac_func ();
7165 ;
7166 return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7171 case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_link") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest$ac_exeext &&
7186 $as_test_x conftest$ac_exeext; then
7187 eval "$as_ac_var=yes"
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 eval "$as_ac_var=no"
7193 fi
7194
7195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7196 conftest$ac_exeext conftest.$ac_ext
7197 fi
7198 ac_res=`eval echo '${'$as_ac_var'}'`
7199 { echo "$as_me:$LINENO: result: $ac_res" >&5
7200 echo "${ECHO_T}$ac_res" >&6; }
7201 if test `eval echo '${'$as_ac_var'}'` = yes; then
7202 cat >>confdefs.h <<_ACEOF
7203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7204 _ACEOF
7205
7206 fi
7207 done
7208
7209 if test $ac_cv_func_pfopen = "no" ; then
7210 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7211 echo "${ECHO_T}Using $pfopen" >&6; }
7212 LIBS="$LIBS $pfopen"
7213 fi
7214 fi
7215 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7216 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7217 libpcap=FAIL
7218 lastdir=FAIL
7219 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7220 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7221 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7222 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7223 sed -e 's/-PRE-GIT$//' `
7224 if test $lastdir = $basedir ; then
7225 continue;
7226 fi
7227 lastdir=$dir
7228 if test -r $dir/libpcap.a ; then
7229 libpcap=$dir/libpcap.a
7230 d=$dir
7231 fi
7232 done
7233 if test $libpcap = FAIL ; then
7234 { echo "$as_me:$LINENO: result: not found" >&5
7235 echo "${ECHO_T}not found" >&6; }
7236
7237 #
7238 # Look for pcap-config.
7239 #
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 case $PCAP_CONFIG in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7251 ;;
7252 *)
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268 ;;
7269 esac
7270 fi
7271 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7272 if test -n "$PCAP_CONFIG"; then
7273 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7274 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7275 else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7278 fi
7279
7280
7281 fi
7282 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7283 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7284 # Extract the first word of "pcap-config", so it can be a program name with args.
7285 set dummy pcap-config; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 case $ac_pt_PCAP_CONFIG in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7294 ;;
7295 *)
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 ;;
7312 esac
7313 fi
7314 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7315 if test -n "$ac_pt_PCAP_CONFIG"; then
7316 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7317 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7318 else
7319 { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7321 fi
7322
7323 if test "x$ac_pt_PCAP_CONFIG" = x; then
7324 PCAP_CONFIG=""
7325 else
7326 case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7329 whose name does not start with the host triplet. If you think this
7330 configuration is useful to you, please write to autoconf@gnu.org." >&5
7331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet. If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7334 ac_tool_warned=yes ;;
7335 esac
7336 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7337 fi
7338 else
7339 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7340 fi
7341
7342 if test -n "$PCAP_CONFIG" ; then
7343 #
7344 # Found - use it to get the include flags for
7345 # libpcap and the flags to link with libpcap.
7346 #
7347 # Please read section 11.6 "Shell Substitutions"
7348 # in the autoconf manual before doing anything
7349 # to this that involves quoting. Especially note
7350 # the statement "There is just no portable way to use
7351 # double-quoted strings inside double-quoted back-quoted
7352 # expressions (pfew!)."
7353 #
7354 cflags=`"$PCAP_CONFIG" --cflags`
7355 V_INCLS="$cflags $V_INCLS"
7356 libpcap=`"$PCAP_CONFIG" --libs`
7357 else
7358 #
7359 # Not found; look for pcap.
7360 #
7361 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7362 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7363 if test "${ac_cv_lib_pcap_main+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 ac_check_lib_save_LIBS=$LIBS
7367 LIBS="-lpcap $LIBS"
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374
7375
7376 int
7377 main ()
7378 {
7379 return main ();
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (ac_try="$ac_link"
7386 case "(($ac_try" in
7387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388 *) ac_try_echo=$ac_try;;
7389 esac
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391 (eval "$ac_link") 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest$ac_exeext &&
7401 $as_test_x conftest$ac_exeext; then
7402 ac_cv_lib_pcap_main=yes
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407 ac_cv_lib_pcap_main=no
7408 fi
7409
7410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7411 conftest$ac_exeext conftest.$ac_ext
7412 LIBS=$ac_check_lib_save_LIBS
7413 fi
7414 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7415 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7416 if test $ac_cv_lib_pcap_main = yes; then
7417 libpcap="-lpcap"
7418 fi
7419
7420 if test $libpcap = FAIL ; then
7421 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7422 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7423 { (exit 1); exit 1; }; }
7424 fi
7425 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7426 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7427 if test \( ! -r /usr/local/include/pcap.h \) -a \
7428 \( ! -r /usr/include/pcap.h \); then
7429 if test -r /usr/local/include/pcap/pcap.h; then
7430 d="/usr/local/include/pcap"
7431 elif test -r /usr/include/pcap/pcap.h; then
7432 d="/usr/include/pcap"
7433 fi
7434 fi
7435 if test -z "$d" ; then
7436 { echo "$as_me:$LINENO: result: not found" >&5
7437 echo "${ECHO_T}not found" >&6; }
7438 else
7439 V_INCLS="-I$d $V_INCLS"
7440 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7441 echo "${ECHO_T}found -- -I$d added" >&6; }
7442 fi
7443 fi
7444 else
7445 V_PCAPDEP=$libpcap
7446 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7447 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7448 if test -r $d/pcap.h; then
7449 V_INCLS="-I$d $V_INCLS"
7450 elif test -r $places/pcap.h; then
7451 V_INCLS="-I$places $V_INCLS"
7452 else
7453 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7454 echo "$as_me: error: cannot find pcap.h" >&2;}
7455 { (exit see INSTALL); exit see INSTALL; }; }
7456 fi
7457 { echo "$as_me:$LINENO: result: $libpcap" >&5
7458 echo "${ECHO_T}$libpcap" >&6; }
7459 # Extract the first word of "pcap-config", so it can be a program name with args.
7460 set dummy pcap-config; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466 case $PCAP_CONFIG in
7467 [\\/]* | ?:[\\/]*)
7468 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7469 ;;
7470 *)
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $d
7473 do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482 done
7483 done
7484 IFS=$as_save_IFS
7485
7486 ;;
7487 esac
7488 fi
7489 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7490 if test -n "$PCAP_CONFIG"; then
7491 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7492 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7493 else
7494 { echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6; }
7496 fi
7497
7498
7499 if test -n "$PCAP_CONFIG"; then
7500 #
7501 # The libpcap directory has a pcap-config script.
7502 # Use it to get any additioal libraries needed
7503 # to link with the libpcap archive library in
7504 # that directory.
7505 #
7506 # Please read section 11.6 "Shell Substitutions"
7507 # in the autoconf manual before doing anything
7508 # to this that involves quoting. Especially note
7509 # the statement "There is just no portable way to use
7510 # double-quoted strings inside double-quoted back-quoted
7511 # expressions (pfew!)."
7512 #
7513 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7514 libpcap="$libpcap $additional_libs"
7515 fi
7516 fi
7517 LIBS="$libpcap $LIBS"
7518 if ! test -n "$PCAP_CONFIG" ; then
7519 #
7520 # We don't have pcap-config; find out any additional link flags
7521 # we need. (If we have pcap-config, we assume it tells us what
7522 # we need.)
7523 #
7524 case "$host_os" in
7525
7526 aix*)
7527 #
7528 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7529 # present, as we use the STREAMS routines.
7530 #
7531 # (XXX - true only if we're linking with a static libpcap?)
7532 #
7533 pseexe="/lib/pse.exp"
7534 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7535 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7536 if test -f $pseexe ; then
7537 { echo "$as_me:$LINENO: result: yes" >&5
7538 echo "${ECHO_T}yes" >&6; }
7539 LIBS="$LIBS -I:$pseexe"
7540 fi
7541
7542 #
7543 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7544 # we use them to load the BPF module.
7545 #
7546 # (XXX - true only if we're linking with a static libpcap?)
7547 #
7548 LIBS="$LIBS -lodm -lcfg"
7549 ;;
7550 esac
7551 fi
7552
7553 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7554 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7555 if test "${ac_cv_func_pcap_loop+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7566 #define pcap_loop innocuous_pcap_loop
7567
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char pcap_loop (); below.
7570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7571 <limits.h> exists even on freestanding compilers. */
7572
7573 #ifdef __STDC__
7574 # include <limits.h>
7575 #else
7576 # include <assert.h>
7577 #endif
7578
7579 #undef pcap_loop
7580
7581 /* Override any GCC internal prototype to avoid an error.
7582 Use char because int might match the return type of a GCC
7583 builtin and then its argument prototype would still apply. */
7584 #ifdef __cplusplus
7585 extern "C"
7586 #endif
7587 char pcap_loop ();
7588 /* The GNU C library defines this for functions which it implements
7589 to always fail with ENOSYS. Some functions are actually named
7590 something starting with __ and the normal name is an alias. */
7591 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7592 choke me
7593 #endif
7594
7595 int
7596 main ()
7597 {
7598 return pcap_loop ();
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext &&
7620 $as_test_x conftest$ac_exeext; then
7621 ac_cv_func_pcap_loop=yes
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 ac_cv_func_pcap_loop=no
7627 fi
7628
7629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7630 conftest$ac_exeext conftest.$ac_ext
7631 fi
7632 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7633 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7634 if test $ac_cv_func_pcap_loop = yes; then
7635 :
7636 else
7637
7638 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7639 config.log file in your report. If you have downloaded libpcap from
7640 tcpdump.org, and built it yourself, please also include the config.log
7641 file from the libpcap source directory, the Makefile from the libpcap
7642 source directory, and the output of the make process for libpcap, as
7643 this could be a problem with the libpcap that was built, and we will
7644 not be able to determine why this is happening, and thus will not be
7645 able to fix it, without that information, as we have not been able to
7646 reproduce this problem ourselves." >&5
7647 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7648 config.log file in your report. If you have downloaded libpcap from
7649 tcpdump.org, and built it yourself, please also include the config.log
7650 file from the libpcap source directory, the Makefile from the libpcap
7651 source directory, and the output of the make process for libpcap, as
7652 this could be a problem with the libpcap that was built, and we will
7653 not be able to determine why this is happening, and thus will not be
7654 able to fix it, without that information, as we have not been able to
7655 reproduce this problem ourselves." >&2;}
7656 { (exit 1); exit 1; }; }
7657
7658 fi
7659
7660
7661 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7662 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7663 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h. */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7674 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7675
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char pcap_list_datalinks (); below.
7678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7679 <limits.h> exists even on freestanding compilers. */
7680
7681 #ifdef __STDC__
7682 # include <limits.h>
7683 #else
7684 # include <assert.h>
7685 #endif
7686
7687 #undef pcap_list_datalinks
7688
7689 /* Override any GCC internal prototype to avoid an error.
7690 Use char because int might match the return type of a GCC
7691 builtin and then its argument prototype would still apply. */
7692 #ifdef __cplusplus
7693 extern "C"
7694 #endif
7695 char pcap_list_datalinks ();
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7700 choke me
7701 #endif
7702
7703 int
7704 main ()
7705 {
7706 return pcap_list_datalinks ();
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext conftest$ac_exeext
7712 if { (ac_try="$ac_link"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_link") 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest$ac_exeext &&
7728 $as_test_x conftest$ac_exeext; then
7729 ac_cv_func_pcap_list_datalinks=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_func_pcap_list_datalinks=no
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738 conftest$ac_exeext conftest.$ac_ext
7739 fi
7740 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7741 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7742 if test $ac_cv_func_pcap_list_datalinks = yes; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_PCAP_LIST_DATALINKS 1
7746 _ACEOF
7747
7748 else
7749
7750 case " $LIBOBJS " in
7751 *" datalinks.$ac_objext "* ) ;;
7752 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7753 ;;
7754 esac
7755
7756
7757 fi
7758
7759 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7760 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7761 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7772 #define pcap_set_datalink innocuous_pcap_set_datalink
7773
7774 /* System header to define __stub macros and hopefully few prototypes,
7775 which can conflict with char pcap_set_datalink (); below.
7776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7777 <limits.h> exists even on freestanding compilers. */
7778
7779 #ifdef __STDC__
7780 # include <limits.h>
7781 #else
7782 # include <assert.h>
7783 #endif
7784
7785 #undef pcap_set_datalink
7786
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char pcap_set_datalink ();
7794 /* The GNU C library defines this for functions which it implements
7795 to always fail with ENOSYS. Some functions are actually named
7796 something starting with __ and the normal name is an alias. */
7797 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7798 choke me
7799 #endif
7800
7801 int
7802 main ()
7803 {
7804 return pcap_set_datalink ();
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7811 case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_link") 2>conftest.er1
7817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest$ac_exeext &&
7826 $as_test_x conftest$ac_exeext; then
7827 ac_cv_func_pcap_set_datalink=yes
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 ac_cv_func_pcap_set_datalink=no
7833 fi
7834
7835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7836 conftest$ac_exeext conftest.$ac_ext
7837 fi
7838 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7839 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7840 if test $ac_cv_func_pcap_set_datalink = yes; then
7841
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_PCAP_SET_DATALINK 1
7844 _ACEOF
7845
7846 fi
7847
7848 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7849 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7850 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7861 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7862
7863 /* System header to define __stub macros and hopefully few prototypes,
7864 which can conflict with char pcap_datalink_name_to_val (); below.
7865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7866 <limits.h> exists even on freestanding compilers. */
7867
7868 #ifdef __STDC__
7869 # include <limits.h>
7870 #else
7871 # include <assert.h>
7872 #endif
7873
7874 #undef pcap_datalink_name_to_val
7875
7876 /* Override any GCC internal prototype to avoid an error.
7877 Use char because int might match the return type of a GCC
7878 builtin and then its argument prototype would still apply. */
7879 #ifdef __cplusplus
7880 extern "C"
7881 #endif
7882 char pcap_datalink_name_to_val ();
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7887 choke me
7888 #endif
7889
7890 int
7891 main ()
7892 {
7893 return pcap_datalink_name_to_val ();
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (ac_try="$ac_link"
7900 case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_link") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest$ac_exeext &&
7915 $as_test_x conftest$ac_exeext; then
7916 ac_cv_func_pcap_datalink_name_to_val=yes
7917 else
7918 echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921 ac_cv_func_pcap_datalink_name_to_val=no
7922 fi
7923
7924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7925 conftest$ac_exeext conftest.$ac_ext
7926 fi
7927 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7928 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7929 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7930
7931
7932 cat >>confdefs.h <<\_ACEOF
7933 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7934 _ACEOF
7935
7936 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7937 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7938 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7949 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7950
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char pcap_datalink_val_to_description (); below.
7953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 <limits.h> exists even on freestanding compilers. */
7955
7956 #ifdef __STDC__
7957 # include <limits.h>
7958 #else
7959 # include <assert.h>
7960 #endif
7961
7962 #undef pcap_datalink_val_to_description
7963
7964 /* Override any GCC internal prototype to avoid an error.
7965 Use char because int might match the return type of a GCC
7966 builtin and then its argument prototype would still apply. */
7967 #ifdef __cplusplus
7968 extern "C"
7969 #endif
7970 char pcap_datalink_val_to_description ();
7971 /* The GNU C library defines this for functions which it implements
7972 to always fail with ENOSYS. Some functions are actually named
7973 something starting with __ and the normal name is an alias. */
7974 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7975 choke me
7976 #endif
7977
7978 int
7979 main ()
7980 {
7981 return pcap_datalink_val_to_description ();
7982 ;
7983 return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7988 case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest$ac_exeext &&
8003 $as_test_x conftest$ac_exeext; then
8004 ac_cv_func_pcap_datalink_val_to_description=yes
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009 ac_cv_func_pcap_datalink_val_to_description=no
8010 fi
8011
8012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013 conftest$ac_exeext conftest.$ac_ext
8014 fi
8015 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8016 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
8017 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8018
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8021 _ACEOF
8022
8023 else
8024
8025 case " $LIBOBJS " in
8026 *" dlnames.$ac_objext "* ) ;;
8027 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8028 ;;
8029 esac
8030
8031
8032 fi
8033
8034
8035 else
8036
8037 case " $LIBOBJS " in
8038 *" dlnames.$ac_objext "* ) ;;
8039 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8040 ;;
8041 esac
8042
8043
8044 fi
8045
8046
8047
8048 for ac_func in pcap_breakloop
8049 do
8050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8064 #define $ac_func innocuous_$ac_func
8065
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char $ac_func (); below.
8068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8069 <limits.h> exists even on freestanding compilers. */
8070
8071 #ifdef __STDC__
8072 # include <limits.h>
8073 #else
8074 # include <assert.h>
8075 #endif
8076
8077 #undef $ac_func
8078
8079 /* Override any GCC internal prototype to avoid an error.
8080 Use char because int might match the return type of a GCC
8081 builtin and then its argument prototype would still apply. */
8082 #ifdef __cplusplus
8083 extern "C"
8084 #endif
8085 char $ac_func ();
8086 /* The GNU C library defines this for functions which it implements
8087 to always fail with ENOSYS. Some functions are actually named
8088 something starting with __ and the normal name is an alias. */
8089 #if defined __stub_$ac_func || defined __stub___$ac_func
8090 choke me
8091 #endif
8092
8093 int
8094 main ()
8095 {
8096 return $ac_func ();
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (ac_try="$ac_link"
8103 case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_link") 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest$ac_exeext &&
8118 $as_test_x conftest$ac_exeext; then
8119 eval "$as_ac_var=yes"
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 eval "$as_ac_var=no"
8125 fi
8126
8127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8128 conftest$ac_exeext conftest.$ac_ext
8129 fi
8130 ac_res=`eval echo '${'$as_ac_var'}'`
8131 { echo "$as_me:$LINENO: result: $ac_res" >&5
8132 echo "${ECHO_T}$ac_res" >&6; }
8133 if test `eval echo '${'$as_ac_var'}'` = yes; then
8134 cat >>confdefs.h <<_ACEOF
8135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8136 _ACEOF
8137
8138 fi
8139 done
8140
8141
8142 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8143 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8144 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8155 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8156
8157 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char pcap_dump_ftell (); below.
8159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8160 <limits.h> exists even on freestanding compilers. */
8161
8162 #ifdef __STDC__
8163 # include <limits.h>
8164 #else
8165 # include <assert.h>
8166 #endif
8167
8168 #undef pcap_dump_ftell
8169
8170 /* Override any GCC internal prototype to avoid an error.
8171 Use char because int might match the return type of a GCC
8172 builtin and then its argument prototype would still apply. */
8173 #ifdef __cplusplus
8174 extern "C"
8175 #endif
8176 char pcap_dump_ftell ();
8177 /* The GNU C library defines this for functions which it implements
8178 to always fail with ENOSYS. Some functions are actually named
8179 something starting with __ and the normal name is an alias. */
8180 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8181 choke me
8182 #endif
8183
8184 int
8185 main ()
8186 {
8187 return pcap_dump_ftell ();
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (ac_try="$ac_link"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_link") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest$ac_exeext &&
8209 $as_test_x conftest$ac_exeext; then
8210 ac_cv_func_pcap_dump_ftell=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_func_pcap_dump_ftell=no
8216 fi
8217
8218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8219 conftest$ac_exeext conftest.$ac_ext
8220 fi
8221 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8222 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8223 if test $ac_cv_func_pcap_dump_ftell = yes; then
8224
8225 cat >>confdefs.h <<\_ACEOF
8226 #define HAVE_PCAP_DUMP_FTELL 1
8227 _ACEOF
8228
8229 else
8230
8231 case " $LIBOBJS " in
8232 *" pcap_dump_ftell.$ac_objext "* ) ;;
8233 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8234 ;;
8235 esac
8236
8237
8238 fi
8239
8240
8241
8242 #
8243 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8244 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8245 #
8246 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8247 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8248 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8249 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8250 # it does not ship with a libc symbol "inet_ntop()", it ships with
8251 # "_inet_ntop()", and has a #define macro in one of the system headers
8252 # to rename it.
8253 #
8254 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8255 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/socket.h>
8264 #include <netinet/in.h>
8265 #include <arpa/inet.h>
8266 int
8267 main ()
8268 {
8269 char src[4], dst[128];
8270 inet_ntop(AF_INET, src, dst, sizeof(dst));
8271 ;
8272 return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8277 case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest$ac_exeext &&
8292 $as_test_x conftest$ac_exeext; then
8293 { echo "$as_me:$LINENO: result: yes" >&5
8294 echo "${ECHO_T}yes" >&6; }
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8301 case " $LIBOBJS " in
8302 *" inet_ntop.$ac_objext "* ) ;;
8303 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8304 ;;
8305 esac
8306
8307 fi
8308
8309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8311 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8312 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <sys/socket.h>
8321 #include <netinet/in.h>
8322 #include <arpa/inet.h>
8323 int
8324 main ()
8325 {
8326 char src[128], dst[4];
8327 inet_pton(AF_INET, src, dst);
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (ac_try="$ac_link"
8334 case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_link") 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest$ac_exeext &&
8349 $as_test_x conftest$ac_exeext; then
8350 { echo "$as_me:$LINENO: result: yes" >&5
8351 echo "${ECHO_T}yes" >&6; }
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 { echo "$as_me:$LINENO: result: no" >&5
8357 echo "${ECHO_T}no" >&6; }
8358 case " $LIBOBJS " in
8359 *" inet_pton.$ac_objext "* ) ;;
8360 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8361 ;;
8362 esac
8363
8364 fi
8365
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8369 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 #include <sys/types.h>
8377 #include <netinet/in.h>
8378 #include <arpa/inet.h>
8379 int
8380 main ()
8381 {
8382 char src[128];
8383 struct in_addr dst;
8384 inet_aton(src, &dst);
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 { echo "$as_me:$LINENO: result: yes" >&5
8408 echo "${ECHO_T}yes" >&6; }
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 { echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6; }
8415 case " $LIBOBJS " in
8416 *" inet_aton.$ac_objext "* ) ;;
8417 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8418 ;;
8419 esac
8420
8421 fi
8422
8423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8424 conftest$ac_exeext conftest.$ac_ext
8425
8426 #
8427 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8428 #
8429 # You are in a twisty little maze of UN*Xes, all different.
8430 # Some might not have ether_ntohost().
8431 # Some might have it, but not declare it in any header file.
8432 # Some might have it, but declare it in <netinet/if_ether.h>.
8433 # Some might have it, but declare it in <netinet/ether.h>
8434 # (And some might have it but document it as something declared in
8435 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8436 #
8437 # Before you is a C compiler.
8438 #
8439
8440 for ac_func in ether_ntohost
8441 do
8442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8456 #define $ac_func innocuous_$ac_func
8457
8458 /* System header to define __stub macros and hopefully few prototypes,
8459 which can conflict with char $ac_func (); below.
8460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8461 <limits.h> exists even on freestanding compilers. */
8462
8463 #ifdef __STDC__
8464 # include <limits.h>
8465 #else
8466 # include <assert.h>
8467 #endif
8468
8469 #undef $ac_func
8470
8471 /* Override any GCC internal prototype to avoid an error.
8472 Use char because int might match the return type of a GCC
8473 builtin and then its argument prototype would still apply. */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 char $ac_func ();
8478 /* The GNU C library defines this for functions which it implements
8479 to always fail with ENOSYS. Some functions are actually named
8480 something starting with __ and the normal name is an alias. */
8481 #if defined __stub_$ac_func || defined __stub___$ac_func
8482 choke me
8483 #endif
8484
8485 int
8486 main ()
8487 {
8488 return $ac_func ();
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (ac_try="$ac_link"
8495 case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_link") 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest$ac_exeext &&
8510 $as_test_x conftest$ac_exeext; then
8511 eval "$as_ac_var=yes"
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 eval "$as_ac_var=no"
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8520 conftest$ac_exeext conftest.$ac_ext
8521 fi
8522 ac_res=`eval echo '${'$as_ac_var'}'`
8523 { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8525 if test `eval echo '${'$as_ac_var'}'` = yes; then
8526 cat >>confdefs.h <<_ACEOF
8527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8528 _ACEOF
8529
8530 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8531 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8532 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535
8536 if test "$cross_compiling" = yes; then
8537 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8538 else
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545
8546 #include <netdb.h>
8547 #include <sys/types.h>
8548 #include <sys/param.h>
8549 #include <sys/socket.h>
8550
8551 int
8552 main(int argc, char **argv)
8553 {
8554 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8555 char name[MAXHOSTNAMELEN];
8556
8557 ether_ntohost(name, (struct ether_addr *)ea);
8558 exit(0);
8559 }
8560
8561 _ACEOF
8562 rm -f conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_buggy_ether_ntohost=no
8583 else
8584 echo "$as_me: program exited with status $ac_status" >&5
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ( exit $ac_status )
8589 ac_cv_buggy_ether_ntohost=yes
8590 fi
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8592 fi
8593
8594
8595 fi
8596 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8597 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8598 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8599
8600 cat >>confdefs.h <<\_ACEOF
8601 #define USE_ETHER_NTOHOST 1
8602 _ACEOF
8603
8604 fi
8605
8606 fi
8607 done
8608
8609 if test "$ac_cv_func_ether_ntohost" = yes -a \
8610 "$ac_cv_buggy_ether_ntohost" = "no"; then
8611 #
8612 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8613 #
8614 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8615 #
8616 # Yes. Does it declare ether_ntohost()?
8617 #
8618 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8619 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8620 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h. */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629
8630 #include <sys/types.h>
8631 #include <sys/socket.h>
8632 #include <netinet/in.h>
8633 #include <arpa/inet.h>
8634 struct mbuf;
8635 struct rtentry;
8636 #include <net/if.h>
8637 #include <netinet/if_ether.h>
8638
8639
8640 int
8641 main ()
8642 {
8643 #ifndef ether_ntohost
8644 (void) ether_ntohost;
8645 #endif
8646
8647 ;
8648 return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8653 case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.$ac_objext; then
8668 ac_cv_have_decl_ether_ntohost=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673 ac_cv_have_decl_ether_ntohost=no
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 fi
8678 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8679 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8680 if test $ac_cv_have_decl_ether_ntohost = yes; then
8681
8682
8683 cat >>confdefs.h <<\_ACEOF
8684 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8685 _ACEOF
8686
8687
8688 fi
8689
8690 fi
8691 #
8692 # Did that succeed?
8693 #
8694 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8695 #
8696 # No, how about <netinet/ether.h>, as on Linux?
8697 #
8698
8699 for ac_header in netinet/ether.h
8700 do
8701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 fi
8708 ac_res=`eval echo '${'$as_ac_Header'}'`
8709 { echo "$as_me:$LINENO: result: $ac_res" >&5
8710 echo "${ECHO_T}$ac_res" >&6; }
8711 else
8712 # Is the header compilable?
8713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #include <$ac_header>
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8726 case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 ac_header_compiler=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 ac_header_compiler=no
8747 fi
8748
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8751 echo "${ECHO_T}$ac_header_compiler" >&6; }
8752
8753 # Is the header present?
8754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <$ac_header>
8763 _ACEOF
8764 if { (ac_try="$ac_cpp conftest.$ac_ext"
8765 case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8771 ac_status=$?
8772 grep -v '^ *+' conftest.er1 >conftest.err
8773 rm -f conftest.er1
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } >/dev/null && {
8777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 }; then
8780 ac_header_preproc=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 ac_header_preproc=no
8786 fi
8787
8788 rm -f conftest.err conftest.$ac_ext
8789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8790 echo "${ECHO_T}$ac_header_preproc" >&6; }
8791
8792 # So? What about this header?
8793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8794 yes:no: )
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8799 ac_header_preproc=yes
8800 ;;
8801 no:yes:* )
8802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8814
8815 ;;
8816 esac
8817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 eval "$as_ac_Header=\$ac_header_preproc"
8823 fi
8824 ac_res=`eval echo '${'$as_ac_Header'}'`
8825 { echo "$as_me:$LINENO: result: $ac_res" >&5
8826 echo "${ECHO_T}$ac_res" >&6; }
8827
8828 fi
8829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8830 cat >>confdefs.h <<_ACEOF
8831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8832 _ACEOF
8833
8834 fi
8835
8836 done
8837
8838 if test "$ac_cv_header_netinet_ether_h" = yes; then
8839 #
8840 # We have it - does it declare ether_ntohost()?
8841 # Unset ac_cv_have_decl_ether_ntohost so we don't
8842 # treat the previous failure as a cached value and
8843 # suppress the next test.
8844 #
8845 unset ac_cv_have_decl_ether_ntohost
8846 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8847 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8848 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857
8858 #include <netinet/ether.h>
8859
8860
8861 int
8862 main ()
8863 {
8864 #ifndef ether_ntohost
8865 (void) ether_ntohost;
8866 #endif
8867
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_have_decl_ether_ntohost=yes
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_cv_have_decl_ether_ntohost=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_have_decl_ether_ntohost" >&5
8900 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8901 if test $ac_cv_have_decl_ether_ntohost = yes; then
8902
8903
8904 cat >>confdefs.h <<\_ACEOF
8905 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8906 _ACEOF
8907
8908
8909 fi
8910
8911 fi
8912 fi
8913 #
8914 # Is ether_ntohost() declared?
8915 #
8916 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8917 #
8918 # No, we'll have to declare it ourselves.
8919 # Do we have "struct ether_addr"?
8920 #
8921 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8922 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8923 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932
8933 #include <sys/types.h>
8934 #include <sys/socket.h>
8935 #include <netinet/in.h>
8936 #include <arpa/inet.h>
8937 struct mbuf;
8938 struct rtentry;
8939 #include <net/if.h>
8940 #include <netinet/if_ether.h>
8941
8942
8943 typedef struct ether_addr ac__type_new_;
8944 int
8945 main ()
8946 {
8947 if ((ac__type_new_ *) 0)
8948 return 0;
8949 if (sizeof (ac__type_new_))
8950 return 0;
8951 ;
8952 return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 ac_cv_type_struct_ether_addr=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_cv_type_struct_ether_addr=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8983 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8984 if test $ac_cv_type_struct_ether_addr = yes; then
8985
8986 cat >>confdefs.h <<_ACEOF
8987 #define HAVE_STRUCT_ETHER_ADDR 1
8988 _ACEOF
8989
8990
8991 fi
8992
8993
8994 cat >>confdefs.h <<\_ACEOF
8995 #define HAVE_DECL_ETHER_NTOHOST 0
8996 _ACEOF
8997
8998 else
8999
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_DECL_ETHER_NTOHOST 1
9002 _ACEOF
9003
9004 fi
9005 fi
9006
9007 # libdlpi is needed for Solaris 11 and later.
9008 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
9009 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
9010 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 ac_check_lib_save_LIBS=$LIBS
9014 LIBS="-ldlpi -L/lib $LIBS"
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h. */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025 #ifdef __cplusplus
9026 extern "C"
9027 #endif
9028 char dlpi_walk ();
9029 int
9030 main ()
9031 {
9032 return dlpi_walk ();
9033 ;
9034 return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (ac_try="$ac_link"
9039 case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9042 esac
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044 (eval "$ac_link") 2>conftest.er1
9045 ac_status=$?
9046 grep -v '^ *+' conftest.er1 >conftest.err
9047 rm -f conftest.er1
9048 cat conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } && {
9051 test -z "$ac_c_werror_flag" ||
9052 test ! -s conftest.err
9053 } && test -s conftest$ac_exeext &&
9054 $as_test_x conftest$ac_exeext; then
9055 ac_cv_lib_dlpi_dlpi_walk=yes
9056 else
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 ac_cv_lib_dlpi_dlpi_walk=no
9061 fi
9062
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9066 fi
9067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
9068 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
9069 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
9070 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
9071 fi
9072
9073
9074
9075 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9076 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
9077 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 cat >conftest.$ac_ext <<_ACEOF
9081 /* confdefs.h. */
9082 _ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086
9087 # include <sys/types.h>
9088 # include <sys/socket.h>
9089 int
9090 main ()
9091 {
9092 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9099 case "(($ac_try" in
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest.$ac_objext; then
9114 ac_cv_sockaddr_has_sa_len=yes
9115 else
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119 ac_cv_sockaddr_has_sa_len=no
9120 fi
9121
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123 fi
9124
9125 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9126 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9127 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9128 cat >>confdefs.h <<\_ACEOF
9129 #define HAVE_SOCKADDR_SA_LEN 1
9130 _ACEOF
9131
9132 fi
9133
9134 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9135 missing_includes=yes
9136 fi
9137
9138 #
9139 # Do we have the new open API? Check for pcap_create, and assume that,
9140 # if we do, we also have pcap_activate() and the other new routines
9141 # introduced in libpcap 1.0.0.
9142 #
9143
9144 for ac_func in pcap_create
9145 do
9146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9160 #define $ac_func innocuous_$ac_func
9161
9162 /* System header to define __stub macros and hopefully few prototypes,
9163 which can conflict with char $ac_func (); below.
9164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9165 <limits.h> exists even on freestanding compilers. */
9166
9167 #ifdef __STDC__
9168 # include <limits.h>
9169 #else
9170 # include <assert.h>
9171 #endif
9172
9173 #undef $ac_func
9174
9175 /* Override any GCC internal prototype to avoid an error.
9176 Use char because int might match the return type of a GCC
9177 builtin and then its argument prototype would still apply. */
9178 #ifdef __cplusplus
9179 extern "C"
9180 #endif
9181 char $ac_func ();
9182 /* The GNU C library defines this for functions which it implements
9183 to always fail with ENOSYS. Some functions are actually named
9184 something starting with __ and the normal name is an alias. */
9185 #if defined __stub_$ac_func || defined __stub___$ac_func
9186 choke me
9187 #endif
9188
9189 int
9190 main ()
9191 {
9192 return $ac_func ();
9193 ;
9194 return 0;
9195 }
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9199 case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202 esac
9203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_link") 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } && {
9211 test -z "$ac_c_werror_flag" ||
9212 test ! -s conftest.err
9213 } && test -s conftest$ac_exeext &&
9214 $as_test_x conftest$ac_exeext; then
9215 eval "$as_ac_var=yes"
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 eval "$as_ac_var=no"
9221 fi
9222
9223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9224 conftest$ac_exeext conftest.$ac_ext
9225 fi
9226 ac_res=`eval echo '${'$as_ac_var'}'`
9227 { echo "$as_me:$LINENO: result: $ac_res" >&5
9228 echo "${ECHO_T}$ac_res" >&6; }
9229 if test `eval echo '${'$as_ac_var'}'` = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9232 _ACEOF
9233
9234 fi
9235 done
9236
9237 if test $ac_cv_func_pcap_create = "yes" ; then
9238 #
9239 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9240 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9241 #
9242
9243 for ac_func in pcap_set_tstamp_type
9244 do
9245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9259 #define $ac_func innocuous_$ac_func
9260
9261 /* System header to define __stub macros and hopefully few prototypes,
9262 which can conflict with char $ac_func (); below.
9263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9264 <limits.h> exists even on freestanding compilers. */
9265
9266 #ifdef __STDC__
9267 # include <limits.h>
9268 #else
9269 # include <assert.h>
9270 #endif
9271
9272 #undef $ac_func
9273
9274 /* Override any GCC internal prototype to avoid an error.
9275 Use char because int might match the return type of a GCC
9276 builtin and then its argument prototype would still apply. */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 char $ac_func ();
9281 /* The GNU C library defines this for functions which it implements
9282 to always fail with ENOSYS. Some functions are actually named
9283 something starting with __ and the normal name is an alias. */
9284 #if defined __stub_$ac_func || defined __stub___$ac_func
9285 choke me
9286 #endif
9287
9288 int
9289 main ()
9290 {
9291 return $ac_func ();
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext conftest$ac_exeext
9297 if { (ac_try="$ac_link"
9298 case "(($ac_try" in
9299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300 *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303 (eval "$ac_link") 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } && {
9310 test -z "$ac_c_werror_flag" ||
9311 test ! -s conftest.err
9312 } && test -s conftest$ac_exeext &&
9313 $as_test_x conftest$ac_exeext; then
9314 eval "$as_ac_var=yes"
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 eval "$as_ac_var=no"
9320 fi
9321
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 fi
9325 ac_res=`eval echo '${'$as_ac_var'}'`
9326 { echo "$as_me:$LINENO: result: $ac_res" >&5
9327 echo "${ECHO_T}$ac_res" >&6; }
9328 if test `eval echo '${'$as_ac_var'}'` = yes; then
9329 cat >>confdefs.h <<_ACEOF
9330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9331 _ACEOF
9332
9333 fi
9334 done
9335
9336 fi
9337
9338
9339
9340
9341 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9342 do
9343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349 cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h. */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9357 #define $ac_func innocuous_$ac_func
9358
9359 /* System header to define __stub macros and hopefully few prototypes,
9360 which can conflict with char $ac_func (); below.
9361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9362 <limits.h> exists even on freestanding compilers. */
9363
9364 #ifdef __STDC__
9365 # include <limits.h>
9366 #else
9367 # include <assert.h>
9368 #endif
9369
9370 #undef $ac_func
9371
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 char $ac_func ();
9379 /* The GNU C library defines this for functions which it implements
9380 to always fail with ENOSYS. Some functions are actually named
9381 something starting with __ and the normal name is an alias. */
9382 #if defined __stub_$ac_func || defined __stub___$ac_func
9383 choke me
9384 #endif
9385
9386 int
9387 main ()
9388 {
9389 return $ac_func ();
9390 ;
9391 return 0;
9392 }
9393 _ACEOF
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (ac_try="$ac_link"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_link") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest$ac_exeext &&
9411 $as_test_x conftest$ac_exeext; then
9412 eval "$as_ac_var=yes"
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417 eval "$as_ac_var=no"
9418 fi
9419
9420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9421 conftest$ac_exeext conftest.$ac_ext
9422 fi
9423 ac_res=`eval echo '${'$as_ac_var'}'`
9424 { echo "$as_me:$LINENO: result: $ac_res" >&5
9425 echo "${ECHO_T}$ac_res" >&6; }
9426 if test `eval echo '${'$as_ac_var'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9429 _ACEOF
9430
9431 fi
9432 done
9433
9434 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9435 savedcppflags="$CPPFLAGS"
9436 CPPFLAGS="$CPPFLAGS $V_INCLS"
9437 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9438 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9439 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <pcap.h>
9449
9450 typedef pcap_if_t ac__type_new_;
9451 int
9452 main ()
9453 {
9454 if ((ac__type_new_ *) 0)
9455 return 0;
9456 if (sizeof (ac__type_new_))
9457 return 0;
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest.$ac_objext; then
9479 ac_cv_type_pcap_if_t=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9483
9484 ac_cv_type_pcap_if_t=no
9485 fi
9486
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9490 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9491 if test $ac_cv_type_pcap_if_t = yes; then
9492
9493 cat >>confdefs.h <<_ACEOF
9494 #define HAVE_PCAP_IF_T 1
9495 _ACEOF
9496
9497
9498 fi
9499
9500 CPPFLAGS="$savedcppflags"
9501 fi
9502
9503 if test $ac_cv_func_pcap_lib_version = "no" ; then
9504 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9505 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512
9513 int
9514 main ()
9515 {
9516
9517 extern char pcap_version[];
9518
9519 return (int)pcap_version;
9520
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_lbl_cv_pcap_version_defined=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_lbl_cv_pcap_version_defined=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9554 { echo "$as_me:$LINENO: result: yes" >&5
9555 echo "${ECHO_T}yes" >&6; }
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_PCAP_VERSION 1
9559 _ACEOF
9560
9561 else
9562 { echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6; }
9564 fi
9565 fi
9566 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9567 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574
9575 int
9576 main ()
9577 {
9578
9579 extern int pcap_debug;
9580
9581 return pcap_debug;
9582
9583 ;
9584 return 0;
9585 }
9586 _ACEOF
9587 rm -f conftest.$ac_objext conftest$ac_exeext
9588 if { (ac_try="$ac_link"
9589 case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && {
9601 test -z "$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 } && test -s conftest$ac_exeext &&
9604 $as_test_x conftest$ac_exeext; then
9605 ac_lbl_cv_pcap_debug_defined=yes
9606 else
9607 echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610 ac_lbl_cv_pcap_debug_defined=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9614 conftest$ac_exeext conftest.$ac_ext
9615 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9616 { echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6; }
9618
9619 cat >>confdefs.h <<\_ACEOF
9620 #define HAVE_PCAP_DEBUG 1
9621 _ACEOF
9622
9623 else
9624 { echo "$as_me:$LINENO: result: no" >&5
9625 echo "${ECHO_T}no" >&6; }
9626 #
9627 # OK, what about "yydebug"?
9628 #
9629 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9630 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637
9638 int
9639 main ()
9640 {
9641
9642 extern int yydebug;
9643
9644 return yydebug;
9645
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext &&
9667 $as_test_x conftest$ac_exeext; then
9668 ac_lbl_cv_yydebug_defined=yes
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_lbl_cv_yydebug_defined=no
9674 fi
9675
9676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677 conftest$ac_exeext conftest.$ac_ext
9678 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9679 { echo "$as_me:$LINENO: result: yes" >&5
9680 echo "${ECHO_T}yes" >&6; }
9681
9682 cat >>confdefs.h <<\_ACEOF
9683 #define HAVE_YYDEBUG 1
9684 _ACEOF
9685
9686 else
9687 { echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6; }
9689 fi
9690 fi
9691
9692 for ac_func in bpf_dump
9693 do
9694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h. */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9708 #define $ac_func innocuous_$ac_func
9709
9710 /* System header to define __stub macros and hopefully few prototypes,
9711 which can conflict with char $ac_func (); below.
9712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713 <limits.h> exists even on freestanding compilers. */
9714
9715 #ifdef __STDC__
9716 # include <limits.h>
9717 #else
9718 # include <assert.h>
9719 #endif
9720
9721 #undef $ac_func
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char $ac_func ();
9730 /* The GNU C library defines this for functions which it implements
9731 to always fail with ENOSYS. Some functions are actually named
9732 something starting with __ and the normal name is an alias. */
9733 #if defined __stub_$ac_func || defined __stub___$ac_func
9734 choke me
9735 #endif
9736
9737 int
9738 main ()
9739 {
9740 return $ac_func ();
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest$ac_exeext &&
9762 $as_test_x conftest$ac_exeext; then
9763 eval "$as_ac_var=yes"
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 eval "$as_ac_var=no"
9769 fi
9770
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772 conftest$ac_exeext conftest.$ac_ext
9773 fi
9774 ac_res=`eval echo '${'$as_ac_var'}'`
9775 { echo "$as_me:$LINENO: result: $ac_res" >&5
9776 echo "${ECHO_T}$ac_res" >&6; }
9777 if test `eval echo '${'$as_ac_var'}'` = yes; then
9778 cat >>confdefs.h <<_ACEOF
9779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9780 _ACEOF
9781
9782 else
9783 case " $LIBOBJS " in
9784 *" $ac_func.$ac_objext "* ) ;;
9785 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9786 ;;
9787 esac
9788
9789 fi
9790 done
9791
9792
9793 V_GROUP=0
9794 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9795 V_GROUP=wheel
9796 fi
9797 #
9798 # Assume V7/BSD convention for man pages (file formats in section 5,
9799 # miscellaneous info in section 7).
9800 #
9801 MAN_FILE_FORMATS=5
9802 MAN_MISC_INFO=7
9803 case "$host_os" in
9804
9805 aix*)
9806
9807 cat >>confdefs.h <<\_ACEOF
9808 #define _SUN 1
9809 _ACEOF
9810
9811 ;;
9812
9813 hpux*)
9814 #
9815 # Use System V conventions for man pages.
9816 #
9817 MAN_FILE_FORMATS=4
9818 MAN_MISC_INFO=5
9819 ;;
9820
9821 irix*)
9822 V_GROUP=sys
9823
9824 #
9825 # Use System V conventions for man pages.
9826 #
9827 MAN_FILE_FORMATS=4
9828 MAN_MISC_INFO=5
9829 ;;
9830
9831 osf*)
9832 V_GROUP=system
9833
9834 #
9835 # Use System V conventions for man pages.
9836 #
9837 MAN_FILE_FORMATS=4
9838 MAN_MISC_INFO=5
9839 ;;
9840
9841 solaris*)
9842 V_GROUP=sys
9843
9844 #
9845 # Use System V conventions for man pages.
9846 #
9847 MAN_FILE_FORMATS=4
9848 MAN_MISC_INFO=5
9849 ;;
9850 esac
9851
9852 if test -f /dev/bpf0 ; then
9853 V_GROUP=bpf
9854 fi
9855
9856 #
9857 # Make sure we have definitions for all the C99 specified-width types
9858 # (regardless of whether the environment is a C99 environment or not).
9859
9860 { echo "$as_me:$LINENO: checking for int8_t" >&5
9861 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9862 if test "${ac_cv_c_int8_t+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 ac_cv_c_int8_t=no
9866 for ac_type in 'int8_t' 'int' 'long int' \
9867 'long long int' 'short int' 'signed char'; do
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9875 int
9876 main ()
9877 {
9878 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
9879 test_array [0] = 0
9880
9881 ;
9882 return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext
9886 if { (ac_try="$ac_compile"
9887 case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_compile") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && {
9899 test -z "$ac_c_werror_flag" ||
9900 test ! -s conftest.err
9901 } && test -s conftest.$ac_objext; then
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h. */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908 $ac_includes_default
9909 int
9910 main ()
9911 {
9912 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
9913 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
9914 test_array [0] = 0
9915
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9922 case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_compile") 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest.$ac_objext; then
9937 :
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 case $ac_type in
9943 int8_t) ac_cv_c_int8_t=yes ;;
9944 *) ac_cv_c_int8_t=$ac_type ;;
9945 esac
9946
9947 fi
9948
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954
9955 fi
9956
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 test "$ac_cv_c_int8_t" != no && break
9959 done
9960 fi
9961 { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
9962 echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
9963 case $ac_cv_c_int8_t in #(
9964 no|yes) ;; #(
9965 *)
9966
9967 cat >>confdefs.h <<_ACEOF
9968 #define int8_t $ac_cv_c_int8_t
9969 _ACEOF
9970 ;;
9971 esac
9972
9973
9974 { echo "$as_me:$LINENO: checking for int16_t" >&5
9975 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9976 if test "${ac_cv_c_int16_t+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
9979 ac_cv_c_int16_t=no
9980 for ac_type in 'int16_t' 'int' 'long int' \
9981 'long long int' 'short int' 'signed char'; do
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 $ac_includes_default
9989 int
9990 main ()
9991 {
9992 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
9993 test_array [0] = 0
9994
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext
10000 if { (ac_try="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } && {
10013 test -z "$ac_c_werror_flag" ||
10014 test ! -s conftest.err
10015 } && test -s conftest.$ac_objext; then
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 $ac_includes_default
10023 int
10024 main ()
10025 {
10026 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
10027 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
10028 test_array [0] = 0
10029
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 if { (ac_try="$ac_compile"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_compile") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && {
10048 test -z "$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 } && test -s conftest.$ac_objext; then
10051 :
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056 case $ac_type in
10057 int16_t) ac_cv_c_int16_t=yes ;;
10058 *) ac_cv_c_int16_t=$ac_type ;;
10059 esac
10060
10061 fi
10062
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072 test "$ac_cv_c_int16_t" != no && break
10073 done
10074 fi
10075 { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
10076 echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
10077 case $ac_cv_c_int16_t in #(
10078 no|yes) ;; #(
10079 *)
10080
10081 cat >>confdefs.h <<_ACEOF
10082 #define int16_t $ac_cv_c_int16_t
10083 _ACEOF
10084 ;;
10085 esac
10086
10087
10088 { echo "$as_me:$LINENO: checking for int32_t" >&5
10089 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10090 if test "${ac_cv_c_int32_t+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093 ac_cv_c_int32_t=no
10094 for ac_type in 'int32_t' 'int' 'long int' \
10095 'long long int' 'short int' 'signed char'; do
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $ac_includes_default
10103 int
10104 main ()
10105 {
10106 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
10107 test_array [0] = 0
10108
10109 ;
10110 return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext
10114 if { (ac_try="$ac_compile"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_compile") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest.$ac_objext; then
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 $ac_includes_default
10137 int
10138 main ()
10139 {
10140 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
10141 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
10142 test_array [0] = 0
10143
10144 ;
10145 return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext
10149 if { (ac_try="$ac_compile"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_compile") 2>conftest.er1
10156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } && {
10162 test -z "$ac_c_werror_flag" ||
10163 test ! -s conftest.err
10164 } && test -s conftest.$ac_objext; then
10165 :
10166 else
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170 case $ac_type in
10171 int32_t) ac_cv_c_int32_t=yes ;;
10172 *) ac_cv_c_int32_t=$ac_type ;;
10173 esac
10174
10175 fi
10176
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182
10183 fi
10184
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10186 test "$ac_cv_c_int32_t" != no && break
10187 done
10188 fi
10189 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
10190 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
10191 case $ac_cv_c_int32_t in #(
10192 no|yes) ;; #(
10193 *)
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define int32_t $ac_cv_c_int32_t
10197 _ACEOF
10198 ;;
10199 esac
10200
10201
10202 { echo "$as_me:$LINENO: checking for int64_t" >&5
10203 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10204 if test "${ac_cv_c_int64_t+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 ac_cv_c_int64_t=no
10208 for ac_type in 'int64_t' 'int' 'long int' \
10209 'long long int' 'short int' 'signed char'; do
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 $ac_includes_default
10217 int
10218 main ()
10219 {
10220 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
10221 test_array [0] = 0
10222
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext
10228 if { (ac_try="$ac_compile"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_compile") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest.$ac_objext; then
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 $ac_includes_default
10251 int
10252 main ()
10253 {
10254 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
10255 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
10256 test_array [0] = 0
10257
10258 ;
10259 return 0;
10260 }
10261 _ACEOF
10262 rm -f conftest.$ac_objext
10263 if { (ac_try="$ac_compile"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_compile") 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_c_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest.$ac_objext; then
10279 :
10280 else
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 case $ac_type in
10285 int64_t) ac_cv_c_int64_t=yes ;;
10286 *) ac_cv_c_int64_t=$ac_type ;;
10287 esac
10288
10289 fi
10290
10291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292 else
10293 echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300 test "$ac_cv_c_int64_t" != no && break
10301 done
10302 fi
10303 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
10304 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
10305 case $ac_cv_c_int64_t in #(
10306 no|yes) ;; #(
10307 *)
10308
10309 cat >>confdefs.h <<_ACEOF
10310 #define int64_t $ac_cv_c_int64_t
10311 _ACEOF
10312 ;;
10313 esac
10314
10315
10316 { echo "$as_me:$LINENO: checking for uint8_t" >&5
10317 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
10318 if test "${ac_cv_c_uint8_t+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321 ac_cv_c_uint8_t=no
10322 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
10323 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
10324 cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h. */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h. */
10330 $ac_includes_default
10331 int
10332 main ()
10333 {
10334 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
10335 test_array [0] = 0
10336
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 case $ac_type in
10359 uint8_t) ac_cv_c_uint8_t=yes ;;
10360 *) ac_cv_c_uint8_t=$ac_type ;;
10361 esac
10362
10363 else
10364 echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10366
10367
10368 fi
10369
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 test "$ac_cv_c_uint8_t" != no && break
10372 done
10373 fi
10374 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
10375 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
10376 case $ac_cv_c_uint8_t in #(
10377 no|yes) ;; #(
10378 *)
10379
10380 cat >>confdefs.h <<\_ACEOF
10381 #define _UINT8_T 1
10382 _ACEOF
10383
10384
10385 cat >>confdefs.h <<_ACEOF
10386 #define uint8_t $ac_cv_c_uint8_t
10387 _ACEOF
10388 ;;
10389 esac
10390
10391
10392 { echo "$as_me:$LINENO: checking for uint16_t" >&5
10393 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
10394 if test "${ac_cv_c_uint16_t+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397 ac_cv_c_uint16_t=no
10398 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
10399 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 $ac_includes_default
10407 int
10408 main ()
10409 {
10410 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
10411 test_array [0] = 0
10412
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 rm -f conftest.$ac_objext
10418 if { (ac_try="$ac_compile"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_compile") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.$ac_objext; then
10434 case $ac_type in
10435 uint16_t) ac_cv_c_uint16_t=yes ;;
10436 *) ac_cv_c_uint16_t=$ac_type ;;
10437 esac
10438
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 test "$ac_cv_c_uint16_t" != no && break
10448 done
10449 fi
10450 { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
10451 echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
10452 case $ac_cv_c_uint16_t in #(
10453 no|yes) ;; #(
10454 *)
10455
10456
10457 cat >>confdefs.h <<_ACEOF
10458 #define uint16_t $ac_cv_c_uint16_t
10459 _ACEOF
10460 ;;
10461 esac
10462
10463
10464 { echo "$as_me:$LINENO: checking for uint32_t" >&5
10465 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10466 if test "${ac_cv_c_uint32_t+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469 ac_cv_c_uint32_t=no
10470 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
10471 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 $ac_includes_default
10479 int
10480 main ()
10481 {
10482 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
10483 test_array [0] = 0
10484
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext
10490 if { (ac_try="$ac_compile"
10491 case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494 esac
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_compile") 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && {
10503 test -z "$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 } && test -s conftest.$ac_objext; then
10506 case $ac_type in
10507 uint32_t) ac_cv_c_uint32_t=yes ;;
10508 *) ac_cv_c_uint32_t=$ac_type ;;
10509 esac
10510
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10514
10515
10516 fi
10517
10518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 test "$ac_cv_c_uint32_t" != no && break
10520 done
10521 fi
10522 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
10523 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
10524 case $ac_cv_c_uint32_t in #(
10525 no|yes) ;; #(
10526 *)
10527
10528 cat >>confdefs.h <<\_ACEOF
10529 #define _UINT32_T 1
10530 _ACEOF
10531
10532
10533 cat >>confdefs.h <<_ACEOF
10534 #define uint32_t $ac_cv_c_uint32_t
10535 _ACEOF
10536 ;;
10537 esac
10538
10539
10540 { echo "$as_me:$LINENO: checking for uint64_t" >&5
10541 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
10542 if test "${ac_cv_c_uint64_t+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 ac_cv_c_uint64_t=no
10546 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
10547 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 $ac_includes_default
10555 int
10556 main ()
10557 {
10558 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
10559 test_array [0] = 0
10560
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (ac_try="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_compile") 2>conftest.er1
10573 ac_status=$?
10574 grep -v '^ *+' conftest.er1 >conftest.err
10575 rm -f conftest.er1
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest.$ac_objext; then
10582 case $ac_type in
10583 uint64_t) ac_cv_c_uint64_t=yes ;;
10584 *) ac_cv_c_uint64_t=$ac_type ;;
10585 esac
10586
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591
10592 fi
10593
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 test "$ac_cv_c_uint64_t" != no && break
10596 done
10597 fi
10598 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
10599 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
10600 case $ac_cv_c_uint64_t in #(
10601 no|yes) ;; #(
10602 *)
10603
10604 cat >>confdefs.h <<\_ACEOF
10605 #define _UINT64_T 1
10606 _ACEOF
10607
10608
10609 cat >>confdefs.h <<_ACEOF
10610 #define uint64_t $ac_cv_c_uint64_t
10611 _ACEOF
10612 ;;
10613 esac
10614
10615
10616 #
10617 # For now, we're using the old BSD-style u_intXX_t types, so check for
10618 # them.
10619 #
10620 # We should probably migrate to the standard C uintXX_t types.
10621 #
10622
10623 for ac_header in sys/bitypes.h
10624 do
10625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 fi
10632 ac_res=`eval echo '${'$as_ac_Header'}'`
10633 { echo "$as_me:$LINENO: result: $ac_res" >&5
10634 echo "${ECHO_T}$ac_res" >&6; }
10635 else
10636 # Is the header compilable?
10637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h. */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 $ac_includes_default
10646 #include <$ac_header>
10647 _ACEOF
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
10665 ac_header_compiler=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ac_header_compiler=no
10671 fi
10672
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10675 echo "${ECHO_T}$ac_header_compiler" >&6; }
10676
10677 # Is the header present?
10678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686 #include <$ac_header>
10687 _ACEOF
10688 if { (ac_try="$ac_cpp conftest.$ac_ext"
10689 case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } >/dev/null && {
10701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 }; then
10704 ac_header_preproc=yes
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_header_preproc=no
10710 fi
10711
10712 rm -f conftest.err conftest.$ac_ext
10713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10714 echo "${ECHO_T}$ac_header_preproc" >&6; }
10715
10716 # So? What about this header?
10717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10718 yes:no: )
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10723 ac_header_preproc=yes
10724 ;;
10725 no:yes:* )
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10738
10739 ;;
10740 esac
10741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746 eval "$as_ac_Header=\$ac_header_preproc"
10747 fi
10748 ac_res=`eval echo '${'$as_ac_Header'}'`
10749 { echo "$as_me:$LINENO: result: $ac_res" >&5
10750 echo "${ECHO_T}$ac_res" >&6; }
10751
10752 fi
10753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10754 cat >>confdefs.h <<_ACEOF
10755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10756 _ACEOF
10757
10758 fi
10759
10760 done
10761
10762
10763 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
10764 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
10765 if test "${ac_cv_type_u_int8_t+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 $ac_includes_default
10775 #ifdef HAVE_SYS_BITYPES_H
10776 #include <sys/bitypes.h>
10777 #endif
10778
10779 typedef u_int8_t ac__type_new_;
10780 int
10781 main ()
10782 {
10783 if ((ac__type_new_ *) 0)
10784 return 0;
10785 if (sizeof (ac__type_new_))
10786 return 0;
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 rm -f conftest.$ac_objext
10792 if { (ac_try="$ac_compile"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_compile") 2>conftest.er1
10799 ac_status=$?
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && {
10805 test -z "$ac_c_werror_flag" ||
10806 test ! -s conftest.err
10807 } && test -s conftest.$ac_objext; then
10808 ac_cv_type_u_int8_t=yes
10809 else
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 ac_cv_type_u_int8_t=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 fi
10818 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10819 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10820 if test $ac_cv_type_u_int8_t = yes; then
10821 :
10822 else
10823
10824 cat >>confdefs.h <<\_ACEOF
10825 #define u_int8_t unsigned char
10826 _ACEOF
10827
10828 fi
10829
10830 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10831 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10832 if test "${ac_cv_type_u_int16_t+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835 cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h. */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 $ac_includes_default
10842 #ifdef HAVE_SYS_BITYPES_H
10843 #include <sys/bitypes.h>
10844 #endif
10845
10846 typedef u_int16_t ac__type_new_;
10847 int
10848 main ()
10849 {
10850 if ((ac__type_new_ *) 0)
10851 return 0;
10852 if (sizeof (ac__type_new_))
10853 return 0;
10854 ;
10855 return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext
10859 if { (ac_try="$ac_compile"
10860 case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863 esac
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest.$ac_objext; then
10875 ac_cv_type_u_int16_t=yes
10876 else
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 ac_cv_type_u_int16_t=no
10881 fi
10882
10883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884 fi
10885 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10886 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10887 if test $ac_cv_type_u_int16_t = yes; then
10888 :
10889 else
10890
10891 cat >>confdefs.h <<\_ACEOF
10892 #define u_int16_t unsigned short
10893 _ACEOF
10894
10895 fi
10896
10897 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10898 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10899 if test "${ac_cv_type_u_int32_t+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 #ifdef HAVE_SYS_BITYPES_H
10910 #include <sys/bitypes.h>
10911 #endif
10912
10913 typedef u_int32_t ac__type_new_;
10914 int
10915 main ()
10916 {
10917 if ((ac__type_new_ *) 0)
10918 return 0;
10919 if (sizeof (ac__type_new_))
10920 return 0;
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.$ac_objext; then
10942 ac_cv_type_u_int32_t=yes
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 ac_cv_type_u_int32_t=no
10948 fi
10949
10950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 fi
10952 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10953 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10954 if test $ac_cv_type_u_int32_t = yes; then
10955 :
10956 else
10957
10958 cat >>confdefs.h <<\_ACEOF
10959 #define u_int32_t unsigned int
10960 _ACEOF
10961
10962 fi
10963
10964 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10965 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10966 if test "${ac_cv_type_u_int64_t+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 $ac_includes_default
10976 #ifdef HAVE_SYS_BITYPES_H
10977 #include <sys/bitypes.h>
10978 #endif
10979
10980 typedef u_int64_t ac__type_new_;
10981 int
10982 main ()
10983 {
10984 if ((ac__type_new_ *) 0)
10985 return 0;
10986 if (sizeof (ac__type_new_))
10987 return 0;
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_compile") 2>conftest.er1
11000 ac_status=$?
11001 grep -v '^ *+' conftest.er1 >conftest.err
11002 rm -f conftest.er1
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest.$ac_objext; then
11009 ac_cv_type_u_int64_t=yes
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014 ac_cv_type_u_int64_t=no
11015 fi
11016
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 fi
11019 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11020 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11021 if test $ac_cv_type_u_int64_t = yes; then
11022 :
11023 else
11024
11025 cat >>confdefs.h <<\_ACEOF
11026 #define u_int64_t unsigned long long
11027 _ACEOF
11028
11029 fi
11030
11031
11032 #
11033 # Check for <inttypes.h>
11034 #
11035
11036 for ac_header in inttypes.h
11037 do
11038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 fi
11045 ac_res=`eval echo '${'$as_ac_Header'}'`
11046 { echo "$as_me:$LINENO: result: $ac_res" >&5
11047 echo "${ECHO_T}$ac_res" >&6; }
11048 else
11049 # Is the header compilable?
11050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h. */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11058 $ac_includes_default
11059 #include <$ac_header>
11060 _ACEOF
11061 rm -f conftest.$ac_objext
11062 if { (ac_try="$ac_compile"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_compile") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest.$ac_objext; then
11078 ac_header_compiler=yes
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 ac_header_compiler=no
11084 fi
11085
11086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11088 echo "${ECHO_T}$ac_header_compiler" >&6; }
11089
11090 # Is the header present?
11091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11093 cat >conftest.$ac_ext <<_ACEOF
11094 /* confdefs.h. */
11095 _ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11099 #include <$ac_header>
11100 _ACEOF
11101 if { (ac_try="$ac_cpp conftest.$ac_ext"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11108 ac_status=$?
11109 grep -v '^ *+' conftest.er1 >conftest.err
11110 rm -f conftest.er1
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } >/dev/null && {
11114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11115 test ! -s conftest.err
11116 }; then
11117 ac_header_preproc=yes
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11121
11122 ac_header_preproc=no
11123 fi
11124
11125 rm -f conftest.err conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11127 echo "${ECHO_T}$ac_header_preproc" >&6; }
11128
11129 # So? What about this header?
11130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11131 yes:no: )
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11136 ac_header_preproc=yes
11137 ;;
11138 no:yes:* )
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11151
11152 ;;
11153 esac
11154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159 eval "$as_ac_Header=\$ac_header_preproc"
11160 fi
11161 ac_res=`eval echo '${'$as_ac_Header'}'`
11162 { echo "$as_me:$LINENO: result: $ac_res" >&5
11163 echo "${ECHO_T}$ac_res" >&6; }
11164
11165 fi
11166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11167 cat >>confdefs.h <<_ACEOF
11168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11169 _ACEOF
11170
11171 #
11172 # OK, we have inttypes.h, but does it define all the PRI[doxu]64 macros?
11173 # Some systems have an inttypes.h that doesn't define all of them.
11174 #
11175 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
11176 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
11177 cat >conftest.$ac_ext <<_ACEOF
11178
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184
11185 #include <inttypes.h>
11186 #include <stdio.h>
11187 #include <sys/types.h>
11188 #ifdef HAVE_SYS_BITYPES_H
11189 #include <sys/bitypes.h>
11190 #endif
11191
11192 main()
11193 {
11194 printf("%" PRId64 "\n", (u_int64_t)1);
11195 printf("%" PRIo64 "\n", (u_int64_t)1);
11196 printf("%" PRIx64 "\n", (u_int64_t)1);
11197 printf("%" PRIu64 "\n", (u_int64_t)1);
11198 }
11199
11200
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_compile") 2>conftest.er1
11210 ac_status=$?
11211 grep -v '^ *+' conftest.er1 >conftest.err
11212 rm -f conftest.er1
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.$ac_objext; then
11219
11220 { echo "$as_me:$LINENO: result: yes" >&5
11221 echo "${ECHO_T}yes" >&6; }
11222 ac_lbl_inttypes_h_defines_formats=yes
11223
11224 else
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11227
11228
11229 { echo "$as_me:$LINENO: result: no" >&5
11230 echo "${ECHO_T}no" >&6; }
11231 ac_lbl_inttypes_h_defines_formats=no
11232
11233 fi
11234
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236
11237 else
11238
11239 #
11240 # We don't have inttypes.h, so it obviously can't define those
11241 # macros.
11242 #
11243 ac_lbl_inttypes_h_defines_formats=no
11244
11245 fi
11246
11247 done
11248
11249 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
11250
11251 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
11252 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
11253 if test "$cross_compiling" = yes; then
11254 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11255 See \`config.log' for more details." >&5
11256 echo "$as_me: error: cannot run test program while cross compiling
11257 See \`config.log' for more details." >&2;}
11258 { (exit 1); exit 1; }; }
11259 else
11260 cat >conftest.$ac_ext <<_ACEOF
11261
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267
11268 # ifdef HAVE_INTTYPES_H
11269 #include <inttypes.h>
11270 # endif
11271 # ifdef HAVE_SYS_BITYPES_H
11272 #include <sys/bitypes.h>
11273 # endif
11274 #include <stdio.h>
11275 #include <sys/types.h>
11276
11277 main()
11278 {
11279 u_int64_t t = 1;
11280 char strbuf[16+1];
11281 sprintf(strbuf, "%016lx", t << 32);
11282 if (strcmp(strbuf, "0000000100000000") == 0)
11283 exit(0);
11284 else
11285 exit(1);
11286 }
11287
11288
11289 _ACEOF
11290 rm -f conftest$ac_exeext
11291 if { (ac_try="$ac_link"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_link") 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11301 { (case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304 esac
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_try") 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310
11311
11312 cat >>confdefs.h <<\_ACEOF
11313 #define PRId64 "ld"
11314 _ACEOF
11315
11316
11317 cat >>confdefs.h <<\_ACEOF
11318 #define PRIo64 "lo"
11319 _ACEOF
11320
11321
11322 cat >>confdefs.h <<\_ACEOF
11323 #define PRIx64 "lx"
11324 _ACEOF
11325
11326
11327 cat >>confdefs.h <<\_ACEOF
11328 #define PRIu64 "lu"
11329 _ACEOF
11330
11331 { echo "$as_me:$LINENO: result: yes" >&5
11332 echo "${ECHO_T}yes" >&6; }
11333
11334 else
11335 echo "$as_me: program exited with status $ac_status" >&5
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 ( exit $ac_status )
11340
11341 { echo "$as_me:$LINENO: result: no" >&5
11342 echo "${ECHO_T}no" >&6; }
11343
11344
11345 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
11346 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
11347 if test "$cross_compiling" = yes; then
11348 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11349 See \`config.log' for more details." >&5
11350 echo "$as_me: error: cannot run test program while cross compiling
11351 See \`config.log' for more details." >&2;}
11352 { (exit 1); exit 1; }; }
11353 else
11354 cat >conftest.$ac_ext <<_ACEOF
11355
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361
11362 # ifdef HAVE_INTTYPES_H
11363 #include <inttypes.h>
11364 # endif
11365 # ifdef HAVE_SYS_BITYPES_H
11366 #include <sys/bitypes.h>
11367 # endif
11368 #include <stdio.h>
11369 #include <sys/types.h>
11370
11371 main()
11372 {
11373 u_int64_t t = 1;
11374 char strbuf[16+1];
11375 sprintf(strbuf, "%016llx", t << 32);
11376 if (strcmp(strbuf, "0000000100000000") == 0)
11377 exit(0);
11378 else
11379 exit(1);
11380 }
11381
11382
11383 _ACEOF
11384 rm -f conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_link") 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404
11405
11406 cat >>confdefs.h <<\_ACEOF
11407 #define PRId64 "lld"
11408 _ACEOF
11409
11410
11411 cat >>confdefs.h <<\_ACEOF
11412 #define PRIo64 "llo"
11413 _ACEOF
11414
11415
11416 cat >>confdefs.h <<\_ACEOF
11417 #define PRIx64 "llx"
11418 _ACEOF
11419
11420
11421 cat >>confdefs.h <<\_ACEOF
11422 #define PRIu64 "llu"
11423 _ACEOF
11424
11425 { echo "$as_me:$LINENO: result: yes" >&5
11426 echo "${ECHO_T}yes" >&6; }
11427
11428 else
11429 echo "$as_me: program exited with status $ac_status" >&5
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ( exit $ac_status )
11434
11435 { echo "$as_me:$LINENO: result: no" >&5
11436 echo "${ECHO_T}no" >&6; }
11437
11438
11439 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
11440 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
11441 if test "$cross_compiling" = yes; then
11442 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11443 See \`config.log' for more details." >&5
11444 echo "$as_me: error: cannot run test program while cross compiling
11445 See \`config.log' for more details." >&2;}
11446 { (exit 1); exit 1; }; }
11447 else
11448 cat >conftest.$ac_ext <<_ACEOF
11449
11450 /* confdefs.h. */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455
11456 # ifdef HAVE_INTTYPES_H
11457 #include <inttypes.h>
11458 # endif
11459 # ifdef HAVE_SYS_BITYPES_H
11460 #include <sys/bitypes.h>
11461 # endif
11462 #include <stdio.h>
11463 #include <sys/types.h>
11464
11465 main()
11466 {
11467 u_int64_t t = 1;
11468 char strbuf[16+1];
11469 sprintf(strbuf, "%016Lx", t << 32);
11470 if (strcmp(strbuf, "0000000100000000") == 0)
11471 exit(0);
11472 else
11473 exit(1);
11474 }
11475
11476
11477 _ACEOF
11478 rm -f conftest$ac_exeext
11479 if { (ac_try="$ac_link"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_link") 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_try") 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498
11499
11500 cat >>confdefs.h <<\_ACEOF
11501 #define PRId64 "Ld"
11502 _ACEOF
11503
11504
11505 cat >>confdefs.h <<\_ACEOF
11506 #define PRIo64 "Lo"
11507 _ACEOF
11508
11509
11510 cat >>confdefs.h <<\_ACEOF
11511 #define PRIx64 "Lx"
11512 _ACEOF
11513
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define PRIu64 "Lu"
11517 _ACEOF
11518
11519 { echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6; }
11521
11522 else
11523 echo "$as_me: program exited with status $ac_status" >&5
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527 ( exit $ac_status )
11528
11529 { echo "$as_me:$LINENO: result: no" >&5
11530 echo "${ECHO_T}no" >&6; }
11531
11532
11533 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11534 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
11535 if test "$cross_compiling" = yes; then
11536 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11537 See \`config.log' for more details." >&5
11538 echo "$as_me: error: cannot run test program while cross compiling
11539 See \`config.log' for more details." >&2;}
11540 { (exit 1); exit 1; }; }
11541 else
11542 cat >conftest.$ac_ext <<_ACEOF
11543
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549
11550 # ifdef HAVE_INTTYPES_H
11551 #include <inttypes.h>
11552 # endif
11553 # ifdef HAVE_SYS_BITYPES_H
11554 #include <sys/bitypes.h>
11555 # endif
11556 #include <stdio.h>
11557 #include <sys/types.h>
11558
11559 main()
11560 {
11561 u_int64_t t = 1;
11562 char strbuf[16+1];
11563 sprintf(strbuf, "%016qx", t << 32);
11564 if (strcmp(strbuf, "0000000100000000") == 0)
11565 exit(0);
11566 else
11567 exit(1);
11568 }
11569
11570
11571 _ACEOF
11572 rm -f conftest$ac_exeext
11573 if { (ac_try="$ac_link"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_link") 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592
11593
11594 cat >>confdefs.h <<\_ACEOF
11595 #define PRId64 "qd"
11596 _ACEOF
11597
11598
11599 cat >>confdefs.h <<\_ACEOF
11600 #define PRIo64 "qo"
11601 _ACEOF
11602
11603
11604 cat >>confdefs.h <<\_ACEOF
11605 #define PRIx64 "qx"
11606 _ACEOF
11607
11608
11609 cat >>confdefs.h <<\_ACEOF
11610 #define PRIu64 "qu"
11611 _ACEOF
11612
11613 { echo "$as_me:$LINENO: result: yes" >&5
11614 echo "${ECHO_T}yes" >&6; }
11615
11616 else
11617 echo "$as_me: program exited with status $ac_status" >&5
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621 ( exit $ac_status )
11622
11623 { echo "$as_me:$LINENO: result: no" >&5
11624 echo "${ECHO_T}no" >&6; }
11625
11626 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11627 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11628 { (exit 1); exit 1; }; }
11629
11630
11631 fi
11632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11633 fi
11634
11635
11636
11637
11638
11639 fi
11640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11641 fi
11642
11643
11644
11645
11646
11647 fi
11648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11649 fi
11650
11651
11652
11653
11654
11655 fi
11656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11657 fi
11658
11659
11660
11661 fi
11662
11663 #
11664 # Check for some headers introduced in later versions of libpcap
11665 # and used by some printers.
11666 #
11667 # Those headers use the {u_}intN_t types, so we must do this after
11668 # we check for what's needed to get them defined.
11669 #
11670 savedcppflags="$CPPFLAGS"
11671 CPPFLAGS="$CPPFLAGS $V_INCLS"
11672
11673 for ac_header in pcap/bluetooth.h
11674 do
11675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #include <tcpdump-stdinc.h>
11688
11689 #include <$ac_header>
11690 _ACEOF
11691 rm -f conftest.$ac_objext
11692 if { (ac_try="$ac_compile"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_compile") 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest.$ac_objext; then
11708 eval "$as_ac_Header=yes"
11709 else
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713 eval "$as_ac_Header=no"
11714 fi
11715
11716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 fi
11718 ac_res=`eval echo '${'$as_ac_Header'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11724 _ACEOF
11725
11726 fi
11727
11728 done
11729
11730
11731 for ac_header in pcap/usb.h
11732 do
11733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 #include <tcpdump-stdinc.h>
11746
11747 #include <$ac_header>
11748 _ACEOF
11749 rm -f conftest.$ac_objext
11750 if { (ac_try="$ac_compile"
11751 case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11754 esac
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_compile") 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } && {
11763 test -z "$ac_c_werror_flag" ||
11764 test ! -s conftest.err
11765 } && test -s conftest.$ac_objext; then
11766 eval "$as_ac_Header=yes"
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 eval "$as_ac_Header=no"
11772 fi
11773
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11782 _ACEOF
11783
11784 fi
11785
11786 done
11787
11788 CPPFLAGS="$savedcppflags"
11789
11790 if test -n "$ac_tool_prefix"; then
11791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11795 if test "${ac_cv_prog_RANLIB+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 if test -n "$RANLIB"; then
11799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11800 else
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812 done
11813 done
11814 IFS=$as_save_IFS
11815
11816 fi
11817 fi
11818 RANLIB=$ac_cv_prog_RANLIB
11819 if test -n "$RANLIB"; then
11820 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11821 echo "${ECHO_T}$RANLIB" >&6; }
11822 else
11823 { echo "$as_me:$LINENO: result: no" >&5
11824 echo "${ECHO_T}no" >&6; }
11825 fi
11826
11827
11828 fi
11829 if test -z "$ac_cv_prog_RANLIB"; then
11830 ac_ct_RANLIB=$RANLIB
11831 # Extract the first word of "ranlib", so it can be a program name with args.
11832 set dummy ranlib; ac_word=$2
11833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838 if test -n "$ac_ct_RANLIB"; then
11839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11848 ac_cv_prog_ac_ct_RANLIB="ranlib"
11849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11851 fi
11852 done
11853 done
11854 IFS=$as_save_IFS
11855
11856 fi
11857 fi
11858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11859 if test -n "$ac_ct_RANLIB"; then
11860 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11861 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11862 else
11863 { echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6; }
11865 fi
11866
11867 if test "x$ac_ct_RANLIB" = x; then
11868 RANLIB=":"
11869 else
11870 case $cross_compiling:$ac_tool_warned in
11871 yes:)
11872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11873 whose name does not start with the host triplet. If you think this
11874 configuration is useful to you, please write to autoconf@gnu.org." >&5
11875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11876 whose name does not start with the host triplet. If you think this
11877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11878 ac_tool_warned=yes ;;
11879 esac
11880 RANLIB=$ac_ct_RANLIB
11881 fi
11882 else
11883 RANLIB="$ac_cv_prog_RANLIB"
11884 fi
11885
11886
11887 rm -f os-proto.h
11888 if test "${LBL_CFLAGS+set}" = set; then
11889 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11890 fi
11891 if test -f .devel ; then
11892 #
11893 # Skip all the warning option stuff on some compilers.
11894 #
11895 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then
11896
11897 { echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option" >&5
11898 echo $ECHO_N "checking whether the compiler fails when given an unknown warning option... $ECHO_C" >&6; }
11899 save_CFLAGS="$CFLAGS"
11900 CFLAGS="$CFLAGS -Wxyzzy-this-will-never-succeed-xyzzy"
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h. */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907
11908 int
11909 main ()
11910 {
11911 return 0
11912 ;
11913 return 0;
11914 }
11915 _ACEOF
11916 rm -f conftest.$ac_objext
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_compile") 2>conftest.er1
11924 ac_status=$?
11925 grep -v '^ *+' conftest.er1 >conftest.err
11926 rm -f conftest.er1
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest.$ac_objext; then
11933
11934 { echo "$as_me:$LINENO: result: no" >&5
11935 echo "${ECHO_T}no" >&6; }
11936 #
11937 # We're assuming this is clang, where
11938 # -Werror=unknown-warning-option is the appropriate
11939 # option to force the compiler to fail.
11940 #
11941 ac_lbl_unknown_warning_option_error="-Werror=unknown-warning-option"
11942
11943 else
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947
11948 { echo "$as_me:$LINENO: result: yes" >&5
11949 echo "${ECHO_T}yes" >&6; }
11950
11951 fi
11952
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 CFLAGS="$save_CFLAGS"
11955
11956
11957 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wall option" >&5
11958 echo $ECHO_N "checking whether the compiler supports the -Wall option... $ECHO_C" >&6; }
11959 save_CFLAGS="$CFLAGS"
11960 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wall"
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967
11968 int
11969 main ()
11970 {
11971 return 0
11972 ;
11973 return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest.$ac_objext; then
11993
11994 { echo "$as_me:$LINENO: result: yes" >&5
11995 echo "${ECHO_T}yes" >&6; }
11996 CFLAGS="$save_CFLAGS"
11997 V_CCOPT="$V_CCOPT -Wall"
11998
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003
12004 { echo "$as_me:$LINENO: result: no" >&5
12005 echo "${ECHO_T}no" >&6; }
12006 CFLAGS="$save_CFLAGS"
12007
12008 fi
12009
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011
12012
12013 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wmissing-prototypes option" >&5
12014 echo $ECHO_N "checking whether the compiler supports the -Wmissing-prototypes option... $ECHO_C" >&6; }
12015 save_CFLAGS="$CFLAGS"
12016 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wmissing-prototypes"
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023
12024 int
12025 main ()
12026 {
12027 return 0
12028 ;
12029 return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext
12033 if { (ac_try="$ac_compile"
12034 case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_compile") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } && {
12046 test -z "$ac_c_werror_flag" ||
12047 test ! -s conftest.err
12048 } && test -s conftest.$ac_objext; then
12049
12050 { echo "$as_me:$LINENO: result: yes" >&5
12051 echo "${ECHO_T}yes" >&6; }
12052 CFLAGS="$save_CFLAGS"
12053 V_CCOPT="$V_CCOPT -Wmissing-prototypes"
12054
12055 else
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059
12060 { echo "$as_me:$LINENO: result: no" >&5
12061 echo "${ECHO_T}no" >&6; }
12062 CFLAGS="$save_CFLAGS"
12063
12064 fi
12065
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067
12068
12069 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wstrict-prototypes option" >&5
12070 echo $ECHO_N "checking whether the compiler supports the -Wstrict-prototypes option... $ECHO_C" >&6; }
12071 save_CFLAGS="$CFLAGS"
12072 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wstrict-prototypes"
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h. */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12079
12080 int
12081 main ()
12082 {
12083 return 0
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext
12089 if { (ac_try="$ac_compile"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_compile") 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } && {
12102 test -z "$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12104 } && test -s conftest.$ac_objext; then
12105
12106 { echo "$as_me:$LINENO: result: yes" >&5
12107 echo "${ECHO_T}yes" >&6; }
12108 CFLAGS="$save_CFLAGS"
12109 V_CCOPT="$V_CCOPT -Wstrict-prototypes"
12110
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115
12116 { echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6; }
12118 CFLAGS="$save_CFLAGS"
12119
12120 fi
12121
12122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123
12124
12125 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wwrite-strings option" >&5
12126 echo $ECHO_N "checking whether the compiler supports the -Wwrite-strings option... $ECHO_C" >&6; }
12127 save_CFLAGS="$CFLAGS"
12128 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wwrite-strings"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135
12136 int
12137 main ()
12138 {
12139 return 0
12140 ;
12141 return 0;
12142 }
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (ac_try="$ac_compile"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_compile") 2>conftest.er1
12152 ac_status=$?
12153 grep -v '^ *+' conftest.er1 >conftest.err
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && {
12158 test -z "$ac_c_werror_flag" ||
12159 test ! -s conftest.err
12160 } && test -s conftest.$ac_objext; then
12161
12162 { echo "$as_me:$LINENO: result: yes" >&5
12163 echo "${ECHO_T}yes" >&6; }
12164 CFLAGS="$save_CFLAGS"
12165 V_CCOPT="$V_CCOPT -Wwrite-strings"
12166
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171
12172 { echo "$as_me:$LINENO: result: no" >&5
12173 echo "${ECHO_T}no" >&6; }
12174 CFLAGS="$save_CFLAGS"
12175
12176 fi
12177
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179
12180
12181 { echo "$as_me:$LINENO: checking whether the compiler supports the -Wpointer-arith option" >&5
12182 echo $ECHO_N "checking whether the compiler supports the -Wpointer-arith option... $ECHO_C" >&6; }
12183 save_CFLAGS="$CFLAGS"
12184 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -Wpointer-arith"
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h. */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h. */
12191
12192 int
12193 main ()
12194 {
12195 return 0
12196 ;
12197 return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext
12201 if { (ac_try="$ac_compile"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_compile") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest.$ac_objext; then
12217
12218 { echo "$as_me:$LINENO: result: yes" >&5
12219 echo "${ECHO_T}yes" >&6; }
12220 CFLAGS="$save_CFLAGS"
12221 V_CCOPT="$V_CCOPT -Wpointer-arith"
12222
12223 else
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12226
12227
12228 { echo "$as_me:$LINENO: result: no" >&5
12229 echo "${ECHO_T}no" >&6; }
12230 CFLAGS="$save_CFLAGS"
12231
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235
12236
12237 { echo "$as_me:$LINENO: checking whether the compiler supports the -W option" >&5
12238 echo $ECHO_N "checking whether the compiler supports the -W option... $ECHO_C" >&6; }
12239 save_CFLAGS="$CFLAGS"
12240 CFLAGS="$CFLAGS $ac_lbl_unknown_warning_option_error -W"
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h. */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247
12248 int
12249 main ()
12250 {
12251 return 0
12252 ;
12253 return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext
12257 if { (ac_try="$ac_compile"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_compile") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest.$ac_objext; then
12273
12274 { echo "$as_me:$LINENO: result: yes" >&5
12275 echo "${ECHO_T}yes" >&6; }
12276 CFLAGS="$save_CFLAGS"
12277 V_CCOPT="$V_CCOPT -W"
12278
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283
12284 { echo "$as_me:$LINENO: result: no" >&5
12285 echo "${ECHO_T}no" >&6; }
12286 CFLAGS="$save_CFLAGS"
12287
12288 fi
12289
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291
12292 fi
12293
12294 { echo "$as_me:$LINENO: checking whether the compiler supports generating dependencies" >&5
12295 echo $ECHO_N "checking whether the compiler supports generating dependencies... $ECHO_C" >&6; }
12296 if test "$GCC" = yes ; then
12297 #
12298 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even
12299 # though it's not); we assume that, in this case, the flag
12300 # would be -M.
12301 #
12302 ac_lbl_dependency_flag="-M"
12303 else
12304 #
12305 # Not GCC or a compiler deemed to be GCC; what platform is
12306 # this? (We're assuming that if the compiler isn't GCC
12307 # it's the compiler from the vendor of the OS; that won't
12308 # necessarily be true for x86 platforms, where it might be
12309 # the Intel C compiler.)
12310 #
12311 case "$host_os" in
12312
12313 irix*|osf*|darwin*)
12314 #
12315 # MIPS C for IRIX, DEC C, and clang all use -M.
12316 #
12317 ac_lbl_dependency_flag="-M"
12318 ;;
12319
12320 solaris*)
12321 #
12322 # Sun C uses -xM.
12323 #
12324 ac_lbl_dependency_flag="-xM"
12325 ;;
12326
12327 hpux*)
12328 #
12329 # HP's older C compilers don't support this.
12330 # HP's newer C compilers support this with
12331 # either +M or +Make; the older compilers
12332 # interpret +M as something completely
12333 # different, so we use +Make so we don't
12334 # think it works with the older compilers.
12335 #
12336 ac_lbl_dependency_flag="+Make"
12337 ;;
12338
12339 *)
12340 #
12341 # Not one of the above; assume no support for
12342 # generating dependencies.
12343 #
12344 ac_lbl_dependency_flag=""
12345 ;;
12346 esac
12347 fi
12348
12349 #
12350 # Is ac_lbl_dependency_flag defined and, if so, does the compiler
12351 # complain about it?
12352 #
12353 # Note: clang doesn't seem to exit with an error status when handed
12354 # an unknown non-warning error, even if you pass it
12355 # -Werror=unknown-warning-option. However, it always supports
12356 # -M, so the fact that this test always succeeds with clang
12357 # isn't an issue.
12358 #
12359 if test ! -z "$ac_lbl_dependency_flag"; then
12360 cat >conftest.$ac_ext <<_ACEOF
12361 /* confdefs.h. */
12362 _ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12366 int main(void) { return 0; }
12367 _ACEOF
12368 echo "$CC" $ac_lbl_dependency_flag conftest.c >&5
12369 if "$CC" $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1; then
12370 { echo "$as_me:$LINENO: result: yes, with $ac_lbl_dependency_flag" >&5
12371 echo "${ECHO_T}yes, with $ac_lbl_dependency_flag" >&6; }
12372 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag"
12373 MKDEP='${srcdir}/mkdep'
12374 else
12375 { echo "$as_me:$LINENO: result: no" >&5
12376 echo "${ECHO_T}no" >&6; }
12377 #
12378 # We can't run mkdep, so have "make depend" do
12379 # nothing.
12380 #
12381 MKDEP=:
12382 fi
12383 rm -rf conftest*
12384 else
12385 { echo "$as_me:$LINENO: result: no" >&5
12386 echo "${ECHO_T}no" >&6; }
12387 #
12388 # We can't run mkdep, so have "make depend" do
12389 # nothing.
12390 #
12391 MKDEP=:
12392 fi
12393
12394
12395
12396 if test "$GCC" = yes ; then
12397 if test "${LBL_CFLAGS+set}" != set; then
12398 if test "$ac_cv_prog_cc_g" = yes ; then
12399 V_CCOPT="-g $V_CCOPT"
12400 fi
12401 fi
12402 else
12403 case "$host_os" in
12404
12405 irix6*)
12406 V_CCOPT="$V_CCOPT -n32"
12407 ;;
12408
12409 *)
12410 ;;
12411 esac
12412 fi
12413 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12414 name="lbl/os-$os.h"
12415 if test -f $name ; then
12416 ln -s $name os-proto.h
12417
12418 cat >>confdefs.h <<\_ACEOF
12419 #define HAVE_OS_PROTO_H 1
12420 _ACEOF
12421
12422 else
12423 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12424 echo "$as_me: WARNING: can't find $name" >&2;}
12425 fi
12426 fi
12427
12428 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
12429 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
12430 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h. */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439
12440 # include <sys/types.h>
12441 # include <sys/socket.h>
12442 int
12443 main ()
12444 {
12445 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext
12451 if { (ac_try="$ac_compile"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_compile") 2>conftest.er1
12458 ac_status=$?
12459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } && {
12464 test -z "$ac_c_werror_flag" ||
12465 test ! -s conftest.err
12466 } && test -s conftest.$ac_objext; then
12467 ac_cv_lbl_sockaddr_has_sa_len=yes
12468 else
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_cv_lbl_sockaddr_has_sa_len=no
12473 fi
12474
12475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476 fi
12477
12478 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12479 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
12480 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12481
12482 cat >>confdefs.h <<\_ACEOF
12483 #define HAVE_SOCKADDR_SA_LEN 1
12484 _ACEOF
12485
12486 fi
12487
12488 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12489 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
12490 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493 case "$host_cpu" in
12494
12495 #
12496 # These are CPU types where:
12497 #
12498 # the CPU faults on an unaligned access, but at least some
12499 # OSes that support that CPU catch the fault and simulate
12500 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12501 # the simulation is slow, so we don't want to use it;
12502 #
12503 # the CPU, I infer (from the old
12504 #
12505 # XXX: should also check that they don't do weird things (like on arm)
12506 #
12507 # comment) doesn't fault on unaligned accesses, but doesn't
12508 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12509 #
12510 # for whatever reason, the test program doesn't work
12511 # (this has been claimed to be the case for several of those
12512 # CPUs - I don't know what the problem is; the problem
12513 # was reported as "the test program dumps core" for SuperH,
12514 # but that's what the test program is *supposed* to do -
12515 # it dumps core before it writes anything, so the test
12516 # for an empty output file should find an empty output
12517 # file and conclude that unaligned accesses don't work).
12518 #
12519 # This run-time test won't work if you're cross-compiling, so
12520 # in order to support cross-compiling for a particular CPU,
12521 # we have to wire in the list of CPU types anyway, as far as
12522 # I know, so perhaps we should just have a set of CPUs on
12523 # which we know it doesn't work, a set of CPUs on which we
12524 # know it does work, and have the script just fail on other
12525 # cpu types and update it when such a failure occurs.
12526 #
12527 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
12528 ac_cv_lbl_unaligned_fail=yes
12529 ;;
12530
12531 *)
12532 cat >conftest.c <<EOF
12533 # include <sys/types.h>
12534 # include <sys/wait.h>
12535 # include <stdio.h>
12536 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12537 main() {
12538 unsigned int i;
12539 pid_t pid;
12540 int status;
12541 /* avoid "core dumped" message */
12542 pid = fork();
12543 if (pid < 0)
12544 exit(2);
12545 if (pid > 0) {
12546 /* parent */
12547 pid = waitpid(pid, &status, 0);
12548 if (pid < 0)
12549 exit(3);
12550 exit(!WIFEXITED(status));
12551 }
12552 /* child */
12553 i = *(unsigned int *)&a[1];
12554 printf("%d\n", i);
12555 exit(0);
12556 }
12557 EOF
12558 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12559 conftest.c $LIBS >/dev/null 2>&1
12560 if test ! -x conftest ; then
12561 ac_cv_lbl_unaligned_fail=yes
12562 else
12563 ./conftest >conftest.out
12564 if test ! -s conftest.out ; then
12565 ac_cv_lbl_unaligned_fail=yes
12566 else
12567 ac_cv_lbl_unaligned_fail=no
12568 fi
12569 fi
12570 rm -f -r conftest* core core.conftest
12571 ;;
12572 esac
12573 fi
12574
12575 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12576 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
12577 if test $ac_cv_lbl_unaligned_fail = yes ; then
12578
12579 cat >>confdefs.h <<\_ACEOF
12580 #define LBL_ALIGN 1
12581 _ACEOF
12582
12583 fi
12584
12585
12586 { echo "$as_me:$LINENO: checking for h_errno" >&5
12587 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
12588 if test "${ac_cv_var_h_errno+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597
12598 # include <sys/types.h>
12599 # include <netdb.h>
12600 int
12601 main ()
12602 {
12603 int foo = h_errno;
12604 ;
12605 return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext
12609 if { (ac_try="$ac_compile"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_compile") 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } && {
12622 test -z "$ac_c_werror_flag" ||
12623 test ! -s conftest.err
12624 } && test -s conftest.$ac_objext; then
12625 ac_cv_var_h_errno=yes
12626 else
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630 ac_cv_var_h_errno=no
12631 fi
12632
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634 fi
12635
12636 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12637 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
12638 if test "$ac_cv_var_h_errno" = "yes"; then
12639
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_H_ERRNO 1
12642 _ACEOF
12643
12644 fi
12645
12646
12647 # Check for OpenSSL libcrypto
12648 { echo "$as_me:$LINENO: checking whether to use OpenSSL libcrypto" >&5
12649 echo $ECHO_N "checking whether to use OpenSSL libcrypto... $ECHO_C" >&6; }
12650 # Specify location for both includes and libraries.
12651 want_libcrypto=ifavailable
12652
12653 # Check whether --with-crypto was given.
12654 if test "${with_crypto+set}" = set; then
12655 withval=$with_crypto;
12656 if test $withval = no
12657 then
12658 want_libcrypto=no
12659 { echo "$as_me:$LINENO: result: no" >&5
12660 echo "${ECHO_T}no" >&6; }
12661 elif test $withval = yes
12662 then
12663 want_libcrypto=yes
12664 { echo "$as_me:$LINENO: result: yes" >&5
12665 echo "${ECHO_T}yes" >&6; }
12666 fi
12667
12668 else
12669
12670 #
12671 # Use libcrypto if it's present, otherwise don't.
12672 #
12673 want_libcrypto=ifavailable
12674 { echo "$as_me:$LINENO: result: yes, if available" >&5
12675 echo "${ECHO_T}yes, if available" >&6; }
12676
12677 fi
12678
12679 if test "$want_libcrypto" != "no"; then
12680
12681 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12682 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
12683 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686 ac_check_lib_save_LIBS=$LIBS
12687 LIBS="-lcrypto $LIBS"
12688 cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h. */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694
12695 /* Override any GCC internal prototype to avoid an error.
12696 Use char because int might match the return type of a GCC
12697 builtin and then its argument prototype would still apply. */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 char DES_cbc_encrypt ();
12702 int
12703 main ()
12704 {
12705 return DES_cbc_encrypt ();
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (ac_try="$ac_link"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_link") 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && {
12724 test -z "$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 } && test -s conftest$ac_exeext &&
12727 $as_test_x conftest$ac_exeext; then
12728 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_cv_lib_crypto_DES_cbc_encrypt=no
12734 fi
12735
12736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12737 conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12739 fi
12740 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12741 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12742 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_LIBCRYPTO 1
12745 _ACEOF
12746
12747 LIBS="-lcrypto $LIBS"
12748
12749 fi
12750
12751
12752 for ac_header in openssl/evp.h
12753 do
12754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 fi
12761 ac_res=`eval echo '${'$as_ac_Header'}'`
12762 { echo "$as_me:$LINENO: result: $ac_res" >&5
12763 echo "${ECHO_T}$ac_res" >&6; }
12764 else
12765 # Is the header compilable?
12766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 $ac_includes_default
12775 #include <$ac_header>
12776 _ACEOF
12777 rm -f conftest.$ac_objext
12778 if { (ac_try="$ac_compile"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_compile") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest.$ac_objext; then
12794 ac_header_compiler=yes
12795 else
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 ac_header_compiler=no
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12804 echo "${ECHO_T}$ac_header_compiler" >&6; }
12805
12806 # Is the header present?
12807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 #include <$ac_header>
12816 _ACEOF
12817 if { (ac_try="$ac_cpp conftest.$ac_ext"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } >/dev/null && {
12830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12832 }; then
12833 ac_header_preproc=yes
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_header_preproc=no
12839 fi
12840
12841 rm -f conftest.err conftest.$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12843 echo "${ECHO_T}$ac_header_preproc" >&6; }
12844
12845 # So? What about this header?
12846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12847 yes:no: )
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12852 ac_header_preproc=yes
12853 ;;
12854 no:yes:* )
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12867
12868 ;;
12869 esac
12870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 eval "$as_ac_Header=\$ac_header_preproc"
12876 fi
12877 ac_res=`eval echo '${'$as_ac_Header'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879 echo "${ECHO_T}$ac_res" >&6; }
12880
12881 fi
12882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12883 cat >>confdefs.h <<_ACEOF
12884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12885 _ACEOF
12886
12887 fi
12888
12889 done
12890
12891 fi
12892
12893 if test "$missing_includes" = "yes"; then
12894 CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
12895 V_INCLS="$V_INCLS -I$srcdir/missing"
12896 fi
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907 # Find a good install program. We prefer a C program (faster),
12908 # so one script is as good as another. But avoid the broken or
12909 # incompatible versions:
12910 # SysV /etc/install, /usr/sbin/install
12911 # SunOS /usr/etc/install
12912 # IRIX /sbin/install
12913 # AIX /bin/install
12914 # AmigaOS /C/install, which installs bootblocks on floppy discs
12915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12918 # OS/2's system install, which has a completely different semantic
12919 # ./install, which can be erroneously created by make from ./install.sh.
12920 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12921 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12922 if test -z "$INSTALL"; then
12923 if test "${ac_cv_path_install+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 # Account for people who put trailing slashes in PATH elements.
12932 case $as_dir/ in
12933 ./ | .// | /cC/* | \
12934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12935 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12936 /usr/ucb/* ) ;;
12937 *)
12938 # OSF1 and SCO ODT 3.0 have their own names for install.
12939 # Don't use installbsd from OSF since it installs stuff as root
12940 # by default.
12941 for ac_prog in ginstall scoinst install; do
12942 for ac_exec_ext in '' $ac_executable_extensions; do
12943 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12944 if test $ac_prog = install &&
12945 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12946 # AIX install. It has an incompatible calling convention.
12947 :
12948 elif test $ac_prog = install &&
12949 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12950 # program-specific install script used by HP pwplus--don't use.
12951 :
12952 else
12953 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12954 break 3
12955 fi
12956 fi
12957 done
12958 done
12959 ;;
12960 esac
12961 done
12962 IFS=$as_save_IFS
12963
12964
12965 fi
12966 if test "${ac_cv_path_install+set}" = set; then
12967 INSTALL=$ac_cv_path_install
12968 else
12969 # As a last resort, use the slow shell script. Don't cache a
12970 # value for INSTALL within a source directory, because that will
12971 # break other packages using the cache if that directory is
12972 # removed, or if the value is a relative name.
12973 INSTALL=$ac_install_sh
12974 fi
12975 fi
12976 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12977 echo "${ECHO_T}$INSTALL" >&6; }
12978
12979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12980 # It thinks the first close brace ends the variable substitution.
12981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12982
12983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12984
12985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12986
12987
12988 ac_config_headers="$ac_config_headers config.h"
12989
12990
12991 ac_config_commands="$ac_config_commands default-1"
12992
12993 ac_config_files="$ac_config_files Makefile tcpdump.1"
12994
12995 cat >confcache <<\_ACEOF
12996 # This file is a shell script that caches the results of configure
12997 # tests run on this system so they can be shared between configure
12998 # scripts and configure runs, see configure's option --config-cache.
12999 # It is not useful on other systems. If it contains results you don't
13000 # want to keep, you may remove or edit it.
13001 #
13002 # config.status only pays attention to the cache file if you give it
13003 # the --recheck option to rerun configure.
13004 #
13005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13007 # following values.
13008
13009 _ACEOF
13010
13011 # The following way of writing the cache mishandles newlines in values,
13012 # but we know of no workaround that is simple, portable, and efficient.
13013 # So, we kill variables containing newlines.
13014 # Ultrix sh set writes to stderr and can't be redirected directly,
13015 # and sets the high bit in the cache file unless we assign to the vars.
13016 (
13017 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13018 eval ac_val=\$$ac_var
13019 case $ac_val in #(
13020 *${as_nl}*)
13021 case $ac_var in #(
13022 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13023 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13024 esac
13025 case $ac_var in #(
13026 _ | IFS | as_nl) ;; #(
13027 *) $as_unset $ac_var ;;
13028 esac ;;
13029 esac
13030 done
13031
13032 (set) 2>&1 |
13033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13034 *${as_nl}ac_space=\ *)
13035 # `set' does not quote correctly, so add quotes (double-quote
13036 # substitution turns \\\\ into \\, and sed turns \\ into \).
13037 sed -n \
13038 "s/'/'\\\\''/g;
13039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13040 ;; #(
13041 *)
13042 # `set' quotes correctly as required by POSIX, so do not add quotes.
13043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13044 ;;
13045 esac |
13046 sort
13047 ) |
13048 sed '
13049 /^ac_cv_env_/b end
13050 t clear
13051 :clear
13052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13053 t end
13054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13055 :end' >>confcache
13056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13057 if test -w "$cache_file"; then
13058 test "x$cache_file" != "x/dev/null" &&
13059 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13060 echo "$as_me: updating cache $cache_file" >&6;}
13061 cat confcache >$cache_file
13062 else
13063 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13064 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13065 fi
13066 fi
13067 rm -f confcache
13068
13069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13070 # Let make expand exec_prefix.
13071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13072
13073 DEFS=-DHAVE_CONFIG_H
13074
13075 ac_libobjs=
13076 ac_ltlibobjs=
13077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13078 # 1. Remove the extension, and $U if already installed.
13079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13080 ac_i=`echo "$ac_i" | sed "$ac_script"`
13081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13082 # will be set to the directory where LIBOBJS objects are built.
13083 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13084 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13085 done
13086 LIBOBJS=$ac_libobjs
13087
13088 LTLIBOBJS=$ac_ltlibobjs
13089
13090
13091
13092 : ${CONFIG_STATUS=./config.status}
13093 ac_clean_files_save=$ac_clean_files
13094 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13095 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13096 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13097 cat >$CONFIG_STATUS <<_ACEOF
13098 #! $SHELL
13099 # Generated by $as_me.
13100 # Run this file to recreate the current configuration.
13101 # Compiler output produced by configure, useful for debugging
13102 # configure, is in config.log if it exists.
13103
13104 debug=false
13105 ac_cs_recheck=false
13106 ac_cs_silent=false
13107 SHELL=\${CONFIG_SHELL-$SHELL}
13108 _ACEOF
13109
13110 cat >>$CONFIG_STATUS <<\_ACEOF
13111 ## --------------------- ##
13112 ## M4sh Initialization. ##
13113 ## --------------------- ##
13114
13115 # Be more Bourne compatible
13116 DUALCASE=1; export DUALCASE # for MKS sh
13117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13118 emulate sh
13119 NULLCMD=:
13120 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13121 # is contrary to our usage. Disable this feature.
13122 alias -g '${1+"$@"}'='"$@"'
13123 setopt NO_GLOB_SUBST
13124 else
13125 case `(set -o) 2>/dev/null` in
13126 *posix*) set -o posix ;;
13127 esac
13128
13129 fi
13130
13131
13132
13133
13134 # PATH needs CR
13135 # Avoid depending upon Character Ranges.
13136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13139 as_cr_digits='0123456789'
13140 as_cr_alnum=$as_cr_Letters$as_cr_digits
13141
13142 # The user is always right.
13143 if test "${PATH_SEPARATOR+set}" != set; then
13144 echo "#! /bin/sh" >conf$$.sh
13145 echo "exit 0" >>conf$$.sh
13146 chmod +x conf$$.sh
13147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13148 PATH_SEPARATOR=';'
13149 else
13150 PATH_SEPARATOR=:
13151 fi
13152 rm -f conf$$.sh
13153 fi
13154
13155 # Support unset when possible.
13156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13157 as_unset=unset
13158 else
13159 as_unset=false
13160 fi
13161
13162
13163 # IFS
13164 # We need space, tab and new line, in precisely that order. Quoting is
13165 # there to prevent editors from complaining about space-tab.
13166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13167 # splitting by setting IFS to empty value.)
13168 as_nl='
13169 '
13170 IFS=" "" $as_nl"
13171
13172 # Find who we are. Look in the path if we contain no directory separator.
13173 case $0 in
13174 *[\\/]* ) as_myself=$0 ;;
13175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13177 do
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
13180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13181 done
13182 IFS=$as_save_IFS
13183
13184 ;;
13185 esac
13186 # We did not find ourselves, most probably we were run as `sh COMMAND'
13187 # in which case we are not to be found in the path.
13188 if test "x$as_myself" = x; then
13189 as_myself=$0
13190 fi
13191 if test ! -f "$as_myself"; then
13192 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13193 { (exit 1); exit 1; }
13194 fi
13195
13196 # Work around bugs in pre-3.0 UWIN ksh.
13197 for as_var in ENV MAIL MAILPATH
13198 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13199 done
13200 PS1='$ '
13201 PS2='> '
13202 PS4='+ '
13203
13204 # NLS nuisances.
13205 for as_var in \
13206 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13207 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13208 LC_TELEPHONE LC_TIME
13209 do
13210 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13211 eval $as_var=C; export $as_var
13212 else
13213 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13214 fi
13215 done
13216
13217 # Required to use basename.
13218 if expr a : '\(a\)' >/dev/null 2>&1 &&
13219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13220 as_expr=expr
13221 else
13222 as_expr=false
13223 fi
13224
13225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13226 as_basename=basename
13227 else
13228 as_basename=false
13229 fi
13230
13231
13232 # Name of the executable.
13233 as_me=`$as_basename -- "$0" ||
13234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13235 X"$0" : 'X\(//\)$' \| \
13236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13237 echo X/"$0" |
13238 sed '/^.*\/\([^/][^/]*\)\/*$/{
13239 s//\1/
13240 q
13241 }
13242 /^X\/\(\/\/\)$/{
13243 s//\1/
13244 q
13245 }
13246 /^X\/\(\/\).*/{
13247 s//\1/
13248 q
13249 }
13250 s/.*/./; q'`
13251
13252 # CDPATH.
13253 $as_unset CDPATH
13254
13255
13256
13257 as_lineno_1=$LINENO
13258 as_lineno_2=$LINENO
13259 test "x$as_lineno_1" != "x$as_lineno_2" &&
13260 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13261
13262 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13263 # uniformly replaced by the line number. The first 'sed' inserts a
13264 # line-number line after each line using $LINENO; the second 'sed'
13265 # does the real work. The second script uses 'N' to pair each
13266 # line-number line with the line containing $LINENO, and appends
13267 # trailing '-' during substitution so that $LINENO is not a special
13268 # case at line end.
13269 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13270 # scripts with optimization help from Paolo Bonzini. Blame Lee
13271 # E. McMahon (1931-1989) for sed's syntax. :-)
13272 sed -n '
13273 p
13274 /[$]LINENO/=
13275 ' <$as_myself |
13276 sed '
13277 s/[$]LINENO.*/&-/
13278 t lineno
13279 b
13280 :lineno
13281 N
13282 :loop
13283 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13284 t loop
13285 s/-\n.*//
13286 ' >$as_me.lineno &&
13287 chmod +x "$as_me.lineno" ||
13288 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13289 { (exit 1); exit 1; }; }
13290
13291 # Don't try to exec as it changes $[0], causing all sort of problems
13292 # (the dirname of $[0] is not the place where we might find the
13293 # original and so on. Autoconf is especially sensitive to this).
13294 . "./$as_me.lineno"
13295 # Exit status is that of the last command.
13296 exit
13297 }
13298
13299
13300 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13301 as_dirname=dirname
13302 else
13303 as_dirname=false
13304 fi
13305
13306 ECHO_C= ECHO_N= ECHO_T=
13307 case `echo -n x` in
13308 -n*)
13309 case `echo 'x\c'` in
13310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13311 *) ECHO_C='\c';;
13312 esac;;
13313 *)
13314 ECHO_N='-n';;
13315 esac
13316
13317 if expr a : '\(a\)' >/dev/null 2>&1 &&
13318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13319 as_expr=expr
13320 else
13321 as_expr=false
13322 fi
13323
13324 rm -f conf$$ conf$$.exe conf$$.file
13325 if test -d conf$$.dir; then
13326 rm -f conf$$.dir/conf$$.file
13327 else
13328 rm -f conf$$.dir
13329 mkdir conf$$.dir
13330 fi
13331 echo >conf$$.file
13332 if ln -s conf$$.file conf$$ 2>/dev/null; then
13333 as_ln_s='ln -s'
13334 # ... but there are two gotchas:
13335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13337 # In both cases, we have to default to `cp -p'.
13338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13339 as_ln_s='cp -p'
13340 elif ln conf$$.file conf$$ 2>/dev/null; then
13341 as_ln_s=ln
13342 else
13343 as_ln_s='cp -p'
13344 fi
13345 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13346 rmdir conf$$.dir 2>/dev/null
13347
13348 if mkdir -p . 2>/dev/null; then
13349 as_mkdir_p=:
13350 else
13351 test -d ./-p && rmdir ./-p
13352 as_mkdir_p=false
13353 fi
13354
13355 if test -x / >/dev/null 2>&1; then
13356 as_test_x='test -x'
13357 else
13358 if ls -dL / >/dev/null 2>&1; then
13359 as_ls_L_option=L
13360 else
13361 as_ls_L_option=
13362 fi
13363 as_test_x='
13364 eval sh -c '\''
13365 if test -d "$1"; then
13366 test -d "$1/.";
13367 else
13368 case $1 in
13369 -*)set "./$1";;
13370 esac;
13371 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13372 ???[sx]*):;;*)false;;esac;fi
13373 '\'' sh
13374 '
13375 fi
13376 as_executable_p=$as_test_x
13377
13378 # Sed expression to map a string onto a valid CPP name.
13379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13380
13381 # Sed expression to map a string onto a valid variable name.
13382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13383
13384
13385 exec 6>&1
13386
13387 # Save the log message, to keep $[0] and so on meaningful, and to
13388 # report actual input values of CONFIG_FILES etc. instead of their
13389 # values after options handling.
13390 ac_log="
13391 This file was extended by $as_me, which was
13392 generated by GNU Autoconf 2.61. Invocation command line was
13393
13394 CONFIG_FILES = $CONFIG_FILES
13395 CONFIG_HEADERS = $CONFIG_HEADERS
13396 CONFIG_LINKS = $CONFIG_LINKS
13397 CONFIG_COMMANDS = $CONFIG_COMMANDS
13398 $ $0 $@
13399
13400 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13401 "
13402
13403 _ACEOF
13404
13405 cat >>$CONFIG_STATUS <<_ACEOF
13406 # Files that config.status was made for.
13407 config_files="$ac_config_files"
13408 config_headers="$ac_config_headers"
13409 config_commands="$ac_config_commands"
13410
13411 _ACEOF
13412
13413 cat >>$CONFIG_STATUS <<\_ACEOF
13414 ac_cs_usage="\
13415 \`$as_me' instantiates files from templates according to the
13416 current configuration.
13417
13418 Usage: $0 [OPTIONS] [FILE]...
13419
13420 -h, --help print this help, then exit
13421 -V, --version print version number and configuration settings, then exit
13422 -q, --quiet do not print progress messages
13423 -d, --debug don't remove temporary files
13424 --recheck update $as_me by reconfiguring in the same conditions
13425 --file=FILE[:TEMPLATE]
13426 instantiate the configuration file FILE
13427 --header=FILE[:TEMPLATE]
13428 instantiate the configuration header FILE
13429
13430 Configuration files:
13431 $config_files
13432
13433 Configuration headers:
13434 $config_headers
13435
13436 Configuration commands:
13437 $config_commands
13438
13439 Report bugs to <bug-autoconf@gnu.org>."
13440
13441 _ACEOF
13442 cat >>$CONFIG_STATUS <<_ACEOF
13443 ac_cs_version="\\
13444 config.status
13445 configured by $0, generated by GNU Autoconf 2.61,
13446 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13447
13448 Copyright (C) 2006 Free Software Foundation, Inc.
13449 This config.status script is free software; the Free Software Foundation
13450 gives unlimited permission to copy, distribute and modify it."
13451
13452 ac_pwd='$ac_pwd'
13453 srcdir='$srcdir'
13454 INSTALL='$INSTALL'
13455 _ACEOF
13456
13457 cat >>$CONFIG_STATUS <<\_ACEOF
13458 # If no file are specified by the user, then we need to provide default
13459 # value. By we need to know if files were specified by the user.
13460 ac_need_defaults=:
13461 while test $# != 0
13462 do
13463 case $1 in
13464 --*=*)
13465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13467 ac_shift=:
13468 ;;
13469 *)
13470 ac_option=$1
13471 ac_optarg=$2
13472 ac_shift=shift
13473 ;;
13474 esac
13475
13476 case $ac_option in
13477 # Handling of the options.
13478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13479 ac_cs_recheck=: ;;
13480 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13481 echo "$ac_cs_version"; exit ;;
13482 --debug | --debu | --deb | --de | --d | -d )
13483 debug=: ;;
13484 --file | --fil | --fi | --f )
13485 $ac_shift
13486 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13487 ac_need_defaults=false;;
13488 --header | --heade | --head | --hea )
13489 $ac_shift
13490 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13491 ac_need_defaults=false;;
13492 --he | --h)
13493 # Conflict between --help and --header
13494 { echo "$as_me: error: ambiguous option: $1
13495 Try \`$0 --help' for more information." >&2
13496 { (exit 1); exit 1; }; };;
13497 --help | --hel | -h )
13498 echo "$ac_cs_usage"; exit ;;
13499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13500 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13501 ac_cs_silent=: ;;
13502
13503 # This is an error.
13504 -*) { echo "$as_me: error: unrecognized option: $1
13505 Try \`$0 --help' for more information." >&2
13506 { (exit 1); exit 1; }; } ;;
13507
13508 *) ac_config_targets="$ac_config_targets $1"
13509 ac_need_defaults=false ;;
13510
13511 esac
13512 shift
13513 done
13514
13515 ac_configure_extra_args=
13516
13517 if $ac_cs_silent; then
13518 exec 6>/dev/null
13519 ac_configure_extra_args="$ac_configure_extra_args --silent"
13520 fi
13521
13522 _ACEOF
13523 cat >>$CONFIG_STATUS <<_ACEOF
13524 if \$ac_cs_recheck; then
13525 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13526 CONFIG_SHELL=$SHELL
13527 export CONFIG_SHELL
13528 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13529 fi
13530
13531 _ACEOF
13532 cat >>$CONFIG_STATUS <<\_ACEOF
13533 exec 5>>config.log
13534 {
13535 echo
13536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13537 ## Running $as_me. ##
13538 _ASBOX
13539 echo "$ac_log"
13540 } >&5
13541
13542 _ACEOF
13543 cat >>$CONFIG_STATUS <<_ACEOF
13544 #
13545 # INIT-COMMANDS
13546 #
13547
13548
13549 _ACEOF
13550
13551 cat >>$CONFIG_STATUS <<\_ACEOF
13552
13553 # Handling of arguments.
13554 for ac_config_target in $ac_config_targets
13555 do
13556 case $ac_config_target in
13557 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13558 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13560 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
13561
13562 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13563 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13564 { (exit 1); exit 1; }; };;
13565 esac
13566 done
13567
13568
13569 # If the user did not use the arguments to specify the items to instantiate,
13570 # then the envvar interface is used. Set only those that are not.
13571 # We use the long form for the default assignment because of an extremely
13572 # bizarre bug on SunOS 4.1.3.
13573 if $ac_need_defaults; then
13574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13577 fi
13578
13579 # Have a temporary directory for convenience. Make it in the build tree
13580 # simply because there is no reason against having it here, and in addition,
13581 # creating and moving files from /tmp can sometimes cause problems.
13582 # Hook for its removal unless debugging.
13583 # Note that there is a small window in which the directory will not be cleaned:
13584 # after its creation but before its name has been assigned to `$tmp'.
13585 $debug ||
13586 {
13587 tmp=
13588 trap 'exit_status=$?
13589 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13590 ' 0
13591 trap '{ (exit 1); exit 1; }' 1 2 13 15
13592 }
13593 # Create a (secure) tmp directory for tmp files.
13594
13595 {
13596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13597 test -n "$tmp" && test -d "$tmp"
13598 } ||
13599 {
13600 tmp=./conf$$-$RANDOM
13601 (umask 077 && mkdir "$tmp")
13602 } ||
13603 {
13604 echo "$me: cannot create a temporary directory in ." >&2
13605 { (exit 1); exit 1; }
13606 }
13607
13608 #
13609 # Set up the sed scripts for CONFIG_FILES section.
13610 #
13611
13612 # No need to generate the scripts if there are no CONFIG_FILES.
13613 # This happens for instance when ./config.status config.h
13614 if test -n "$CONFIG_FILES"; then
13615
13616 _ACEOF
13617
13618
13619
13620 ac_delim='%!_!# '
13621 for ac_last_try in false false false false false :; do
13622 cat >conf$$subs.sed <<_ACEOF
13623 SHELL!$SHELL$ac_delim
13624 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13625 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13626 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13627 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13628 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13629 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13630 exec_prefix!$exec_prefix$ac_delim
13631 prefix!$prefix$ac_delim
13632 program_transform_name!$program_transform_name$ac_delim
13633 bindir!$bindir$ac_delim
13634 sbindir!$sbindir$ac_delim
13635 libexecdir!$libexecdir$ac_delim
13636 datarootdir!$datarootdir$ac_delim
13637 datadir!$datadir$ac_delim
13638 sysconfdir!$sysconfdir$ac_delim
13639 sharedstatedir!$sharedstatedir$ac_delim
13640 localstatedir!$localstatedir$ac_delim
13641 includedir!$includedir$ac_delim
13642 oldincludedir!$oldincludedir$ac_delim
13643 docdir!$docdir$ac_delim
13644 infodir!$infodir$ac_delim
13645 htmldir!$htmldir$ac_delim
13646 dvidir!$dvidir$ac_delim
13647 pdfdir!$pdfdir$ac_delim
13648 psdir!$psdir$ac_delim
13649 libdir!$libdir$ac_delim
13650 localedir!$localedir$ac_delim
13651 mandir!$mandir$ac_delim
13652 DEFS!$DEFS$ac_delim
13653 ECHO_C!$ECHO_C$ac_delim
13654 ECHO_N!$ECHO_N$ac_delim
13655 ECHO_T!$ECHO_T$ac_delim
13656 LIBS!$LIBS$ac_delim
13657 build_alias!$build_alias$ac_delim
13658 host_alias!$host_alias$ac_delim
13659 target_alias!$target_alias$ac_delim
13660 build!$build$ac_delim
13661 build_cpu!$build_cpu$ac_delim
13662 build_vendor!$build_vendor$ac_delim
13663 build_os!$build_os$ac_delim
13664 host!$host$ac_delim
13665 host_cpu!$host_cpu$ac_delim
13666 host_vendor!$host_vendor$ac_delim
13667 host_os!$host_os$ac_delim
13668 SHLICC2!$SHLICC2$ac_delim
13669 CC!$CC$ac_delim
13670 CFLAGS!$CFLAGS$ac_delim
13671 LDFLAGS!$LDFLAGS$ac_delim
13672 CPPFLAGS!$CPPFLAGS$ac_delim
13673 ac_ct_CC!$ac_ct_CC$ac_delim
13674 EXEEXT!$EXEEXT$ac_delim
13675 OBJEXT!$OBJEXT$ac_delim
13676 CPP!$CPP$ac_delim
13677 GREP!$GREP$ac_delim
13678 EGREP!$EGREP$ac_delim
13679 LIBOBJS!$LIBOBJS$ac_delim
13680 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
13681 RANLIB!$RANLIB$ac_delim
13682 DEPENDENCY_CFLAG!$DEPENDENCY_CFLAG$ac_delim
13683 MKDEP!$MKDEP$ac_delim
13684 V_CCOPT!$V_CCOPT$ac_delim
13685 V_DEFS!$V_DEFS$ac_delim
13686 V_GROUP!$V_GROUP$ac_delim
13687 V_INCLS!$V_INCLS$ac_delim
13688 V_PCAPDEP!$V_PCAPDEP$ac_delim
13689 LOCALSRC!$LOCALSRC$ac_delim
13690 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
13691 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
13692 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13693 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13694 INSTALL_DATA!$INSTALL_DATA$ac_delim
13695 LTLIBOBJS!$LTLIBOBJS$ac_delim
13696 _ACEOF
13697
13698 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
13699 break
13700 elif $ac_last_try; then
13701 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13702 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13703 { (exit 1); exit 1; }; }
13704 else
13705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13706 fi
13707 done
13708
13709 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13710 if test -n "$ac_eof"; then
13711 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13712 ac_eof=`expr $ac_eof + 1`
13713 fi
13714
13715 cat >>$CONFIG_STATUS <<_ACEOF
13716 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13718 _ACEOF
13719 sed '
13720 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13721 s/^/s,@/; s/!/@,|#_!!_#|/
13722 :n
13723 t n
13724 s/'"$ac_delim"'$/,g/; t
13725 s/$/\\/; p
13726 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13727 ' >>$CONFIG_STATUS <conf$$subs.sed
13728 rm -f conf$$subs.sed
13729 cat >>$CONFIG_STATUS <<_ACEOF
13730 :end
13731 s/|#_!!_#|//g
13732 CEOF$ac_eof
13733 _ACEOF
13734
13735
13736 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13738 # trailing colons and then remove the whole line if VPATH becomes empty
13739 # (actually we leave an empty line to preserve line numbers).
13740 if test "x$srcdir" = x.; then
13741 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13742 s/:*\$(srcdir):*/:/
13743 s/:*\${srcdir}:*/:/
13744 s/:*@srcdir@:*/:/
13745 s/^\([^=]*=[ ]*\):*/\1/
13746 s/:*$//
13747 s/^[^=]*=[ ]*$//
13748 }'
13749 fi
13750
13751 cat >>$CONFIG_STATUS <<\_ACEOF
13752 fi # test -n "$CONFIG_FILES"
13753
13754
13755 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13756 do
13757 case $ac_tag in
13758 :[FHLC]) ac_mode=$ac_tag; continue;;
13759 esac
13760 case $ac_mode$ac_tag in
13761 :[FHL]*:*);;
13762 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13763 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13764 { (exit 1); exit 1; }; };;
13765 :[FH]-) ac_tag=-:-;;
13766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13767 esac
13768 ac_save_IFS=$IFS
13769 IFS=:
13770 set x $ac_tag
13771 IFS=$ac_save_IFS
13772 shift
13773 ac_file=$1
13774 shift
13775
13776 case $ac_mode in
13777 :L) ac_source=$1;;
13778 :[FH])
13779 ac_file_inputs=
13780 for ac_f
13781 do
13782 case $ac_f in
13783 -) ac_f="$tmp/stdin";;
13784 *) # Look for the file first in the build tree, then in the source tree
13785 # (if the path is not absolute). The absolute path cannot be DOS-style,
13786 # because $ac_f cannot contain `:'.
13787 test -f "$ac_f" ||
13788 case $ac_f in
13789 [\\/$]*) false;;
13790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13791 esac ||
13792 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13793 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13794 { (exit 1); exit 1; }; };;
13795 esac
13796 ac_file_inputs="$ac_file_inputs $ac_f"
13797 done
13798
13799 # Let's still pretend it is `configure' which instantiates (i.e., don't
13800 # use $as_me), people would be surprised to read:
13801 # /* config.h. Generated by config.status. */
13802 configure_input="Generated from "`IFS=:
13803 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13804 if test x"$ac_file" != x-; then
13805 configure_input="$ac_file. $configure_input"
13806 { echo "$as_me:$LINENO: creating $ac_file" >&5
13807 echo "$as_me: creating $ac_file" >&6;}
13808 fi
13809
13810 case $ac_tag in
13811 *:-:* | *:-) cat >"$tmp/stdin";;
13812 esac
13813 ;;
13814 esac
13815
13816 ac_dir=`$as_dirname -- "$ac_file" ||
13817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13818 X"$ac_file" : 'X\(//\)[^/]' \| \
13819 X"$ac_file" : 'X\(//\)$' \| \
13820 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13821 echo X"$ac_file" |
13822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13823 s//\1/
13824 q
13825 }
13826 /^X\(\/\/\)[^/].*/{
13827 s//\1/
13828 q
13829 }
13830 /^X\(\/\/\)$/{
13831 s//\1/
13832 q
13833 }
13834 /^X\(\/\).*/{
13835 s//\1/
13836 q
13837 }
13838 s/.*/./; q'`
13839 { as_dir="$ac_dir"
13840 case $as_dir in #(
13841 -*) as_dir=./$as_dir;;
13842 esac
13843 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13844 as_dirs=
13845 while :; do
13846 case $as_dir in #(
13847 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13848 *) as_qdir=$as_dir;;
13849 esac
13850 as_dirs="'$as_qdir' $as_dirs"
13851 as_dir=`$as_dirname -- "$as_dir" ||
13852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13853 X"$as_dir" : 'X\(//\)[^/]' \| \
13854 X"$as_dir" : 'X\(//\)$' \| \
13855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13856 echo X"$as_dir" |
13857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13858 s//\1/
13859 q
13860 }
13861 /^X\(\/\/\)[^/].*/{
13862 s//\1/
13863 q
13864 }
13865 /^X\(\/\/\)$/{
13866 s//\1/
13867 q
13868 }
13869 /^X\(\/\).*/{
13870 s//\1/
13871 q
13872 }
13873 s/.*/./; q'`
13874 test -d "$as_dir" && break
13875 done
13876 test -z "$as_dirs" || eval "mkdir $as_dirs"
13877 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13879 { (exit 1); exit 1; }; }; }
13880 ac_builddir=.
13881
13882 case "$ac_dir" in
13883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13884 *)
13885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13886 # A ".." for each directory in $ac_dir_suffix.
13887 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13888 case $ac_top_builddir_sub in
13889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13891 esac ;;
13892 esac
13893 ac_abs_top_builddir=$ac_pwd
13894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13895 # for backward compatibility:
13896 ac_top_builddir=$ac_top_build_prefix
13897
13898 case $srcdir in
13899 .) # We are building in place.
13900 ac_srcdir=.
13901 ac_top_srcdir=$ac_top_builddir_sub
13902 ac_abs_top_srcdir=$ac_pwd ;;
13903 [\\/]* | ?:[\\/]* ) # Absolute name.
13904 ac_srcdir=$srcdir$ac_dir_suffix;
13905 ac_top_srcdir=$srcdir
13906 ac_abs_top_srcdir=$srcdir ;;
13907 *) # Relative name.
13908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13909 ac_top_srcdir=$ac_top_build_prefix$srcdir
13910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13911 esac
13912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13913
13914
13915 case $ac_mode in
13916 :F)
13917 #
13918 # CONFIG_FILE
13919 #
13920
13921 case $INSTALL in
13922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13924 esac
13925 _ACEOF
13926
13927 cat >>$CONFIG_STATUS <<\_ACEOF
13928 # If the template does not know about datarootdir, expand it.
13929 # FIXME: This hack should be removed a few years after 2.60.
13930 ac_datarootdir_hack=; ac_datarootdir_seen=
13931
13932 case `sed -n '/datarootdir/ {
13933 p
13934 q
13935 }
13936 /@datadir@/p
13937 /@docdir@/p
13938 /@infodir@/p
13939 /@localedir@/p
13940 /@mandir@/p
13941 ' $ac_file_inputs` in
13942 *datarootdir*) ac_datarootdir_seen=yes;;
13943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13944 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13945 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13946 _ACEOF
13947 cat >>$CONFIG_STATUS <<_ACEOF
13948 ac_datarootdir_hack='
13949 s&@datadir@&$datadir&g
13950 s&@docdir@&$docdir&g
13951 s&@infodir@&$infodir&g
13952 s&@localedir@&$localedir&g
13953 s&@mandir@&$mandir&g
13954 s&\\\${datarootdir}&$datarootdir&g' ;;
13955 esac
13956 _ACEOF
13957
13958 # Neutralize VPATH when `$srcdir' = `.'.
13959 # Shell code in configure.ac might set extrasub.
13960 # FIXME: do we really want to maintain this feature?
13961 cat >>$CONFIG_STATUS <<_ACEOF
13962 sed "$ac_vpsub
13963 $extrasub
13964 _ACEOF
13965 cat >>$CONFIG_STATUS <<\_ACEOF
13966 :t
13967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13968 s&@configure_input@&$configure_input&;t t
13969 s&@top_builddir@&$ac_top_builddir_sub&;t t
13970 s&@srcdir@&$ac_srcdir&;t t
13971 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13972 s&@top_srcdir@&$ac_top_srcdir&;t t
13973 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13974 s&@builddir@&$ac_builddir&;t t
13975 s&@abs_builddir@&$ac_abs_builddir&;t t
13976 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13977 s&@INSTALL@&$ac_INSTALL&;t t
13978 $ac_datarootdir_hack
13979 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13980
13981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13982 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13984 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13985 which seems to be undefined. Please make sure it is defined." >&5
13986 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13987 which seems to be undefined. Please make sure it is defined." >&2;}
13988
13989 rm -f "$tmp/stdin"
13990 case $ac_file in
13991 -) cat "$tmp/out"; rm -f "$tmp/out";;
13992 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13993 esac
13994 ;;
13995 :H)
13996 #
13997 # CONFIG_HEADER
13998 #
13999 _ACEOF
14000
14001 # Transform confdefs.h into a sed script `conftest.defines', that
14002 # substitutes the proper values into config.h.in to produce config.h.
14003 rm -f conftest.defines conftest.tail
14004 # First, append a space to every undef/define line, to ease matching.
14005 echo 's/$/ /' >conftest.defines
14006 # Then, protect against being on the right side of a sed subst, or in
14007 # an unquoted here document, in config.status. If some macros were
14008 # called several times there might be several #defines for the same
14009 # symbol, which is useless. But do not sort them, since the last
14010 # AC_DEFINE must be honored.
14011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14012 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14013 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14014 # PARAMS is the parameter list in the macro definition--in most cases, it's
14015 # just an empty string.
14016 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14017 ac_dB='\\)[ (].*,\\1define\\2'
14018 ac_dC=' '
14019 ac_dD=' ,'
14020
14021 uniq confdefs.h |
14022 sed -n '
14023 t rset
14024 :rset
14025 s/^[ ]*#[ ]*define[ ][ ]*//
14026 t ok
14027 d
14028 :ok
14029 s/[\\&,]/\\&/g
14030 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14031 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14032 ' >>conftest.defines
14033
14034 # Remove the space that was appended to ease matching.
14035 # Then replace #undef with comments. This is necessary, for
14036 # example, in the case of _POSIX_SOURCE, which is predefined and required
14037 # on some systems where configure will not decide to define it.
14038 # (The regexp can be short, since the line contains either #define or #undef.)
14039 echo 's/ $//
14040 s,^[ #]*u.*,/* & */,' >>conftest.defines
14041
14042 # Break up conftest.defines:
14043 ac_max_sed_lines=50
14044
14045 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14046 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14047 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14048 # et cetera.
14049 ac_in='$ac_file_inputs'
14050 ac_out='"$tmp/out1"'
14051 ac_nxt='"$tmp/out2"'
14052
14053 while :
14054 do
14055 # Write a here document:
14056 cat >>$CONFIG_STATUS <<_ACEOF
14057 # First, check the format of the line:
14058 cat >"\$tmp/defines.sed" <<\\CEOF
14059 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14060 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14061 b
14062 :def
14063 _ACEOF
14064 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14065 echo 'CEOF
14066 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14067 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14068 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14069 grep . conftest.tail >/dev/null || break
14070 rm -f conftest.defines
14071 mv conftest.tail conftest.defines
14072 done
14073 rm -f conftest.defines conftest.tail
14074
14075 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14076 cat >>$CONFIG_STATUS <<\_ACEOF
14077 if test x"$ac_file" != x-; then
14078 echo "/* $configure_input */" >"$tmp/config.h"
14079 cat "$ac_result" >>"$tmp/config.h"
14080 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14081 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14082 echo "$as_me: $ac_file is unchanged" >&6;}
14083 else
14084 rm -f $ac_file
14085 mv "$tmp/config.h" $ac_file
14086 fi
14087 else
14088 echo "/* $configure_input */"
14089 cat "$ac_result"
14090 fi
14091 rm -f "$tmp/out12"
14092 ;;
14093
14094 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14095 echo "$as_me: executing $ac_file commands" >&6;}
14096 ;;
14097 esac
14098
14099
14100 case $ac_file$ac_mode in
14101 "default-1":C) if test -f .devel; then
14102 echo timestamp > stamp-h
14103 cat Makefile-devel-adds >> Makefile
14104 make depend
14105 fi ;;
14106
14107 esac
14108 done # for ac_tag
14109
14110
14111 { (exit 0); exit 0; }
14112 _ACEOF
14113 chmod +x $CONFIG_STATUS
14114 ac_clean_files=$ac_clean_files_save
14115
14116
14117 # configure is writing to config.log, and then calls config.status.
14118 # config.status does its own redirection, appending to config.log.
14119 # Unfortunately, on DOS this fails, as config.log is still kept open
14120 # by configure, so config.status won't be able to write to it; its
14121 # output is simply discarded. So we exec the FD to /dev/null,
14122 # effectively closing config.log, so it can be properly (re)opened and
14123 # appended to by config.status. When coming back to configure, we
14124 # need to make the FD available again.
14125 if test "$no_create" != yes; then
14126 ac_cs_success=:
14127 ac_config_status_args=
14128 test "$silent" = yes &&
14129 ac_config_status_args="$ac_config_status_args --quiet"
14130 exec 5>/dev/null
14131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14132 exec 5>>config.log
14133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14134 # would make configure fail if this is the last instruction.
14135 $ac_cs_success || { (exit 1); exit 1; }
14136 fi
14137
14138 exit 0