]> The Tcpdump Group git mirrors - tcpdump/blob - configure
ip6_print() now takes a netdissect_options pointer as its first argument.
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" "" $as_nl"
70
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83 ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
139 q
140 }
141 /^X\/\(\/\/\)$/{
142 s//\1/
143 q
144 }
145 /^X\/\(\/\).*/{
146 s//\1/
147 q
148 }
149 s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
160 fi
161
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
165 }
166 as_func_success () {
167 as_func_return 0
168 }
169 as_func_failure () {
170 as_func_return 1
171 }
172 as_func_ret_success () {
173 return 0
174 }
175 as_func_ret_failure () {
176 return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181 :
182 else
183 exitcode=1
184 echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193 :
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 :
206 else
207 exitcode=1
208 echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219 :
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
228 /*)
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
235
236
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279 (exit $1)
280 }
281 as_func_success () {
282 as_func_return 0
283 }
284 as_func_failure () {
285 as_func_return 1
286 }
287 as_func_ret_success () {
288 return 0
289 }
290 as_func_ret_failure () {
291 return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296 :
297 else
298 exitcode=1
299 echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308 :
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 :
321 else
322 exitcode=1
323 echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336 break
337 fi
338
339 fi
340
341 done
342
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368 (exit \$1)
369 }
370 as_func_success () {
371 as_func_return 0
372 }
373 as_func_failure () {
374 as_func_return 1
375 }
376 as_func_ret_success () {
377 return 0
378 }
379 as_func_ret_failure () {
380 return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385 :
386 else
387 exitcode=1
388 echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397 :
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 :
410 else
411 exitcode=1
412 echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
420 }
421
422
423
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
440 p
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
446 b
447 :lineno
448 N
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
457
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
480 *)
481 ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
529 fi
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
541 '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 SHLICC2
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 CPP
671 GREP
672 EGREP
673 LIBOBJS
674 PCAP_CONFIG
675 RANLIB
676 V_CCOPT
677 V_DEFS
678 V_GROUP
679 V_INCLS
680 V_PCAPDEP
681 LOCALSRC
682 MAN_FILE_FORMATS
683 MAN_MISC_INFO
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 LTLIBOBJS'
688 ac_subst_files=''
689 ac_precious_vars='build_alias
690 host_alias
691 target_alias
692 CC
693 CFLAGS
694 LDFLAGS
695 LIBS
696 CPPFLAGS
697 CPP'
698
699
700 # Initialize some variables set by options.
701 ac_init_help=
702 ac_init_version=false
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
705 cache_file=/dev/null
706 exec_prefix=NONE
707 no_create=
708 no_recursion=
709 prefix=NONE
710 program_prefix=NONE
711 program_suffix=NONE
712 program_transform_name=s,x,x,
713 silent=
714 site=
715 srcdir=
716 verbose=
717 x_includes=NONE
718 x_libraries=NONE
719
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir='${exec_prefix}/bin'
727 sbindir='${exec_prefix}/sbin'
728 libexecdir='${exec_prefix}/libexec'
729 datarootdir='${prefix}/share'
730 datadir='${datarootdir}'
731 sysconfdir='${prefix}/etc'
732 sharedstatedir='${prefix}/com'
733 localstatedir='${prefix}/var'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
745
746 ac_prev=
747 ac_dashdash=
748 for ac_option
749 do
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\$ac_option
753 ac_prev=
754 continue
755 fi
756
757 case $ac_option in
758 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 *) ac_optarg=yes ;;
760 esac
761
762 # Accept the important Cygnus configure options, so we can diagnose typos.
763
764 case $ac_dashdash$ac_option in
765 --)
766 ac_dashdash=yes ;;
767
768 -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 ac_prev=bindir ;;
770 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771 bindir=$ac_optarg ;;
772
773 -build | --build | --buil | --bui | --bu)
774 ac_prev=build_alias ;;
775 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776 build_alias=$ac_optarg ;;
777
778 -cache-file | --cache-file | --cache-fil | --cache-fi \
779 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
780 ac_prev=cache_file ;;
781 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
782 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783 cache_file=$ac_optarg ;;
784
785 --config-cache | -C)
786 cache_file=config.cache ;;
787
788 -datadir | --datadir | --datadi | --datad)
789 ac_prev=datadir ;;
790 -datadir=* | --datadir=* | --datadi=* | --datad=*)
791 datadir=$ac_optarg ;;
792
793 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794 | --dataroo | --dataro | --datar)
795 ac_prev=datarootdir ;;
796 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798 datarootdir=$ac_optarg ;;
799
800 -disable-* | --disable-*)
801 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807 eval enable_$ac_feature=no ;;
808
809 -docdir | --docdir | --docdi | --doc | --do)
810 ac_prev=docdir ;;
811 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812 docdir=$ac_optarg ;;
813
814 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815 ac_prev=dvidir ;;
816 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817 dvidir=$ac_optarg ;;
818
819 -enable-* | --enable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=\$ac_optarg ;;
827
828 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
829 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
830 | --exec | --exe | --ex)
831 ac_prev=exec_prefix ;;
832 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
833 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
834 | --exec=* | --exe=* | --ex=*)
835 exec_prefix=$ac_optarg ;;
836
837 -gas | --gas | --ga | --g)
838 # Obsolete; use --with-gas.
839 with_gas=yes ;;
840
841 -help | --help | --hel | --he | -h)
842 ac_init_help=long ;;
843 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844 ac_init_help=recursive ;;
845 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846 ac_init_help=short ;;
847
848 -host | --host | --hos | --ho)
849 ac_prev=host_alias ;;
850 -host=* | --host=* | --hos=* | --ho=*)
851 host_alias=$ac_optarg ;;
852
853 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854 ac_prev=htmldir ;;
855 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856 | --ht=*)
857 htmldir=$ac_optarg ;;
858
859 -includedir | --includedir | --includedi | --included | --include \
860 | --includ | --inclu | --incl | --inc)
861 ac_prev=includedir ;;
862 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
863 | --includ=* | --inclu=* | --incl=* | --inc=*)
864 includedir=$ac_optarg ;;
865
866 -infodir | --infodir | --infodi | --infod | --info | --inf)
867 ac_prev=infodir ;;
868 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869 infodir=$ac_optarg ;;
870
871 -libdir | --libdir | --libdi | --libd)
872 ac_prev=libdir ;;
873 -libdir=* | --libdir=* | --libdi=* | --libd=*)
874 libdir=$ac_optarg ;;
875
876 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
877 | --libexe | --libex | --libe)
878 ac_prev=libexecdir ;;
879 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
880 | --libexe=* | --libex=* | --libe=*)
881 libexecdir=$ac_optarg ;;
882
883 -localedir | --localedir | --localedi | --localed | --locale)
884 ac_prev=localedir ;;
885 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886 localedir=$ac_optarg ;;
887
888 -localstatedir | --localstatedir | --localstatedi | --localstated \
889 | --localstate | --localstat | --localsta | --localst | --locals)
890 ac_prev=localstatedir ;;
891 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893 localstatedir=$ac_optarg ;;
894
895 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
896 ac_prev=mandir ;;
897 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898 mandir=$ac_optarg ;;
899
900 -nfp | --nfp | --nf)
901 # Obsolete; use --without-fp.
902 with_fp=no ;;
903
904 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905 | --no-cr | --no-c | -n)
906 no_create=yes ;;
907
908 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
909 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910 no_recursion=yes ;;
911
912 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
913 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
914 | --oldin | --oldi | --old | --ol | --o)
915 ac_prev=oldincludedir ;;
916 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
917 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
918 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919 oldincludedir=$ac_optarg ;;
920
921 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
922 ac_prev=prefix ;;
923 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924 prefix=$ac_optarg ;;
925
926 -program-prefix | --program-prefix | --program-prefi | --program-pref \
927 | --program-pre | --program-pr | --program-p)
928 ac_prev=program_prefix ;;
929 -program-prefix=* | --program-prefix=* | --program-prefi=* \
930 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931 program_prefix=$ac_optarg ;;
932
933 -program-suffix | --program-suffix | --program-suffi | --program-suff \
934 | --program-suf | --program-su | --program-s)
935 ac_prev=program_suffix ;;
936 -program-suffix=* | --program-suffix=* | --program-suffi=* \
937 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938 program_suffix=$ac_optarg ;;
939
940 -program-transform-name | --program-transform-name \
941 | --program-transform-nam | --program-transform-na \
942 | --program-transform-n | --program-transform- \
943 | --program-transform | --program-transfor \
944 | --program-transfo | --program-transf \
945 | --program-trans | --program-tran \
946 | --progr-tra | --program-tr | --program-t)
947 ac_prev=program_transform_name ;;
948 -program-transform-name=* | --program-transform-name=* \
949 | --program-transform-nam=* | --program-transform-na=* \
950 | --program-transform-n=* | --program-transform-=* \
951 | --program-transform=* | --program-transfor=* \
952 | --program-transfo=* | --program-transf=* \
953 | --program-trans=* | --program-tran=* \
954 | --progr-tra=* | --program-tr=* | --program-t=*)
955 program_transform_name=$ac_optarg ;;
956
957 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958 ac_prev=pdfdir ;;
959 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960 pdfdir=$ac_optarg ;;
961
962 -psdir | --psdir | --psdi | --psd | --ps)
963 ac_prev=psdir ;;
964 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965 psdir=$ac_optarg ;;
966
967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
968 | -silent | --silent | --silen | --sile | --sil)
969 silent=yes ;;
970
971 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
972 ac_prev=sbindir ;;
973 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
974 | --sbi=* | --sb=*)
975 sbindir=$ac_optarg ;;
976
977 -sharedstatedir | --sharedstatedir | --sharedstatedi \
978 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
979 | --sharedst | --shareds | --shared | --share | --shar \
980 | --sha | --sh)
981 ac_prev=sharedstatedir ;;
982 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
983 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
984 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
985 | --sha=* | --sh=*)
986 sharedstatedir=$ac_optarg ;;
987
988 -site | --site | --sit)
989 ac_prev=site ;;
990 -site=* | --site=* | --sit=*)
991 site=$ac_optarg ;;
992
993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
994 ac_prev=srcdir ;;
995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996 srcdir=$ac_optarg ;;
997
998 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
999 | --syscon | --sysco | --sysc | --sys | --sy)
1000 ac_prev=sysconfdir ;;
1001 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1002 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003 sysconfdir=$ac_optarg ;;
1004
1005 -target | --target | --targe | --targ | --tar | --ta | --t)
1006 ac_prev=target_alias ;;
1007 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008 target_alias=$ac_optarg ;;
1009
1010 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011 verbose=yes ;;
1012
1013 -version | --version | --versio | --versi | --vers | -V)
1014 ac_init_version=: ;;
1015
1016 -with-* | --with-*)
1017 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_$ac_package=\$ac_optarg ;;
1024
1025 -without-* | --without-*)
1026 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid package name: $ac_package" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032 eval with_$ac_package=no ;;
1033
1034 --x)
1035 # Obsolete; use --with-x.
1036 with_x=yes ;;
1037
1038 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1039 | --x-incl | --x-inc | --x-in | --x-i)
1040 ac_prev=x_includes ;;
1041 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1042 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1043 x_includes=$ac_optarg ;;
1044
1045 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1046 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1047 ac_prev=x_libraries ;;
1048 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1049 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1050 x_libraries=$ac_optarg ;;
1051
1052 -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 Try \`$0 --help' for more information." >&2
1054 { (exit 1); exit 1; }; }
1055 ;;
1056
1057 *=*)
1058 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062 { (exit 1); exit 1; }; }
1063 eval $ac_envvar=\$ac_optarg
1064 export $ac_envvar ;;
1065
1066 *)
1067 # FIXME: should be removed in autoconf 3.0.
1068 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072 ;;
1073
1074 esac
1075 done
1076
1077 if test -n "$ac_prev"; then
1078 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1079 { echo "$as_me: error: missing argument to $ac_option" >&2
1080 { (exit 1); exit 1; }; }
1081 fi
1082
1083 # Be sure to have absolute directory names.
1084 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1088 do
1089 eval ac_val=\$$ac_var
1090 case $ac_val in
1091 [\\/$]* | ?:[\\/]* ) continue;;
1092 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1093 esac
1094 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095 { (exit 1); exit 1; }; }
1096 done
1097
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1101 build=$build_alias
1102 host=$host_alias
1103 target=$target_alias
1104
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x; then
1107 if test "x$build_alias" = x; then
1108 cross_compiling=maybe
1109 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110 If a cross compiler is detected then cross compile mode will be used." >&2
1111 elif test "x$build_alias" != "x$host_alias"; then
1112 cross_compiling=yes
1113 fi
1114 fi
1115
1116 ac_tool_prefix=
1117 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118
1119 test "$silent" = yes && exec 6>/dev/null
1120
1121
1122 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di=`ls -di .` &&
1124 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125 { echo "$as_me: error: Working directory cannot be determined" >&2
1126 { (exit 1); exit 1; }; }
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 { echo "$as_me: error: pwd does not report name of working directory" >&2
1129 { (exit 1); exit 1; }; }
1130
1131
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134 ac_srcdir_defaulted=yes
1135 # Try the directory containing this script, then the parent directory.
1136 ac_confdir=`$as_dirname -- "$0" ||
1137 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138 X"$0" : 'X\(//\)[^/]' \| \
1139 X"$0" : 'X\(//\)$' \| \
1140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141 echo X"$0" |
1142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143 s//\1/
1144 q
1145 }
1146 /^X\(\/\/\)[^/].*/{
1147 s//\1/
1148 q
1149 }
1150 /^X\(\/\/\)$/{
1151 s//\1/
1152 q
1153 }
1154 /^X\(\/\).*/{
1155 s//\1/
1156 q
1157 }
1158 s/.*/./; q'`
1159 srcdir=$ac_confdir
1160 if test ! -r "$srcdir/$ac_unique_file"; then
1161 srcdir=..
1162 fi
1163 else
1164 ac_srcdir_defaulted=no
1165 fi
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169 { (exit 1); exit 1; }; }
1170 fi
1171 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 ac_abs_confdir=`(
1173 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174 { (exit 1); exit 1; }; }
1175 pwd)`
1176 # When building in place, set srcdir=.
1177 if test "$ac_abs_confdir" = "$ac_pwd"; then
1178 srcdir=.
1179 fi
1180 # Remove unnecessary trailing slashes from srcdir.
1181 # Double slashes in file names in object file debugging info
1182 # mess up M-x gdb in Emacs.
1183 case $srcdir in
1184 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185 esac
1186 for ac_var in $ac_precious_vars; do
1187 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188 eval ac_env_${ac_var}_value=\$${ac_var}
1189 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191 done
1192
1193 #
1194 # Report the --help message.
1195 #
1196 if test "$ac_init_help" = "long"; then
1197 # Omit some internal or obsolete options to make the list less imposing.
1198 # This message is too long to be a string in the A/UX 3.1 sh.
1199 cat <<_ACEOF
1200 \`configure' configures this package to adapt to many kinds of systems.
1201
1202 Usage: $0 [OPTION]... [VAR=VALUE]...
1203
1204 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 VAR=VALUE. See below for descriptions of some of the useful variables.
1206
1207 Defaults for the options are specified in brackets.
1208
1209 Configuration:
1210 -h, --help display this help and exit
1211 --help=short display options specific to this package
1212 --help=recursive display the short help of all the included packages
1213 -V, --version display version information and exit
1214 -q, --quiet, --silent do not print \`checking...' messages
1215 --cache-file=FILE cache test results in FILE [disabled]
1216 -C, --config-cache alias for \`--cache-file=config.cache'
1217 -n, --no-create do not create output files
1218 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1219
1220 Installation directories:
1221 --prefix=PREFIX install architecture-independent files in PREFIX
1222 [$ac_default_prefix]
1223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1224 [PREFIX]
1225
1226 By default, \`make install' will install all the files in
1227 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1228 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 for instance \`--prefix=\$HOME'.
1230
1231 For better control, use the options below.
1232
1233 Fine tuning of the installation directories:
1234 --bindir=DIR user executables [EPREFIX/bin]
1235 --sbindir=DIR system admin executables [EPREFIX/sbin]
1236 --libexecdir=DIR program executables [EPREFIX/libexec]
1237 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1238 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1239 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1240 --libdir=DIR object code libraries [EPREFIX/lib]
1241 --includedir=DIR C header files [PREFIX/include]
1242 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1243 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1244 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1245 --infodir=DIR info documentation [DATAROOTDIR/info]
1246 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1247 --mandir=DIR man documentation [DATAROOTDIR/man]
1248 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1249 --htmldir=DIR html documentation [DOCDIR]
1250 --dvidir=DIR dvi documentation [DOCDIR]
1251 --pdfdir=DIR pdf documentation [DOCDIR]
1252 --psdir=DIR ps documentation [DOCDIR]
1253 _ACEOF
1254
1255 cat <<\_ACEOF
1256
1257 System types:
1258 --build=BUILD configure for building on BUILD [guessed]
1259 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1260 _ACEOF
1261 fi
1262
1263 if test -n "$ac_init_help"; then
1264
1265 cat <<\_ACEOF
1266
1267 Optional Features:
1268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1270 --disable-universal don't build universal on OS X
1271 --enable-smb enable possibly-buggy SMB printer default=yes
1272 --disable-smb disable possibly-buggy SMB printer
1273 --enable-ipv6 enable ipv6 (with ipv4) support
1274 --disable-ipv6 disable ipv6 support
1275
1276 Optional Packages:
1277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1279 --without-gcc don't use gcc
1280 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1281 --without-smi don't link with libsmi
1282 --with-user=USERNAME drop privileges by default to USERNAME
1283 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1284 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1285 supplied). [default=yes, if available]
1286
1287 Some influential environment variables:
1288 CC C compiler command
1289 CFLAGS C compiler flags
1290 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1291 nonstandard directory <lib dir>
1292 LIBS libraries to pass to the linker, e.g. -l<library>
1293 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294 you have headers in a nonstandard directory <include dir>
1295 CPP C preprocessor
1296
1297 Use these variables to override the choices made by `configure' or to help
1298 it to find libraries and programs with nonstandard names/locations.
1299
1300 _ACEOF
1301 ac_status=$?
1302 fi
1303
1304 if test "$ac_init_help" = "recursive"; then
1305 # If there are subdirs, report their specific --help.
1306 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307 test -d "$ac_dir" || continue
1308 ac_builddir=.
1309
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *)
1313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314 # A ".." for each directory in $ac_dir_suffix.
1315 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316 case $ac_top_builddir_sub in
1317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319 esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1325
1326 case $srcdir in
1327 .) # We are building in place.
1328 ac_srcdir=.
1329 ac_top_srcdir=$ac_top_builddir_sub
1330 ac_abs_top_srcdir=$ac_pwd ;;
1331 [\\/]* | ?:[\\/]* ) # Absolute name.
1332 ac_srcdir=$srcdir$ac_dir_suffix;
1333 ac_top_srcdir=$srcdir
1334 ac_abs_top_srcdir=$srcdir ;;
1335 *) # Relative name.
1336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337 ac_top_srcdir=$ac_top_build_prefix$srcdir
1338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342 cd "$ac_dir" || { ac_status=$?; continue; }
1343 # Check for guested configure.
1344 if test -f "$ac_srcdir/configure.gnu"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347 elif test -f "$ac_srcdir/configure"; then
1348 echo &&
1349 $SHELL "$ac_srcdir/configure" --help=recursive
1350 else
1351 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352 fi || ac_status=$?
1353 cd "$ac_pwd" || { ac_status=$?; break; }
1354 done
1355 fi
1356
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359 cat <<\_ACEOF
1360 configure
1361 generated by GNU Autoconf 2.61
1362
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368 exit
1369 fi
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1373
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61. Invocation command line was
1376
1377 $ $0 $@
1378
1379 _ACEOF
1380 exec 5>>config.log
1381 {
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1386
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1395
1396 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1397 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1400 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1401 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1402 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1403
1404 _ASUNAME
1405
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409 IFS=$as_save_IFS
1410 test -z "$as_dir" && as_dir=.
1411 echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1414
1415 } >&5
1416
1417 cat >&5 <<_ACEOF
1418
1419
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1423
1424 _ACEOF
1425
1426
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1437 do
1438 for ac_arg
1439 do
1440 case $ac_arg in
1441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443 | -silent | --silent | --silen | --sile | --sil)
1444 continue ;;
1445 *\'*)
1446 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 esac
1448 case $ac_pass in
1449 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450 2)
1451 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452 if test $ac_must_keep_next = true; then
1453 ac_must_keep_next=false # Got value, back to normal.
1454 else
1455 case $ac_arg in
1456 *=* | --config-cache | -C | -disable-* | --disable-* \
1457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459 | -with-* | --with-* | -without-* | --without-* | --x)
1460 case "$ac_configure_args0 " in
1461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462 esac
1463 ;;
1464 -* ) ac_must_keep_next=true ;;
1465 esac
1466 fi
1467 ac_configure_args="$ac_configure_args '$ac_arg'"
1468 ;;
1469 esac
1470 done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log. We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481 # Save into config.log some information that might help in debugging.
1482 {
1483 echo
1484
1485 cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490 echo
1491 # The following way of writing the cache mishandles newlines in values,
1492 (
1493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494 eval ac_val=\$$ac_var
1495 case $ac_val in #(
1496 *${as_nl}*)
1497 case $ac_var in #(
1498 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500 esac
1501 case $ac_var in #(
1502 _ | IFS | as_nl) ;; #(
1503 *) $as_unset $ac_var ;;
1504 esac ;;
1505 esac
1506 done
1507 (set) 2>&1 |
1508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509 *${as_nl}ac_space=\ *)
1510 sed -n \
1511 "s/'\''/'\''\\\\'\'''\''/g;
1512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513 ;; #(
1514 *)
1515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516 ;;
1517 esac |
1518 sort
1519 )
1520 echo
1521
1522 cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527 echo
1528 for ac_var in $ac_subst_vars
1529 do
1530 eval ac_val=\$$ac_var
1531 case $ac_val in
1532 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533 esac
1534 echo "$ac_var='\''$ac_val'\''"
1535 done | sort
1536 echo
1537
1538 if test -n "$ac_subst_files"; then
1539 cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544 echo
1545 for ac_var in $ac_subst_files
1546 do
1547 eval ac_val=\$$ac_var
1548 case $ac_val in
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 esac
1551 echo "$ac_var='\''$ac_val'\''"
1552 done | sort
1553 echo
1554 fi
1555
1556 if test -s confdefs.h; then
1557 cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562 echo
1563 cat confdefs.h
1564 echo
1565 fi
1566 test "$ac_signal" != 0 &&
1567 echo "$as_me: caught signal $ac_signal"
1568 echo "$as_me: exit $exit_status"
1569 } >&5
1570 rm -f core *.core core.conftest.* &&
1571 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572 exit $exit_status
1573 ' 0
1574 for ac_signal in 1 2 13 15; do
1575 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1578
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1581
1582 # Predefined preprocessor variables.
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1597
1598
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1602
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1607
1608
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612 set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616 set x "$ac_default_prefix/share/config.site" \
1617 "$ac_default_prefix/etc/config.site"
1618 fi
1619 shift
1620 for ac_site_file
1621 do
1622 if test -r "$ac_site_file"; then
1623 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625 sed 's/^/| /' "$ac_site_file" >&5
1626 . "$ac_site_file"
1627 fi
1628 done
1629
1630 if test -r "$cache_file"; then
1631 # Some versions of bash will fail to source /dev/null (special
1632 # files actually), so we avoid doing that.
1633 if test -f "$cache_file"; then
1634 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636 case $cache_file in
1637 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638 *) . "./$cache_file";;
1639 esac
1640 fi
1641 else
1642 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644 >$cache_file
1645 fi
1646
1647 # Check that the precious variables saved in the cache have kept the same
1648 # value.
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652 eval ac_new_set=\$ac_env_${ac_var}_set
1653 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654 eval ac_new_val=\$ac_env_${ac_var}_value
1655 case $ac_old_set,$ac_new_set in
1656 set,)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,set)
1661 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663 ac_cache_corrupted=: ;;
1664 ,);;
1665 *)
1666 if test "x$ac_old_val" != "x$ac_new_val"; then
1667 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1670 echo "$as_me: former value: $ac_old_val" >&2;}
1671 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1672 echo "$as_me: current value: $ac_new_val" >&2;}
1673 ac_cache_corrupted=:
1674 fi;;
1675 esac
1676 # Pass precious variables to config.status.
1677 if test "$ac_new_set" = set; then
1678 case $ac_new_val in
1679 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 *) ac_arg=$ac_var=$ac_new_val ;;
1681 esac
1682 case " $ac_configure_args " in
1683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1684 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685 esac
1686 fi
1687 done
1688 if $ac_cache_corrupted; then
1689 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712 ac_ext=c
1713 ac_cpp='$CPP $CPPFLAGS'
1714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719
1720 ac_aux_dir=
1721 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722 if test -f "$ac_dir/install-sh"; then
1723 ac_aux_dir=$ac_dir
1724 ac_install_sh="$ac_aux_dir/install-sh -c"
1725 break
1726 elif test -f "$ac_dir/install.sh"; then
1727 ac_aux_dir=$ac_dir
1728 ac_install_sh="$ac_aux_dir/install.sh -c"
1729 break
1730 elif test -f "$ac_dir/shtool"; then
1731 ac_aux_dir=$ac_dir
1732 ac_install_sh="$ac_aux_dir/shtool install -c"
1733 break
1734 fi
1735 done
1736 if test -z "$ac_aux_dir"; then
1737 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1741
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1747 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1748 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1749
1750
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1753 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755 { (exit 1); exit 1; }; }
1756
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762 ac_build_alias=$build_alias
1763 test "x$ac_build_alias" = x &&
1764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x &&
1766 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768 { (exit 1); exit 1; }; }
1769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772 { (exit 1); exit 1; }; }
1773
1774 fi
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1778 *-*-*) ;;
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781 { (exit 1); exit 1; }; };;
1782 esac
1783 build=$ac_cv_build
1784 ac_save_IFS=$IFS; IFS='-'
1785 set x $ac_cv_build
1786 shift
1787 build_cpu=$1
1788 build_vendor=$2
1789 shift; shift
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1792 build_os=$*
1793 IFS=$ac_save_IFS
1794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1795
1796
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test "x$host_alias" = x; then
1803 ac_cv_host=$ac_cv_build
1804 else
1805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1810
1811 fi
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1814 case $ac_cv_host in
1815 *-*-*) ;;
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818 { (exit 1); exit 1; }; };;
1819 esac
1820 host=$ac_cv_host
1821 ac_save_IFS=$IFS; IFS='-'
1822 set x $ac_cv_host
1823 shift
1824 host_cpu=$1
1825 host_vendor=$2
1826 shift; shift
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1829 host_os=$*
1830 IFS=$ac_save_IFS
1831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1843 withval=$with_gcc;
1844 fi
1845
1846 V_CCOPT="-O"
1847 V_INCLS=""
1848 if test "${srcdir}" != "." ; then
1849 V_INCLS="-I\$(srcdir)"
1850 fi
1851 if test "${CFLAGS+set}" = set; then
1852 LBL_CFLAGS="$CFLAGS"
1853 fi
1854 if test -z "$CC" ; then
1855 case "$host_os" in
1856
1857 bsdi*)
1858 # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2; ac_word=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$SHLICC2"; then
1866 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875 ac_cv_prog_SHLICC2="yes"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1878 fi
1879 done
1880 done
1881 IFS=$as_save_IFS
1882
1883 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1884 fi
1885 fi
1886 SHLICC2=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1890 else
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1893 fi
1894
1895
1896 if test $SHLICC2 = yes ; then
1897 CC=shlicc2
1898 export CC
1899 fi
1900 ;;
1901 esac
1902 fi
1903 if test -z "$CC" -a "$with_gcc" = no ; then
1904 CC=cc
1905 export CC
1906 fi
1907
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1934 fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 CC=$ac_cv_prog_CC
1942 if test -n "$CC"; then
1943 { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1945 else
1946 { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1948 fi
1949
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953 ac_ct_CC=$CC
1954 # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_ac_ct_CC="gcc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 else
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990 if test "x$ac_ct_CC" = x; then
1991 CC=""
1992 else
1993 case $cross_compiling:$ac_tool_warned in
1994 yes:)
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet. If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet. If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned=yes ;;
2002 esac
2003 CC=$ac_ct_CC
2004 fi
2005 else
2006 CC="$ac_cv_prog_CC"
2007 fi
2008
2009 if test -z "$CC"; then
2010 if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}cc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="${ac_tool_prefix}cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048 fi
2049 fi
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected=yes
2071 continue
2072 fi
2073 ac_cv_prog_CC="cc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077 done
2078 done
2079 IFS=$as_save_IFS
2080
2081 if test $ac_prog_rejected = yes; then
2082 # We found a bogon in the path, so make sure we never use it.
2083 set dummy $ac_cv_prog_CC
2084 shift
2085 if test $# != 0; then
2086 # We chose a different compiler from the bogus one.
2087 # However, it has the same basename, so the bogon will be chosen
2088 # first if we set CC to just the basename; use the full file name.
2089 shift
2090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2091 fi
2092 fi
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097 { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100 { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105 fi
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog in cl.exe
2109 do
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147 test -n "$CC" && break
2148 done
2149 fi
2150 if test -z "$CC"; then
2151 ac_ct_CC=$CC
2152 for ac_prog in cl.exe
2153 do
2154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC="$ac_prog"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 else
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190
2191 test -n "$ac_ct_CC" && break
2192 done
2193
2194 if test "x$ac_ct_CC" = x; then
2195 CC=""
2196 else
2197 case $cross_compiling:$ac_tool_warned in
2198 yes:)
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet. If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet. If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned=yes ;;
2206 esac
2207 CC=$ac_ct_CC
2208 fi
2209 fi
2210
2211 fi
2212
2213
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218 { (exit 1); exit 1; }; }
2219
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler=`set X $ac_compile; echo $2`
2223 { (ac_try="$ac_compiler --version >&5"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler --version >&5") 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2234 case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237 esac
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239 (eval "$ac_compiler -v >&5") 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }
2243 { (ac_try="$ac_compiler -V >&5"
2244 case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2247 esac
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler -V >&5") 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2253
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2260
2261 int
2262 main ()
2263 {
2264
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2273 # of exeext.
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 #
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2280 # only as a last resort. b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 #
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions. Remove them first so a
2285 # subsequent execution test works.
2286 ac_rmfiles=
2287 for ac_file in $ac_files
2288 do
2289 case $ac_file in
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292 esac
2293 done
2294 rm -f $ac_rmfiles
2295
2296 if { (ac_try="$ac_link_default"
2297 case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300 esac
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302 (eval "$ac_link_default") 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2310 # Autoconf.
2311 for ac_file in $ac_files ''
2312 do
2313 test -f "$ac_file" || continue
2314 case $ac_file in
2315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2316 ;;
2317 [ab].out )
2318 # We found the default executable, but exeext='' is most
2319 # certainly right.
2320 break;;
2321 *.* )
2322 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323 then :; else
2324 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325 fi
2326 # We set ac_cv_exeext here because the later test for it is not
2327 # safe: cross compilers may not add the suffix if given an `-o'
2328 # argument, so we may need to know it at that point already.
2329 # Even if this section looks crufty: it has the advantage of
2330 # actually working.
2331 break;;
2332 * )
2333 break;;
2334 esac
2335 done
2336 test "$ac_cv_exeext" = no && ac_cv_exeext=
2337
2338 else
2339 ac_file=''
2340 fi
2341
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352 { (exit 77); exit 77; }; }
2353 fi
2354
2355 ac_exeext=$ac_cv_exeext
2356
2357 # Check that the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try='./$ac_file'
2365 { (case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_try") 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 cross_compiling=no
2375 else
2376 if test "$cross_compiling" = maybe; then
2377 cross_compiling=yes
2378 else
2379 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&2;}
2385 { (exit 1); exit 1; }; }
2386 fi
2387 fi
2388 fi
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2391
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run. If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2400
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_link") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2414 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 # `rm'.
2417 for ac_file in conftest.exe conftest conftest.*; do
2418 test -f "$ac_file" || continue
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 break;;
2423 * ) break;;
2424 esac
2425 done
2426 else
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433
2434 rm -f conftest$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437
2438 rm -f conftest.$ac_ext
2439 EXEEXT=$ac_cv_exeext
2440 ac_exeext=$EXEEXT
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446 cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h. */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452
2453 int
2454 main ()
2455 {
2456
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; then
2472 for ac_file in conftest.o conftest.obj conftest.*; do
2473 test -f "$ac_file" || continue;
2474 case $ac_file in
2475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477 break;;
2478 esac
2479 done
2480 else
2481 echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2508
2509 int
2510 main ()
2511 {
2512 #ifndef __GNUC__
2513 choke me
2514 #endif
2515
2516 ;
2517 return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compile") 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then
2537 ac_compiler_gnu=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_compiler_gnu=no
2543 fi
2544
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2547
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559 ac_save_c_werror_flag=$ac_c_werror_flag
2560 ac_c_werror_flag=yes
2561 ac_cv_prog_cc_g=no
2562 CFLAGS="-g"
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573
2574 ;
2575 return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compile") 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } && {
2592 test -z "$ac_c_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest.$ac_objext; then
2595 ac_cv_prog_cc_g=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 CFLAGS=""
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2607
2608 int
2609 main ()
2610 {
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2633 :
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2639 CFLAGS="-g"
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2646
2647 int
2648 main ()
2649 {
2650
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2672 ac_cv_prog_cc_g=yes
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677
2678 fi
2679
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 ac_c_werror_flag=$ac_save_c_werror_flag
2688 fi
2689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692 CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694 if test "$GCC" = yes; then
2695 CFLAGS="-g -O2"
2696 else
2697 CFLAGS="-g"
2698 fi
2699 else
2700 if test "$GCC" = yes; then
2701 CFLAGS="-O2"
2702 else
2703 CFLAGS=
2704 fi
2705 fi
2706 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2707 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 ac_cv_prog_cc_c89=no
2712 ac_save_CC=$CC
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2719 #include <stdarg.h>
2720 #include <stdio.h>
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2727 char **p;
2728 int i;
2729 {
2730 return p[i];
2731 }
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2733 {
2734 char *s;
2735 va_list v;
2736 va_start (v,p);
2737 s = g (p, va_arg (v,int));
2738 va_end (v);
2739 return s;
2740 }
2741
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2743 function prototypes and stuff, but not '\xHH' hex character constants.
2744 These don't provoke an error unfortunately, instead are silently treated
2745 as 'x'. The following induces an error, until -std is added to get
2746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2747 array size at least. It's necessary to write '\x00'==0 to get something
2748 that's true only with -std. */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752 inside strings and character constants. */
2753 #define FOO(x) 'x'
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762 int
2763 main ()
2764 {
2765 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2766 ;
2767 return 0;
2768 }
2769 _ACEOF
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 do
2773 CC="$ac_save_CC $ac_arg"
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 ac_cv_prog_cc_c89=$ac_arg
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext
2800 test "x$ac_cv_prog_cc_c89" != "xno" && break
2801 done
2802 rm -f conftest.$ac_ext
2803 CC=$ac_save_CC
2804
2805 fi
2806 # AC_CACHE_VAL
2807 case "x$ac_cv_prog_cc_c89" in
2808 x)
2809 { echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6; } ;;
2811 xno)
2812 { echo "$as_me:$LINENO: result: unsupported" >&5
2813 echo "${ECHO_T}unsupported" >&6; } ;;
2814 *)
2815 CC="$CC $ac_cv_prog_cc_c89"
2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2818 esac
2819
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828
2829
2830
2831 if test "$GCC" = yes ; then
2832 if test "$SHLICC2" = yes ; then
2833 ac_cv_lbl_gcc_vers=2
2834 V_CCOPT="-O2"
2835 else
2836 { echo "$as_me:$LINENO: checking gcc version" >&5
2837 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2838 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842 sed -e '/^gcc version /!d' \
2843 -e 's/^gcc version //' \
2844 -e 's/ .*//' -e 's/^[^0-9]*//' \
2845 -e 's/\..*//'`
2846 fi
2847
2848 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2851 V_CCOPT="-O2"
2852 fi
2853 fi
2854 else
2855 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2856 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2857 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867 #include <sys/types.h>
2868 int
2869 main ()
2870 {
2871 int frob(int, char *)
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_cv_lbl_cc_ansi_prototypes=yes
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 ac_cv_lbl_cc_ansi_prototypes=no
2899 fi
2900
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 fi
2903
2904 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2905 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2906 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2907 case "$host_os" in
2908
2909 hpux*)
2910 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2911 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2912 savedcflags="$CFLAGS"
2913 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2914 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <sys/types.h>
2924 int
2925 main ()
2926 {
2927 int frob(int, char *)
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (ac_try="$ac_compile"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } && {
2946 test -z "$ac_c_werror_flag" ||
2947 test ! -s conftest.err
2948 } && test -s conftest.$ac_objext; then
2949 ac_cv_lbl_cc_hpux_cc_aa=yes
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ac_cv_lbl_cc_hpux_cc_aa=no
2955 fi
2956
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 fi
2959
2960 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2961 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2962 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2963 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2964 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2965 { (exit 1); exit 1; }; }
2966 fi
2967 CFLAGS="$savedcflags"
2968 V_CCOPT="-Aa $V_CCOPT"
2969
2970 cat >>confdefs.h <<\_ACEOF
2971 #define _HPUX_SOURCE 1
2972 _ACEOF
2973
2974 ;;
2975
2976 osf*)
2977 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2978 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2979 savedcflags="$CFLAGS"
2980 CFLAGS="-std1"
2981 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #include <sys/types.h>
2991 int
2992 main ()
2993 {
2994 int frob(int, char *)
2995 ;
2996 return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3007 ac_status=$?
3008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3016 ac_cv_lbl_cc_osf1_cc_std1=yes
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 ac_cv_lbl_cc_osf1_cc_std1=no
3022 fi
3023
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 fi
3026
3027 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3028 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3029 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3030 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3031 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034 CFLAGS="$savedcflags"
3035 V_CCOPT="-std1 $V_CCOPT"
3036 ;;
3037
3038 *)
3039 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3040 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3041 { (exit 1); exit 1; }; }
3042 ;;
3043 esac
3044 fi
3045 V_INCLS="$V_INCLS -I/usr/local/include"
3046 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3047
3048 case "$host_os" in
3049
3050 irix*)
3051 V_CCOPT="$V_CCOPT -xansi -signed -O"
3052 ;;
3053
3054 osf*)
3055 #
3056 # Presumed to be DEC OSF/1, Digital UNIX, or
3057 # Tru64 UNIX.
3058 #
3059 V_CCOPT="$V_CCOPT -O"
3060 ;;
3061
3062 ultrix*)
3063 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3064 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3065 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <sys/types.h>
3075 int
3076 main ()
3077 {
3078 struct a { int b; };
3079 void c(const struct a *)
3080 ;
3081 return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3101 ac_cv_lbl_cc_const_proto=yes
3102 else
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 ac_cv_lbl_cc_const_proto=no
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 fi
3111
3112 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3113 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3114 if test $ac_cv_lbl_cc_const_proto = no ; then
3115
3116 cat >>confdefs.h <<\_ACEOF
3117 #define const
3118 _ACEOF
3119
3120 fi
3121 ;;
3122 esac
3123 fi
3124
3125 { echo "$as_me:$LINENO: checking for inline" >&5
3126 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3127 save_CFLAGS="$CFLAGS"
3128 CFLAGS="$V_CCOPT"
3129 if test "${ac_cv_lbl_inline+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132
3133 ac_cv_lbl_inline=""
3134 ac_lbl_cc_inline=no
3135 for ac_lbl_inline in inline __inline__ __inline
3136 do
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #define inline $ac_lbl_inline
3144 static inline struct iltest *foo(void);
3145 struct iltest {
3146 int iltest1;
3147 int iltest2;
3148 };
3149
3150 static inline struct iltest *
3151 foo()
3152 {
3153 static struct iltest xxx;
3154
3155 return &xxx;
3156 }
3157 int
3158 main ()
3159 {
3160
3161 ;
3162 return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_lbl_cc_inline=yes
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 if test "$ac_lbl_cc_inline" = yes ; then
3192 break;
3193 fi
3194 done
3195 if test "$ac_lbl_cc_inline" = yes ; then
3196 ac_cv_lbl_inline=$ac_lbl_inline
3197 fi
3198 fi
3199
3200 CFLAGS="$save_CFLAGS"
3201 if test ! -z "$ac_cv_lbl_inline" ; then
3202 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3203 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3204 else
3205 { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3207 fi
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define inline $ac_cv_lbl_inline
3211 _ACEOF
3212
3213
3214 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3215 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3216 if test "${ac_cv___attribute__+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3226
3227 #include <stdlib.h>
3228
3229 static void foo(void) __attribute__ ((noreturn));
3230
3231 static void
3232 foo(void)
3233 {
3234 exit(1);
3235 }
3236
3237 int
3238 main(int argc, char **argv)
3239 {
3240 foo();
3241 }
3242
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3261 ac_cv___attribute__=yes
3262 else
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 ac_cv___attribute__=no
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 fi
3271
3272 if test "$ac_cv___attribute__" = "yes"; then
3273
3274 cat >>confdefs.h <<\_ACEOF
3275 #define HAVE___ATTRIBUTE__ 1
3276 _ACEOF
3277
3278 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3279 else
3280 V_DEFS="$V_DEFS -D_U_=\"\""
3281 fi
3282 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3283 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3284
3285 if test "$ac_cv___attribute__" = "yes"; then
3286
3287 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3288 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3289 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292
3293 cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h. */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3299
3300 #include <stdlib.h>
3301
3302 extern int (*foo)(const char *fmt, ...)
3303 __attribute__ ((format (printf, 1, 2)));
3304
3305 int
3306 main(int argc, char **argv)
3307 {
3308 (*foo)("%s", "test");
3309 }
3310
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3329 ac_cv___attribute___format_function_pointer=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_cv___attribute___format_function_pointer=no
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339
3340 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3341
3342 cat >>confdefs.h <<\_ACEOF
3343 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3344 _ACEOF
3345
3346 fi
3347 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3348 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3349
3350 fi
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3358 # On Suns, sometimes $CPP names a directory.
3359 if test -n "$CPP" && test -d "$CPP"; then
3360 CPP=
3361 fi
3362 if test -z "$CPP"; then
3363 if test "${ac_cv_prog_CPP+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 # Double quotes because CPP needs to be expanded
3367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3368 do
3369 ac_preproc_ok=false
3370 for ac_c_preproc_warn_flag in '' yes
3371 do
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #ifdef __STDC__
3385 # include <limits.h>
3386 #else
3387 # include <assert.h>
3388 #endif
3389 Syntax error
3390 _ACEOF
3391 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null && {
3404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3405 test ! -s conftest.err
3406 }; then
3407 :
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411
3412 # Broken: fails on valid input.
3413 continue
3414 fi
3415
3416 rm -f conftest.err conftest.$ac_ext
3417
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null && {
3441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3442 test ! -s conftest.err
3443 }; then
3444 # Broken: success on invalid input.
3445 continue
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 # Passes both tests.
3451 ac_preproc_ok=:
3452 break
3453 fi
3454
3455 rm -f conftest.err conftest.$ac_ext
3456
3457 done
3458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3459 rm -f conftest.err conftest.$ac_ext
3460 if $ac_preproc_ok; then
3461 break
3462 fi
3463
3464 done
3465 ac_cv_prog_CPP=$CPP
3466
3467 fi
3468 CPP=$ac_cv_prog_CPP
3469 else
3470 ac_cv_prog_CPP=$CPP
3471 fi
3472 { echo "$as_me:$LINENO: result: $CPP" >&5
3473 echo "${ECHO_T}$CPP" >&6; }
3474 ac_preproc_ok=false
3475 for ac_c_preproc_warn_flag in '' yes
3476 do
3477 # Use a header file that comes with gcc, so configuring glibc
3478 # with a fresh cross-compiler works.
3479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3480 # <limits.h> exists even on freestanding compilers.
3481 # On the NeXT, cc -E runs the code through the compiler's parser,
3482 # not just through cpp. "Syntax error" is here to catch this case.
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 #ifdef __STDC__
3490 # include <limits.h>
3491 #else
3492 # include <assert.h>
3493 #endif
3494 Syntax error
3495 _ACEOF
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } >/dev/null && {
3509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 }; then
3512 :
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 # Broken: fails on valid input.
3518 continue
3519 fi
3520
3521 rm -f conftest.err conftest.$ac_ext
3522
3523 # OK, works on sane cases. Now check whether nonexistent headers
3524 # can be detected and how.
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3531 #include <ac_nonexistent.h>
3532 _ACEOF
3533 if { (ac_try="$ac_cpp conftest.$ac_ext"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 }; then
3549 # Broken: success on invalid input.
3550 continue
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555 # Passes both tests.
3556 ac_preproc_ok=:
3557 break
3558 fi
3559
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3566 :
3567 else
3568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3573 fi
3574
3575 ac_ext=c
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
3581
3582 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3583 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3584 if test "${ac_cv_path_GREP+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587 # Extract the first word of "grep ggrep" to use in msg output
3588 if test -z "$GREP"; then
3589 set dummy grep ggrep; ac_prog_name=$2
3590 if test "${ac_cv_path_GREP+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 ac_path_GREP_found=false
3594 # Loop through the user's path and test for each of PROGNAME-LIST
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_prog in grep ggrep; do
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3604 # Check for GNU ac_path_GREP and select it if it is found.
3605 # Check for GNU $ac_path_GREP
3606 case `"$ac_path_GREP" --version 2>&1` in
3607 *GNU*)
3608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3609 *)
3610 ac_count=0
3611 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3612 while :
3613 do
3614 cat "conftest.in" "conftest.in" >"conftest.tmp"
3615 mv "conftest.tmp" "conftest.in"
3616 cp "conftest.in" "conftest.nl"
3617 echo 'GREP' >> "conftest.nl"
3618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3620 ac_count=`expr $ac_count + 1`
3621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3622 # Best one so far, save it but keep looking for a better one
3623 ac_cv_path_GREP="$ac_path_GREP"
3624 ac_path_GREP_max=$ac_count
3625 fi
3626 # 10*(2^10) chars as input seems more than enough
3627 test $ac_count -gt 10 && break
3628 done
3629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3630 esac
3631
3632
3633 $ac_path_GREP_found && break 3
3634 done
3635 done
3636
3637 done
3638 IFS=$as_save_IFS
3639
3640
3641 fi
3642
3643 GREP="$ac_cv_path_GREP"
3644 if test -z "$GREP"; then
3645 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3646 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3647 { (exit 1); exit 1; }; }
3648 fi
3649
3650 else
3651 ac_cv_path_GREP=$GREP
3652 fi
3653
3654
3655 fi
3656 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3657 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3658 GREP="$ac_cv_path_GREP"
3659
3660
3661 { echo "$as_me:$LINENO: checking for egrep" >&5
3662 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3663 if test "${ac_cv_path_EGREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3667 then ac_cv_path_EGREP="$GREP -E"
3668 else
3669 # Extract the first word of "egrep" to use in msg output
3670 if test -z "$EGREP"; then
3671 set dummy egrep; ac_prog_name=$2
3672 if test "${ac_cv_path_EGREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675 ac_path_EGREP_found=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3679 do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_prog in egrep; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3686 # Check for GNU ac_path_EGREP and select it if it is found.
3687 # Check for GNU $ac_path_EGREP
3688 case `"$ac_path_EGREP" --version 2>&1` in
3689 *GNU*)
3690 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3691 *)
3692 ac_count=0
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3694 while :
3695 do
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'EGREP' >> "conftest.nl"
3700 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702 ac_count=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_EGREP="$ac_path_EGREP"
3706 ac_path_EGREP_max=$ac_count
3707 fi
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3710 done
3711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3712 esac
3713
3714
3715 $ac_path_EGREP_found && break 3
3716 done
3717 done
3718
3719 done
3720 IFS=$as_save_IFS
3721
3722
3723 fi
3724
3725 EGREP="$ac_cv_path_EGREP"
3726 if test -z "$EGREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3730 fi
3731
3732 else
3733 ac_cv_path_EGREP=$EGREP
3734 fi
3735
3736
3737 fi
3738 fi
3739 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3740 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3741 EGREP="$ac_cv_path_EGREP"
3742
3743
3744 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3746 if test "${ac_cv_header_stdc+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755 #include <stdlib.h>
3756 #include <stdarg.h>
3757 #include <string.h>
3758 #include <float.h>
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (ac_try="$ac_compile"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 ac_cv_header_stdc=yes
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790 ac_cv_header_stdc=no
3791 fi
3792
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794
3795 if test $ac_cv_header_stdc = yes; then
3796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <string.h>
3804
3805 _ACEOF
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 $EGREP "memchr" >/dev/null 2>&1; then
3808 :
3809 else
3810 ac_cv_header_stdc=no
3811 fi
3812 rm -f -r conftest*
3813
3814 fi
3815
3816 if test $ac_cv_header_stdc = yes; then
3817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h. */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <stdlib.h>
3825
3826 _ACEOF
3827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3828 $EGREP "free" >/dev/null 2>&1; then
3829 :
3830 else
3831 ac_cv_header_stdc=no
3832 fi
3833 rm -f -r conftest*
3834
3835 fi
3836
3837 if test $ac_cv_header_stdc = yes; then
3838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3839 if test "$cross_compiling" = yes; then
3840 :
3841 else
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848 #include <ctype.h>
3849 #include <stdlib.h>
3850 #if ((' ' & 0x0FF) == 0x020)
3851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3853 #else
3854 # define ISLOWER(c) \
3855 (('a' <= (c) && (c) <= 'i') \
3856 || ('j' <= (c) && (c) <= 'r') \
3857 || ('s' <= (c) && (c) <= 'z'))
3858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3859 #endif
3860
3861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3862 int
3863 main ()
3864 {
3865 int i;
3866 for (i = 0; i < 256; i++)
3867 if (XOR (islower (i), ISLOWER (i))
3868 || toupper (i) != TOUPPER (i))
3869 return 2;
3870 return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest$ac_exeext
3874 if { (ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_link") 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3884 { (case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 :
3894 else
3895 echo "$as_me: program exited with status $ac_status" >&5
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 ( exit $ac_status )
3900 ac_cv_header_stdc=no
3901 fi
3902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3903 fi
3904
3905
3906 fi
3907 fi
3908 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3909 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3910 if test $ac_cv_header_stdc = yes; then
3911
3912 cat >>confdefs.h <<\_ACEOF
3913 #define STDC_HEADERS 1
3914 _ACEOF
3915
3916 fi
3917
3918 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3929 inttypes.h stdint.h unistd.h
3930 do
3931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 $ac_includes_default
3944
3945 #include <$ac_header>
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 eval "$as_ac_Header=yes"
3965 else
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 eval "$as_ac_Header=no"
3970 fi
3971
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974 ac_res=`eval echo '${'$as_ac_Header'}'`
3975 { echo "$as_me:$LINENO: result: $ac_res" >&5
3976 echo "${ECHO_T}$ac_res" >&6; }
3977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3978 cat >>confdefs.h <<_ACEOF
3979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3980 _ACEOF
3981
3982 fi
3983
3984 done
3985
3986
3987
3988
3989
3990 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3991 do
3992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 fi
3999 ac_res=`eval echo '${'$as_ac_Header'}'`
4000 { echo "$as_me:$LINENO: result: $ac_res" >&5
4001 echo "${ECHO_T}$ac_res" >&6; }
4002 else
4003 # Is the header compilable?
4004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4013 #include <$ac_header>
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_header_compiler=yes
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 ac_header_compiler=no
4038 fi
4039
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4042 echo "${ECHO_T}$ac_header_compiler" >&6; }
4043
4044 # Is the header present?
4045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h. */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <$ac_header>
4054 _ACEOF
4055 if { (ac_try="$ac_cpp conftest.$ac_ext"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } >/dev/null && {
4068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4069 test ! -s conftest.err
4070 }; then
4071 ac_header_preproc=yes
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 ac_header_preproc=no
4077 fi
4078
4079 rm -f conftest.err conftest.$ac_ext
4080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4081 echo "${ECHO_T}$ac_header_preproc" >&6; }
4082
4083 # So? What about this header?
4084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4085 yes:no: )
4086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4090 ac_header_preproc=yes
4091 ;;
4092 no:yes:* )
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4105
4106 ;;
4107 esac
4108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113 eval "$as_ac_Header=\$ac_header_preproc"
4114 fi
4115 ac_res=`eval echo '${'$as_ac_Header'}'`
4116 { echo "$as_me:$LINENO: result: $ac_res" >&5
4117 echo "${ECHO_T}$ac_res" >&6; }
4118
4119 fi
4120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121 cat >>confdefs.h <<_ACEOF
4122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4123 _ACEOF
4124
4125 fi
4126
4127 done
4128
4129
4130 for ac_header in net/pfvar.h
4131 do
4132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4145 #include <sys/socket.h>
4146 #include <net/if.h>
4147
4148 #include <$ac_header>
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 eval "$as_ac_Header=yes"
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 eval "$as_ac_Header=no"
4173 fi
4174
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 fi
4177 ac_res=`eval echo '${'$as_ac_Header'}'`
4178 { echo "$as_me:$LINENO: result: $ac_res" >&5
4179 echo "${ECHO_T}$ac_res" >&6; }
4180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4183 _ACEOF
4184
4185 fi
4186
4187 done
4188
4189 if test "$ac_cv_header_net_pfvar_h" = yes; then
4190 LOCALSRC="print-pflog.c $LOCALSRC"
4191 fi
4192
4193 for ac_header in netinet/if_ether.h
4194 do
4195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #include <sys/types.h>
4208 #include <sys/socket.h>
4209
4210 #include <$ac_header>
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 eval "$as_ac_Header=yes"
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 eval "$as_ac_Header=no"
4235 fi
4236
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 fi
4239 ac_res=`eval echo '${'$as_ac_Header'}'`
4240 { echo "$as_me:$LINENO: result: $ac_res" >&5
4241 echo "${ECHO_T}$ac_res" >&6; }
4242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4243 cat >>confdefs.h <<_ACEOF
4244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4245 _ACEOF
4246
4247 fi
4248
4249 done
4250
4251 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4252 #
4253 # The simple test didn't work.
4254 # Do we need to include <net/if.h> first?
4255 # Unset ac_cv_header_netinet_if_ether_h so we don't
4256 # treat the previous failure as a cached value and
4257 # suppress the next test.
4258 #
4259 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4260 echo "$as_me: Rechecking with some additional includes" >&6;}
4261 unset ac_cv_header_netinet_if_ether_h
4262
4263 for ac_header in netinet/if_ether.h
4264 do
4265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <sys/types.h>
4278 #include <sys/socket.h>
4279 #include <netinet/in.h>
4280 struct mbuf;
4281 struct rtentry;
4282 #include <net/if.h>
4283
4284 #include <$ac_header>
4285 _ACEOF
4286 rm -f conftest.$ac_objext
4287 if { (ac_try="$ac_compile"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_compile") 2>conftest.er1
4294 ac_status=$?
4295 grep -v '^ *+' conftest.er1 >conftest.err
4296 rm -f conftest.er1
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_c_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest.$ac_objext; then
4303 eval "$as_ac_Header=yes"
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308 eval "$as_ac_Header=no"
4309 fi
4310
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 ac_res=`eval echo '${'$as_ac_Header'}'`
4314 { echo "$as_me:$LINENO: result: $ac_res" >&5
4315 echo "${ECHO_T}$ac_res" >&6; }
4316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4317 cat >>confdefs.h <<_ACEOF
4318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4319 _ACEOF
4320
4321 fi
4322
4323 done
4324
4325 fi
4326
4327 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4328 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4329 if test "${ac_cv_header_time+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4339 #include <sys/time.h>
4340 #include <time.h>
4341
4342 int
4343 main ()
4344 {
4345 if ((struct tm *) 0)
4346 return 0;
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (ac_try="$ac_compile"
4353 case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
4368 ac_cv_header_time=yes
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 ac_cv_header_time=no
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4380 if test $ac_cv_header_time = yes; then
4381
4382 cat >>confdefs.h <<\_ACEOF
4383 #define TIME_WITH_SYS_TIME 1
4384 _ACEOF
4385
4386 fi
4387
4388
4389 case "$host_os" in
4390
4391 darwin*)
4392 # Check whether --enable-universal was given.
4393 if test "${enable_universal+set}" = set; then
4394 enableval=$enable_universal;
4395 fi
4396
4397 if test "$enable_universal" != "no"; then
4398 case "$host_os" in
4399
4400 darwin9.*)
4401 #
4402 # Leopard. Build for x86 and 32-bit PowerPC, with
4403 # x86 first. (That's what Apple does.)
4404 #
4405 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4406 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4407 ;;
4408
4409 darwin10.*)
4410 #
4411 # Snow Leopard. Build for x86-64 and x86, with
4412 # x86-64 first. (That's what Apple does.)
4413 #
4414 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4415 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4416 ;;
4417 esac
4418 fi
4419 ;;
4420
4421 linux*)
4422 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4423 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4424 if test "$cross_compiling" = yes; then
4425 if test "${ac_cv_linux_vers+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 ac_cv_linux_vers=unknown
4429 fi
4430
4431 else
4432 if test "${ac_cv_linux_vers+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 ac_cv_linux_vers=`uname -r 2>&1 | \
4436 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4437 fi
4438
4439 fi
4440 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4441 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4442 if test $ac_cv_linux_vers = unknown ; then
4443 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4444 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4445 { (exit 1); exit 1; }; }
4446 fi
4447 if test $ac_cv_linux_vers -lt 2 ; then
4448 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4449 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4450 { (exit 1); exit 1; }; }
4451 fi
4452 ;;
4453
4454 *)
4455 ;;
4456 esac
4457
4458
4459
4460 # Check whether --with-smi was given.
4461 if test "${with_smi+set}" = set; then
4462 withval=$with_smi;
4463 else
4464 with_smi=yes
4465 fi
4466
4467
4468 if test "x$with_smi" != "xno" ; then
4469
4470 for ac_header in smi.h
4471 do
4472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 fi
4479 ac_res=`eval echo '${'$as_ac_Header'}'`
4480 { echo "$as_me:$LINENO: result: $ac_res" >&5
4481 echo "${ECHO_T}$ac_res" >&6; }
4482 else
4483 # Is the header compilable?
4484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4493 #include <$ac_header>
4494 _ACEOF
4495 rm -f conftest.$ac_objext
4496 if { (ac_try="$ac_compile"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_compile") 2>conftest.er1
4503 ac_status=$?
4504 grep -v '^ *+' conftest.er1 >conftest.err
4505 rm -f conftest.er1
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } && {
4509 test -z "$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4511 } && test -s conftest.$ac_objext; then
4512 ac_header_compiler=yes
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 ac_header_compiler=no
4518 fi
4519
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4522 echo "${ECHO_T}$ac_header_compiler" >&6; }
4523
4524 # Is the header present?
4525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #include <$ac_header>
4534 _ACEOF
4535 if { (ac_try="$ac_cpp conftest.$ac_ext"
4536 case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } >/dev/null && {
4548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4549 test ! -s conftest.err
4550 }; then
4551 ac_header_preproc=yes
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ac_header_preproc=no
4557 fi
4558
4559 rm -f conftest.err conftest.$ac_ext
4560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4561 echo "${ECHO_T}$ac_header_preproc" >&6; }
4562
4563 # So? What about this header?
4564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4565 yes:no: )
4566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4570 ac_header_preproc=yes
4571 ;;
4572 no:yes:* )
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4585
4586 ;;
4587 esac
4588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 eval "$as_ac_Header=\$ac_header_preproc"
4594 fi
4595 ac_res=`eval echo '${'$as_ac_Header'}'`
4596 { echo "$as_me:$LINENO: result: $ac_res" >&5
4597 echo "${ECHO_T}$ac_res" >&6; }
4598
4599 fi
4600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4601 cat >>confdefs.h <<_ACEOF
4602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4603 _ACEOF
4604
4605 fi
4606
4607 done
4608
4609
4610 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4611 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4612 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 ac_check_lib_save_LIBS=$LIBS
4616 LIBS="-lsmi $LIBS"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623
4624 /* Override any GCC internal prototype to avoid an error.
4625 Use char because int might match the return type of a GCC
4626 builtin and then its argument prototype would still apply. */
4627 #ifdef __cplusplus
4628 extern "C"
4629 #endif
4630 char smiInit ();
4631 int
4632 main ()
4633 {
4634 return smiInit ();
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (ac_try="$ac_link"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_link") 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest$ac_exeext &&
4656 $as_test_x conftest$ac_exeext; then
4657 ac_cv_lib_smi_smiInit=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_cv_lib_smi_smiInit=no
4663 fi
4664
4665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4666 conftest$ac_exeext conftest.$ac_ext
4667 LIBS=$ac_check_lib_save_LIBS
4668 fi
4669 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4670 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4671 if test $ac_cv_lib_smi_smiInit = yes; then
4672 cat >>confdefs.h <<_ACEOF
4673 #define HAVE_LIBSMI 1
4674 _ACEOF
4675
4676 LIBS="-lsmi $LIBS"
4677
4678 fi
4679
4680 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4681 then
4682 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4683 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4684 if test "$cross_compiling" = yes; then
4685 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4686 echo "${ECHO_T}not when cross-compiling" >&6; }
4687 libsmi=no
4688
4689 else
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 /* libsmi available check */
4697 #include <smi.h>
4698 main()
4699 {
4700 int current, revision, age, n;
4701 const int required = 2;
4702 if (smiInit(""))
4703 exit(1);
4704 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4705 exit(2);
4706 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4707 if (n != 3)
4708 exit(3);
4709 if (required < current - age || required > current)
4710 exit(4);
4711 exit(0);
4712 }
4713
4714 _ACEOF
4715 rm -f conftest$ac_exeext
4716 if { (ac_try="$ac_link"
4717 case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720 esac
4721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4722 (eval "$ac_link") 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4726 { (case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729 esac
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4731 (eval "$ac_try") 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 { echo "$as_me:$LINENO: result: yes" >&5
4736 echo "${ECHO_T}yes" >&6; }
4737 cat >>confdefs.h <<\_ACEOF
4738 #define LIBSMI 1
4739 _ACEOF
4740
4741 libsmi=yes
4742 else
4743 echo "$as_me: program exited with status $ac_status" >&5
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 ( exit $ac_status )
4748 case $? in
4749 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4750 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4751 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4752 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4753 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4754 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4755 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4756 echo "${ECHO_T}no - too old" >&6; } ;;
4757 *) { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; } ;;
4759 esac
4760 libsmi=no
4761 fi
4762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4763 fi
4764
4765
4766 fi
4767 fi
4768
4769 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4770 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4771 # Check whether --enable-smb was given.
4772 if test "${enable_smb+set}" = set; then
4773 enableval=$enable_smb;
4774 else
4775 enableval=yes
4776 fi
4777
4778 case "$enableval" in
4779 yes) { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4781 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4782 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4783 cat >>confdefs.h <<\_ACEOF
4784 #define TCPDUMP_DO_SMB 1
4785 _ACEOF
4786
4787 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4788 ;;
4789 *) { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4791 ;;
4792 esac
4793
4794
4795 # Check whether --with-user was given.
4796 if test "${with_user+set}" = set; then
4797 withval=$with_user;
4798 fi
4799
4800 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4801 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4802 if test ! -z "$with_user" ; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define WITH_USER "$withval"
4805 _ACEOF
4806
4807 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4808 echo "${ECHO_T}to \"$withval\"" >&6; }
4809 else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4812 fi
4813
4814
4815 # Check whether --with-chroot was given.
4816 if test "${with_chroot+set}" = set; then
4817 withval=$with_chroot;
4818 fi
4819
4820 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4821 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4822 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4823 cat >>confdefs.h <<_ACEOF
4824 #define WITH_CHROOT "$withval"
4825 _ACEOF
4826
4827 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4828 echo "${ECHO_T}to \"$withval\"" >&6; }
4829 else
4830 { echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6; }
4832 fi
4833
4834 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4835 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4836 # Check whether --enable-ipv6 was given.
4837 if test "${enable_ipv6+set}" = set; then
4838 enableval=$enable_ipv6; case "$enableval" in
4839 yes) { echo "$as_me:$LINENO: result: yes" >&5
4840 echo "${ECHO_T}yes" >&6; }
4841 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 $LOCALSRC"
4842 cat >>confdefs.h <<\_ACEOF
4843 #define INET6 1
4844 _ACEOF
4845
4846 ipv6=yes
4847 ;;
4848 *)
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 ipv6=no
4852 ;;
4853 esac
4854 else
4855 if test "$cross_compiling" = yes; then
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 ipv6=no
4859
4860 else
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 /* AF_INET6 available check */
4868 #include <sys/types.h>
4869 #include <sys/socket.h>
4870 main()
4871 {
4872 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4873 exit(1);
4874 else
4875 exit(0);
4876 }
4877
4878 _ACEOF
4879 rm -f conftest$ac_exeext
4880 if { (ac_try="$ac_link"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_link") 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4890 { (case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4893 esac
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_try") 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 { echo "$as_me:$LINENO: result: yes" >&5
4900 echo "${ECHO_T}yes" >&6; }
4901 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 $LOCALSRC"
4902 cat >>confdefs.h <<\_ACEOF
4903 #define INET6 1
4904 _ACEOF
4905
4906 ipv6=yes
4907 else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912 ( exit $ac_status )
4913 { echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6; }
4915 ipv6=no
4916 fi
4917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4918 fi
4919
4920
4921 fi
4922
4923
4924 ipv6type=unknown
4925 ipv6lib=none
4926 ipv6trylibc=no
4927
4928 if test "$ipv6" = "yes"; then
4929 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4930 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4931 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4932 case $i in
4933 inria)
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 #include <netinet/in.h>
4941 #ifdef IPV6_INRIA_VERSION
4942 yes
4943 #endif
4944 _ACEOF
4945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946 $EGREP "yes" >/dev/null 2>&1; then
4947 ipv6type=$i;
4948 CFLAGS="-DINET6 $CFLAGS"
4949 fi
4950 rm -f -r conftest*
4951
4952 ;;
4953 kame)
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <netinet/in.h>
4961 #ifdef __KAME__
4962 yes
4963 #endif
4964 _ACEOF
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 $EGREP "yes" >/dev/null 2>&1; then
4967 ipv6type=$i;
4968 ipv6lib=inet6;
4969 ipv6libdir=/usr/local/v6/lib;
4970 ipv6trylibc=yes;
4971 CFLAGS="-DINET6 $CFLAGS"
4972 fi
4973 rm -f -r conftest*
4974
4975 ;;
4976 linux-glibc)
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 #include <features.h>
4984 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4985 yes
4986 #endif
4987 _ACEOF
4988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4989 $EGREP "yes" >/dev/null 2>&1; then
4990 ipv6type=$i;
4991 CFLAGS="-DINET6 $CFLAGS"
4992 fi
4993 rm -f -r conftest*
4994
4995 ;;
4996 linux-libinet6)
4997 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4998 ipv6type=$i
4999 ipv6lib=inet6
5000 ipv6libdir=/usr/inet6/lib
5001 ipv6trylibc=yes;
5002 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5003 fi
5004 ;;
5005 toshiba)
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 #include <sys/param.h>
5013 #ifdef _TOSHIBA_INET6
5014 yes
5015 #endif
5016 _ACEOF
5017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018 $EGREP "yes" >/dev/null 2>&1; then
5019 ipv6type=$i;
5020 ipv6lib=inet6;
5021 ipv6libdir=/usr/local/v6/lib;
5022 CFLAGS="-DINET6 $CFLAGS"
5023 fi
5024 rm -f -r conftest*
5025
5026 ;;
5027 v6d)
5028 cat >conftest.$ac_ext <<_ACEOF
5029 /* confdefs.h. */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 #include </usr/local/v6/include/sys/v6config.h>
5035 #ifdef __V6D__
5036 yes
5037 #endif
5038 _ACEOF
5039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040 $EGREP "yes" >/dev/null 2>&1; then
5041 ipv6type=$i;
5042 ipv6lib=v6;
5043 ipv6libdir=/usr/local/v6/lib;
5044 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5045 fi
5046 rm -f -r conftest*
5047
5048 ;;
5049 zeta)
5050 cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h. */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <sys/param.h>
5057 #ifdef _ZETA_MINAMI_INET6
5058 yes
5059 #endif
5060 _ACEOF
5061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 $EGREP "yes" >/dev/null 2>&1; then
5063 ipv6type=$i;
5064 ipv6lib=inet6;
5065 ipv6libdir=/usr/local/v6/lib;
5066 CFLAGS="-DINET6 $CFLAGS"
5067 fi
5068 rm -f -r conftest*
5069
5070 ;;
5071 esac
5072 if test "$ipv6type" != "unknown"; then
5073 break
5074 fi
5075 done
5076 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5077 echo "${ECHO_T}$ipv6type" >&6; }
5078 fi
5079
5080 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5081 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5082 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5083 echo "You have $ipv6lib library, using it"
5084 else
5085 if test "$ipv6trylibc" = "yes"; then
5086 echo "You do not have $ipv6lib library, using libc"
5087 else
5088 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5089 echo "You need to fetch lib$ipv6lib.a from appropriate"
5090 echo 'ipv6 kit and compile beforehand.'
5091 exit 1
5092 fi
5093 fi
5094 fi
5095
5096
5097 if test "$ipv6" = "yes"; then
5098 #
5099 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5100 # function in libc; there are "ngetaddrinfo()" and
5101 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5102 # "getaddrinfo" to be either "ngetaddrinfo" or
5103 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5104 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5105 #
5106 # So this test doesn't work on Tru64 5.1, and possibly
5107 # on other 5.x releases. This causes the configure
5108 # script to become confused, and results in libpcap
5109 # being unbuildable.
5110 #
5111 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5112 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5113 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 ac_func_search_save_LIBS=$LIBS
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123
5124 /* Override any GCC internal prototype to avoid an error.
5125 Use char because int might match the return type of a GCC
5126 builtin and then its argument prototype would still apply. */
5127 #ifdef __cplusplus
5128 extern "C"
5129 #endif
5130 char getaddrinfo ();
5131 int
5132 main ()
5133 {
5134 return getaddrinfo ();
5135 ;
5136 return 0;
5137 }
5138 _ACEOF
5139 for ac_lib in '' socket; do
5140 if test -z "$ac_lib"; then
5141 ac_res="none required"
5142 else
5143 ac_res=-l$ac_lib
5144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5145 fi
5146 rm -f conftest.$ac_objext conftest$ac_exeext
5147 if { (ac_try="$ac_link"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_link") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest$ac_exeext &&
5163 $as_test_x conftest$ac_exeext; then
5164 ac_cv_search_getaddrinfo=$ac_res
5165 else
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5168
5169
5170 fi
5171
5172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5173 conftest$ac_exeext
5174 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5175 break
5176 fi
5177 done
5178 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5179 :
5180 else
5181 ac_cv_search_getaddrinfo=no
5182 fi
5183 rm conftest.$ac_ext
5184 LIBS=$ac_func_search_save_LIBS
5185 fi
5186 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5187 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5188 ac_res=$ac_cv_search_getaddrinfo
5189 if test "$ac_res" != no; then
5190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5191 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5192 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5193 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 if test "$cross_compiling" = yes; then
5197 td_cv_buggygetaddrinfo=yes
5198 else
5199 cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h. */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h. */
5205
5206 #include <sys/types.h>
5207 #include <netdb.h>
5208 #include <string.h>
5209 #include <sys/socket.h>
5210 #include <netinet/in.h>
5211
5212 main()
5213 {
5214 int passive, gaierr, inet4 = 0, inet6 = 0;
5215 struct addrinfo hints, *ai, *aitop;
5216 char straddr[INET6_ADDRSTRLEN], strport[16];
5217
5218 for (passive = 0; passive <= 1; passive++) {
5219 memset(&hints, 0, sizeof(hints));
5220 hints.ai_family = AF_UNSPEC;
5221 hints.ai_flags = passive ? AI_PASSIVE : 0;
5222 hints.ai_socktype = SOCK_STREAM;
5223 hints.ai_protocol = IPPROTO_TCP;
5224 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5225 (void)gai_strerror(gaierr);
5226 goto bad;
5227 }
5228 for (ai = aitop; ai; ai = ai->ai_next) {
5229 if (ai->ai_addr == NULL ||
5230 ai->ai_addrlen == 0 ||
5231 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5232 straddr, sizeof(straddr), strport, sizeof(strport),
5233 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5234 goto bad;
5235 }
5236 switch (ai->ai_family) {
5237 case AF_INET:
5238 if (strcmp(strport, "54321") != 0) {
5239 goto bad;
5240 }
5241 if (passive) {
5242 if (strcmp(straddr, "0.0.0.0") != 0) {
5243 goto bad;
5244 }
5245 } else {
5246 if (strcmp(straddr, "127.0.0.1") != 0) {
5247 goto bad;
5248 }
5249 }
5250 inet4++;
5251 break;
5252 case AF_INET6:
5253 if (strcmp(strport, "54321") != 0) {
5254 goto bad;
5255 }
5256 if (passive) {
5257 if (strcmp(straddr, "::") != 0) {
5258 goto bad;
5259 }
5260 } else {
5261 if (strcmp(straddr, "::1") != 0) {
5262 goto bad;
5263 }
5264 }
5265 inet6++;
5266 break;
5267 case AF_UNSPEC:
5268 goto bad;
5269 break;
5270 #ifdef AF_UNIX
5271 case AF_UNIX:
5272 #else
5273 #ifdef AF_LOCAL
5274 case AF_LOCAL:
5275 #endif
5276 #endif
5277 default:
5278 /* another family support? */
5279 break;
5280 }
5281 }
5282 }
5283
5284 /* supported family should be 2, unsupported family should be 0 */
5285 if (!(inet4 == 0 || inet4 == 2))
5286 goto bad;
5287 if (!(inet6 == 0 || inet6 == 2))
5288 goto bad;
5289
5290 if (aitop)
5291 freeaddrinfo(aitop);
5292 exit(0);
5293
5294 bad:
5295 if (aitop)
5296 freeaddrinfo(aitop);
5297 exit(1);
5298 }
5299
5300 _ACEOF
5301 rm -f conftest$ac_exeext
5302 if { (ac_try="$ac_link"
5303 case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_link") 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 td_cv_buggygetaddrinfo=no
5322 else
5323 echo "$as_me: program exited with status $ac_status" >&5
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ( exit $ac_status )
5328 td_cv_buggygetaddrinfo=yes
5329 fi
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5331 fi
5332
5333
5334 fi
5335
5336 if test "$td_cv_buggygetaddrinfo" = no; then
5337 { echo "$as_me:$LINENO: result: good" >&5
5338 echo "${ECHO_T}good" >&6; }
5339 else
5340 { echo "$as_me:$LINENO: result: buggy" >&5
5341 echo "${ECHO_T}buggy" >&6; }
5342 fi
5343
5344 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5345 #
5346 # XXX - it doesn't appear that "ipv6type" can ever be
5347 # set to "linux". Should this be testing for
5348 # "linux-glibc", or for that *or* "linux-libinet6"?
5349 # If the latter, note that "linux-libinet6" is also
5350 # the type given to some non-Linux OSes.
5351 #
5352 if test "$ipv6type" != "linux"; then
5353 echo 'Fatal: You must get working getaddrinfo() function.'
5354 echo ' or you can specify "--disable-ipv6"'.
5355 exit 1
5356 else
5357 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5358 echo ' Better upgrade your system library to newest version'
5359 echo ' of GNU C library (aka glibc).'
5360 fi
5361 fi
5362
5363 fi
5364
5365
5366 for ac_func in getnameinfo
5367 do
5368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5382 #define $ac_func innocuous_$ac_func
5383
5384 /* System header to define __stub macros and hopefully few prototypes,
5385 which can conflict with char $ac_func (); below.
5386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387 <limits.h> exists even on freestanding compilers. */
5388
5389 #ifdef __STDC__
5390 # include <limits.h>
5391 #else
5392 # include <assert.h>
5393 #endif
5394
5395 #undef $ac_func
5396
5397 /* Override any GCC internal prototype to avoid an error.
5398 Use char because int might match the return type of a GCC
5399 builtin and then its argument prototype would still apply. */
5400 #ifdef __cplusplus
5401 extern "C"
5402 #endif
5403 char $ac_func ();
5404 /* The GNU C library defines this for functions which it implements
5405 to always fail with ENOSYS. Some functions are actually named
5406 something starting with __ and the normal name is an alias. */
5407 #if defined __stub_$ac_func || defined __stub___$ac_func
5408 choke me
5409 #endif
5410
5411 int
5412 main ()
5413 {
5414 return $ac_func ();
5415 ;
5416 return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext conftest$ac_exeext
5420 if { (ac_try="$ac_link"
5421 case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5424 esac
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_link") 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } && {
5433 test -z "$ac_c_werror_flag" ||
5434 test ! -s conftest.err
5435 } && test -s conftest$ac_exeext &&
5436 $as_test_x conftest$ac_exeext; then
5437 eval "$as_ac_var=yes"
5438 else
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5441
5442 eval "$as_ac_var=no"
5443 fi
5444
5445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5446 conftest$ac_exeext conftest.$ac_ext
5447 fi
5448 ac_res=`eval echo '${'$as_ac_var'}'`
5449 { echo "$as_me:$LINENO: result: $ac_res" >&5
5450 echo "${ECHO_T}$ac_res" >&6; }
5451 if test `eval echo '${'$as_ac_var'}'` = yes; then
5452 cat >>confdefs.h <<_ACEOF
5453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5454 _ACEOF
5455
5456 else
5457 case " $LIBOBJS " in
5458 *" $ac_func.$ac_objext "* ) ;;
5459 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5460 ;;
5461 esac
5462
5463 fi
5464 done
5465
5466
5467 fi
5468
5469 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5470 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5471 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <netdnet/dnetdb.h>
5481
5482 _ACEOF
5483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5485 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5486 else
5487 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5488 fi
5489 rm -f -r conftest*
5490
5491 fi
5492 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5493 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5494 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5497 _ACEOF
5498
5499 fi
5500
5501
5502 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5503 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5504 if test "${ac_cv_addrinfo+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513
5514 # include <netdb.h>
5515 int
5516 main ()
5517 {
5518 struct addrinfo a
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5525 case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 ac_cv_addrinfo=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545 ac_cv_addrinfo=no
5546 fi
5547
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 fi
5550
5551 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5552 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5553 if test $ac_cv_addrinfo = yes; then
5554 cat >>confdefs.h <<\_ACEOF
5555 #define HAVE_ADDRINFO 1
5556 _ACEOF
5557
5558 else
5559 cat >>confdefs.h <<\_ACEOF
5560 #define NEED_ADDRINFO_H 1
5561 _ACEOF
5562
5563 fi
5564
5565 if test "$ac_cv_addrinfo" = no; then
5566 missing_includes=yes
5567 fi
5568
5569
5570 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5571 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5572 if test "${ac_cv_maxserv+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <netdb.h>
5582 #ifdef NI_MAXSERV
5583 yes
5584 #endif
5585 _ACEOF
5586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5587 $EGREP "yes" >/dev/null 2>&1; then
5588 ac_cv_maxserv=yes
5589 else
5590 ac_cv_maxserv=no
5591 fi
5592 rm -f -r conftest*
5593
5594 fi
5595
5596 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5597 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5598 if test $ac_cv_maxserv != yes; then
5599 cat >>confdefs.h <<\_ACEOF
5600 #define NEED_ADDRINFO_H 1
5601 _ACEOF
5602
5603 fi
5604
5605 if test "$ac_cv_maxserv" = no; then
5606 missing_includes=yes
5607 fi
5608
5609
5610 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5611 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5612 if test "${ac_cv_namereqd+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #include <netdb.h>
5622 #ifdef NI_NOFQDN
5623 yes
5624 #endif
5625 _ACEOF
5626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5627 $EGREP "yes" >/dev/null 2>&1; then
5628 ac_cv_namereqd=yes
5629 else
5630 ac_cv_namereqd=no
5631 fi
5632 rm -f -r conftest*
5633
5634 fi
5635
5636 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5637 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
5638 if test $ac_cv_namereqd != yes; then
5639 cat >>confdefs.h <<\_ACEOF
5640 #define NEED_ADDRINFO_H 1
5641 _ACEOF
5642
5643 fi
5644
5645 if test "$ac_cv_namereqd" = no; then
5646 missing_includes=yes
5647 fi
5648
5649
5650 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5651 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5652 if test "${ac_cv_sa_storage+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661
5662 # include <sys/types.h>
5663 # include <sys/socket.h>
5664 int
5665 main ()
5666 {
5667 struct sockaddr_storage s
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (ac_try="$ac_compile"
5674 case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677 esac
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_c_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
5689 ac_cv_sa_storage=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 ac_cv_sa_storage=no
5695 fi
5696
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 fi
5699
5700 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5701 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
5702 if test $ac_cv_sa_storage = yes; then
5703 cat >>confdefs.h <<\_ACEOF
5704 #define HAVE_SOCKADDR_STORAGE 1
5705 _ACEOF
5706
5707 fi
5708
5709 if test "$ac_cv_sa_storage" = no; then
5710 missing_includes=yes
5711 fi
5712
5713
5714 ac_cv_addrsz=yes
5715 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
5716 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
5717 if test "${ac_cv_inaddrsz+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726
5727 # include <arpa/nameser.h>
5728 int
5729 main ()
5730 {
5731 int a = INADDRSZ
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_inaddrsz=yes
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ac_cv_inaddrsz=no
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 fi
5763
5764 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
5765 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
5766 if test $ac_cv_inaddrsz = yes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define HAVE_INADDRSZ 1
5769 _ACEOF
5770
5771 else
5772 ac_cv_addrsz=no
5773 fi
5774 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
5775 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
5776 if test "${ac_cv_in6addrsz+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785
5786 # include <arpa/nameser.h>
5787 int
5788 main ()
5789 {
5790 int a = IN6ADDRSZ
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (ac_try="$ac_compile"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5812 ac_cv_in6addrsz=yes
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 ac_cv_in6addrsz=no
5818 fi
5819
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 fi
5822
5823 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
5824 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
5825 if test $ac_cv_in6addrsz = yes; then
5826 cat >>confdefs.h <<\_ACEOF
5827 #define HAVE_IN6ADDRSZ 1
5828 _ACEOF
5829
5830 else
5831 ac_cv_addrsz=no
5832 fi
5833
5834 if test "$ac_cv_addrsz" = no; then
5835 missing_includes=yes
5836 fi
5837
5838
5839 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
5840 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
5841 if test "${ac_cv_res_inet6+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850
5851 # include <sys/types.h>
5852 # include <netinet/in.h>
5853 # include <resolv.h>
5854 int
5855 main ()
5856 {
5857 int a = RES_USE_INET6
5858 ;
5859 return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5864 case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5879 ac_cv_res_inet6=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 ac_cv_res_inet6=no
5885 fi
5886
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889
5890 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
5891 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
5892 if test $ac_cv_res_inet6 = yes; then
5893 cat >>confdefs.h <<\_ACEOF
5894 #define HAVE_RES_USE_INET6 1
5895 _ACEOF
5896
5897 fi
5898
5899 if test "$ac_cv_res_inet6" = no; then
5900 missing_includes=yes
5901 fi
5902
5903
5904 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
5905 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
5906 if test "${ac_cv_res_state_ext+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915
5916 # include <sys/types.h>
5917 # include <netinet/in.h>
5918 # include <netinet6/in6.h>
5919 # include <resolv.h>
5920 int
5921 main ()
5922 {
5923 struct __res_state_ext e
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (ac_try="$ac_compile"
5930 case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_compile") 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && {
5942 test -z "$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 } && test -s conftest.$ac_objext; then
5945 ac_cv_res_state_ext=yes
5946 else
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 ac_cv_res_state_ext=no
5951 fi
5952
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955
5956 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
5957 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
5958 if test $ac_cv_res_state_ext = yes; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define HAVE_RES_STATE_EXT 1
5961 _ACEOF
5962
5963 fi
5964
5965 if test "$ac_cv_res_state_ext" = no; then
5966 missing_includes=yes
5967 fi
5968
5969
5970 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
5971 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
5972 if test "${ac_cv_res_state+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981
5982 # include <sys/types.h>
5983 # include <netinet/in.h>
5984 # include <netinet6/in6.h>
5985 # include <resolv.h>
5986 int
5987 main ()
5988 {
5989 struct __res_state e; e.nsort = 0
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_compile") 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && {
6008 test -z "$ac_c_werror_flag" ||
6009 test ! -s conftest.err
6010 } && test -s conftest.$ac_objext; then
6011 ac_cv_res_state=yes
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016 ac_cv_res_state=no
6017 fi
6018
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 fi
6021
6022 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6023 echo "${ECHO_T}$ac_cv_res_state" >&6; }
6024 if test $ac_cv_res_state = yes; then
6025 cat >>confdefs.h <<\_ACEOF
6026 #define HAVE_NEW_RES_STATE 1
6027 _ACEOF
6028
6029 fi
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6040 do
6041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6055 #define $ac_func innocuous_$ac_func
6056
6057 /* System header to define __stub macros and hopefully few prototypes,
6058 which can conflict with char $ac_func (); below.
6059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060 <limits.h> exists even on freestanding compilers. */
6061
6062 #ifdef __STDC__
6063 # include <limits.h>
6064 #else
6065 # include <assert.h>
6066 #endif
6067
6068 #undef $ac_func
6069
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6073 #ifdef __cplusplus
6074 extern "C"
6075 #endif
6076 char $ac_func ();
6077 /* The GNU C library defines this for functions which it implements
6078 to always fail with ENOSYS. Some functions are actually named
6079 something starting with __ and the normal name is an alias. */
6080 #if defined __stub_$ac_func || defined __stub___$ac_func
6081 choke me
6082 #endif
6083
6084 int
6085 main ()
6086 {
6087 return $ac_func ();
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (ac_try="$ac_link"
6094 case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_link") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest$ac_exeext &&
6109 $as_test_x conftest$ac_exeext; then
6110 eval "$as_ac_var=yes"
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 eval "$as_ac_var=no"
6116 fi
6117
6118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6119 conftest$ac_exeext conftest.$ac_ext
6120 fi
6121 ac_res=`eval echo '${'$as_ac_var'}'`
6122 { echo "$as_me:$LINENO: result: $ac_res" >&5
6123 echo "${ECHO_T}$ac_res" >&6; }
6124 if test `eval echo '${'$as_ac_var'}'` = yes; then
6125 cat >>confdefs.h <<_ACEOF
6126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6127 _ACEOF
6128
6129 else
6130 case " $LIBOBJS " in
6131 *" $ac_func.$ac_objext "* ) ;;
6132 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6133 ;;
6134 esac
6135
6136 fi
6137 done
6138
6139
6140
6141
6142
6143 for ac_func in fork vfork strftime
6144 do
6145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6159 #define $ac_func innocuous_$ac_func
6160
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char $ac_func (); below.
6163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6164 <limits.h> exists even on freestanding compilers. */
6165
6166 #ifdef __STDC__
6167 # include <limits.h>
6168 #else
6169 # include <assert.h>
6170 #endif
6171
6172 #undef $ac_func
6173
6174 /* Override any GCC internal prototype to avoid an error.
6175 Use char because int might match the return type of a GCC
6176 builtin and then its argument prototype would still apply. */
6177 #ifdef __cplusplus
6178 extern "C"
6179 #endif
6180 char $ac_func ();
6181 /* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184 #if defined __stub_$ac_func || defined __stub___$ac_func
6185 choke me
6186 #endif
6187
6188 int
6189 main ()
6190 {
6191 return $ac_func ();
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (ac_try="$ac_link"
6198 case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6201 esac
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_link") 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } && {
6210 test -z "$ac_c_werror_flag" ||
6211 test ! -s conftest.err
6212 } && test -s conftest$ac_exeext &&
6213 $as_test_x conftest$ac_exeext; then
6214 eval "$as_ac_var=yes"
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 eval "$as_ac_var=no"
6220 fi
6221
6222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6223 conftest$ac_exeext conftest.$ac_ext
6224 fi
6225 ac_res=`eval echo '${'$as_ac_var'}'`
6226 { echo "$as_me:$LINENO: result: $ac_res" >&5
6227 echo "${ECHO_T}$ac_res" >&6; }
6228 if test `eval echo '${'$as_ac_var'}'` = yes; then
6229 cat >>confdefs.h <<_ACEOF
6230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6231 _ACEOF
6232
6233 fi
6234 done
6235
6236
6237
6238 for ac_func in setlinebuf alarm
6239 do
6240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h. */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6254 #define $ac_func innocuous_$ac_func
6255
6256 /* System header to define __stub macros and hopefully few prototypes,
6257 which can conflict with char $ac_func (); below.
6258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6259 <limits.h> exists even on freestanding compilers. */
6260
6261 #ifdef __STDC__
6262 # include <limits.h>
6263 #else
6264 # include <assert.h>
6265 #endif
6266
6267 #undef $ac_func
6268
6269 /* Override any GCC internal prototype to avoid an error.
6270 Use char because int might match the return type of a GCC
6271 builtin and then its argument prototype would still apply. */
6272 #ifdef __cplusplus
6273 extern "C"
6274 #endif
6275 char $ac_func ();
6276 /* The GNU C library defines this for functions which it implements
6277 to always fail with ENOSYS. Some functions are actually named
6278 something starting with __ and the normal name is an alias. */
6279 #if defined __stub_$ac_func || defined __stub___$ac_func
6280 choke me
6281 #endif
6282
6283 int
6284 main ()
6285 {
6286 return $ac_func ();
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 rm -f conftest.$ac_objext conftest$ac_exeext
6292 if { (ac_try="$ac_link"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_link") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest$ac_exeext &&
6308 $as_test_x conftest$ac_exeext; then
6309 eval "$as_ac_var=yes"
6310 else
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 eval "$as_ac_var=no"
6315 fi
6316
6317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6318 conftest$ac_exeext conftest.$ac_ext
6319 fi
6320 ac_res=`eval echo '${'$as_ac_var'}'`
6321 { echo "$as_me:$LINENO: result: $ac_res" >&5
6322 echo "${ECHO_T}$ac_res" >&6; }
6323 if test `eval echo '${'$as_ac_var'}'` = yes; then
6324 cat >>confdefs.h <<_ACEOF
6325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6326 _ACEOF
6327
6328 fi
6329 done
6330
6331
6332 needsnprintf=no
6333
6334
6335 for ac_func in vsnprintf snprintf
6336 do
6337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6351 #define $ac_func innocuous_$ac_func
6352
6353 /* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char $ac_func (); below.
6355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6356 <limits.h> exists even on freestanding compilers. */
6357
6358 #ifdef __STDC__
6359 # include <limits.h>
6360 #else
6361 # include <assert.h>
6362 #endif
6363
6364 #undef $ac_func
6365
6366 /* Override any GCC internal prototype to avoid an error.
6367 Use char because int might match the return type of a GCC
6368 builtin and then its argument prototype would still apply. */
6369 #ifdef __cplusplus
6370 extern "C"
6371 #endif
6372 char $ac_func ();
6373 /* The GNU C library defines this for functions which it implements
6374 to always fail with ENOSYS. Some functions are actually named
6375 something starting with __ and the normal name is an alias. */
6376 #if defined __stub_$ac_func || defined __stub___$ac_func
6377 choke me
6378 #endif
6379
6380 int
6381 main ()
6382 {
6383 return $ac_func ();
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (ac_try="$ac_link"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_link") 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } && {
6402 test -z "$ac_c_werror_flag" ||
6403 test ! -s conftest.err
6404 } && test -s conftest$ac_exeext &&
6405 $as_test_x conftest$ac_exeext; then
6406 eval "$as_ac_var=yes"
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 eval "$as_ac_var=no"
6412 fi
6413
6414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6415 conftest$ac_exeext conftest.$ac_ext
6416 fi
6417 ac_res=`eval echo '${'$as_ac_var'}'`
6418 { echo "$as_me:$LINENO: result: $ac_res" >&5
6419 echo "${ECHO_T}$ac_res" >&6; }
6420 if test `eval echo '${'$as_ac_var'}'` = yes; then
6421 cat >>confdefs.h <<_ACEOF
6422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6423 _ACEOF
6424
6425 else
6426 needsnprintf=yes
6427 fi
6428 done
6429
6430 if test $needsnprintf = yes; then
6431 case " $LIBOBJS " in
6432 *" snprintf.$ac_objext "* ) ;;
6433 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6434 ;;
6435 esac
6436
6437 fi
6438
6439
6440 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6442 if test "${ac_cv_type_signal+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 #include <sys/types.h>
6452 #include <signal.h>
6453
6454 int
6455 main ()
6456 {
6457 return *(signal (0, 0)) (0) == 1;
6458 ;
6459 return 0;
6460 }
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6464 case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467 esac
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } && {
6476 test -z "$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 } && test -s conftest.$ac_objext; then
6479 ac_cv_type_signal=int
6480 else
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_cv_type_signal=void
6485 fi
6486
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 fi
6489 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6490 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6491
6492 cat >>confdefs.h <<_ACEOF
6493 #define RETSIGTYPE $ac_cv_type_signal
6494 _ACEOF
6495
6496
6497 if test "$ac_cv_type_signal" = void ; then
6498
6499 cat >>confdefs.h <<\_ACEOF
6500 #define RETSIGVAL
6501 _ACEOF
6502
6503 else
6504
6505 cat >>confdefs.h <<\_ACEOF
6506 #define RETSIGVAL (0)
6507 _ACEOF
6508
6509 fi
6510 case "$host_os" in
6511
6512 irix*)
6513
6514 cat >>confdefs.h <<\_ACEOF
6515 #define _BSD_SIGNALS 1
6516 _ACEOF
6517
6518 ;;
6519
6520 *)
6521
6522 for ac_func in sigaction
6523 do
6524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h. */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6538 #define $ac_func innocuous_$ac_func
6539
6540 /* System header to define __stub macros and hopefully few prototypes,
6541 which can conflict with char $ac_func (); below.
6542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6543 <limits.h> exists even on freestanding compilers. */
6544
6545 #ifdef __STDC__
6546 # include <limits.h>
6547 #else
6548 # include <assert.h>
6549 #endif
6550
6551 #undef $ac_func
6552
6553 /* Override any GCC internal prototype to avoid an error.
6554 Use char because int might match the return type of a GCC
6555 builtin and then its argument prototype would still apply. */
6556 #ifdef __cplusplus
6557 extern "C"
6558 #endif
6559 char $ac_func ();
6560 /* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
6563 #if defined __stub_$ac_func || defined __stub___$ac_func
6564 choke me
6565 #endif
6566
6567 int
6568 main ()
6569 {
6570 return $ac_func ();
6571 ;
6572 return 0;
6573 }
6574 _ACEOF
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (ac_try="$ac_link"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_link") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest$ac_exeext &&
6592 $as_test_x conftest$ac_exeext; then
6593 eval "$as_ac_var=yes"
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 eval "$as_ac_var=no"
6599 fi
6600
6601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6602 conftest$ac_exeext conftest.$ac_ext
6603 fi
6604 ac_res=`eval echo '${'$as_ac_var'}'`
6605 { echo "$as_me:$LINENO: result: $ac_res" >&5
6606 echo "${ECHO_T}$ac_res" >&6; }
6607 if test `eval echo '${'$as_ac_var'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 fi
6613 done
6614
6615 if test $ac_cv_func_sigaction = no ; then
6616
6617 for ac_func in sigset
6618 do
6619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6633 #define $ac_func innocuous_$ac_func
6634
6635 /* System header to define __stub macros and hopefully few prototypes,
6636 which can conflict with char $ac_func (); below.
6637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6638 <limits.h> exists even on freestanding compilers. */
6639
6640 #ifdef __STDC__
6641 # include <limits.h>
6642 #else
6643 # include <assert.h>
6644 #endif
6645
6646 #undef $ac_func
6647
6648 /* Override any GCC internal prototype to avoid an error.
6649 Use char because int might match the return type of a GCC
6650 builtin and then its argument prototype would still apply. */
6651 #ifdef __cplusplus
6652 extern "C"
6653 #endif
6654 char $ac_func ();
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined __stub_$ac_func || defined __stub___$ac_func
6659 choke me
6660 #endif
6661
6662 int
6663 main ()
6664 {
6665 return $ac_func ();
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (ac_try="$ac_link"
6672 case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_link") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest$ac_exeext &&
6687 $as_test_x conftest$ac_exeext; then
6688 eval "$as_ac_var=yes"
6689 else
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693 eval "$as_ac_var=no"
6694 fi
6695
6696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6697 conftest$ac_exeext conftest.$ac_ext
6698 fi
6699 ac_res=`eval echo '${'$as_ac_var'}'`
6700 { echo "$as_me:$LINENO: result: $ac_res" >&5
6701 echo "${ECHO_T}$ac_res" >&6; }
6702 if test `eval echo '${'$as_ac_var'}'` = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6705 _ACEOF
6706
6707 fi
6708 done
6709
6710 fi
6711 ;;
6712 esac
6713
6714 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6715 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6716 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 ac_func_search_save_LIBS=$LIBS
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h. */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726
6727 /* Override any GCC internal prototype to avoid an error.
6728 Use char because int might match the return type of a GCC
6729 builtin and then its argument prototype would still apply. */
6730 #ifdef __cplusplus
6731 extern "C"
6732 #endif
6733 char dnet_htoa ();
6734 int
6735 main ()
6736 {
6737 return dnet_htoa ();
6738 ;
6739 return 0;
6740 }
6741 _ACEOF
6742 for ac_lib in '' dnet; do
6743 if test -z "$ac_lib"; then
6744 ac_res="none required"
6745 else
6746 ac_res=-l$ac_lib
6747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6748 fi
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (ac_try="$ac_link"
6751 case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6754 esac
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_link") 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && {
6763 test -z "$ac_c_werror_flag" ||
6764 test ! -s conftest.err
6765 } && test -s conftest$ac_exeext &&
6766 $as_test_x conftest$ac_exeext; then
6767 ac_cv_search_dnet_htoa=$ac_res
6768 else
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772
6773 fi
6774
6775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6776 conftest$ac_exeext
6777 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6778 break
6779 fi
6780 done
6781 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6782 :
6783 else
6784 ac_cv_search_dnet_htoa=no
6785 fi
6786 rm conftest.$ac_ext
6787 LIBS=$ac_func_search_save_LIBS
6788 fi
6789 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6790 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6791 ac_res=$ac_cv_search_dnet_htoa
6792 if test "$ac_res" != no; then
6793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_DNET_HTOA 1
6796 _ACEOF
6797
6798 fi
6799
6800
6801
6802 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6803 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6804 if test "${ac_cv_lib_rpc_main+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 ac_check_lib_save_LIBS=$LIBS
6808 LIBS="-lrpc $LIBS"
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815
6816
6817 int
6818 main ()
6819 {
6820 return main ();
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 ac_cv_lib_rpc_main=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 ac_cv_lib_rpc_main=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 LIBS=$ac_check_lib_save_LIBS
6854 fi
6855 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6856 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6857 if test $ac_cv_lib_rpc_main = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_LIBRPC 1
6860 _ACEOF
6861
6862 LIBS="-lrpc $LIBS"
6863
6864 fi
6865
6866 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6867 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6868 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 ac_func_search_save_LIBS=$LIBS
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878
6879 /* Override any GCC internal prototype to avoid an error.
6880 Use char because int might match the return type of a GCC
6881 builtin and then its argument prototype would still apply. */
6882 #ifdef __cplusplus
6883 extern "C"
6884 #endif
6885 char getrpcbynumber ();
6886 int
6887 main ()
6888 {
6889 return getrpcbynumber ();
6890 ;
6891 return 0;
6892 }
6893 _ACEOF
6894 for ac_lib in '' nsl; do
6895 if test -z "$ac_lib"; then
6896 ac_res="none required"
6897 else
6898 ac_res=-l$ac_lib
6899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6900 fi
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6903 case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
6909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext &&
6918 $as_test_x conftest$ac_exeext; then
6919 ac_cv_search_getrpcbynumber=$ac_res
6920 else
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924
6925 fi
6926
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928 conftest$ac_exeext
6929 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6930 break
6931 fi
6932 done
6933 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6934 :
6935 else
6936 ac_cv_search_getrpcbynumber=no
6937 fi
6938 rm conftest.$ac_ext
6939 LIBS=$ac_func_search_save_LIBS
6940 fi
6941 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6942 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6943 ac_res=$ac_cv_search_getrpcbynumber
6944 if test "$ac_res" != no; then
6945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6946 cat >>confdefs.h <<\_ACEOF
6947 #define HAVE_GETRPCBYNUMBER 1
6948 _ACEOF
6949
6950 fi
6951
6952
6953
6954
6955 # Most operating systems have gethostbyname() in the default searched
6956 # libraries (i.e. libc):
6957 # Some OSes (eg. Solaris) place it in libnsl
6958 # Some strange OSes (SINIX) have it in libsocket:
6959 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6960 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6961 if test "${ac_cv_search_gethostbyname+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 ac_func_search_save_LIBS=$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 /* Override any GCC internal prototype to avoid an error.
6973 Use char because int might match the return type of a GCC
6974 builtin and then its argument prototype would still apply. */
6975 #ifdef __cplusplus
6976 extern "C"
6977 #endif
6978 char gethostbyname ();
6979 int
6980 main ()
6981 {
6982 return gethostbyname ();
6983 ;
6984 return 0;
6985 }
6986 _ACEOF
6987 for ac_lib in '' nsl socket resolv; do
6988 if test -z "$ac_lib"; then
6989 ac_res="none required"
6990 else
6991 ac_res=-l$ac_lib
6992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6993 fi
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6996 case "(($ac_try" in
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_link") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest$ac_exeext &&
7011 $as_test_x conftest$ac_exeext; then
7012 ac_cv_search_gethostbyname=$ac_res
7013 else
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7016
7017
7018 fi
7019
7020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7021 conftest$ac_exeext
7022 if test "${ac_cv_search_gethostbyname+set}" = set; then
7023 break
7024 fi
7025 done
7026 if test "${ac_cv_search_gethostbyname+set}" = set; then
7027 :
7028 else
7029 ac_cv_search_gethostbyname=no
7030 fi
7031 rm conftest.$ac_ext
7032 LIBS=$ac_func_search_save_LIBS
7033 fi
7034 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7035 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
7036 ac_res=$ac_cv_search_gethostbyname
7037 if test "$ac_res" != no; then
7038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7039
7040 fi
7041
7042 # Unfortunately libsocket sometimes depends on libnsl and
7043 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7044 if test "$ac_cv_search_gethostbyname" = "no"
7045 then
7046 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7047 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
7048 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 ac_check_lib_save_LIBS=$LIBS
7052 LIBS="-lsocket -lnsl $LIBS"
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059
7060 /* Override any GCC internal prototype to avoid an error.
7061 Use char because int might match the return type of a GCC
7062 builtin and then its argument prototype would still apply. */
7063 #ifdef __cplusplus
7064 extern "C"
7065 #endif
7066 char gethostbyname ();
7067 int
7068 main ()
7069 {
7070 return gethostbyname ();
7071 ;
7072 return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_link") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest$ac_exeext &&
7092 $as_test_x conftest$ac_exeext; then
7093 ac_cv_lib_socket_gethostbyname=yes
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 ac_cv_lib_socket_gethostbyname=no
7099 fi
7100
7101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7102 conftest$ac_exeext conftest.$ac_ext
7103 LIBS=$ac_check_lib_save_LIBS
7104 fi
7105 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7106 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
7107 if test $ac_cv_lib_socket_gethostbyname = yes; then
7108 LIBS="-lsocket -lnsl $LIBS"
7109 fi
7110
7111 fi
7112 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7113 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7114 if test "${ac_cv_search_socket+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 ac_func_search_save_LIBS=$LIBS
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124
7125 /* Override any GCC internal prototype to avoid an error.
7126 Use char because int might match the return type of a GCC
7127 builtin and then its argument prototype would still apply. */
7128 #ifdef __cplusplus
7129 extern "C"
7130 #endif
7131 char socket ();
7132 int
7133 main ()
7134 {
7135 return socket ();
7136 ;
7137 return 0;
7138 }
7139 _ACEOF
7140 for ac_lib in '' socket; do
7141 if test -z "$ac_lib"; then
7142 ac_res="none required"
7143 else
7144 ac_res=-l$ac_lib
7145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7146 fi
7147 rm -f conftest.$ac_objext conftest$ac_exeext
7148 if { (ac_try="$ac_link"
7149 case "(($ac_try" in
7150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7151 *) ac_try_echo=$ac_try;;
7152 esac
7153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7154 (eval "$ac_link") 2>conftest.er1
7155 ac_status=$?
7156 grep -v '^ *+' conftest.er1 >conftest.err
7157 rm -f conftest.er1
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } && {
7161 test -z "$ac_c_werror_flag" ||
7162 test ! -s conftest.err
7163 } && test -s conftest$ac_exeext &&
7164 $as_test_x conftest$ac_exeext; then
7165 ac_cv_search_socket=$ac_res
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170
7171 fi
7172
7173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7174 conftest$ac_exeext
7175 if test "${ac_cv_search_socket+set}" = set; then
7176 break
7177 fi
7178 done
7179 if test "${ac_cv_search_socket+set}" = set; then
7180 :
7181 else
7182 ac_cv_search_socket=no
7183 fi
7184 rm conftest.$ac_ext
7185 LIBS=$ac_func_search_save_LIBS
7186 fi
7187 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7188 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7189 ac_res=$ac_cv_search_socket
7190 if test "$ac_res" != no; then
7191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7192
7193 else
7194 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7195 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
7196 if test "${ac_cv_lib_socket_socket+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 ac_check_lib_save_LIBS=$LIBS
7200 LIBS="-lsocket -lnsl $LIBS"
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207
7208 /* Override any GCC internal prototype to avoid an error.
7209 Use char because int might match the return type of a GCC
7210 builtin and then its argument prototype would still apply. */
7211 #ifdef __cplusplus
7212 extern "C"
7213 #endif
7214 char socket ();
7215 int
7216 main ()
7217 {
7218 return socket ();
7219 ;
7220 return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext conftest$ac_exeext
7224 if { (ac_try="$ac_link"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_link") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest$ac_exeext &&
7240 $as_test_x conftest$ac_exeext; then
7241 ac_cv_lib_socket_socket=yes
7242 else
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246 ac_cv_lib_socket_socket=no
7247 fi
7248
7249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7250 conftest$ac_exeext conftest.$ac_ext
7251 LIBS=$ac_check_lib_save_LIBS
7252 fi
7253 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
7255 if test $ac_cv_lib_socket_socket = yes; then
7256 LIBS="-lsocket -lnsl $LIBS"
7257 fi
7258
7259 fi
7260
7261 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
7262 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
7263 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
7264 if test "${ac_cv_search_putmsg+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 ac_func_search_save_LIBS=$LIBS
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274
7275 /* Override any GCC internal prototype to avoid an error.
7276 Use char because int might match the return type of a GCC
7277 builtin and then its argument prototype would still apply. */
7278 #ifdef __cplusplus
7279 extern "C"
7280 #endif
7281 char putmsg ();
7282 int
7283 main ()
7284 {
7285 return putmsg ();
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 for ac_lib in '' str; do
7291 if test -z "$ac_lib"; then
7292 ac_res="none required"
7293 else
7294 ac_res=-l$ac_lib
7295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7296 fi
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (ac_try="$ac_link"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_link") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest$ac_exeext &&
7314 $as_test_x conftest$ac_exeext; then
7315 ac_cv_search_putmsg=$ac_res
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320
7321 fi
7322
7323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7324 conftest$ac_exeext
7325 if test "${ac_cv_search_putmsg+set}" = set; then
7326 break
7327 fi
7328 done
7329 if test "${ac_cv_search_putmsg+set}" = set; then
7330 :
7331 else
7332 ac_cv_search_putmsg=no
7333 fi
7334 rm conftest.$ac_ext
7335 LIBS=$ac_func_search_save_LIBS
7336 fi
7337 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7338 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
7339 ac_res=$ac_cv_search_putmsg
7340 if test "$ac_res" != no; then
7341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7342
7343 fi
7344
7345
7346
7347 LBL_LIBS="$LIBS"
7348 pfopen=/usr/examples/packetfilter/pfopen.c
7349 if test -f $pfopen ; then
7350
7351 for ac_func in pfopen
7352 do
7353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7367 #define $ac_func innocuous_$ac_func
7368
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char $ac_func (); below.
7371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372 <limits.h> exists even on freestanding compilers. */
7373
7374 #ifdef __STDC__
7375 # include <limits.h>
7376 #else
7377 # include <assert.h>
7378 #endif
7379
7380 #undef $ac_func
7381
7382 /* Override any GCC internal prototype to avoid an error.
7383 Use char because int might match the return type of a GCC
7384 builtin and then its argument prototype would still apply. */
7385 #ifdef __cplusplus
7386 extern "C"
7387 #endif
7388 char $ac_func ();
7389 /* The GNU C library defines this for functions which it implements
7390 to always fail with ENOSYS. Some functions are actually named
7391 something starting with __ and the normal name is an alias. */
7392 #if defined __stub_$ac_func || defined __stub___$ac_func
7393 choke me
7394 #endif
7395
7396 int
7397 main ()
7398 {
7399 return $ac_func ();
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (ac_try="$ac_link"
7406 case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409 esac
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_link") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest$ac_exeext &&
7421 $as_test_x conftest$ac_exeext; then
7422 eval "$as_ac_var=yes"
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427 eval "$as_ac_var=no"
7428 fi
7429
7430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7431 conftest$ac_exeext conftest.$ac_ext
7432 fi
7433 ac_res=`eval echo '${'$as_ac_var'}'`
7434 { echo "$as_me:$LINENO: result: $ac_res" >&5
7435 echo "${ECHO_T}$ac_res" >&6; }
7436 if test `eval echo '${'$as_ac_var'}'` = yes; then
7437 cat >>confdefs.h <<_ACEOF
7438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7439 _ACEOF
7440
7441 fi
7442 done
7443
7444 if test $ac_cv_func_pfopen = "no" ; then
7445 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7446 echo "${ECHO_T}Using $pfopen" >&6; }
7447 LIBS="$LIBS $pfopen"
7448 fi
7449 fi
7450 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7451 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7452 libpcap=FAIL
7453 lastdir=FAIL
7454 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7455 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7456 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7457 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7458 sed -e 's/-PRE-GIT$//' `
7459 if test $lastdir = $basedir ; then
7460 continue;
7461 fi
7462 lastdir=$dir
7463 if test -r $dir/libpcap.a ; then
7464 libpcap=$dir/libpcap.a
7465 d=$dir
7466 fi
7467 done
7468 if test $libpcap = FAIL ; then
7469 { echo "$as_me:$LINENO: result: not found" >&5
7470 echo "${ECHO_T}not found" >&6; }
7471
7472 #
7473 # Look for pcap-config.
7474 #
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 case $PCAP_CONFIG in
7484 [\\/]* | ?:[\\/]*)
7485 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7486 ;;
7487 *)
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7495 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503 ;;
7504 esac
7505 fi
7506 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7507 if test -n "$PCAP_CONFIG"; then
7508 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7509 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7510 else
7511 { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7513 fi
7514
7515
7516 fi
7517 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7518 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7519 # Extract the first word of "pcap-config", so it can be a program name with args.
7520 set dummy pcap-config; ac_word=$2
7521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7523 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526 case $ac_pt_PCAP_CONFIG in
7527 [\\/]* | ?:[\\/]*)
7528 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7529 ;;
7530 *)
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7541 fi
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546 ;;
7547 esac
7548 fi
7549 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7550 if test -n "$ac_pt_PCAP_CONFIG"; then
7551 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7552 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7553 else
7554 { echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6; }
7556 fi
7557
7558 if test "x$ac_pt_PCAP_CONFIG" = x; then
7559 PCAP_CONFIG=""
7560 else
7561 case $cross_compiling:$ac_tool_warned in
7562 yes:)
7563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7564 whose name does not start with the host triplet. If you think this
7565 configuration is useful to you, please write to autoconf@gnu.org." >&5
7566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7567 whose name does not start with the host triplet. If you think this
7568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7569 ac_tool_warned=yes ;;
7570 esac
7571 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7572 fi
7573 else
7574 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7575 fi
7576
7577 if test -n "$PCAP_CONFIG" ; then
7578 #
7579 # Found - use it to get the include flags for
7580 # libpcap and the flags to link with libpcap.
7581 #
7582 V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
7583 libpcap="`\"$PCAP_CONFIG\" --libs`"
7584 else
7585 #
7586 # Not found; look for pcap.
7587 #
7588 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7589 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7590 if test "${ac_cv_lib_pcap_main+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lpcap $LIBS"
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601
7602
7603 int
7604 main ()
7605 {
7606 return main ();
7607 ;
7608 return 0;
7609 }
7610 _ACEOF
7611 rm -f conftest.$ac_objext conftest$ac_exeext
7612 if { (ac_try="$ac_link"
7613 case "(($ac_try" in
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616 esac
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_link") 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest$ac_exeext &&
7628 $as_test_x conftest$ac_exeext; then
7629 ac_cv_lib_pcap_main=yes
7630 else
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 ac_cv_lib_pcap_main=no
7635 fi
7636
7637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7638 conftest$ac_exeext conftest.$ac_ext
7639 LIBS=$ac_check_lib_save_LIBS
7640 fi
7641 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7642 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7643 if test $ac_cv_lib_pcap_main = yes; then
7644 libpcap="-lpcap"
7645 fi
7646
7647 if test $libpcap = FAIL ; then
7648 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7649 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7650 { (exit 1); exit 1; }; }
7651 fi
7652 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7653 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7654 if test \( ! -r /usr/local/include/pcap.h \) -a \
7655 \( ! -r /usr/include/pcap.h \); then
7656 if test -r /usr/local/include/pcap/pcap.h; then
7657 d="/usr/local/include/pcap"
7658 elif test -r /usr/include/pcap/pcap.h; then
7659 d="/usr/include/pcap"
7660 fi
7661 fi
7662 if test -z "$d" ; then
7663 { echo "$as_me:$LINENO: result: not found" >&5
7664 echo "${ECHO_T}not found" >&6; }
7665 else
7666 V_INCLS="-I$d $V_INCLS"
7667 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7668 echo "${ECHO_T}found -- -I$d added" >&6; }
7669 fi
7670 fi
7671 else
7672 V_PCAPDEP=$libpcap
7673 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7674 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7675 if test -r $d/pcap.h; then
7676 V_INCLS="-I$d $V_INCLS"
7677 elif test -r $places/pcap.h; then
7678 V_INCLS="-I$places $V_INCLS"
7679 else
7680 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7681 echo "$as_me: error: cannot find pcap.h" >&2;}
7682 { (exit see INSTALL); exit see INSTALL; }; }
7683 fi
7684 { echo "$as_me:$LINENO: result: $libpcap" >&5
7685 echo "${ECHO_T}$libpcap" >&6; }
7686 # Extract the first word of "pcap-config", so it can be a program name with args.
7687 set dummy pcap-config; ac_word=$2
7688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 case $PCAP_CONFIG in
7694 [\\/]* | ?:[\\/]*)
7695 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7696 ;;
7697 *)
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $d
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713 ;;
7714 esac
7715 fi
7716 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7717 if test -n "$PCAP_CONFIG"; then
7718 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7719 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7720 else
7721 { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7723 fi
7724
7725
7726 if test -n "$PCAP_CONFIG"; then
7727 #
7728 # The libpcap directory has a pcap-config script.
7729 # Use it to get any additioal libraries needed
7730 # to link with the libpcap archive library in
7731 # that directory
7732 #
7733 libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
7734 fi
7735 fi
7736 LIBS="$libpcap $LIBS"
7737 if ! test -n "$PCAP_CONFIG" ; then
7738 #
7739 # We don't have pcap-config; find out any additional link flags
7740 # we need. (If we have pcap-config, we assume it tells us what
7741 # we need.)
7742 #
7743 case "$host_os" in
7744
7745 aix*)
7746 #
7747 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7748 # present, as we use the STREAMS routines.
7749 #
7750 # (XXX - true only if we're linking with a static libpcap?)
7751 #
7752 pseexe="/lib/pse.exp"
7753 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7754 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7755 if test -f $pseexe ; then
7756 { echo "$as_me:$LINENO: result: yes" >&5
7757 echo "${ECHO_T}yes" >&6; }
7758 LIBS="$LIBS -I:$pseexe"
7759 fi
7760
7761 #
7762 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7763 # we use them to load the BPF module.
7764 #
7765 # (XXX - true only if we're linking with a static libpcap?)
7766 #
7767 LIBS="$LIBS -lodm -lcfg"
7768 ;;
7769 esac
7770 fi
7771
7772 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7773 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7774 if test "${ac_cv_func_pcap_loop+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7785 #define pcap_loop innocuous_pcap_loop
7786
7787 /* System header to define __stub macros and hopefully few prototypes,
7788 which can conflict with char pcap_loop (); below.
7789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790 <limits.h> exists even on freestanding compilers. */
7791
7792 #ifdef __STDC__
7793 # include <limits.h>
7794 #else
7795 # include <assert.h>
7796 #endif
7797
7798 #undef pcap_loop
7799
7800 /* Override any GCC internal prototype to avoid an error.
7801 Use char because int might match the return type of a GCC
7802 builtin and then its argument prototype would still apply. */
7803 #ifdef __cplusplus
7804 extern "C"
7805 #endif
7806 char pcap_loop ();
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7811 choke me
7812 #endif
7813
7814 int
7815 main ()
7816 {
7817 return pcap_loop ();
7818 ;
7819 return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7824 case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_link") 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && {
7836 test -z "$ac_c_werror_flag" ||
7837 test ! -s conftest.err
7838 } && test -s conftest$ac_exeext &&
7839 $as_test_x conftest$ac_exeext; then
7840 ac_cv_func_pcap_loop=yes
7841 else
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 ac_cv_func_pcap_loop=no
7846 fi
7847
7848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7849 conftest$ac_exeext conftest.$ac_ext
7850 fi
7851 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7852 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7853 if test $ac_cv_func_pcap_loop = yes; then
7854 :
7855 else
7856
7857 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@tcpdump.org, and include the
7858 config.log file in your report" >&5
7859 echo "$as_me: error: Report this to tcpdump-workers@tcpdump.org, and include the
7860 config.log file in your report" >&2;}
7861 { (exit 1); exit 1; }; }
7862
7863 fi
7864
7865
7866 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7867 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7868 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7879 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7880
7881 /* System header to define __stub macros and hopefully few prototypes,
7882 which can conflict with char pcap_list_datalinks (); below.
7883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7884 <limits.h> exists even on freestanding compilers. */
7885
7886 #ifdef __STDC__
7887 # include <limits.h>
7888 #else
7889 # include <assert.h>
7890 #endif
7891
7892 #undef pcap_list_datalinks
7893
7894 /* Override any GCC internal prototype to avoid an error.
7895 Use char because int might match the return type of a GCC
7896 builtin and then its argument prototype would still apply. */
7897 #ifdef __cplusplus
7898 extern "C"
7899 #endif
7900 char pcap_list_datalinks ();
7901 /* The GNU C library defines this for functions which it implements
7902 to always fail with ENOSYS. Some functions are actually named
7903 something starting with __ and the normal name is an alias. */
7904 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7905 choke me
7906 #endif
7907
7908 int
7909 main ()
7910 {
7911 return pcap_list_datalinks ();
7912 ;
7913 return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (ac_try="$ac_link"
7918 case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_link") 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest$ac_exeext &&
7933 $as_test_x conftest$ac_exeext; then
7934 ac_cv_func_pcap_list_datalinks=yes
7935 else
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 ac_cv_func_pcap_list_datalinks=no
7940 fi
7941
7942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7943 conftest$ac_exeext conftest.$ac_ext
7944 fi
7945 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7946 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7947 if test $ac_cv_func_pcap_list_datalinks = yes; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_PCAP_LIST_DATALINKS 1
7950 _ACEOF
7951
7952 else
7953
7954 case " $LIBOBJS " in
7955 *" datalinks.$ac_objext "* ) ;;
7956 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7957 ;;
7958 esac
7959
7960
7961 fi
7962
7963 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7964 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7965 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968 cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h. */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7976 #define pcap_set_datalink innocuous_pcap_set_datalink
7977
7978 /* System header to define __stub macros and hopefully few prototypes,
7979 which can conflict with char pcap_set_datalink (); below.
7980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7981 <limits.h> exists even on freestanding compilers. */
7982
7983 #ifdef __STDC__
7984 # include <limits.h>
7985 #else
7986 # include <assert.h>
7987 #endif
7988
7989 #undef pcap_set_datalink
7990
7991 /* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 char pcap_set_datalink ();
7998 /* The GNU C library defines this for functions which it implements
7999 to always fail with ENOSYS. Some functions are actually named
8000 something starting with __ and the normal name is an alias. */
8001 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
8002 choke me
8003 #endif
8004
8005 int
8006 main ()
8007 {
8008 return pcap_set_datalink ();
8009 ;
8010 return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (ac_try="$ac_link"
8015 case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_link") 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && {
8027 test -z "$ac_c_werror_flag" ||
8028 test ! -s conftest.err
8029 } && test -s conftest$ac_exeext &&
8030 $as_test_x conftest$ac_exeext; then
8031 ac_cv_func_pcap_set_datalink=yes
8032 else
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_cv_func_pcap_set_datalink=no
8037 fi
8038
8039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8040 conftest$ac_exeext conftest.$ac_ext
8041 fi
8042 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8043 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
8044 if test $ac_cv_func_pcap_set_datalink = yes; then
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_PCAP_SET_DATALINK 1
8047 _ACEOF
8048
8049 fi
8050
8051 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8052 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
8053 if test "${ac_cv_func_pcap_datalink_name_to_val+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 pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
8063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8064 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
8065
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char pcap_datalink_name_to_val (); 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 pcap_datalink_name_to_val
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 pcap_datalink_name_to_val ();
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_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
8090 choke me
8091 #endif
8092
8093 int
8094 main ()
8095 {
8096 return pcap_datalink_name_to_val ();
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 ac_cv_func_pcap_datalink_name_to_val=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_cv_func_pcap_datalink_name_to_val=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 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8131 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
8132 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8133
8134 cat >>confdefs.h <<\_ACEOF
8135 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8136 _ACEOF
8137
8138 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8139 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
8140 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
8150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8151 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
8152
8153 /* System header to define __stub macros and hopefully few prototypes,
8154 which can conflict with char pcap_datalink_val_to_description (); below.
8155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8156 <limits.h> exists even on freestanding compilers. */
8157
8158 #ifdef __STDC__
8159 # include <limits.h>
8160 #else
8161 # include <assert.h>
8162 #endif
8163
8164 #undef pcap_datalink_val_to_description
8165
8166 /* Override any GCC internal prototype to avoid an error.
8167 Use char because int might match the return type of a GCC
8168 builtin and then its argument prototype would still apply. */
8169 #ifdef __cplusplus
8170 extern "C"
8171 #endif
8172 char pcap_datalink_val_to_description ();
8173 /* The GNU C library defines this for functions which it implements
8174 to always fail with ENOSYS. Some functions are actually named
8175 something starting with __ and the normal name is an alias. */
8176 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
8177 choke me
8178 #endif
8179
8180 int
8181 main ()
8182 {
8183 return pcap_datalink_val_to_description ();
8184 ;
8185 return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (ac_try="$ac_link"
8190 case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_link") 2>conftest.er1
8196 ac_status=$?
8197 grep -v '^ *+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest$ac_exeext &&
8205 $as_test_x conftest$ac_exeext; then
8206 ac_cv_func_pcap_datalink_val_to_description=yes
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_cv_func_pcap_datalink_val_to_description=no
8212 fi
8213
8214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8215 conftest$ac_exeext conftest.$ac_ext
8216 fi
8217 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8218 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
8219 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8220 cat >>confdefs.h <<\_ACEOF
8221 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8222 _ACEOF
8223
8224 else
8225
8226 case " $LIBOBJS " in
8227 *" dlnames.$ac_objext "* ) ;;
8228 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8229 ;;
8230 esac
8231
8232
8233 fi
8234
8235
8236 else
8237
8238 case " $LIBOBJS " in
8239 *" dlnames.$ac_objext "* ) ;;
8240 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8241 ;;
8242 esac
8243
8244
8245 fi
8246
8247
8248
8249 for ac_func in pcap_breakloop
8250 do
8251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265 #define $ac_func innocuous_$ac_func
8266
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char $ac_func (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8271
8272 #ifdef __STDC__
8273 # include <limits.h>
8274 #else
8275 # include <assert.h>
8276 #endif
8277
8278 #undef $ac_func
8279
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8283 #ifdef __cplusplus
8284 extern "C"
8285 #endif
8286 char $ac_func ();
8287 /* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290 #if defined __stub_$ac_func || defined __stub___$ac_func
8291 choke me
8292 #endif
8293
8294 int
8295 main ()
8296 {
8297 return $ac_func ();
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_link") 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext &&
8319 $as_test_x conftest$ac_exeext; then
8320 eval "$as_ac_var=yes"
8321 else
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 eval "$as_ac_var=no"
8326 fi
8327
8328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329 conftest$ac_exeext conftest.$ac_ext
8330 fi
8331 ac_res=`eval echo '${'$as_ac_var'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_var'}'` = yes; then
8335 cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8337 _ACEOF
8338
8339 fi
8340 done
8341
8342
8343 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8344 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8345 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 cat >conftest.$ac_ext <<_ACEOF
8349 /* confdefs.h. */
8350 _ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8356 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8357
8358 /* System header to define __stub macros and hopefully few prototypes,
8359 which can conflict with char pcap_dump_ftell (); below.
8360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8361 <limits.h> exists even on freestanding compilers. */
8362
8363 #ifdef __STDC__
8364 # include <limits.h>
8365 #else
8366 # include <assert.h>
8367 #endif
8368
8369 #undef pcap_dump_ftell
8370
8371 /* Override any GCC internal prototype to avoid an error.
8372 Use char because int might match the return type of a GCC
8373 builtin and then its argument prototype would still apply. */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 char pcap_dump_ftell ();
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8382 choke me
8383 #endif
8384
8385 int
8386 main ()
8387 {
8388 return pcap_dump_ftell ();
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (ac_try="$ac_link"
8395 case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_link") 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest$ac_exeext &&
8410 $as_test_x conftest$ac_exeext; then
8411 ac_cv_func_pcap_dump_ftell=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_func_pcap_dump_ftell=no
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8420 conftest$ac_exeext conftest.$ac_ext
8421 fi
8422 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8423 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8424 if test $ac_cv_func_pcap_dump_ftell = yes; then
8425 cat >>confdefs.h <<\_ACEOF
8426 #define HAVE_PCAP_DUMP_FTELL 1
8427 _ACEOF
8428
8429 else
8430
8431 case " $LIBOBJS " in
8432 *" pcap_dump_ftell.$ac_objext "* ) ;;
8433 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8434 ;;
8435 esac
8436
8437
8438 fi
8439
8440
8441
8442 #
8443 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8444 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8445 #
8446 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8447 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8448 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8449 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8450 # it does not ship with a libc symbol "inet_ntop()", it ships with
8451 # "_inet_ntop()", and has a #define macro in one of the system headers
8452 # to rename it.
8453 #
8454 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8455 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 #include <sys/types.h>
8463 #include <sys/socket.h>
8464 #include <netinet/in.h>
8465 #include <arpa/inet.h>
8466 int
8467 main ()
8468 {
8469 char src[4], dst[128];
8470 inet_ntop(AF_INET, src, dst, sizeof(dst));
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (ac_try="$ac_link"
8477 case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_link") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest$ac_exeext &&
8492 $as_test_x conftest$ac_exeext; then
8493 { echo "$as_me:$LINENO: result: yes" >&5
8494 echo "${ECHO_T}yes" >&6; }
8495 else
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499 { echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6; }
8501 case " $LIBOBJS " in
8502 *" inet_ntop.$ac_objext "* ) ;;
8503 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8504 ;;
8505 esac
8506
8507 fi
8508
8509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8510 conftest$ac_exeext conftest.$ac_ext
8511 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8512 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 #include <sys/types.h>
8520 #include <sys/socket.h>
8521 #include <netinet/in.h>
8522 #include <arpa/inet.h>
8523 int
8524 main ()
8525 {
8526 char src[128], dst[4];
8527 inet_pton(AF_INET, src, dst);
8528 ;
8529 return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (ac_try="$ac_link"
8534 case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_link") 2>conftest.er1
8540 ac_status=$?
8541 grep -v '^ *+' conftest.er1 >conftest.err
8542 rm -f conftest.er1
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && {
8546 test -z "$ac_c_werror_flag" ||
8547 test ! -s conftest.err
8548 } && test -s conftest$ac_exeext &&
8549 $as_test_x conftest$ac_exeext; then
8550 { echo "$as_me:$LINENO: result: yes" >&5
8551 echo "${ECHO_T}yes" >&6; }
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 { echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6; }
8558 case " $LIBOBJS " in
8559 *" inet_pton.$ac_objext "* ) ;;
8560 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8561 ;;
8562 esac
8563
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8567 conftest$ac_exeext conftest.$ac_ext
8568 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8569 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 #include <sys/types.h>
8577 #include <netinet/in.h>
8578 #include <arpa/inet.h>
8579 int
8580 main ()
8581 {
8582 char src[128];
8583 struct in_addr dst;
8584 inet_aton(src, &dst);
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext conftest$ac_exeext
8590 if { (ac_try="$ac_link"
8591 case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_link") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest$ac_exeext &&
8606 $as_test_x conftest$ac_exeext; then
8607 { echo "$as_me:$LINENO: result: yes" >&5
8608 echo "${ECHO_T}yes" >&6; }
8609 else
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 { echo "$as_me:$LINENO: result: no" >&5
8614 echo "${ECHO_T}no" >&6; }
8615 case " $LIBOBJS " in
8616 *" inet_aton.$ac_objext "* ) ;;
8617 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8618 ;;
8619 esac
8620
8621 fi
8622
8623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8624 conftest$ac_exeext conftest.$ac_ext
8625
8626 #
8627 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8628 #
8629 # You are in a twisty little maze of UN*Xes, all different.
8630 # Some might not have ether_ntohost().
8631 # Some might have it, but not declare it in any header file.
8632 # Some might have it, but declare it in <netinet/if_ether.h>.
8633 # Some might have it, but declare it in <netinet/ether.h>
8634 # (And some might have it but document it as something declared in
8635 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8636 #
8637 # Before you is a C compiler.
8638 #
8639
8640 for ac_func in ether_ntohost
8641 do
8642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8656 #define $ac_func innocuous_$ac_func
8657
8658 /* System header to define __stub macros and hopefully few prototypes,
8659 which can conflict with char $ac_func (); below.
8660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 <limits.h> exists even on freestanding compilers. */
8662
8663 #ifdef __STDC__
8664 # include <limits.h>
8665 #else
8666 # include <assert.h>
8667 #endif
8668
8669 #undef $ac_func
8670
8671 /* Override any GCC internal prototype to avoid an error.
8672 Use char because int might match the return type of a GCC
8673 builtin and then its argument prototype would still apply. */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 char $ac_func ();
8678 /* The GNU C library defines this for functions which it implements
8679 to always fail with ENOSYS. Some functions are actually named
8680 something starting with __ and the normal name is an alias. */
8681 #if defined __stub_$ac_func || defined __stub___$ac_func
8682 choke me
8683 #endif
8684
8685 int
8686 main ()
8687 {
8688 return $ac_func ();
8689 ;
8690 return 0;
8691 }
8692 _ACEOF
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (ac_try="$ac_link"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_link") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext &&
8710 $as_test_x conftest$ac_exeext; then
8711 eval "$as_ac_var=yes"
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 eval "$as_ac_var=no"
8717 fi
8718
8719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8720 conftest$ac_exeext conftest.$ac_ext
8721 fi
8722 ac_res=`eval echo '${'$as_ac_var'}'`
8723 { echo "$as_me:$LINENO: result: $ac_res" >&5
8724 echo "${ECHO_T}$ac_res" >&6; }
8725 if test `eval echo '${'$as_ac_var'}'` = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8728 _ACEOF
8729
8730 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8731 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8732 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735
8736 if test "$cross_compiling" = yes; then
8737 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8738 else
8739 cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h. */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745
8746 #include <netdb.h>
8747 #include <sys/types.h>
8748 #include <sys/param.h>
8749 #include <sys/socket.h>
8750
8751 int
8752 main(int argc, char **argv)
8753 {
8754 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8755 char name[MAXHOSTNAMELEN];
8756
8757 ether_ntohost(name, (struct ether_addr *)ea);
8758 exit(0);
8759 }
8760
8761 _ACEOF
8762 rm -f conftest$ac_exeext
8763 if { (ac_try="$ac_link"
8764 case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8767 esac
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_link") 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8773 { (case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_try") 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_buggy_ether_ntohost=no
8783 else
8784 echo "$as_me: program exited with status $ac_status" >&5
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 ( exit $ac_status )
8789 ac_cv_buggy_ether_ntohost=yes
8790 fi
8791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8792 fi
8793
8794
8795 fi
8796 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8797 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8798 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8799 cat >>confdefs.h <<\_ACEOF
8800 #define USE_ETHER_NTOHOST 1
8801 _ACEOF
8802
8803 fi
8804
8805 fi
8806 done
8807
8808 if test "$ac_cv_func_ether_ntohost" = yes -a \
8809 "$ac_cv_buggy_ether_ntohost" = "no"; then
8810 #
8811 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8812 #
8813 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8814 #
8815 # Yes. Does it declare ether_ntohost()?
8816 #
8817 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8818 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8819 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h. */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828
8829 #include <sys/types.h>
8830 #include <sys/socket.h>
8831 #include <netinet/in.h>
8832 #include <arpa/inet.h>
8833 struct mbuf;
8834 struct rtentry;
8835 #include <net/if.h>
8836 #include <netinet/if_ether.h>
8837
8838
8839 int
8840 main ()
8841 {
8842 #ifndef ether_ntohost
8843 (void) ether_ntohost;
8844 #endif
8845
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (ac_try="$ac_compile"
8852 case "(($ac_try" in
8853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854 *) ac_try_echo=$ac_try;;
8855 esac
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857 (eval "$ac_compile") 2>conftest.er1
8858 ac_status=$?
8859 grep -v '^ *+' conftest.er1 >conftest.err
8860 rm -f conftest.er1
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } && {
8864 test -z "$ac_c_werror_flag" ||
8865 test ! -s conftest.err
8866 } && test -s conftest.$ac_objext; then
8867 ac_cv_have_decl_ether_ntohost=yes
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872 ac_cv_have_decl_ether_ntohost=no
8873 fi
8874
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 fi
8877 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8878 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8879 if test $ac_cv_have_decl_ether_ntohost = yes; then
8880
8881
8882 cat >>confdefs.h <<\_ACEOF
8883 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8884 _ACEOF
8885
8886
8887 fi
8888
8889 fi
8890 #
8891 # Did that succeed?
8892 #
8893 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8894 #
8895 # No, how about <netinet/ether.h>, as on Linux?
8896 #
8897
8898 for ac_header in netinet/ether.h
8899 do
8900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 fi
8907 ac_res=`eval echo '${'$as_ac_Header'}'`
8908 { echo "$as_me:$LINENO: result: $ac_res" >&5
8909 echo "${ECHO_T}$ac_res" >&6; }
8910 else
8911 # Is the header compilable?
8912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h. */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8921 #include <$ac_header>
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (ac_try="$ac_compile"
8925 case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
8940 ac_header_compiler=yes
8941 else
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_header_compiler=no
8946 fi
8947
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6; }
8951
8952 # Is the header present?
8953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 #include <$ac_header>
8962 _ACEOF
8963 if { (ac_try="$ac_cpp conftest.$ac_ext"
8964 case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } >/dev/null && {
8976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 }; then
8979 ac_header_preproc=yes
8980 else
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_header_preproc=no
8985 fi
8986
8987 rm -f conftest.err conftest.$ac_ext
8988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8989 echo "${ECHO_T}$ac_header_preproc" >&6; }
8990
8991 # So? What about this header?
8992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8993 yes:no: )
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8998 ac_header_preproc=yes
8999 ;;
9000 no:yes:* )
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9013
9014 ;;
9015 esac
9016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 eval "$as_ac_Header=\$ac_header_preproc"
9022 fi
9023 ac_res=`eval echo '${'$as_ac_Header'}'`
9024 { echo "$as_me:$LINENO: result: $ac_res" >&5
9025 echo "${ECHO_T}$ac_res" >&6; }
9026
9027 fi
9028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029 cat >>confdefs.h <<_ACEOF
9030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 _ACEOF
9032
9033 fi
9034
9035 done
9036
9037 if test "$ac_cv_header_netinet_ether_h" = yes; then
9038 #
9039 # We have it - does it declare ether_ntohost()?
9040 # Unset ac_cv_have_decl_ether_ntohost so we don't
9041 # treat the previous failure as a cached value and
9042 # suppress the next test.
9043 #
9044 unset ac_cv_have_decl_ether_ntohost
9045 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9046 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
9047 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056
9057 #include <netinet/ether.h>
9058
9059
9060 int
9061 main ()
9062 {
9063 #ifndef ether_ntohost
9064 (void) ether_ntohost;
9065 #endif
9066
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9073 case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_compile") 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest.$ac_objext; then
9088 ac_cv_have_decl_ether_ntohost=yes
9089 else
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093 ac_cv_have_decl_ether_ntohost=no
9094 fi
9095
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 fi
9098 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9099 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
9100 if test $ac_cv_have_decl_ether_ntohost = yes; then
9101
9102
9103 cat >>confdefs.h <<\_ACEOF
9104 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9105 _ACEOF
9106
9107
9108 fi
9109
9110 fi
9111 fi
9112 #
9113 # Is ether_ntohost() declared?
9114 #
9115 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9116 #
9117 # No, we'll have to declare it ourselves.
9118 # Do we have "struct ether_addr"?
9119 #
9120 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9121 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
9122 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125 cat >conftest.$ac_ext <<_ACEOF
9126 /* confdefs.h. */
9127 _ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131
9132 #include <sys/types.h>
9133 #include <sys/socket.h>
9134 #include <netinet/in.h>
9135 #include <arpa/inet.h>
9136 struct mbuf;
9137 struct rtentry;
9138 #include <net/if.h>
9139 #include <netinet/if_ether.h>
9140
9141
9142 typedef struct ether_addr ac__type_new_;
9143 int
9144 main ()
9145 {
9146 if ((ac__type_new_ *) 0)
9147 return 0;
9148 if (sizeof (ac__type_new_))
9149 return 0;
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext
9155 if { (ac_try="$ac_compile"
9156 case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159 esac
9160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_compile") 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest.$ac_objext; then
9171 ac_cv_type_struct_ether_addr=yes
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176 ac_cv_type_struct_ether_addr=no
9177 fi
9178
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 fi
9181 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9182 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
9183 if test $ac_cv_type_struct_ether_addr = yes; then
9184
9185 cat >>confdefs.h <<_ACEOF
9186 #define HAVE_STRUCT_ETHER_ADDR 1
9187 _ACEOF
9188
9189
9190 fi
9191
9192
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_DECL_ETHER_NTOHOST 0
9195 _ACEOF
9196
9197 else
9198
9199 cat >>confdefs.h <<\_ACEOF
9200 #define HAVE_DECL_ETHER_NTOHOST 1
9201 _ACEOF
9202
9203 fi
9204 fi
9205
9206 # libdlpi is needed for Solaris 11 and later.
9207 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
9208 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
9209 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 ac_check_lib_save_LIBS=$LIBS
9213 LIBS="-ldlpi -L/lib $LIBS"
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h. */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char dlpi_walk ();
9228 int
9229 main ()
9230 {
9231 return dlpi_walk ();
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (ac_try="$ac_link"
9238 case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9241 esac
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_link") 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } && {
9250 test -z "$ac_c_werror_flag" ||
9251 test ! -s conftest.err
9252 } && test -s conftest$ac_exeext &&
9253 $as_test_x conftest$ac_exeext; then
9254 ac_cv_lib_dlpi_dlpi_walk=yes
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259 ac_cv_lib_dlpi_dlpi_walk=no
9260 fi
9261
9262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9263 conftest$ac_exeext conftest.$ac_ext
9264 LIBS=$ac_check_lib_save_LIBS
9265 fi
9266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
9267 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
9268 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
9269 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
9270 fi
9271
9272
9273
9274 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9275 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
9276 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h. */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285
9286 # include <sys/types.h>
9287 # include <sys/socket.h>
9288 int
9289 main ()
9290 {
9291 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
9313 ac_cv_sockaddr_has_sa_len=yes
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 ac_cv_sockaddr_has_sa_len=no
9319 fi
9320
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 fi
9323
9324 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9325 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9326 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9327 cat >>confdefs.h <<\_ACEOF
9328 #define HAVE_SOCKADDR_SA_LEN 1
9329 _ACEOF
9330
9331 fi
9332
9333 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9334 missing_includes=yes
9335 fi
9336
9337 #
9338 # Do we have the new open API? Check for pcap_create, and assume that,
9339 # if we do, we also have pcap_activate() and the other new routines
9340 # introduced in libpcap 1.0.0.
9341 #
9342
9343 for ac_func in pcap_create
9344 do
9345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h. */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9359 #define $ac_func innocuous_$ac_func
9360
9361 /* System header to define __stub macros and hopefully few prototypes,
9362 which can conflict with char $ac_func (); below.
9363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9364 <limits.h> exists even on freestanding compilers. */
9365
9366 #ifdef __STDC__
9367 # include <limits.h>
9368 #else
9369 # include <assert.h>
9370 #endif
9371
9372 #undef $ac_func
9373
9374 /* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 char $ac_func ();
9381 /* The GNU C library defines this for functions which it implements
9382 to always fail with ENOSYS. Some functions are actually named
9383 something starting with __ and the normal name is an alias. */
9384 #if defined __stub_$ac_func || defined __stub___$ac_func
9385 choke me
9386 #endif
9387
9388 int
9389 main ()
9390 {
9391 return $ac_func ();
9392 ;
9393 return 0;
9394 }
9395 _ACEOF
9396 rm -f conftest.$ac_objext conftest$ac_exeext
9397 if { (ac_try="$ac_link"
9398 case "(($ac_try" in
9399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9400 *) ac_try_echo=$ac_try;;
9401 esac
9402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9403 (eval "$ac_link") 2>conftest.er1
9404 ac_status=$?
9405 grep -v '^ *+' conftest.er1 >conftest.err
9406 rm -f conftest.er1
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && {
9410 test -z "$ac_c_werror_flag" ||
9411 test ! -s conftest.err
9412 } && test -s conftest$ac_exeext &&
9413 $as_test_x conftest$ac_exeext; then
9414 eval "$as_ac_var=yes"
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 eval "$as_ac_var=no"
9420 fi
9421
9422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9423 conftest$ac_exeext conftest.$ac_ext
9424 fi
9425 ac_res=`eval echo '${'$as_ac_var'}'`
9426 { echo "$as_me:$LINENO: result: $ac_res" >&5
9427 echo "${ECHO_T}$ac_res" >&6; }
9428 if test `eval echo '${'$as_ac_var'}'` = yes; then
9429 cat >>confdefs.h <<_ACEOF
9430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9431 _ACEOF
9432
9433 fi
9434 done
9435
9436 if test $ac_cv_func_pcap_create = "yes" ; then
9437 #
9438 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9439 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9440 #
9441
9442 for ac_func in pcap_set_tstamp_type
9443 do
9444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450 cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h. */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9458 #define $ac_func innocuous_$ac_func
9459
9460 /* System header to define __stub macros and hopefully few prototypes,
9461 which can conflict with char $ac_func (); below.
9462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463 <limits.h> exists even on freestanding compilers. */
9464
9465 #ifdef __STDC__
9466 # include <limits.h>
9467 #else
9468 # include <assert.h>
9469 #endif
9470
9471 #undef $ac_func
9472
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char $ac_func ();
9480 /* The GNU C library defines this for functions which it implements
9481 to always fail with ENOSYS. Some functions are actually named
9482 something starting with __ and the normal name is an alias. */
9483 #if defined __stub_$ac_func || defined __stub___$ac_func
9484 choke me
9485 #endif
9486
9487 int
9488 main ()
9489 {
9490 return $ac_func ();
9491 ;
9492 return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9497 case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500 esac
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502 (eval "$ac_link") 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && {
9509 test -z "$ac_c_werror_flag" ||
9510 test ! -s conftest.err
9511 } && test -s conftest$ac_exeext &&
9512 $as_test_x conftest$ac_exeext; then
9513 eval "$as_ac_var=yes"
9514 else
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 eval "$as_ac_var=no"
9519 fi
9520
9521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9522 conftest$ac_exeext conftest.$ac_ext
9523 fi
9524 ac_res=`eval echo '${'$as_ac_var'}'`
9525 { echo "$as_me:$LINENO: result: $ac_res" >&5
9526 echo "${ECHO_T}$ac_res" >&6; }
9527 if test `eval echo '${'$as_ac_var'}'` = yes; then
9528 cat >>confdefs.h <<_ACEOF
9529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9530 _ACEOF
9531
9532 fi
9533 done
9534
9535 fi
9536
9537
9538
9539
9540 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9541 do
9542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h. */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9556 #define $ac_func innocuous_$ac_func
9557
9558 /* System header to define __stub macros and hopefully few prototypes,
9559 which can conflict with char $ac_func (); below.
9560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561 <limits.h> exists even on freestanding compilers. */
9562
9563 #ifdef __STDC__
9564 # include <limits.h>
9565 #else
9566 # include <assert.h>
9567 #endif
9568
9569 #undef $ac_func
9570
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 char $ac_func ();
9578 /* The GNU C library defines this for functions which it implements
9579 to always fail with ENOSYS. Some functions are actually named
9580 something starting with __ and the normal name is an alias. */
9581 #if defined __stub_$ac_func || defined __stub___$ac_func
9582 choke me
9583 #endif
9584
9585 int
9586 main ()
9587 {
9588 return $ac_func ();
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (ac_try="$ac_link"
9595 case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598 esac
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_link") 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest$ac_exeext &&
9610 $as_test_x conftest$ac_exeext; then
9611 eval "$as_ac_var=yes"
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616 eval "$as_ac_var=no"
9617 fi
9618
9619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9620 conftest$ac_exeext conftest.$ac_ext
9621 fi
9622 ac_res=`eval echo '${'$as_ac_var'}'`
9623 { echo "$as_me:$LINENO: result: $ac_res" >&5
9624 echo "${ECHO_T}$ac_res" >&6; }
9625 if test `eval echo '${'$as_ac_var'}'` = yes; then
9626 cat >>confdefs.h <<_ACEOF
9627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9628 _ACEOF
9629
9630 fi
9631 done
9632
9633 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9634 savedppflags="$CPPLAGS"
9635 CPPFLAGS="$CPPFLAGS $V_INCLS"
9636 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9637 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9638 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h. */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647 #include <pcap.h>
9648
9649 typedef pcap_if_t ac__type_new_;
9650 int
9651 main ()
9652 {
9653 if ((ac__type_new_ *) 0)
9654 return 0;
9655 if (sizeof (ac__type_new_))
9656 return 0;
9657 ;
9658 return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (ac_try="$ac_compile"
9663 case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_compile") 2>conftest.er1
9669 ac_status=$?
9670 grep -v '^ *+' conftest.er1 >conftest.err
9671 rm -f conftest.er1
9672 cat conftest.err >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); } && {
9675 test -z "$ac_c_werror_flag" ||
9676 test ! -s conftest.err
9677 } && test -s conftest.$ac_objext; then
9678 ac_cv_type_pcap_if_t=yes
9679 else
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 ac_cv_type_pcap_if_t=no
9684 fi
9685
9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 fi
9688 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9689 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9690 if test $ac_cv_type_pcap_if_t = yes; then
9691
9692 cat >>confdefs.h <<_ACEOF
9693 #define HAVE_PCAP_IF_T 1
9694 _ACEOF
9695
9696
9697 fi
9698
9699 CPPFLAGS="$savedcppflags"
9700 fi
9701
9702 if test $ac_cv_func_pcap_lib_version = "no" ; then
9703 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9704 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711
9712 int
9713 main ()
9714 {
9715
9716 extern char pcap_version[];
9717
9718 return (int)pcap_version;
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9726 case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } && {
9738 test -z "$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 } && test -s conftest$ac_exeext &&
9741 $as_test_x conftest$ac_exeext; then
9742 ac_lbl_cv_pcap_version_defined=yes
9743 else
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9746
9747 ac_lbl_cv_pcap_version_defined=no
9748 fi
9749
9750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9751 conftest$ac_exeext conftest.$ac_ext
9752 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9753 { echo "$as_me:$LINENO: result: yes" >&5
9754 echo "${ECHO_T}yes" >&6; }
9755 cat >>confdefs.h <<\_ACEOF
9756 #define HAVE_PCAP_VERSION 1
9757 _ACEOF
9758
9759 else
9760 { echo "$as_me:$LINENO: result: no" >&5
9761 echo "${ECHO_T}no" >&6; }
9762 fi
9763 fi
9764 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9765 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772
9773 int
9774 main ()
9775 {
9776
9777 extern int pcap_debug;
9778
9779 return pcap_debug;
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9787 case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_link") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext &&
9802 $as_test_x conftest$ac_exeext; then
9803 ac_lbl_cv_pcap_debug_defined=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 ac_lbl_cv_pcap_debug_defined=no
9809 fi
9810
9811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9812 conftest$ac_exeext conftest.$ac_ext
9813 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9814 { echo "$as_me:$LINENO: result: yes" >&5
9815 echo "${ECHO_T}yes" >&6; }
9816 cat >>confdefs.h <<\_ACEOF
9817 #define HAVE_PCAP_DEBUG 1
9818 _ACEOF
9819
9820 else
9821 { echo "$as_me:$LINENO: result: no" >&5
9822 echo "${ECHO_T}no" >&6; }
9823 #
9824 # OK, what about "yydebug"?
9825 #
9826 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9827 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834
9835 int
9836 main ()
9837 {
9838
9839 extern int yydebug;
9840
9841 return yydebug;
9842
9843 ;
9844 return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_link") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } && {
9861 test -z "$ac_c_werror_flag" ||
9862 test ! -s conftest.err
9863 } && test -s conftest$ac_exeext &&
9864 $as_test_x conftest$ac_exeext; then
9865 ac_lbl_cv_yydebug_defined=yes
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ac_lbl_cv_yydebug_defined=no
9871 fi
9872
9873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9874 conftest$ac_exeext conftest.$ac_ext
9875 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9876 { echo "$as_me:$LINENO: result: yes" >&5
9877 echo "${ECHO_T}yes" >&6; }
9878 cat >>confdefs.h <<\_ACEOF
9879 #define HAVE_YYDEBUG 1
9880 _ACEOF
9881
9882 else
9883 { echo "$as_me:$LINENO: result: no" >&5
9884 echo "${ECHO_T}no" >&6; }
9885 fi
9886 fi
9887
9888 for ac_func in bpf_dump
9889 do
9890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904 #define $ac_func innocuous_$ac_func
9905
9906 /* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char $ac_func (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9910
9911 #ifdef __STDC__
9912 # include <limits.h>
9913 #else
9914 # include <assert.h>
9915 #endif
9916
9917 #undef $ac_func
9918
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 char $ac_func ();
9926 /* The GNU C library defines this for functions which it implements
9927 to always fail with ENOSYS. Some functions are actually named
9928 something starting with __ and the normal name is an alias. */
9929 #if defined __stub_$ac_func || defined __stub___$ac_func
9930 choke me
9931 #endif
9932
9933 int
9934 main ()
9935 {
9936 return $ac_func ();
9937 ;
9938 return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9943 case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } && {
9955 test -z "$ac_c_werror_flag" ||
9956 test ! -s conftest.err
9957 } && test -s conftest$ac_exeext &&
9958 $as_test_x conftest$ac_exeext; then
9959 eval "$as_ac_var=yes"
9960 else
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 eval "$as_ac_var=no"
9965 fi
9966
9967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9968 conftest$ac_exeext conftest.$ac_ext
9969 fi
9970 ac_res=`eval echo '${'$as_ac_var'}'`
9971 { echo "$as_me:$LINENO: result: $ac_res" >&5
9972 echo "${ECHO_T}$ac_res" >&6; }
9973 if test `eval echo '${'$as_ac_var'}'` = yes; then
9974 cat >>confdefs.h <<_ACEOF
9975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9976 _ACEOF
9977
9978 else
9979 case " $LIBOBJS " in
9980 *" $ac_func.$ac_objext "* ) ;;
9981 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9982 ;;
9983 esac
9984
9985 fi
9986 done
9987
9988
9989 V_GROUP=0
9990 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9991 V_GROUP=wheel
9992 fi
9993 #
9994 # Assume V7/BSD convention for man pages (file formats in section 5,
9995 # miscellaneous info in section 7).
9996 #
9997 MAN_FILE_FORMATS=5
9998 MAN_MISC_INFO=7
9999 case "$host_os" in
10000
10001 aix*)
10002
10003 cat >>confdefs.h <<\_ACEOF
10004 #define _SUN 1
10005 _ACEOF
10006
10007 ;;
10008
10009 hpux*)
10010 #
10011 # Use System V conventions for man pages.
10012 #
10013 MAN_FILE_FORMATS=4
10014 MAN_MISC_INFO=5
10015 ;;
10016
10017 irix*)
10018 V_GROUP=sys
10019
10020 #
10021 # Use System V conventions for man pages.
10022 #
10023 MAN_FILE_FORMATS=4
10024 MAN_MISC_INFO=5
10025 ;;
10026
10027 osf*)
10028 V_GROUP=system
10029
10030 #
10031 # Use System V conventions for man pages.
10032 #
10033 MAN_FILE_FORMATS=4
10034 MAN_MISC_INFO=5
10035 ;;
10036
10037 solaris*)
10038 V_GROUP=sys
10039
10040 #
10041 # Use System V conventions for man pages.
10042 #
10043 MAN_FILE_FORMATS=4
10044 MAN_MISC_INFO=5
10045 ;;
10046 esac
10047
10048 if test -f /dev/bpf0 ; then
10049 V_GROUP=bpf
10050 fi
10051
10052 #
10053 # Check for some headers introduced in later versions of libpcap
10054 # and used by some printers.
10055 #
10056 savedcppflags="$CPPFLAGS"
10057 CPPFLAGS="$CPPFLAGS $V_INCLS"
10058
10059 for ac_header in pcap/bluetooth.h
10060 do
10061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 fi
10068 ac_res=`eval echo '${'$as_ac_Header'}'`
10069 { echo "$as_me:$LINENO: result: $ac_res" >&5
10070 echo "${ECHO_T}$ac_res" >&6; }
10071 else
10072 # Is the header compilable?
10073 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 $ac_includes_default
10082 #include <$ac_header>
10083 _ACEOF
10084 rm -f conftest.$ac_objext
10085 if { (ac_try="$ac_compile"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_compile") 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
10100 } && test -s conftest.$ac_objext; then
10101 ac_header_compiler=yes
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10105
10106 ac_header_compiler=no
10107 fi
10108
10109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10111 echo "${ECHO_T}$ac_header_compiler" >&6; }
10112
10113 # Is the header present?
10114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 #include <$ac_header>
10123 _ACEOF
10124 if { (ac_try="$ac_cpp conftest.$ac_ext"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } >/dev/null && {
10137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 }; then
10140 ac_header_preproc=yes
10141 else
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 ac_header_preproc=no
10146 fi
10147
10148 rm -f conftest.err conftest.$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10150 echo "${ECHO_T}$ac_header_preproc" >&6; }
10151
10152 # So? What about this header?
10153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10154 yes:no: )
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10159 ac_header_preproc=yes
10160 ;;
10161 no:yes:* )
10162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10174
10175 ;;
10176 esac
10177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 eval "$as_ac_Header=\$ac_header_preproc"
10183 fi
10184 ac_res=`eval echo '${'$as_ac_Header'}'`
10185 { echo "$as_me:$LINENO: result: $ac_res" >&5
10186 echo "${ECHO_T}$ac_res" >&6; }
10187
10188 fi
10189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10190 cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10192 _ACEOF
10193
10194 fi
10195
10196 done
10197
10198
10199 for ac_header in pcap/usb.h
10200 do
10201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 fi
10208 ac_res=`eval echo '${'$as_ac_Header'}'`
10209 { echo "$as_me:$LINENO: result: $ac_res" >&5
10210 echo "${ECHO_T}$ac_res" >&6; }
10211 else
10212 # Is the header compilable?
10213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 $ac_includes_default
10222 #include <$ac_header>
10223 _ACEOF
10224 rm -f conftest.$ac_objext
10225 if { (ac_try="$ac_compile"
10226 case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229 esac
10230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_compile") 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && {
10238 test -z "$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest.$ac_objext; then
10241 ac_header_compiler=yes
10242 else
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ac_header_compiler=no
10247 fi
10248
10249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10251 echo "${ECHO_T}$ac_header_compiler" >&6; }
10252
10253 # Is the header present?
10254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <$ac_header>
10263 _ACEOF
10264 if { (ac_try="$ac_cpp conftest.$ac_ext"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } >/dev/null && {
10277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 }; then
10280 ac_header_preproc=yes
10281 else
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285 ac_header_preproc=no
10286 fi
10287
10288 rm -f conftest.err conftest.$ac_ext
10289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10290 echo "${ECHO_T}$ac_header_preproc" >&6; }
10291
10292 # So? What about this header?
10293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10294 yes:no: )
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10299 ac_header_preproc=yes
10300 ;;
10301 no:yes:* )
10302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10314
10315 ;;
10316 esac
10317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 eval "$as_ac_Header=\$ac_header_preproc"
10323 fi
10324 ac_res=`eval echo '${'$as_ac_Header'}'`
10325 { echo "$as_me:$LINENO: result: $ac_res" >&5
10326 echo "${ECHO_T}$ac_res" >&6; }
10327
10328 fi
10329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10330 cat >>confdefs.h <<_ACEOF
10331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10332 _ACEOF
10333
10334 fi
10335
10336 done
10337
10338 CPPFLAGS="$savedcppflags"
10339
10340
10341 for ac_header in sys/bitypes.h
10342 do
10343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 fi
10350 ac_res=`eval echo '${'$as_ac_Header'}'`
10351 { echo "$as_me:$LINENO: result: $ac_res" >&5
10352 echo "${ECHO_T}$ac_res" >&6; }
10353 else
10354 # Is the header compilable?
10355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10357 cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 $ac_includes_default
10364 #include <$ac_header>
10365 _ACEOF
10366 rm -f conftest.$ac_objext
10367 if { (ac_try="$ac_compile"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_compile") 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && {
10380 test -z "$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest.$ac_objext; then
10383 ac_header_compiler=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_header_compiler=no
10389 fi
10390
10391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10393 echo "${ECHO_T}$ac_header_compiler" >&6; }
10394
10395 # Is the header present?
10396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h. */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404 #include <$ac_header>
10405 _ACEOF
10406 if { (ac_try="$ac_cpp conftest.$ac_ext"
10407 case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10410 esac
10411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10413 ac_status=$?
10414 grep -v '^ *+' conftest.er1 >conftest.err
10415 rm -f conftest.er1
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } >/dev/null && {
10419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10420 test ! -s conftest.err
10421 }; then
10422 ac_header_preproc=yes
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 ac_header_preproc=no
10428 fi
10429
10430 rm -f conftest.err conftest.$ac_ext
10431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10432 echo "${ECHO_T}$ac_header_preproc" >&6; }
10433
10434 # So? What about this header?
10435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10436 yes:no: )
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10441 ac_header_preproc=yes
10442 ;;
10443 no:yes:* )
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10456
10457 ;;
10458 esac
10459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464 eval "$as_ac_Header=\$ac_header_preproc"
10465 fi
10466 ac_res=`eval echo '${'$as_ac_Header'}'`
10467 { echo "$as_me:$LINENO: result: $ac_res" >&5
10468 echo "${ECHO_T}$ac_res" >&6; }
10469
10470 fi
10471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10472 cat >>confdefs.h <<_ACEOF
10473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10474 _ACEOF
10475
10476 fi
10477
10478 done
10479
10480
10481 { echo "$as_me:$LINENO: checking for int8_t" >&5
10482 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
10483 if test "${ac_cv_type_int8_t+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h. */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10492 $ac_includes_default
10493 #ifdef HAVE_SYS_BITYPES_H
10494 #include <sys/bitypes.h>
10495 #endif
10496
10497 typedef int8_t ac__type_new_;
10498 int
10499 main ()
10500 {
10501 if ((ac__type_new_ *) 0)
10502 return 0;
10503 if (sizeof (ac__type_new_))
10504 return 0;
10505 ;
10506 return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext
10510 if { (ac_try="$ac_compile"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_compile") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } && {
10523 test -z "$ac_c_werror_flag" ||
10524 test ! -s conftest.err
10525 } && test -s conftest.$ac_objext; then
10526 ac_cv_type_int8_t=yes
10527 else
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10530
10531 ac_cv_type_int8_t=no
10532 fi
10533
10534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535 fi
10536 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10537 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
10538 if test $ac_cv_type_int8_t = yes; then
10539 :
10540 else
10541
10542 cat >>confdefs.h <<\_ACEOF
10543 #define int8_t signed char
10544 _ACEOF
10545
10546 fi
10547
10548 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
10549 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
10550 if test "${ac_cv_type_u_int8_t+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h. */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 $ac_includes_default
10560 #ifdef HAVE_SYS_BITYPES_H
10561 #include <sys/bitypes.h>
10562 #endif
10563
10564 typedef u_int8_t ac__type_new_;
10565 int
10566 main ()
10567 {
10568 if ((ac__type_new_ *) 0)
10569 return 0;
10570 if (sizeof (ac__type_new_))
10571 return 0;
10572 ;
10573 return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext
10577 if { (ac_try="$ac_compile"
10578 case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10581 esac
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_compile") 2>conftest.er1
10584 ac_status=$?
10585 grep -v '^ *+' conftest.er1 >conftest.err
10586 rm -f conftest.er1
10587 cat conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && {
10590 test -z "$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10592 } && test -s conftest.$ac_objext; then
10593 ac_cv_type_u_int8_t=yes
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 ac_cv_type_u_int8_t=no
10599 fi
10600
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 fi
10603 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10604 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10605 if test $ac_cv_type_u_int8_t = yes; then
10606 :
10607 else
10608
10609 cat >>confdefs.h <<\_ACEOF
10610 #define u_int8_t unsigned char
10611 _ACEOF
10612
10613 fi
10614
10615 { echo "$as_me:$LINENO: checking for int16_t" >&5
10616 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10617 if test "${ac_cv_type_int16_t+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h. */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 $ac_includes_default
10627 typedef int16_t ac__type_new_;
10628 int
10629 main ()
10630 {
10631 if ((ac__type_new_ *) 0)
10632 return 0;
10633 if (sizeof (ac__type_new_))
10634 return 0;
10635 ;
10636 return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext
10640 if { (ac_try="$ac_compile"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && {
10653 test -z "$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10655 } && test -s conftest.$ac_objext; then
10656 ac_cv_type_int16_t=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_cv_type_int16_t=no
10662 fi
10663
10664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10665 fi
10666 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10667 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10668 if test $ac_cv_type_int16_t = yes; then
10669 :
10670 else
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define int16_t short
10674 _ACEOF
10675
10676 $ac_includes_default
10677 #ifdef HAVE_SYS_BITYPES_H
10678 #include <sys/bitypes.h>
10679 #endif
10680 fi
10681
10682 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10683 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10684 if test "${ac_cv_type_u_int16_t+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h. */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 $ac_includes_default
10694 #ifdef HAVE_SYS_BITYPES_H
10695 #include <sys/bitypes.h>
10696 #endif
10697
10698 typedef u_int16_t ac__type_new_;
10699 int
10700 main ()
10701 {
10702 if ((ac__type_new_ *) 0)
10703 return 0;
10704 if (sizeof (ac__type_new_))
10705 return 0;
10706 ;
10707 return 0;
10708 }
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (ac_try="$ac_compile"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_compile") 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest.$ac_objext; then
10727 ac_cv_type_u_int16_t=yes
10728 else
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 ac_cv_type_u_int16_t=no
10733 fi
10734
10735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736 fi
10737 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10738 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10739 if test $ac_cv_type_u_int16_t = yes; then
10740 :
10741 else
10742
10743 cat >>confdefs.h <<\_ACEOF
10744 #define u_int16_t unsigned short
10745 _ACEOF
10746
10747 fi
10748
10749 { echo "$as_me:$LINENO: checking for int32_t" >&5
10750 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10751 if test "${ac_cv_type_int32_t+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 $ac_includes_default
10761 #ifdef HAVE_SYS_BITYPES_H
10762 #include <sys/bitypes.h>
10763 #endif
10764
10765 typedef int32_t ac__type_new_;
10766 int
10767 main ()
10768 {
10769 if ((ac__type_new_ *) 0)
10770 return 0;
10771 if (sizeof (ac__type_new_))
10772 return 0;
10773 ;
10774 return 0;
10775 }
10776 _ACEOF
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_compile") 2>conftest.er1
10785 ac_status=$?
10786 grep -v '^ *+' conftest.er1 >conftest.err
10787 rm -f conftest.er1
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && {
10791 test -z "$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10793 } && test -s conftest.$ac_objext; then
10794 ac_cv_type_int32_t=yes
10795 else
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_cv_type_int32_t=no
10800 fi
10801
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803 fi
10804 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10805 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10806 if test $ac_cv_type_int32_t = yes; then
10807 :
10808 else
10809
10810 cat >>confdefs.h <<\_ACEOF
10811 #define int32_t int
10812 _ACEOF
10813
10814 fi
10815
10816 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10817 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10818 if test "${ac_cv_type_u_int32_t+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 $ac_includes_default
10828 #ifdef HAVE_SYS_BITYPES_H
10829 #include <sys/bitypes.h>
10830 #endif
10831
10832 typedef u_int32_t ac__type_new_;
10833 int
10834 main ()
10835 {
10836 if ((ac__type_new_ *) 0)
10837 return 0;
10838 if (sizeof (ac__type_new_))
10839 return 0;
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext
10845 if { (ac_try="$ac_compile"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851 (eval "$ac_compile") 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } && {
10858 test -z "$ac_c_werror_flag" ||
10859 test ! -s conftest.err
10860 } && test -s conftest.$ac_objext; then
10861 ac_cv_type_u_int32_t=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 ac_cv_type_u_int32_t=no
10867 fi
10868
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 fi
10871 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10872 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10873 if test $ac_cv_type_u_int32_t = yes; then
10874 :
10875 else
10876
10877 cat >>confdefs.h <<\_ACEOF
10878 #define u_int32_t unsigned int
10879 _ACEOF
10880
10881 fi
10882
10883 { echo "$as_me:$LINENO: checking for int64_t" >&5
10884 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10885 if test "${ac_cv_type_int64_t+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h. */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10895 #ifdef HAVE_SYS_BITYPES_H
10896 #include <sys/bitypes.h>
10897 #endif
10898
10899 typedef int64_t ac__type_new_;
10900 int
10901 main ()
10902 {
10903 if ((ac__type_new_ *) 0)
10904 return 0;
10905 if (sizeof (ac__type_new_))
10906 return 0;
10907 ;
10908 return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.$ac_objext; then
10928 ac_cv_type_int64_t=yes
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10932
10933 ac_cv_type_int64_t=no
10934 fi
10935
10936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 fi
10938 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10939 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10940 if test $ac_cv_type_int64_t = yes; then
10941 :
10942 else
10943
10944 cat >>confdefs.h <<\_ACEOF
10945 #define int64_t long long
10946 _ACEOF
10947
10948 fi
10949
10950 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10951 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10952 if test "${ac_cv_type_u_int64_t+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 $ac_includes_default
10962 #ifdef HAVE_SYS_BITYPES_H
10963 #include <sys/bitypes.h>
10964 #endif
10965
10966 typedef u_int64_t ac__type_new_;
10967 int
10968 main ()
10969 {
10970 if ((ac__type_new_ *) 0)
10971 return 0;
10972 if (sizeof (ac__type_new_))
10973 return 0;
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext
10979 if { (ac_try="$ac_compile"
10980 case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10983 esac
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_compile") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest.$ac_objext; then
10995 ac_cv_type_u_int64_t=yes
10996 else
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.$ac_ext >&5
10999
11000 ac_cv_type_u_int64_t=no
11001 fi
11002
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 fi
11005 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11006 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
11007 if test $ac_cv_type_u_int64_t = yes; then
11008 :
11009 else
11010
11011 cat >>confdefs.h <<\_ACEOF
11012 #define u_int64_t unsigned long long
11013 _ACEOF
11014
11015 fi
11016
11017
11018 #
11019 # We can't just check for <inttypes.h> - some systems have one that
11020 # doesn't define all the PRI[doxu]64 macros.
11021 #
11022
11023 for ac_header in inttypes.h
11024 do
11025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 fi
11032 ac_res=`eval echo '${'$as_ac_Header'}'`
11033 { echo "$as_me:$LINENO: result: $ac_res" >&5
11034 echo "${ECHO_T}$ac_res" >&6; }
11035 else
11036 # Is the header compilable?
11037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 $ac_includes_default
11046 #include <$ac_header>
11047 _ACEOF
11048 rm -f conftest.$ac_objext
11049 if { (ac_try="$ac_compile"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_compile") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest.$ac_objext; then
11065 ac_header_compiler=yes
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 ac_header_compiler=no
11071 fi
11072
11073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11075 echo "${ECHO_T}$ac_header_compiler" >&6; }
11076
11077 # Is the header present?
11078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #include <$ac_header>
11087 _ACEOF
11088 if { (ac_try="$ac_cpp conftest.$ac_ext"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092 esac
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } >/dev/null && {
11101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 }; then
11104 ac_header_preproc=yes
11105 else
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109 ac_header_preproc=no
11110 fi
11111
11112 rm -f conftest.err conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11114 echo "${ECHO_T}$ac_header_preproc" >&6; }
11115
11116 # So? What about this header?
11117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11118 yes:no: )
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11123 ac_header_preproc=yes
11124 ;;
11125 no:yes:* )
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11138
11139 ;;
11140 esac
11141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146 eval "$as_ac_Header=\$ac_header_preproc"
11147 fi
11148 ac_res=`eval echo '${'$as_ac_Header'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151
11152 fi
11153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11154 cat >>confdefs.h <<_ACEOF
11155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11156 _ACEOF
11157
11158 #
11159 # OK, we have inttypes.h, but does it define those macros?
11160 #
11161 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
11162 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170
11171 #include <inttypes.h>
11172 #include <stdio.h>
11173 #include <sys/types.h>
11174 #ifdef HAVE_SYS_BITYPES_H
11175 #include <sys/bitypes.h>
11176 #endif
11177
11178 main()
11179 {
11180 printf("%" PRId64 "\n", (u_int64_t)1);
11181 printf("%" PRIo64 "\n", (u_int64_t)1);
11182 printf("%" PRIx64 "\n", (u_int64_t)1);
11183 printf("%" PRIu64 "\n", (u_int64_t)1);
11184 }
11185
11186
11187 _ACEOF
11188 rm -f conftest.$ac_objext
11189 if { (ac_try="$ac_compile"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11205
11206 { echo "$as_me:$LINENO: result: yes" >&5
11207 echo "${ECHO_T}yes" >&6; }
11208 ac_lbl_inttypes_h_defines_formats=yes
11209
11210 else
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214
11215 { echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6; }
11217 ac_lbl_inttypes_h_defines_formats=no
11218
11219 fi
11220
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222
11223 else
11224
11225 #
11226 # We don't have inttypes.h, so it obviously can't define those
11227 # macros.
11228 #
11229 ac_lbl_inttypes_h_defines_formats=no
11230
11231 fi
11232
11233 done
11234
11235 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
11236
11237 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
11238 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
11239 if test "$cross_compiling" = yes; then
11240 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11241 See \`config.log' for more details." >&5
11242 echo "$as_me: error: cannot run test program while cross compiling
11243 See \`config.log' for more details." >&2;}
11244 { (exit 1); exit 1; }; }
11245 else
11246 cat >conftest.$ac_ext <<_ACEOF
11247
11248 /* confdefs.h. */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11253
11254 # ifdef HAVE_INTTYPES_H
11255 #include <inttypes.h>
11256 # endif
11257 # ifdef HAVE_SYS_BITYPES_H
11258 #include <sys/bitypes.h>
11259 # endif
11260 #include <stdio.h>
11261 #include <sys/types.h>
11262
11263 main()
11264 {
11265 u_int64_t t = 1;
11266 char strbuf[16+1];
11267 sprintf(strbuf, "%016lx", t << 32);
11268 if (strcmp(strbuf, "0000000100000000") == 0)
11269 exit(0);
11270 else
11271 exit(1);
11272 }
11273
11274
11275 _ACEOF
11276 rm -f conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_link") 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11287 { (case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_try") 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296
11297 cat >>confdefs.h <<\_ACEOF
11298 #define PRId64 "ld"
11299 _ACEOF
11300
11301 cat >>confdefs.h <<\_ACEOF
11302 #define PRIo64 "lo"
11303 _ACEOF
11304
11305 cat >>confdefs.h <<\_ACEOF
11306 #define PRIx64 "lx"
11307 _ACEOF
11308
11309 cat >>confdefs.h <<\_ACEOF
11310 #define PRIu64 "lu"
11311 _ACEOF
11312
11313 { echo "$as_me:$LINENO: result: yes" >&5
11314 echo "${ECHO_T}yes" >&6; }
11315
11316 else
11317 echo "$as_me: program exited with status $ac_status" >&5
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ( exit $ac_status )
11322
11323 { echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6; }
11325
11326
11327 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
11328 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
11329 if test "$cross_compiling" = yes; then
11330 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11331 See \`config.log' for more details." >&5
11332 echo "$as_me: error: cannot run test program while cross compiling
11333 See \`config.log' for more details." >&2;}
11334 { (exit 1); exit 1; }; }
11335 else
11336 cat >conftest.$ac_ext <<_ACEOF
11337
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343
11344 # ifdef HAVE_INTTYPES_H
11345 #include <inttypes.h>
11346 # endif
11347 # ifdef HAVE_SYS_BITYPES_H
11348 #include <sys/bitypes.h>
11349 # endif
11350 #include <stdio.h>
11351 #include <sys/types.h>
11352
11353 main()
11354 {
11355 u_int64_t t = 1;
11356 char strbuf[16+1];
11357 sprintf(strbuf, "%016llx", t << 32);
11358 if (strcmp(strbuf, "0000000100000000") == 0)
11359 exit(0);
11360 else
11361 exit(1);
11362 }
11363
11364
11365 _ACEOF
11366 rm -f conftest$ac_exeext
11367 if { (ac_try="$ac_link"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_link") 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386
11387 cat >>confdefs.h <<\_ACEOF
11388 #define PRId64 "lld"
11389 _ACEOF
11390
11391 cat >>confdefs.h <<\_ACEOF
11392 #define PRIo64 "llo"
11393 _ACEOF
11394
11395 cat >>confdefs.h <<\_ACEOF
11396 #define PRIx64 "llx"
11397 _ACEOF
11398
11399 cat >>confdefs.h <<\_ACEOF
11400 #define PRIu64 "llu"
11401 _ACEOF
11402
11403 { echo "$as_me:$LINENO: result: yes" >&5
11404 echo "${ECHO_T}yes" >&6; }
11405
11406 else
11407 echo "$as_me: program exited with status $ac_status" >&5
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 ( exit $ac_status )
11412
11413 { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11415
11416
11417 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
11418 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
11419 if test "$cross_compiling" = yes; then
11420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11421 See \`config.log' for more details." >&5
11422 echo "$as_me: error: cannot run test program while cross compiling
11423 See \`config.log' for more details." >&2;}
11424 { (exit 1); exit 1; }; }
11425 else
11426 cat >conftest.$ac_ext <<_ACEOF
11427
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433
11434 # ifdef HAVE_INTTYPES_H
11435 #include <inttypes.h>
11436 # endif
11437 # ifdef HAVE_SYS_BITYPES_H
11438 #include <sys/bitypes.h>
11439 # endif
11440 #include <stdio.h>
11441 #include <sys/types.h>
11442
11443 main()
11444 {
11445 u_int64_t t = 1;
11446 char strbuf[16+1];
11447 sprintf(strbuf, "%016Lx", t << 32);
11448 if (strcmp(strbuf, "0000000100000000") == 0)
11449 exit(0);
11450 else
11451 exit(1);
11452 }
11453
11454
11455 _ACEOF
11456 rm -f conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11467 { (case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_try") 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476
11477 cat >>confdefs.h <<\_ACEOF
11478 #define PRId64 "Ld"
11479 _ACEOF
11480
11481 cat >>confdefs.h <<\_ACEOF
11482 #define PRIo64 "Lo"
11483 _ACEOF
11484
11485 cat >>confdefs.h <<\_ACEOF
11486 #define PRIx64 "Lx"
11487 _ACEOF
11488
11489 cat >>confdefs.h <<\_ACEOF
11490 #define PRIu64 "Lu"
11491 _ACEOF
11492
11493 { echo "$as_me:$LINENO: result: yes" >&5
11494 echo "${ECHO_T}yes" >&6; }
11495
11496 else
11497 echo "$as_me: program exited with status $ac_status" >&5
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ( exit $ac_status )
11502
11503 { echo "$as_me:$LINENO: result: no" >&5
11504 echo "${ECHO_T}no" >&6; }
11505
11506
11507 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11508 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
11509 if test "$cross_compiling" = yes; then
11510 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11511 See \`config.log' for more details." >&5
11512 echo "$as_me: error: cannot run test program while cross compiling
11513 See \`config.log' for more details." >&2;}
11514 { (exit 1); exit 1; }; }
11515 else
11516 cat >conftest.$ac_ext <<_ACEOF
11517
11518 /* confdefs.h. */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523
11524 # ifdef HAVE_INTTYPES_H
11525 #include <inttypes.h>
11526 # endif
11527 # ifdef HAVE_SYS_BITYPES_H
11528 #include <sys/bitypes.h>
11529 # endif
11530 #include <stdio.h>
11531 #include <sys/types.h>
11532
11533 main()
11534 {
11535 u_int64_t t = 1;
11536 char strbuf[16+1];
11537 sprintf(strbuf, "%016qx", t << 32);
11538 if (strcmp(strbuf, "0000000100000000") == 0)
11539 exit(0);
11540 else
11541 exit(1);
11542 }
11543
11544
11545 _ACEOF
11546 rm -f conftest$ac_exeext
11547 if { (ac_try="$ac_link"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_link") 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566
11567 cat >>confdefs.h <<\_ACEOF
11568 #define PRId64 "qd"
11569 _ACEOF
11570
11571 cat >>confdefs.h <<\_ACEOF
11572 #define PRIo64 "qo"
11573 _ACEOF
11574
11575 cat >>confdefs.h <<\_ACEOF
11576 #define PRIx64 "qx"
11577 _ACEOF
11578
11579 cat >>confdefs.h <<\_ACEOF
11580 #define PRIu64 "qu"
11581 _ACEOF
11582
11583 { echo "$as_me:$LINENO: result: yes" >&5
11584 echo "${ECHO_T}yes" >&6; }
11585
11586 else
11587 echo "$as_me: program exited with status $ac_status" >&5
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591 ( exit $ac_status )
11592
11593 { echo "$as_me:$LINENO: result: no" >&5
11594 echo "${ECHO_T}no" >&6; }
11595
11596 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11597 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11598 { (exit 1); exit 1; }; }
11599
11600
11601 fi
11602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11603 fi
11604
11605
11606
11607
11608
11609 fi
11610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11611 fi
11612
11613
11614
11615
11616
11617 fi
11618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11619 fi
11620
11621
11622
11623
11624
11625 fi
11626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11627 fi
11628
11629
11630
11631 fi
11632
11633 if test -n "$ac_tool_prefix"; then
11634 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11635 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11638 if test "${ac_cv_prog_RANLIB+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 if test -n "$RANLIB"; then
11642 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11646 do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11651 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11654 fi
11655 done
11656 done
11657 IFS=$as_save_IFS
11658
11659 fi
11660 fi
11661 RANLIB=$ac_cv_prog_RANLIB
11662 if test -n "$RANLIB"; then
11663 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11664 echo "${ECHO_T}$RANLIB" >&6; }
11665 else
11666 { echo "$as_me:$LINENO: result: no" >&5
11667 echo "${ECHO_T}no" >&6; }
11668 fi
11669
11670
11671 fi
11672 if test -z "$ac_cv_prog_RANLIB"; then
11673 ac_ct_RANLIB=$RANLIB
11674 # Extract the first word of "ranlib", so it can be a program name with args.
11675 set dummy ranlib; ac_word=$2
11676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11678 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681 if test -n "$ac_ct_RANLIB"; then
11682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11683 else
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11686 do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11691 ac_cv_prog_ac_ct_RANLIB="ranlib"
11692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11694 fi
11695 done
11696 done
11697 IFS=$as_save_IFS
11698
11699 fi
11700 fi
11701 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11702 if test -n "$ac_ct_RANLIB"; then
11703 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11704 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11705 else
11706 { echo "$as_me:$LINENO: result: no" >&5
11707 echo "${ECHO_T}no" >&6; }
11708 fi
11709
11710 if test "x$ac_ct_RANLIB" = x; then
11711 RANLIB=":"
11712 else
11713 case $cross_compiling:$ac_tool_warned in
11714 yes:)
11715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11716 whose name does not start with the host triplet. If you think this
11717 configuration is useful to you, please write to autoconf@gnu.org." >&5
11718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11719 whose name does not start with the host triplet. If you think this
11720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11721 ac_tool_warned=yes ;;
11722 esac
11723 RANLIB=$ac_ct_RANLIB
11724 fi
11725 else
11726 RANLIB="$ac_cv_prog_RANLIB"
11727 fi
11728
11729
11730 rm -f os-proto.h
11731 if test "${LBL_CFLAGS+set}" = set; then
11732 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11733 fi
11734 if test -f .devel ; then
11735 if test "$GCC" = yes ; then
11736 if test "${LBL_CFLAGS+set}" != set; then
11737 if test "$ac_cv_prog_cc_g" = yes ; then
11738 V_CCOPT="-g $V_CCOPT"
11739 fi
11740 V_CCOPT="$V_CCOPT -Wall"
11741 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11742 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
11743 fi
11744 fi
11745 else
11746 case "$host_os" in
11747
11748 irix6*)
11749 V_CCOPT="$V_CCOPT -n32"
11750 ;;
11751
11752 *)
11753 ;;
11754 esac
11755 fi
11756 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11757 name="lbl/os-$os.h"
11758 if test -f $name ; then
11759 ln -s $name os-proto.h
11760
11761 cat >>confdefs.h <<\_ACEOF
11762 #define HAVE_OS_PROTO_H 1
11763 _ACEOF
11764
11765 else
11766 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11767 echo "$as_me: WARNING: can't find $name" >&2;}
11768 fi
11769 fi
11770
11771 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11772 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11773 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782
11783 # include <sys/types.h>
11784 # include <sys/socket.h>
11785 int
11786 main ()
11787 {
11788 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest.$ac_objext; then
11810 ac_cv_lbl_sockaddr_has_sa_len=yes
11811 else
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815 ac_cv_lbl_sockaddr_has_sa_len=no
11816 fi
11817
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 fi
11820
11821 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11822 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11823 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11824
11825 cat >>confdefs.h <<\_ACEOF
11826 #define HAVE_SOCKADDR_SA_LEN 1
11827 _ACEOF
11828
11829 fi
11830
11831 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11832 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11833 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836 case "$host_cpu" in
11837
11838 #
11839 # These are CPU types where:
11840 #
11841 # the CPU faults on an unaligned access, but at least some
11842 # OSes that support that CPU catch the fault and simulate
11843 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11844 # the simulation is slow, so we don't want to use it;
11845 #
11846 # the CPU, I infer (from the old
11847 #
11848 # XXX: should also check that they don't do weird things (like on arm)
11849 #
11850 # comment) doesn't fault on unaligned accesses, but doesn't
11851 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11852 #
11853 # for whatever reason, the test program doesn't work
11854 # (this has been claimed to be the case for several of those
11855 # CPUs - I don't know what the problem is; the problem
11856 # was reported as "the test program dumps core" for SuperH,
11857 # but that's what the test program is *supposed* to do -
11858 # it dumps core before it writes anything, so the test
11859 # for an empty output file should find an empty output
11860 # file and conclude that unaligned accesses don't work).
11861 #
11862 # This run-time test won't work if you're cross-compiling, so
11863 # in order to support cross-compiling for a particular CPU,
11864 # we have to wire in the list of CPU types anyway, as far as
11865 # I know, so perhaps we should just have a set of CPUs on
11866 # which we know it doesn't work, a set of CPUs on which we
11867 # know it does work, and have the script just fail on other
11868 # cpu types and update it when such a failure occurs.
11869 #
11870 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11871 ac_cv_lbl_unaligned_fail=yes
11872 ;;
11873
11874 *)
11875 cat >conftest.c <<EOF
11876 # include <sys/types.h>
11877 # include <sys/wait.h>
11878 # include <stdio.h>
11879 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11880 main() {
11881 unsigned int i;
11882 pid_t pid;
11883 int status;
11884 /* avoid "core dumped" message */
11885 pid = fork();
11886 if (pid < 0)
11887 exit(2);
11888 if (pid > 0) {
11889 /* parent */
11890 pid = waitpid(pid, &status, 0);
11891 if (pid < 0)
11892 exit(3);
11893 exit(!WIFEXITED(status));
11894 }
11895 /* child */
11896 i = *(unsigned int *)&a[1];
11897 printf("%d\n", i);
11898 exit(0);
11899 }
11900 EOF
11901 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11902 conftest.c $LIBS >/dev/null 2>&1
11903 if test ! -x conftest ; then
11904 ac_cv_lbl_unaligned_fail=yes
11905 else
11906 ./conftest >conftest.out
11907 if test ! -s conftest.out ; then
11908 ac_cv_lbl_unaligned_fail=yes
11909 else
11910 ac_cv_lbl_unaligned_fail=no
11911 fi
11912 fi
11913 rm -f -r conftest* core core.conftest
11914 ;;
11915 esac
11916 fi
11917
11918 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11919 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11920 if test $ac_cv_lbl_unaligned_fail = yes ; then
11921
11922 cat >>confdefs.h <<\_ACEOF
11923 #define LBL_ALIGN 1
11924 _ACEOF
11925
11926 fi
11927
11928
11929 { echo "$as_me:$LINENO: checking for h_errno" >&5
11930 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
11931 if test "${ac_cv_var_h_errno+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h. */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940
11941 # include <sys/types.h>
11942 # include <netdb.h>
11943 int
11944 main ()
11945 {
11946 int foo = h_errno;
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext
11952 if { (ac_try="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.$ac_objext; then
11968 ac_cv_var_h_errno=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_cv_var_h_errno=no
11974 fi
11975
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 fi
11978
11979 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11980 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11981 if test "$ac_cv_var_h_errno" = "yes"; then
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_H_ERRNO 1
11984 _ACEOF
11985
11986 fi
11987
11988
11989 # Check for SSLeay
11990 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
11991 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
11992 # Specify location for both includes and libraries.
11993 want_libcrypto=youmama
11994
11995 # Check whether --with-crypto was given.
11996 if test "${with_crypto+set}" = set; then
11997 withval=$with_crypto;
11998 if test $withval = no
11999 then
12000 want_libcrypto=no
12001 { echo "$as_me:$LINENO: result: no" >&5
12002 echo "${ECHO_T}no" >&6; }
12003 elif test $withval = yes
12004 then
12005 want_libcrypto=yes
12006 { echo "$as_me:$LINENO: result: yes" >&5
12007 echo "${ECHO_T}yes" >&6; }
12008 else
12009 want_libcrypto=yes
12010 { echo "$as_me:$LINENO: result: yes" >&5
12011 echo "${ECHO_T}yes" >&6; }
12012 crypto_dir=$withval
12013 fi
12014
12015 else
12016
12017 #
12018 # Use libcrypto if it's present, otherwise don't.
12019 #
12020 want_libcrypto=ifavailable
12021 { echo "$as_me:$LINENO: result: yes, if available" >&5
12022 echo "${ECHO_T}yes, if available" >&6; }
12023
12024 fi
12025
12026 if test "$want_libcrypto" != "no"; then
12027 ac_cv_ssleay_path=no
12028 incdir=no
12029 if test "x$crypto_dir" = x; then
12030 #
12031 # Location not specified; check the default locations.
12032 #
12033 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
12034 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
12035 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
12036 if test "x${host_alias}" != x; then
12037 dirs="/usr/${host_alias} $dirs"
12038 fi
12039 for dir in $dirs; do
12040
12041 #
12042 # Find the last component of $libdir; it's not necessarily
12043 # "lib" - it might be "lib64" on, for example, x86-64
12044 # Linux systems.
12045 #
12046 # We assume the directory in which we're looking for
12047 # libcrypto has a subdirectory with that as its name.
12048 #
12049 tmplib=`echo "$libdir" | sed 's,.*/,,'`
12050
12051 #
12052 # XXX - is there a better way to check if a given library is
12053 # in a given directory than checking each of the possible
12054 # shared library suffixes?
12055 #
12056 # Are there any other suffixes we need to look for? Do we
12057 # have to worry about ".so.{version}"?
12058 #
12059 # Or should we just look for "libcrypto.*"?
12060 #
12061 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
12062 -f "$dir/$tmplib/libcrypto.so" -o \
12063 -f "$dir/$tmplib/libcrypto.sl" -o \
12064 -f "$dir/$tmplib/libcrypto.dylib" \); then
12065 ac_cv_ssleay_path="$dir"
12066 fi
12067
12068 #
12069 # Make sure we have the headers as well.
12070 #
12071 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
12072 incdir="-I$dir/include"
12073 fi
12074
12075
12076 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
12077 break;
12078 else
12079 ac_cv_ssleay_path=no
12080 incdir=no
12081 fi
12082 done
12083 if test "$ac_cv_ssleay_path" != no; then
12084 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
12085 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
12086 fi
12087 else
12088 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
12089 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
12090
12091 #
12092 # Find the last component of $libdir; it's not necessarily
12093 # "lib" - it might be "lib64" on, for example, x86-64
12094 # Linux systems.
12095 #
12096 # We assume the directory in which we're looking for
12097 # libcrypto has a subdirectory with that as its name.
12098 #
12099 tmplib=`echo "$libdir" | sed 's,.*/,,'`
12100
12101 #
12102 # XXX - is there a better way to check if a given library is
12103 # in a given directory than checking each of the possible
12104 # shared library suffixes?
12105 #
12106 # Are there any other suffixes we need to look for? Do we
12107 # have to worry about ".so.{version}"?
12108 #
12109 # Or should we just look for "libcrypto.*"?
12110 #
12111 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
12112 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
12113 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
12114 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
12115 ac_cv_ssleay_path="$crypto_dir"
12116 fi
12117
12118 #
12119 # Make sure we have the headers as well.
12120 #
12121 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
12122 incdir="-I$crypto_dir/include"
12123 fi
12124
12125 if test "$ac_cv_ssleay_path" != no; then
12126 { echo "$as_me:$LINENO: result: found" >&5
12127 echo "${ECHO_T}found" >&6; }
12128 fi
12129 fi
12130 if test "$ac_cv_ssleay_path" != no; then
12131 V_INCLS="$V_INCLS $incdir"
12132 if test "$dir" != "/usr"; then
12133 LDFLAGS="-L$dir/lib $LDFLAGS"
12134 fi
12135 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
12136 LIBS="$LIBS -lRSAglue"
12137 fi
12138 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
12139 LIBS="$LIBS -lrsaref"
12140 fi
12141
12142 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
12143 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
12144 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-lcrypto $LIBS"
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155
12156 /* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
12159 #ifdef __cplusplus
12160 extern "C"
12161 #endif
12162 char DES_cbc_encrypt ();
12163 int
12164 main ()
12165 {
12166 return DES_cbc_encrypt ();
12167 ;
12168 return 0;
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext conftest$ac_exeext
12172 if { (ac_try="$ac_link"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_link") 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && {
12185 test -z "$ac_c_werror_flag" ||
12186 test ! -s conftest.err
12187 } && test -s conftest$ac_exeext &&
12188 $as_test_x conftest$ac_exeext; then
12189 ac_cv_lib_crypto_DES_cbc_encrypt=yes
12190 else
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 ac_cv_lib_crypto_DES_cbc_encrypt=no
12195 fi
12196
12197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12200 fi
12201 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
12202 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
12203 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define HAVE_LIBCRYPTO 1
12206 _ACEOF
12207
12208 LIBS="-lcrypto $LIBS"
12209
12210 fi
12211
12212
12213 CPPFLAGS="$CPPFLAGS $V_INCLS"
12214
12215 for ac_header in openssl/evp.h
12216 do
12217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 fi
12224 ac_res=`eval echo '${'$as_ac_Header'}'`
12225 { echo "$as_me:$LINENO: result: $ac_res" >&5
12226 echo "${ECHO_T}$ac_res" >&6; }
12227 else
12228 # Is the header compilable?
12229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12231 cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h. */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237 $ac_includes_default
12238 #include <$ac_header>
12239 _ACEOF
12240 rm -f conftest.$ac_objext
12241 if { (ac_try="$ac_compile"
12242 case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_compile") 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } && {
12254 test -z "$ac_c_werror_flag" ||
12255 test ! -s conftest.err
12256 } && test -s conftest.$ac_objext; then
12257 ac_header_compiler=yes
12258 else
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 ac_header_compiler=no
12263 fi
12264
12265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12267 echo "${ECHO_T}$ac_header_compiler" >&6; }
12268
12269 # Is the header present?
12270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 #include <$ac_header>
12279 _ACEOF
12280 if { (ac_try="$ac_cpp conftest.$ac_ext"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } >/dev/null && {
12293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12294 test ! -s conftest.err
12295 }; then
12296 ac_header_preproc=yes
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_header_preproc=no
12302 fi
12303
12304 rm -f conftest.err conftest.$ac_ext
12305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12306 echo "${ECHO_T}$ac_header_preproc" >&6; }
12307
12308 # So? What about this header?
12309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12310 yes:no: )
12311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12315 ac_header_preproc=yes
12316 ;;
12317 no:yes:* )
12318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12330
12331 ;;
12332 esac
12333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338 eval "$as_ac_Header=\$ac_header_preproc"
12339 fi
12340 ac_res=`eval echo '${'$as_ac_Header'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12343
12344 fi
12345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12346 cat >>confdefs.h <<_ACEOF
12347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12348 _ACEOF
12349
12350 fi
12351
12352 done
12353
12354 else
12355 #
12356 # Not found. Did the user explicitly ask for it?
12357 #
12358 { echo "$as_me:$LINENO: result: not found" >&5
12359 echo "${ECHO_T}not found" >&6; }
12360 if test "$want_libcrypto" = yes; then
12361 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
12362 echo "$as_me: error: SSLeay not found" >&2;}
12363 { (exit 1); exit 1; }; }
12364 fi
12365 fi
12366 fi
12367
12368 if test "$missing_includes" = "yes"; then
12369 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
12370 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
12371 fi
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382 # Find a good install program. We prefer a C program (faster),
12383 # so one script is as good as another. But avoid the broken or
12384 # incompatible versions:
12385 # SysV /etc/install, /usr/sbin/install
12386 # SunOS /usr/etc/install
12387 # IRIX /sbin/install
12388 # AIX /bin/install
12389 # AmigaOS /C/install, which installs bootblocks on floppy discs
12390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12393 # OS/2's system install, which has a completely different semantic
12394 # ./install, which can be erroneously created by make from ./install.sh.
12395 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12396 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
12397 if test -z "$INSTALL"; then
12398 if test "${ac_cv_path_install+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12403 do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 # Account for people who put trailing slashes in PATH elements.
12407 case $as_dir/ in
12408 ./ | .// | /cC/* | \
12409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12411 /usr/ucb/* ) ;;
12412 *)
12413 # OSF1 and SCO ODT 3.0 have their own names for install.
12414 # Don't use installbsd from OSF since it installs stuff as root
12415 # by default.
12416 for ac_prog in ginstall scoinst install; do
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12419 if test $ac_prog = install &&
12420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12421 # AIX install. It has an incompatible calling convention.
12422 :
12423 elif test $ac_prog = install &&
12424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12425 # program-specific install script used by HP pwplus--don't use.
12426 :
12427 else
12428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12429 break 3
12430 fi
12431 fi
12432 done
12433 done
12434 ;;
12435 esac
12436 done
12437 IFS=$as_save_IFS
12438
12439
12440 fi
12441 if test "${ac_cv_path_install+set}" = set; then
12442 INSTALL=$ac_cv_path_install
12443 else
12444 # As a last resort, use the slow shell script. Don't cache a
12445 # value for INSTALL within a source directory, because that will
12446 # break other packages using the cache if that directory is
12447 # removed, or if the value is a relative name.
12448 INSTALL=$ac_install_sh
12449 fi
12450 fi
12451 { echo "$as_me:$LINENO: result: $INSTALL" >&5
12452 echo "${ECHO_T}$INSTALL" >&6; }
12453
12454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12455 # It thinks the first close brace ends the variable substitution.
12456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12457
12458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12459
12460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12461
12462
12463 ac_config_headers="$ac_config_headers config.h"
12464
12465
12466 ac_config_commands="$ac_config_commands default-1"
12467
12468 ac_config_files="$ac_config_files Makefile tcpdump.1"
12469
12470 cat >confcache <<\_ACEOF
12471 # This file is a shell script that caches the results of configure
12472 # tests run on this system so they can be shared between configure
12473 # scripts and configure runs, see configure's option --config-cache.
12474 # It is not useful on other systems. If it contains results you don't
12475 # want to keep, you may remove or edit it.
12476 #
12477 # config.status only pays attention to the cache file if you give it
12478 # the --recheck option to rerun configure.
12479 #
12480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12482 # following values.
12483
12484 _ACEOF
12485
12486 # The following way of writing the cache mishandles newlines in values,
12487 # but we know of no workaround that is simple, portable, and efficient.
12488 # So, we kill variables containing newlines.
12489 # Ultrix sh set writes to stderr and can't be redirected directly,
12490 # and sets the high bit in the cache file unless we assign to the vars.
12491 (
12492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12493 eval ac_val=\$$ac_var
12494 case $ac_val in #(
12495 *${as_nl}*)
12496 case $ac_var in #(
12497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12499 esac
12500 case $ac_var in #(
12501 _ | IFS | as_nl) ;; #(
12502 *) $as_unset $ac_var ;;
12503 esac ;;
12504 esac
12505 done
12506
12507 (set) 2>&1 |
12508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12509 *${as_nl}ac_space=\ *)
12510 # `set' does not quote correctly, so add quotes (double-quote
12511 # substitution turns \\\\ into \\, and sed turns \\ into \).
12512 sed -n \
12513 "s/'/'\\\\''/g;
12514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12515 ;; #(
12516 *)
12517 # `set' quotes correctly as required by POSIX, so do not add quotes.
12518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12519 ;;
12520 esac |
12521 sort
12522 ) |
12523 sed '
12524 /^ac_cv_env_/b end
12525 t clear
12526 :clear
12527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12528 t end
12529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12530 :end' >>confcache
12531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12532 if test -w "$cache_file"; then
12533 test "x$cache_file" != "x/dev/null" &&
12534 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12535 echo "$as_me: updating cache $cache_file" >&6;}
12536 cat confcache >$cache_file
12537 else
12538 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12539 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12540 fi
12541 fi
12542 rm -f confcache
12543
12544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12545 # Let make expand exec_prefix.
12546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12547
12548 DEFS=-DHAVE_CONFIG_H
12549
12550 ac_libobjs=
12551 ac_ltlibobjs=
12552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12553 # 1. Remove the extension, and $U if already installed.
12554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12555 ac_i=`echo "$ac_i" | sed "$ac_script"`
12556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12557 # will be set to the directory where LIBOBJS objects are built.
12558 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12559 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12560 done
12561 LIBOBJS=$ac_libobjs
12562
12563 LTLIBOBJS=$ac_ltlibobjs
12564
12565
12566
12567 : ${CONFIG_STATUS=./config.status}
12568 ac_clean_files_save=$ac_clean_files
12569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12572 cat >$CONFIG_STATUS <<_ACEOF
12573 #! $SHELL
12574 # Generated by $as_me.
12575 # Run this file to recreate the current configuration.
12576 # Compiler output produced by configure, useful for debugging
12577 # configure, is in config.log if it exists.
12578
12579 debug=false
12580 ac_cs_recheck=false
12581 ac_cs_silent=false
12582 SHELL=\${CONFIG_SHELL-$SHELL}
12583 _ACEOF
12584
12585 cat >>$CONFIG_STATUS <<\_ACEOF
12586 ## --------------------- ##
12587 ## M4sh Initialization. ##
12588 ## --------------------- ##
12589
12590 # Be more Bourne compatible
12591 DUALCASE=1; export DUALCASE # for MKS sh
12592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12593 emulate sh
12594 NULLCMD=:
12595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12596 # is contrary to our usage. Disable this feature.
12597 alias -g '${1+"$@"}'='"$@"'
12598 setopt NO_GLOB_SUBST
12599 else
12600 case `(set -o) 2>/dev/null` in
12601 *posix*) set -o posix ;;
12602 esac
12603
12604 fi
12605
12606
12607
12608
12609 # PATH needs CR
12610 # Avoid depending upon Character Ranges.
12611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12614 as_cr_digits='0123456789'
12615 as_cr_alnum=$as_cr_Letters$as_cr_digits
12616
12617 # The user is always right.
12618 if test "${PATH_SEPARATOR+set}" != set; then
12619 echo "#! /bin/sh" >conf$$.sh
12620 echo "exit 0" >>conf$$.sh
12621 chmod +x conf$$.sh
12622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12623 PATH_SEPARATOR=';'
12624 else
12625 PATH_SEPARATOR=:
12626 fi
12627 rm -f conf$$.sh
12628 fi
12629
12630 # Support unset when possible.
12631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12632 as_unset=unset
12633 else
12634 as_unset=false
12635 fi
12636
12637
12638 # IFS
12639 # We need space, tab and new line, in precisely that order. Quoting is
12640 # there to prevent editors from complaining about space-tab.
12641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12642 # splitting by setting IFS to empty value.)
12643 as_nl='
12644 '
12645 IFS=" "" $as_nl"
12646
12647 # Find who we are. Look in the path if we contain no directory separator.
12648 case $0 in
12649 *[\\/]* ) as_myself=$0 ;;
12650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12652 do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
12655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12656 done
12657 IFS=$as_save_IFS
12658
12659 ;;
12660 esac
12661 # We did not find ourselves, most probably we were run as `sh COMMAND'
12662 # in which case we are not to be found in the path.
12663 if test "x$as_myself" = x; then
12664 as_myself=$0
12665 fi
12666 if test ! -f "$as_myself"; then
12667 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12668 { (exit 1); exit 1; }
12669 fi
12670
12671 # Work around bugs in pre-3.0 UWIN ksh.
12672 for as_var in ENV MAIL MAILPATH
12673 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12674 done
12675 PS1='$ '
12676 PS2='> '
12677 PS4='+ '
12678
12679 # NLS nuisances.
12680 for as_var in \
12681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12683 LC_TELEPHONE LC_TIME
12684 do
12685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12686 eval $as_var=C; export $as_var
12687 else
12688 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12689 fi
12690 done
12691
12692 # Required to use basename.
12693 if expr a : '\(a\)' >/dev/null 2>&1 &&
12694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12695 as_expr=expr
12696 else
12697 as_expr=false
12698 fi
12699
12700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12701 as_basename=basename
12702 else
12703 as_basename=false
12704 fi
12705
12706
12707 # Name of the executable.
12708 as_me=`$as_basename -- "$0" ||
12709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12710 X"$0" : 'X\(//\)$' \| \
12711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12712 echo X/"$0" |
12713 sed '/^.*\/\([^/][^/]*\)\/*$/{
12714 s//\1/
12715 q
12716 }
12717 /^X\/\(\/\/\)$/{
12718 s//\1/
12719 q
12720 }
12721 /^X\/\(\/\).*/{
12722 s//\1/
12723 q
12724 }
12725 s/.*/./; q'`
12726
12727 # CDPATH.
12728 $as_unset CDPATH
12729
12730
12731
12732 as_lineno_1=$LINENO
12733 as_lineno_2=$LINENO
12734 test "x$as_lineno_1" != "x$as_lineno_2" &&
12735 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12736
12737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12738 # uniformly replaced by the line number. The first 'sed' inserts a
12739 # line-number line after each line using $LINENO; the second 'sed'
12740 # does the real work. The second script uses 'N' to pair each
12741 # line-number line with the line containing $LINENO, and appends
12742 # trailing '-' during substitution so that $LINENO is not a special
12743 # case at line end.
12744 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12745 # scripts with optimization help from Paolo Bonzini. Blame Lee
12746 # E. McMahon (1931-1989) for sed's syntax. :-)
12747 sed -n '
12748 p
12749 /[$]LINENO/=
12750 ' <$as_myself |
12751 sed '
12752 s/[$]LINENO.*/&-/
12753 t lineno
12754 b
12755 :lineno
12756 N
12757 :loop
12758 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12759 t loop
12760 s/-\n.*//
12761 ' >$as_me.lineno &&
12762 chmod +x "$as_me.lineno" ||
12763 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12764 { (exit 1); exit 1; }; }
12765
12766 # Don't try to exec as it changes $[0], causing all sort of problems
12767 # (the dirname of $[0] is not the place where we might find the
12768 # original and so on. Autoconf is especially sensitive to this).
12769 . "./$as_me.lineno"
12770 # Exit status is that of the last command.
12771 exit
12772 }
12773
12774
12775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12776 as_dirname=dirname
12777 else
12778 as_dirname=false
12779 fi
12780
12781 ECHO_C= ECHO_N= ECHO_T=
12782 case `echo -n x` in
12783 -n*)
12784 case `echo 'x\c'` in
12785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12786 *) ECHO_C='\c';;
12787 esac;;
12788 *)
12789 ECHO_N='-n';;
12790 esac
12791
12792 if expr a : '\(a\)' >/dev/null 2>&1 &&
12793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12794 as_expr=expr
12795 else
12796 as_expr=false
12797 fi
12798
12799 rm -f conf$$ conf$$.exe conf$$.file
12800 if test -d conf$$.dir; then
12801 rm -f conf$$.dir/conf$$.file
12802 else
12803 rm -f conf$$.dir
12804 mkdir conf$$.dir
12805 fi
12806 echo >conf$$.file
12807 if ln -s conf$$.file conf$$ 2>/dev/null; then
12808 as_ln_s='ln -s'
12809 # ... but there are two gotchas:
12810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12812 # In both cases, we have to default to `cp -p'.
12813 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12814 as_ln_s='cp -p'
12815 elif ln conf$$.file conf$$ 2>/dev/null; then
12816 as_ln_s=ln
12817 else
12818 as_ln_s='cp -p'
12819 fi
12820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12821 rmdir conf$$.dir 2>/dev/null
12822
12823 if mkdir -p . 2>/dev/null; then
12824 as_mkdir_p=:
12825 else
12826 test -d ./-p && rmdir ./-p
12827 as_mkdir_p=false
12828 fi
12829
12830 if test -x / >/dev/null 2>&1; then
12831 as_test_x='test -x'
12832 else
12833 if ls -dL / >/dev/null 2>&1; then
12834 as_ls_L_option=L
12835 else
12836 as_ls_L_option=
12837 fi
12838 as_test_x='
12839 eval sh -c '\''
12840 if test -d "$1"; then
12841 test -d "$1/.";
12842 else
12843 case $1 in
12844 -*)set "./$1";;
12845 esac;
12846 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12847 ???[sx]*):;;*)false;;esac;fi
12848 '\'' sh
12849 '
12850 fi
12851 as_executable_p=$as_test_x
12852
12853 # Sed expression to map a string onto a valid CPP name.
12854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12855
12856 # Sed expression to map a string onto a valid variable name.
12857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12858
12859
12860 exec 6>&1
12861
12862 # Save the log message, to keep $[0] and so on meaningful, and to
12863 # report actual input values of CONFIG_FILES etc. instead of their
12864 # values after options handling.
12865 ac_log="
12866 This file was extended by $as_me, which was
12867 generated by GNU Autoconf 2.61. Invocation command line was
12868
12869 CONFIG_FILES = $CONFIG_FILES
12870 CONFIG_HEADERS = $CONFIG_HEADERS
12871 CONFIG_LINKS = $CONFIG_LINKS
12872 CONFIG_COMMANDS = $CONFIG_COMMANDS
12873 $ $0 $@
12874
12875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12876 "
12877
12878 _ACEOF
12879
12880 cat >>$CONFIG_STATUS <<_ACEOF
12881 # Files that config.status was made for.
12882 config_files="$ac_config_files"
12883 config_headers="$ac_config_headers"
12884 config_commands="$ac_config_commands"
12885
12886 _ACEOF
12887
12888 cat >>$CONFIG_STATUS <<\_ACEOF
12889 ac_cs_usage="\
12890 \`$as_me' instantiates files from templates according to the
12891 current configuration.
12892
12893 Usage: $0 [OPTIONS] [FILE]...
12894
12895 -h, --help print this help, then exit
12896 -V, --version print version number and configuration settings, then exit
12897 -q, --quiet do not print progress messages
12898 -d, --debug don't remove temporary files
12899 --recheck update $as_me by reconfiguring in the same conditions
12900 --file=FILE[:TEMPLATE]
12901 instantiate the configuration file FILE
12902 --header=FILE[:TEMPLATE]
12903 instantiate the configuration header FILE
12904
12905 Configuration files:
12906 $config_files
12907
12908 Configuration headers:
12909 $config_headers
12910
12911 Configuration commands:
12912 $config_commands
12913
12914 Report bugs to <bug-autoconf@gnu.org>."
12915
12916 _ACEOF
12917 cat >>$CONFIG_STATUS <<_ACEOF
12918 ac_cs_version="\\
12919 config.status
12920 configured by $0, generated by GNU Autoconf 2.61,
12921 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12922
12923 Copyright (C) 2006 Free Software Foundation, Inc.
12924 This config.status script is free software; the Free Software Foundation
12925 gives unlimited permission to copy, distribute and modify it."
12926
12927 ac_pwd='$ac_pwd'
12928 srcdir='$srcdir'
12929 INSTALL='$INSTALL'
12930 _ACEOF
12931
12932 cat >>$CONFIG_STATUS <<\_ACEOF
12933 # If no file are specified by the user, then we need to provide default
12934 # value. By we need to know if files were specified by the user.
12935 ac_need_defaults=:
12936 while test $# != 0
12937 do
12938 case $1 in
12939 --*=*)
12940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12941 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12942 ac_shift=:
12943 ;;
12944 *)
12945 ac_option=$1
12946 ac_optarg=$2
12947 ac_shift=shift
12948 ;;
12949 esac
12950
12951 case $ac_option in
12952 # Handling of the options.
12953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12954 ac_cs_recheck=: ;;
12955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12956 echo "$ac_cs_version"; exit ;;
12957 --debug | --debu | --deb | --de | --d | -d )
12958 debug=: ;;
12959 --file | --fil | --fi | --f )
12960 $ac_shift
12961 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12962 ac_need_defaults=false;;
12963 --header | --heade | --head | --hea )
12964 $ac_shift
12965 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12966 ac_need_defaults=false;;
12967 --he | --h)
12968 # Conflict between --help and --header
12969 { echo "$as_me: error: ambiguous option: $1
12970 Try \`$0 --help' for more information." >&2
12971 { (exit 1); exit 1; }; };;
12972 --help | --hel | -h )
12973 echo "$ac_cs_usage"; exit ;;
12974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12976 ac_cs_silent=: ;;
12977
12978 # This is an error.
12979 -*) { echo "$as_me: error: unrecognized option: $1
12980 Try \`$0 --help' for more information." >&2
12981 { (exit 1); exit 1; }; } ;;
12982
12983 *) ac_config_targets="$ac_config_targets $1"
12984 ac_need_defaults=false ;;
12985
12986 esac
12987 shift
12988 done
12989
12990 ac_configure_extra_args=
12991
12992 if $ac_cs_silent; then
12993 exec 6>/dev/null
12994 ac_configure_extra_args="$ac_configure_extra_args --silent"
12995 fi
12996
12997 _ACEOF
12998 cat >>$CONFIG_STATUS <<_ACEOF
12999 if \$ac_cs_recheck; then
13000 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13001 CONFIG_SHELL=$SHELL
13002 export CONFIG_SHELL
13003 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13004 fi
13005
13006 _ACEOF
13007 cat >>$CONFIG_STATUS <<\_ACEOF
13008 exec 5>>config.log
13009 {
13010 echo
13011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13012 ## Running $as_me. ##
13013 _ASBOX
13014 echo "$ac_log"
13015 } >&5
13016
13017 _ACEOF
13018 cat >>$CONFIG_STATUS <<_ACEOF
13019 #
13020 # INIT-COMMANDS
13021 #
13022
13023
13024 _ACEOF
13025
13026 cat >>$CONFIG_STATUS <<\_ACEOF
13027
13028 # Handling of arguments.
13029 for ac_config_target in $ac_config_targets
13030 do
13031 case $ac_config_target in
13032 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13033 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13034 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13035 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
13036
13037 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13038 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13039 { (exit 1); exit 1; }; };;
13040 esac
13041 done
13042
13043
13044 # If the user did not use the arguments to specify the items to instantiate,
13045 # then the envvar interface is used. Set only those that are not.
13046 # We use the long form for the default assignment because of an extremely
13047 # bizarre bug on SunOS 4.1.3.
13048 if $ac_need_defaults; then
13049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13052 fi
13053
13054 # Have a temporary directory for convenience. Make it in the build tree
13055 # simply because there is no reason against having it here, and in addition,
13056 # creating and moving files from /tmp can sometimes cause problems.
13057 # Hook for its removal unless debugging.
13058 # Note that there is a small window in which the directory will not be cleaned:
13059 # after its creation but before its name has been assigned to `$tmp'.
13060 $debug ||
13061 {
13062 tmp=
13063 trap 'exit_status=$?
13064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13065 ' 0
13066 trap '{ (exit 1); exit 1; }' 1 2 13 15
13067 }
13068 # Create a (secure) tmp directory for tmp files.
13069
13070 {
13071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13072 test -n "$tmp" && test -d "$tmp"
13073 } ||
13074 {
13075 tmp=./conf$$-$RANDOM
13076 (umask 077 && mkdir "$tmp")
13077 } ||
13078 {
13079 echo "$me: cannot create a temporary directory in ." >&2
13080 { (exit 1); exit 1; }
13081 }
13082
13083 #
13084 # Set up the sed scripts for CONFIG_FILES section.
13085 #
13086
13087 # No need to generate the scripts if there are no CONFIG_FILES.
13088 # This happens for instance when ./config.status config.h
13089 if test -n "$CONFIG_FILES"; then
13090
13091 _ACEOF
13092
13093
13094
13095 ac_delim='%!_!# '
13096 for ac_last_try in false false false false false :; do
13097 cat >conf$$subs.sed <<_ACEOF
13098 SHELL!$SHELL$ac_delim
13099 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13100 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13101 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13102 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13103 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13104 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13105 exec_prefix!$exec_prefix$ac_delim
13106 prefix!$prefix$ac_delim
13107 program_transform_name!$program_transform_name$ac_delim
13108 bindir!$bindir$ac_delim
13109 sbindir!$sbindir$ac_delim
13110 libexecdir!$libexecdir$ac_delim
13111 datarootdir!$datarootdir$ac_delim
13112 datadir!$datadir$ac_delim
13113 sysconfdir!$sysconfdir$ac_delim
13114 sharedstatedir!$sharedstatedir$ac_delim
13115 localstatedir!$localstatedir$ac_delim
13116 includedir!$includedir$ac_delim
13117 oldincludedir!$oldincludedir$ac_delim
13118 docdir!$docdir$ac_delim
13119 infodir!$infodir$ac_delim
13120 htmldir!$htmldir$ac_delim
13121 dvidir!$dvidir$ac_delim
13122 pdfdir!$pdfdir$ac_delim
13123 psdir!$psdir$ac_delim
13124 libdir!$libdir$ac_delim
13125 localedir!$localedir$ac_delim
13126 mandir!$mandir$ac_delim
13127 DEFS!$DEFS$ac_delim
13128 ECHO_C!$ECHO_C$ac_delim
13129 ECHO_N!$ECHO_N$ac_delim
13130 ECHO_T!$ECHO_T$ac_delim
13131 LIBS!$LIBS$ac_delim
13132 build_alias!$build_alias$ac_delim
13133 host_alias!$host_alias$ac_delim
13134 target_alias!$target_alias$ac_delim
13135 build!$build$ac_delim
13136 build_cpu!$build_cpu$ac_delim
13137 build_vendor!$build_vendor$ac_delim
13138 build_os!$build_os$ac_delim
13139 host!$host$ac_delim
13140 host_cpu!$host_cpu$ac_delim
13141 host_vendor!$host_vendor$ac_delim
13142 host_os!$host_os$ac_delim
13143 SHLICC2!$SHLICC2$ac_delim
13144 CC!$CC$ac_delim
13145 CFLAGS!$CFLAGS$ac_delim
13146 LDFLAGS!$LDFLAGS$ac_delim
13147 CPPFLAGS!$CPPFLAGS$ac_delim
13148 ac_ct_CC!$ac_ct_CC$ac_delim
13149 EXEEXT!$EXEEXT$ac_delim
13150 OBJEXT!$OBJEXT$ac_delim
13151 CPP!$CPP$ac_delim
13152 GREP!$GREP$ac_delim
13153 EGREP!$EGREP$ac_delim
13154 LIBOBJS!$LIBOBJS$ac_delim
13155 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
13156 RANLIB!$RANLIB$ac_delim
13157 V_CCOPT!$V_CCOPT$ac_delim
13158 V_DEFS!$V_DEFS$ac_delim
13159 V_GROUP!$V_GROUP$ac_delim
13160 V_INCLS!$V_INCLS$ac_delim
13161 V_PCAPDEP!$V_PCAPDEP$ac_delim
13162 LOCALSRC!$LOCALSRC$ac_delim
13163 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
13164 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
13165 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13166 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13167 INSTALL_DATA!$INSTALL_DATA$ac_delim
13168 LTLIBOBJS!$LTLIBOBJS$ac_delim
13169 _ACEOF
13170
13171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
13172 break
13173 elif $ac_last_try; then
13174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13175 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13176 { (exit 1); exit 1; }; }
13177 else
13178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13179 fi
13180 done
13181
13182 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13183 if test -n "$ac_eof"; then
13184 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13185 ac_eof=`expr $ac_eof + 1`
13186 fi
13187
13188 cat >>$CONFIG_STATUS <<_ACEOF
13189 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13191 _ACEOF
13192 sed '
13193 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13194 s/^/s,@/; s/!/@,|#_!!_#|/
13195 :n
13196 t n
13197 s/'"$ac_delim"'$/,g/; t
13198 s/$/\\/; p
13199 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13200 ' >>$CONFIG_STATUS <conf$$subs.sed
13201 rm -f conf$$subs.sed
13202 cat >>$CONFIG_STATUS <<_ACEOF
13203 :end
13204 s/|#_!!_#|//g
13205 CEOF$ac_eof
13206 _ACEOF
13207
13208
13209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13211 # trailing colons and then remove the whole line if VPATH becomes empty
13212 # (actually we leave an empty line to preserve line numbers).
13213 if test "x$srcdir" = x.; then
13214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13215 s/:*\$(srcdir):*/:/
13216 s/:*\${srcdir}:*/:/
13217 s/:*@srcdir@:*/:/
13218 s/^\([^=]*=[ ]*\):*/\1/
13219 s/:*$//
13220 s/^[^=]*=[ ]*$//
13221 }'
13222 fi
13223
13224 cat >>$CONFIG_STATUS <<\_ACEOF
13225 fi # test -n "$CONFIG_FILES"
13226
13227
13228 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13229 do
13230 case $ac_tag in
13231 :[FHLC]) ac_mode=$ac_tag; continue;;
13232 esac
13233 case $ac_mode$ac_tag in
13234 :[FHL]*:*);;
13235 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13236 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13237 { (exit 1); exit 1; }; };;
13238 :[FH]-) ac_tag=-:-;;
13239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13240 esac
13241 ac_save_IFS=$IFS
13242 IFS=:
13243 set x $ac_tag
13244 IFS=$ac_save_IFS
13245 shift
13246 ac_file=$1
13247 shift
13248
13249 case $ac_mode in
13250 :L) ac_source=$1;;
13251 :[FH])
13252 ac_file_inputs=
13253 for ac_f
13254 do
13255 case $ac_f in
13256 -) ac_f="$tmp/stdin";;
13257 *) # Look for the file first in the build tree, then in the source tree
13258 # (if the path is not absolute). The absolute path cannot be DOS-style,
13259 # because $ac_f cannot contain `:'.
13260 test -f "$ac_f" ||
13261 case $ac_f in
13262 [\\/$]*) false;;
13263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13264 esac ||
13265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13266 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13267 { (exit 1); exit 1; }; };;
13268 esac
13269 ac_file_inputs="$ac_file_inputs $ac_f"
13270 done
13271
13272 # Let's still pretend it is `configure' which instantiates (i.e., don't
13273 # use $as_me), people would be surprised to read:
13274 # /* config.h. Generated by config.status. */
13275 configure_input="Generated from "`IFS=:
13276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13277 if test x"$ac_file" != x-; then
13278 configure_input="$ac_file. $configure_input"
13279 { echo "$as_me:$LINENO: creating $ac_file" >&5
13280 echo "$as_me: creating $ac_file" >&6;}
13281 fi
13282
13283 case $ac_tag in
13284 *:-:* | *:-) cat >"$tmp/stdin";;
13285 esac
13286 ;;
13287 esac
13288
13289 ac_dir=`$as_dirname -- "$ac_file" ||
13290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13291 X"$ac_file" : 'X\(//\)[^/]' \| \
13292 X"$ac_file" : 'X\(//\)$' \| \
13293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13294 echo X"$ac_file" |
13295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13296 s//\1/
13297 q
13298 }
13299 /^X\(\/\/\)[^/].*/{
13300 s//\1/
13301 q
13302 }
13303 /^X\(\/\/\)$/{
13304 s//\1/
13305 q
13306 }
13307 /^X\(\/\).*/{
13308 s//\1/
13309 q
13310 }
13311 s/.*/./; q'`
13312 { as_dir="$ac_dir"
13313 case $as_dir in #(
13314 -*) as_dir=./$as_dir;;
13315 esac
13316 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13317 as_dirs=
13318 while :; do
13319 case $as_dir in #(
13320 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13321 *) as_qdir=$as_dir;;
13322 esac
13323 as_dirs="'$as_qdir' $as_dirs"
13324 as_dir=`$as_dirname -- "$as_dir" ||
13325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13326 X"$as_dir" : 'X\(//\)[^/]' \| \
13327 X"$as_dir" : 'X\(//\)$' \| \
13328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13329 echo X"$as_dir" |
13330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13331 s//\1/
13332 q
13333 }
13334 /^X\(\/\/\)[^/].*/{
13335 s//\1/
13336 q
13337 }
13338 /^X\(\/\/\)$/{
13339 s//\1/
13340 q
13341 }
13342 /^X\(\/\).*/{
13343 s//\1/
13344 q
13345 }
13346 s/.*/./; q'`
13347 test -d "$as_dir" && break
13348 done
13349 test -z "$as_dirs" || eval "mkdir $as_dirs"
13350 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13351 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13352 { (exit 1); exit 1; }; }; }
13353 ac_builddir=.
13354
13355 case "$ac_dir" in
13356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13357 *)
13358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13359 # A ".." for each directory in $ac_dir_suffix.
13360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13361 case $ac_top_builddir_sub in
13362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13364 esac ;;
13365 esac
13366 ac_abs_top_builddir=$ac_pwd
13367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13368 # for backward compatibility:
13369 ac_top_builddir=$ac_top_build_prefix
13370
13371 case $srcdir in
13372 .) # We are building in place.
13373 ac_srcdir=.
13374 ac_top_srcdir=$ac_top_builddir_sub
13375 ac_abs_top_srcdir=$ac_pwd ;;
13376 [\\/]* | ?:[\\/]* ) # Absolute name.
13377 ac_srcdir=$srcdir$ac_dir_suffix;
13378 ac_top_srcdir=$srcdir
13379 ac_abs_top_srcdir=$srcdir ;;
13380 *) # Relative name.
13381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13382 ac_top_srcdir=$ac_top_build_prefix$srcdir
13383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13384 esac
13385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13386
13387
13388 case $ac_mode in
13389 :F)
13390 #
13391 # CONFIG_FILE
13392 #
13393
13394 case $INSTALL in
13395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13397 esac
13398 _ACEOF
13399
13400 cat >>$CONFIG_STATUS <<\_ACEOF
13401 # If the template does not know about datarootdir, expand it.
13402 # FIXME: This hack should be removed a few years after 2.60.
13403 ac_datarootdir_hack=; ac_datarootdir_seen=
13404
13405 case `sed -n '/datarootdir/ {
13406 p
13407 q
13408 }
13409 /@datadir@/p
13410 /@docdir@/p
13411 /@infodir@/p
13412 /@localedir@/p
13413 /@mandir@/p
13414 ' $ac_file_inputs` in
13415 *datarootdir*) ac_datarootdir_seen=yes;;
13416 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13418 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13419 _ACEOF
13420 cat >>$CONFIG_STATUS <<_ACEOF
13421 ac_datarootdir_hack='
13422 s&@datadir@&$datadir&g
13423 s&@docdir@&$docdir&g
13424 s&@infodir@&$infodir&g
13425 s&@localedir@&$localedir&g
13426 s&@mandir@&$mandir&g
13427 s&\\\${datarootdir}&$datarootdir&g' ;;
13428 esac
13429 _ACEOF
13430
13431 # Neutralize VPATH when `$srcdir' = `.'.
13432 # Shell code in configure.ac might set extrasub.
13433 # FIXME: do we really want to maintain this feature?
13434 cat >>$CONFIG_STATUS <<_ACEOF
13435 sed "$ac_vpsub
13436 $extrasub
13437 _ACEOF
13438 cat >>$CONFIG_STATUS <<\_ACEOF
13439 :t
13440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13441 s&@configure_input@&$configure_input&;t t
13442 s&@top_builddir@&$ac_top_builddir_sub&;t t
13443 s&@srcdir@&$ac_srcdir&;t t
13444 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13445 s&@top_srcdir@&$ac_top_srcdir&;t t
13446 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13447 s&@builddir@&$ac_builddir&;t t
13448 s&@abs_builddir@&$ac_abs_builddir&;t t
13449 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13450 s&@INSTALL@&$ac_INSTALL&;t t
13451 $ac_datarootdir_hack
13452 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13453
13454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13458 which seems to be undefined. Please make sure it is defined." >&5
13459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13460 which seems to be undefined. Please make sure it is defined." >&2;}
13461
13462 rm -f "$tmp/stdin"
13463 case $ac_file in
13464 -) cat "$tmp/out"; rm -f "$tmp/out";;
13465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13466 esac
13467 ;;
13468 :H)
13469 #
13470 # CONFIG_HEADER
13471 #
13472 _ACEOF
13473
13474 # Transform confdefs.h into a sed script `conftest.defines', that
13475 # substitutes the proper values into config.h.in to produce config.h.
13476 rm -f conftest.defines conftest.tail
13477 # First, append a space to every undef/define line, to ease matching.
13478 echo 's/$/ /' >conftest.defines
13479 # Then, protect against being on the right side of a sed subst, or in
13480 # an unquoted here document, in config.status. If some macros were
13481 # called several times there might be several #defines for the same
13482 # symbol, which is useless. But do not sort them, since the last
13483 # AC_DEFINE must be honored.
13484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13487 # PARAMS is the parameter list in the macro definition--in most cases, it's
13488 # just an empty string.
13489 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13490 ac_dB='\\)[ (].*,\\1define\\2'
13491 ac_dC=' '
13492 ac_dD=' ,'
13493
13494 uniq confdefs.h |
13495 sed -n '
13496 t rset
13497 :rset
13498 s/^[ ]*#[ ]*define[ ][ ]*//
13499 t ok
13500 d
13501 :ok
13502 s/[\\&,]/\\&/g
13503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13505 ' >>conftest.defines
13506
13507 # Remove the space that was appended to ease matching.
13508 # Then replace #undef with comments. This is necessary, for
13509 # example, in the case of _POSIX_SOURCE, which is predefined and required
13510 # on some systems where configure will not decide to define it.
13511 # (The regexp can be short, since the line contains either #define or #undef.)
13512 echo 's/ $//
13513 s,^[ #]*u.*,/* & */,' >>conftest.defines
13514
13515 # Break up conftest.defines:
13516 ac_max_sed_lines=50
13517
13518 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13519 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13520 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13521 # et cetera.
13522 ac_in='$ac_file_inputs'
13523 ac_out='"$tmp/out1"'
13524 ac_nxt='"$tmp/out2"'
13525
13526 while :
13527 do
13528 # Write a here document:
13529 cat >>$CONFIG_STATUS <<_ACEOF
13530 # First, check the format of the line:
13531 cat >"\$tmp/defines.sed" <<\\CEOF
13532 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13533 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13534 b
13535 :def
13536 _ACEOF
13537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13538 echo 'CEOF
13539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13542 grep . conftest.tail >/dev/null || break
13543 rm -f conftest.defines
13544 mv conftest.tail conftest.defines
13545 done
13546 rm -f conftest.defines conftest.tail
13547
13548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13549 cat >>$CONFIG_STATUS <<\_ACEOF
13550 if test x"$ac_file" != x-; then
13551 echo "/* $configure_input */" >"$tmp/config.h"
13552 cat "$ac_result" >>"$tmp/config.h"
13553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13555 echo "$as_me: $ac_file is unchanged" >&6;}
13556 else
13557 rm -f $ac_file
13558 mv "$tmp/config.h" $ac_file
13559 fi
13560 else
13561 echo "/* $configure_input */"
13562 cat "$ac_result"
13563 fi
13564 rm -f "$tmp/out12"
13565 ;;
13566
13567 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13568 echo "$as_me: executing $ac_file commands" >&6;}
13569 ;;
13570 esac
13571
13572
13573 case $ac_file$ac_mode in
13574 "default-1":C) if test -f .devel; then
13575 echo timestamp > stamp-h
13576 cat Makefile-devel-adds >> Makefile
13577 make depend
13578 fi ;;
13579
13580 esac
13581 done # for ac_tag
13582
13583
13584 { (exit 0); exit 0; }
13585 _ACEOF
13586 chmod +x $CONFIG_STATUS
13587 ac_clean_files=$ac_clean_files_save
13588
13589
13590 # configure is writing to config.log, and then calls config.status.
13591 # config.status does its own redirection, appending to config.log.
13592 # Unfortunately, on DOS this fails, as config.log is still kept open
13593 # by configure, so config.status won't be able to write to it; its
13594 # output is simply discarded. So we exec the FD to /dev/null,
13595 # effectively closing config.log, so it can be properly (re)opened and
13596 # appended to by config.status. When coming back to configure, we
13597 # need to make the FD available again.
13598 if test "$no_create" != yes; then
13599 ac_cs_success=:
13600 ac_config_status_args=
13601 test "$silent" = yes &&
13602 ac_config_status_args="$ac_config_status_args --quiet"
13603 exec 5>/dev/null
13604 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13605 exec 5>>config.log
13606 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13607 # would make configure fail if this is the last instruction.
13608 $ac_cs_success || { (exit 1); exit 1; }
13609 fi
13610
13611 exit 0