]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Fixed version value
[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
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227
3228 #include <stdlib.h>
3229
3230 static void foo(void) __attribute__ ((noreturn));
3231
3232 static void
3233 foo(void)
3234 {
3235 exit(1);
3236 }
3237
3238 int
3239 main(int argc, char **argv)
3240 {
3241 foo();
3242 }
3243
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_compile") 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } && {
3259 test -z "$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3261 } && test -s conftest.$ac_objext; then
3262 ac_cv___attribute__=yes
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 ac_cv___attribute__=no
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272
3273 if test "$ac_cv___attribute__" = "yes"; then
3274
3275 cat >>confdefs.h <<\_ACEOF
3276 #define HAVE___ATTRIBUTE__ 1
3277 _ACEOF
3278
3279 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3280 else
3281 V_DEFS="$V_DEFS -D_U_=\"\""
3282 fi
3283 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3284 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3285
3286 if test "$ac_cv___attribute__" = "yes"; then
3287
3288 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3289 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3290 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293
3294 cat >conftest.$ac_ext <<_ACEOF
3295
3296 /* confdefs.h. */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301
3302 #include <stdlib.h>
3303
3304 extern int (*foo)(const char *fmt, ...)
3305 __attribute__ ((format (printf, 1, 2)));
3306
3307 int
3308 main(int argc, char **argv)
3309 {
3310 (*foo)("%s", "test");
3311 }
3312
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_compile") 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } && {
3328 test -z "$ac_c_werror_flag" ||
3329 test ! -s conftest.err
3330 } && test -s conftest.$ac_objext; then
3331 ac_cv___attribute___format_function_pointer=yes
3332 else
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 ac_cv___attribute___format_function_pointer=no
3337 fi
3338
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341
3342 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3343
3344 cat >>confdefs.h <<\_ACEOF
3345 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3346 _ACEOF
3347
3348 fi
3349 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3350 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3351
3352 fi
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3360 # On Suns, sometimes $CPP names a directory.
3361 if test -n "$CPP" && test -d "$CPP"; then
3362 CPP=
3363 fi
3364 if test -z "$CPP"; then
3365 if test "${ac_cv_prog_CPP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 # Double quotes because CPP needs to be expanded
3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370 do
3371 ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 #ifdef __STDC__
3387 # include <limits.h>
3388 #else
3389 # include <assert.h>
3390 #endif
3391 Syntax error
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null && {
3406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 }; then
3409 :
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 # Broken: fails on valid input.
3415 continue
3416 fi
3417
3418 rm -f conftest.err conftest.$ac_ext
3419
3420 # OK, works on sane cases. Now check whether nonexistent headers
3421 # can be detected and how.
3422 cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <ac_nonexistent.h>
3429 _ACEOF
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null && {
3443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3445 }; then
3446 # Broken: success on invalid input.
3447 continue
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 # Passes both tests.
3453 ac_preproc_ok=:
3454 break
3455 fi
3456
3457 rm -f conftest.err conftest.$ac_ext
3458
3459 done
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3463 break
3464 fi
3465
3466 done
3467 ac_cv_prog_CPP=$CPP
3468
3469 fi
3470 CPP=$ac_cv_prog_CPP
3471 else
3472 ac_cv_prog_CPP=$CPP
3473 fi
3474 { echo "$as_me:$LINENO: result: $CPP" >&5
3475 echo "${ECHO_T}$CPP" >&6; }
3476 ac_preproc_ok=false
3477 for ac_c_preproc_warn_flag in '' yes
3478 do
3479 # Use a header file that comes with gcc, so configuring glibc
3480 # with a fresh cross-compiler works.
3481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482 # <limits.h> exists even on freestanding compilers.
3483 # On the NeXT, cc -E runs the code through the compiler's parser,
3484 # not just through cpp. "Syntax error" is here to catch this case.
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496 Syntax error
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null && {
3511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 }; then
3514 :
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 # Broken: fails on valid input.
3520 continue
3521 fi
3522
3523 rm -f conftest.err conftest.$ac_ext
3524
3525 # OK, works on sane cases. Now check whether nonexistent headers
3526 # can be detected and how.
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <ac_nonexistent.h>
3534 _ACEOF
3535 if { (ac_try="$ac_cpp conftest.$ac_ext"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } >/dev/null && {
3548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3550 }; then
3551 # Broken: success on invalid input.
3552 continue
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # Passes both tests.
3558 ac_preproc_ok=:
3559 break
3560 fi
3561
3562 rm -f conftest.err conftest.$ac_ext
3563
3564 done
3565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3566 rm -f conftest.err conftest.$ac_ext
3567 if $ac_preproc_ok; then
3568 :
3569 else
3570 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&5
3572 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3573 See \`config.log' for more details." >&2;}
3574 { (exit 1); exit 1; }; }
3575 fi
3576
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582
3583
3584 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3585 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3586 if test "${ac_cv_path_GREP+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 # Extract the first word of "grep ggrep" to use in msg output
3590 if test -z "$GREP"; then
3591 set dummy grep ggrep; ac_prog_name=$2
3592 if test "${ac_cv_path_GREP+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 ac_path_GREP_found=false
3596 # Loop through the user's path and test for each of PROGNAME-LIST
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3599 do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_prog in grep ggrep; do
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3606 # Check for GNU ac_path_GREP and select it if it is found.
3607 # Check for GNU $ac_path_GREP
3608 case `"$ac_path_GREP" --version 2>&1` in
3609 *GNU*)
3610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3611 *)
3612 ac_count=0
3613 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3614 while :
3615 do
3616 cat "conftest.in" "conftest.in" >"conftest.tmp"
3617 mv "conftest.tmp" "conftest.in"
3618 cp "conftest.in" "conftest.nl"
3619 echo 'GREP' >> "conftest.nl"
3620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3622 ac_count=`expr $ac_count + 1`
3623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3624 # Best one so far, save it but keep looking for a better one
3625 ac_cv_path_GREP="$ac_path_GREP"
3626 ac_path_GREP_max=$ac_count
3627 fi
3628 # 10*(2^10) chars as input seems more than enough
3629 test $ac_count -gt 10 && break
3630 done
3631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3632 esac
3633
3634
3635 $ac_path_GREP_found && break 3
3636 done
3637 done
3638
3639 done
3640 IFS=$as_save_IFS
3641
3642
3643 fi
3644
3645 GREP="$ac_cv_path_GREP"
3646 if test -z "$GREP"; then
3647 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3648 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3649 { (exit 1); exit 1; }; }
3650 fi
3651
3652 else
3653 ac_cv_path_GREP=$GREP
3654 fi
3655
3656
3657 fi
3658 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3659 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3660 GREP="$ac_cv_path_GREP"
3661
3662
3663 { echo "$as_me:$LINENO: checking for egrep" >&5
3664 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669 then ac_cv_path_EGREP="$GREP -E"
3670 else
3671 # Extract the first word of "egrep" to use in msg output
3672 if test -z "$EGREP"; then
3673 set dummy egrep; ac_prog_name=$2
3674 if test "${ac_cv_path_EGREP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677 ac_path_EGREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681 do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_prog in egrep; do
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3688 # Check for GNU ac_path_EGREP and select it if it is found.
3689 # Check for GNU $ac_path_EGREP
3690 case `"$ac_path_EGREP" --version 2>&1` in
3691 *GNU*)
3692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3693 *)
3694 ac_count=0
3695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696 while :
3697 do
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 echo 'EGREP' >> "conftest.nl"
3702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704 ac_count=`expr $ac_count + 1`
3705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_EGREP="$ac_path_EGREP"
3708 ac_path_EGREP_max=$ac_count
3709 fi
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3712 done
3713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714 esac
3715
3716
3717 $ac_path_EGREP_found && break 3
3718 done
3719 done
3720
3721 done
3722 IFS=$as_save_IFS
3723
3724
3725 fi
3726
3727 EGREP="$ac_cv_path_EGREP"
3728 if test -z "$EGREP"; then
3729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731 { (exit 1); exit 1; }; }
3732 fi
3733
3734 else
3735 ac_cv_path_EGREP=$EGREP
3736 fi
3737
3738
3739 fi
3740 fi
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3743 EGREP="$ac_cv_path_EGREP"
3744
3745
3746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3748 if test "${ac_cv_header_stdc+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <stdlib.h>
3758 #include <stdarg.h>
3759 #include <string.h>
3760 #include <float.h>
3761
3762 int
3763 main ()
3764 {
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (ac_try="$ac_compile"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compile") 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } && {
3784 test -z "$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 } && test -s conftest.$ac_objext; then
3787 ac_cv_header_stdc=yes
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792 ac_cv_header_stdc=no
3793 fi
3794
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796
3797 if test $ac_cv_header_stdc = yes; then
3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #include <string.h>
3806
3807 _ACEOF
3808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809 $EGREP "memchr" >/dev/null 2>&1; then
3810 :
3811 else
3812 ac_cv_header_stdc=no
3813 fi
3814 rm -f -r conftest*
3815
3816 fi
3817
3818 if test $ac_cv_header_stdc = yes; then
3819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <stdlib.h>
3827
3828 _ACEOF
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 $EGREP "free" >/dev/null 2>&1; then
3831 :
3832 else
3833 ac_cv_header_stdc=no
3834 fi
3835 rm -f -r conftest*
3836
3837 fi
3838
3839 if test $ac_cv_header_stdc = yes; then
3840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3841 if test "$cross_compiling" = yes; then
3842 :
3843 else
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <ctype.h>
3851 #include <stdlib.h>
3852 #if ((' ' & 0x0FF) == 0x020)
3853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3855 #else
3856 # define ISLOWER(c) \
3857 (('a' <= (c) && (c) <= 'i') \
3858 || ('j' <= (c) && (c) <= 'r') \
3859 || ('s' <= (c) && (c) <= 'z'))
3860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3861 #endif
3862
3863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3864 int
3865 main ()
3866 {
3867 int i;
3868 for (i = 0; i < 256; i++)
3869 if (XOR (islower (i), ISLOWER (i))
3870 || toupper (i) != TOUPPER (i))
3871 return 2;
3872 return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest$ac_exeext
3876 if { (ac_try="$ac_link"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_link") 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3886 { (case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_try") 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; }; then
3895 :
3896 else
3897 echo "$as_me: program exited with status $ac_status" >&5
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 ( exit $ac_status )
3902 ac_cv_header_stdc=no
3903 fi
3904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3905 fi
3906
3907
3908 fi
3909 fi
3910 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3911 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3912 if test $ac_cv_header_stdc = yes; then
3913
3914 cat >>confdefs.h <<\_ACEOF
3915 #define STDC_HEADERS 1
3916 _ACEOF
3917
3918 fi
3919
3920 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3931 inttypes.h stdint.h unistd.h
3932 do
3933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 $ac_includes_default
3946
3947 #include <$ac_header>
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3951 case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_compile") 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && {
3963 test -z "$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 } && test -s conftest.$ac_objext; then
3966 eval "$as_ac_Header=yes"
3967 else
3968 echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 eval "$as_ac_Header=no"
3972 fi
3973
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 ac_res=`eval echo '${'$as_ac_Header'}'`
3977 { echo "$as_me:$LINENO: result: $ac_res" >&5
3978 echo "${ECHO_T}$ac_res" >&6; }
3979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3980 cat >>confdefs.h <<_ACEOF
3981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3982 _ACEOF
3983
3984 fi
3985
3986 done
3987
3988
3989
3990
3991
3992 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3993 do
3994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 fi
4001 ac_res=`eval echo '${'$as_ac_Header'}'`
4002 { echo "$as_me:$LINENO: result: $ac_res" >&5
4003 echo "${ECHO_T}$ac_res" >&6; }
4004 else
4005 # Is the header compilable?
4006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 $ac_includes_default
4015 #include <$ac_header>
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 ac_header_compiler=yes
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 ac_header_compiler=no
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4044 echo "${ECHO_T}$ac_header_compiler" >&6; }
4045
4046 # Is the header present?
4047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <$ac_header>
4056 _ACEOF
4057 if { (ac_try="$ac_cpp conftest.$ac_ext"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } >/dev/null && {
4070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 }; then
4073 ac_header_preproc=yes
4074 else
4075 echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 ac_header_preproc=no
4079 fi
4080
4081 rm -f conftest.err conftest.$ac_ext
4082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4083 echo "${ECHO_T}$ac_header_preproc" >&6; }
4084
4085 # So? What about this header?
4086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4087 yes:no: )
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4092 ac_header_preproc=yes
4093 ;;
4094 no:yes:* )
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4107
4108 ;;
4109 esac
4110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 eval "$as_ac_Header=\$ac_header_preproc"
4116 fi
4117 ac_res=`eval echo '${'$as_ac_Header'}'`
4118 { echo "$as_me:$LINENO: result: $ac_res" >&5
4119 echo "${ECHO_T}$ac_res" >&6; }
4120
4121 fi
4122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4123 cat >>confdefs.h <<_ACEOF
4124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4125 _ACEOF
4126
4127 fi
4128
4129 done
4130
4131
4132 for ac_header in net/pfvar.h
4133 do
4134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <sys/types.h>
4147 #include <sys/socket.h>
4148 #include <net/if.h>
4149
4150 #include <$ac_header>
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 eval "$as_ac_Header=yes"
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 eval "$as_ac_Header=no"
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 fi
4179 ac_res=`eval echo '${'$as_ac_Header'}'`
4180 { echo "$as_me:$LINENO: result: $ac_res" >&5
4181 echo "${ECHO_T}$ac_res" >&6; }
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185 _ACEOF
4186
4187 fi
4188
4189 done
4190
4191 if test "$ac_cv_header_net_pfvar_h" = yes; then
4192 LOCALSRC="print-pflog.c $LOCALSRC"
4193 fi
4194
4195 for ac_header in netinet/if_ether.h
4196 do
4197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4209 #include <sys/types.h>
4210 #include <sys/socket.h>
4211
4212 #include <$ac_header>
4213 _ACEOF
4214 rm -f conftest.$ac_objext
4215 if { (ac_try="$ac_compile"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && {
4228 test -z "$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4230 } && test -s conftest.$ac_objext; then
4231 eval "$as_ac_Header=yes"
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 eval "$as_ac_Header=no"
4237 fi
4238
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 ac_res=`eval echo '${'$as_ac_Header'}'`
4242 { echo "$as_me:$LINENO: result: $ac_res" >&5
4243 echo "${ECHO_T}$ac_res" >&6; }
4244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4245 cat >>confdefs.h <<_ACEOF
4246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4247 _ACEOF
4248
4249 fi
4250
4251 done
4252
4253 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4254 #
4255 # The simple test didn't work.
4256 # Do we need to include <net/if.h> first?
4257 # Unset ac_cv_header_netinet_if_ether_h so we don't
4258 # treat the previous failure as a cached value and
4259 # suppress the next test.
4260 #
4261 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4262 echo "$as_me: Rechecking with some additional includes" >&6;}
4263 unset ac_cv_header_netinet_if_ether_h
4264
4265 for ac_header in netinet/if_ether.h
4266 do
4267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h. */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4279 #include <sys/types.h>
4280 #include <sys/socket.h>
4281 #include <netinet/in.h>
4282 struct mbuf;
4283 struct rtentry;
4284 #include <net/if.h>
4285
4286 #include <$ac_header>
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4290 case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_compile") 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } && {
4302 test -z "$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4304 } && test -s conftest.$ac_objext; then
4305 eval "$as_ac_Header=yes"
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 eval "$as_ac_Header=no"
4311 fi
4312
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 ac_res=`eval echo '${'$as_ac_Header'}'`
4316 { echo "$as_me:$LINENO: result: $ac_res" >&5
4317 echo "${ECHO_T}$ac_res" >&6; }
4318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322
4323 fi
4324
4325 done
4326
4327 fi
4328
4329 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4330 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4331 if test "${ac_cv_header_time+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <sys/types.h>
4341 #include <sys/time.h>
4342 #include <time.h>
4343
4344 int
4345 main ()
4346 {
4347 if ((struct tm *) 0)
4348 return 0;
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4370 ac_cv_header_time=yes
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ac_cv_header_time=no
4376 fi
4377
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 fi
4380 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4381 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4382 if test $ac_cv_header_time = yes; then
4383
4384 cat >>confdefs.h <<\_ACEOF
4385 #define TIME_WITH_SYS_TIME 1
4386 _ACEOF
4387
4388 fi
4389
4390
4391 case "$host_os" in
4392
4393 darwin*)
4394 # Check whether --enable-universal was given.
4395 if test "${enable_universal+set}" = set; then
4396 enableval=$enable_universal;
4397 fi
4398
4399 if test "$enable_universal" != "no"; then
4400 case "$host_os" in
4401
4402 darwin9.*)
4403 #
4404 # Leopard. Build for x86 and 32-bit PowerPC, with
4405 # x86 first. (That's what Apple does.)
4406 #
4407 V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4408 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4409 ;;
4410
4411 darwin10.*)
4412 #
4413 # Snow Leopard. Build for x86-64 and x86, with
4414 # x86-64 first. (That's what Apple does.)
4415 #
4416 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4417 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4418 ;;
4419 esac
4420 fi
4421 ;;
4422
4423 linux*)
4424 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4425 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4426 if test "$cross_compiling" = yes; then
4427 if test "${ac_cv_linux_vers+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 ac_cv_linux_vers=unknown
4431 fi
4432
4433 else
4434 if test "${ac_cv_linux_vers+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_cv_linux_vers=`uname -r 2>&1 | \
4438 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4439 fi
4440
4441 fi
4442 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4443 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4444 if test $ac_cv_linux_vers = unknown ; then
4445 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4446 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4447 { (exit 1); exit 1; }; }
4448 fi
4449 if test $ac_cv_linux_vers -lt 2 ; then
4450 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4451 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4452 { (exit 1); exit 1; }; }
4453 fi
4454 ;;
4455
4456 *)
4457 ;;
4458 esac
4459
4460
4461
4462 # Check whether --with-smi was given.
4463 if test "${with_smi+set}" = set; then
4464 withval=$with_smi;
4465 else
4466 with_smi=yes
4467 fi
4468
4469
4470 if test "x$with_smi" != "xno" ; then
4471
4472 for ac_header in smi.h
4473 do
4474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 fi
4481 ac_res=`eval echo '${'$as_ac_Header'}'`
4482 { echo "$as_me:$LINENO: result: $ac_res" >&5
4483 echo "${ECHO_T}$ac_res" >&6; }
4484 else
4485 # Is the header compilable?
4486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 $ac_includes_default
4495 #include <$ac_header>
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_compile") 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && {
4511 test -z "$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 } && test -s conftest.$ac_objext; then
4514 ac_header_compiler=yes
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 ac_header_compiler=no
4520 fi
4521
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524 echo "${ECHO_T}$ac_header_compiler" >&6; }
4525
4526 # Is the header present?
4527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <$ac_header>
4536 _ACEOF
4537 if { (ac_try="$ac_cpp conftest.$ac_ext"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 }; then
4553 ac_header_preproc=yes
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ac_header_preproc=no
4559 fi
4560
4561 rm -f conftest.err conftest.$ac_ext
4562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4563 echo "${ECHO_T}$ac_header_preproc" >&6; }
4564
4565 # So? What about this header?
4566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4567 yes:no: )
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4572 ac_header_preproc=yes
4573 ;;
4574 no:yes:* )
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4587
4588 ;;
4589 esac
4590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 eval "$as_ac_Header=\$ac_header_preproc"
4596 fi
4597 ac_res=`eval echo '${'$as_ac_Header'}'`
4598 { echo "$as_me:$LINENO: result: $ac_res" >&5
4599 echo "${ECHO_T}$ac_res" >&6; }
4600
4601 fi
4602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4603 cat >>confdefs.h <<_ACEOF
4604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 _ACEOF
4606
4607 fi
4608
4609 done
4610
4611
4612 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4613 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4614 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-lsmi $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625
4626 /* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
4629 #ifdef __cplusplus
4630 extern "C"
4631 #endif
4632 char smiInit ();
4633 int
4634 main ()
4635 {
4636 return smiInit ();
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (ac_try="$ac_link"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest$ac_exeext &&
4658 $as_test_x conftest$ac_exeext; then
4659 ac_cv_lib_smi_smiInit=yes
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ac_cv_lib_smi_smiInit=no
4665 fi
4666
4667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4668 conftest$ac_exeext conftest.$ac_ext
4669 LIBS=$ac_check_lib_save_LIBS
4670 fi
4671 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4672 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4673 if test $ac_cv_lib_smi_smiInit = yes; then
4674 cat >>confdefs.h <<_ACEOF
4675 #define HAVE_LIBSMI 1
4676 _ACEOF
4677
4678 LIBS="-lsmi $LIBS"
4679
4680 fi
4681
4682 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4683 then
4684 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4685 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4686 if test "$cross_compiling" = yes; then
4687 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4688 echo "${ECHO_T}not when cross-compiling" >&6; }
4689 libsmi=no
4690
4691 else
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 /* libsmi available check */
4699 #include <smi.h>
4700 main()
4701 {
4702 int current, revision, age, n;
4703 const int required = 2;
4704 if (smiInit(""))
4705 exit(1);
4706 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4707 exit(2);
4708 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4709 if (n != 3)
4710 exit(3);
4711 if (required < current - age || required > current)
4712 exit(4);
4713 exit(0);
4714 }
4715
4716 _ACEOF
4717 rm -f conftest$ac_exeext
4718 if { (ac_try="$ac_link"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_link") 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4728 { (case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_try") 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 { echo "$as_me:$LINENO: result: yes" >&5
4738 echo "${ECHO_T}yes" >&6; }
4739 cat >>confdefs.h <<\_ACEOF
4740 #define LIBSMI 1
4741 _ACEOF
4742
4743 libsmi=yes
4744 else
4745 echo "$as_me: program exited with status $ac_status" >&5
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4748
4749 ( exit $ac_status )
4750 case $? in
4751 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4752 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4753 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4754 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4755 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4756 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4757 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4758 echo "${ECHO_T}no - too old" >&6; } ;;
4759 *) { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; } ;;
4761 esac
4762 libsmi=no
4763 fi
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4765 fi
4766
4767
4768 fi
4769 fi
4770
4771 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4772 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4773 # Check whether --enable-smb was given.
4774 if test "${enable_smb+set}" = set; then
4775 enableval=$enable_smb;
4776 else
4777 enableval=yes
4778 fi
4779
4780 case "$enableval" in
4781 yes) { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4783 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4784 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4785 cat >>confdefs.h <<\_ACEOF
4786 #define TCPDUMP_DO_SMB 1
4787 _ACEOF
4788
4789 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4790 ;;
4791 *) { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4793 ;;
4794 esac
4795
4796
4797 # Check whether --with-user was given.
4798 if test "${with_user+set}" = set; then
4799 withval=$with_user;
4800 fi
4801
4802 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4803 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4804 if test ! -z "$with_user" ; then
4805 cat >>confdefs.h <<_ACEOF
4806 #define WITH_USER "$withval"
4807 _ACEOF
4808
4809 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4810 echo "${ECHO_T}to \"$withval\"" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 fi
4815
4816
4817 # Check whether --with-chroot was given.
4818 if test "${with_chroot+set}" = set; then
4819 withval=$with_chroot;
4820 fi
4821
4822 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4823 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4824 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define WITH_CHROOT "$withval"
4827 _ACEOF
4828
4829 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4830 echo "${ECHO_T}to \"$withval\"" >&6; }
4831 else
4832 { echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6; }
4834 fi
4835
4836 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4837 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4838 # Check whether --enable-ipv6 was given.
4839 if test "${enable_ipv6+set}" = set; then
4840 enableval=$enable_ipv6; case "$enableval" in
4841 yes) { echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6; }
4843 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"
4844 cat >>confdefs.h <<\_ACEOF
4845 #define INET6 1
4846 _ACEOF
4847
4848 ipv6=yes
4849 ;;
4850 *)
4851 { echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6; }
4853 ipv6=no
4854 ;;
4855 esac
4856 else
4857 if test "$cross_compiling" = yes; then
4858 { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 ipv6=no
4861
4862 else
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 /* AF_INET6 available check */
4870 #include <sys/types.h>
4871 #include <sys/socket.h>
4872 main()
4873 {
4874 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4875 exit(1);
4876 else
4877 exit(0);
4878 }
4879
4880 _ACEOF
4881 rm -f conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_link") 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4892 { (case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_try") 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 { echo "$as_me:$LINENO: result: yes" >&5
4902 echo "${ECHO_T}yes" >&6; }
4903 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"
4904 cat >>confdefs.h <<\_ACEOF
4905 #define INET6 1
4906 _ACEOF
4907
4908 ipv6=yes
4909 else
4910 echo "$as_me: program exited with status $ac_status" >&5
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 ( exit $ac_status )
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 ipv6=no
4918 fi
4919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4920 fi
4921
4922
4923 fi
4924
4925
4926 ipv6type=unknown
4927 ipv6lib=none
4928 ipv6trylibc=no
4929
4930 if test "$ipv6" = "yes"; then
4931 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4932 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4933 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4934 case $i in
4935 inria)
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <netinet/in.h>
4943 #ifdef IPV6_INRIA_VERSION
4944 yes
4945 #endif
4946 _ACEOF
4947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4948 $EGREP "yes" >/dev/null 2>&1; then
4949 ipv6type=$i;
4950 CFLAGS="-DINET6 $CFLAGS"
4951 fi
4952 rm -f -r conftest*
4953
4954 ;;
4955 kame)
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <netinet/in.h>
4963 #ifdef __KAME__
4964 yes
4965 #endif
4966 _ACEOF
4967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968 $EGREP "yes" >/dev/null 2>&1; then
4969 ipv6type=$i;
4970 ipv6lib=inet6;
4971 ipv6libdir=/usr/local/v6/lib;
4972 ipv6trylibc=yes;
4973 CFLAGS="-DINET6 $CFLAGS"
4974 fi
4975 rm -f -r conftest*
4976
4977 ;;
4978 linux-glibc)
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #include <features.h>
4986 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4987 yes
4988 #endif
4989 _ACEOF
4990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991 $EGREP "yes" >/dev/null 2>&1; then
4992 ipv6type=$i;
4993 CFLAGS="-DINET6 $CFLAGS"
4994 fi
4995 rm -f -r conftest*
4996
4997 ;;
4998 linux-libinet6)
4999 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5000 ipv6type=$i
5001 ipv6lib=inet6
5002 ipv6libdir=/usr/inet6/lib
5003 ipv6trylibc=yes;
5004 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5005 fi
5006 ;;
5007 toshiba)
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 #include <sys/param.h>
5015 #ifdef _TOSHIBA_INET6
5016 yes
5017 #endif
5018 _ACEOF
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020 $EGREP "yes" >/dev/null 2>&1; then
5021 ipv6type=$i;
5022 ipv6lib=inet6;
5023 ipv6libdir=/usr/local/v6/lib;
5024 CFLAGS="-DINET6 $CFLAGS"
5025 fi
5026 rm -f -r conftest*
5027
5028 ;;
5029 v6d)
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #include </usr/local/v6/include/sys/v6config.h>
5037 #ifdef __V6D__
5038 yes
5039 #endif
5040 _ACEOF
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042 $EGREP "yes" >/dev/null 2>&1; then
5043 ipv6type=$i;
5044 ipv6lib=v6;
5045 ipv6libdir=/usr/local/v6/lib;
5046 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5047 fi
5048 rm -f -r conftest*
5049
5050 ;;
5051 zeta)
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <sys/param.h>
5059 #ifdef _ZETA_MINAMI_INET6
5060 yes
5061 #endif
5062 _ACEOF
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064 $EGREP "yes" >/dev/null 2>&1; then
5065 ipv6type=$i;
5066 ipv6lib=inet6;
5067 ipv6libdir=/usr/local/v6/lib;
5068 CFLAGS="-DINET6 $CFLAGS"
5069 fi
5070 rm -f -r conftest*
5071
5072 ;;
5073 esac
5074 if test "$ipv6type" != "unknown"; then
5075 break
5076 fi
5077 done
5078 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5079 echo "${ECHO_T}$ipv6type" >&6; }
5080 fi
5081
5082 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5083 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5084 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5085 echo "You have $ipv6lib library, using it"
5086 else
5087 if test "$ipv6trylibc" = "yes"; then
5088 echo "You do not have $ipv6lib library, using libc"
5089 else
5090 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5091 echo "You need to fetch lib$ipv6lib.a from appropriate"
5092 echo 'ipv6 kit and compile beforehand.'
5093 exit 1
5094 fi
5095 fi
5096 fi
5097
5098
5099 if test "$ipv6" = "yes"; then
5100 #
5101 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5102 # function in libc; there are "ngetaddrinfo()" and
5103 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5104 # "getaddrinfo" to be either "ngetaddrinfo" or
5105 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5106 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5107 #
5108 # So this test doesn't work on Tru64 5.1, and possibly
5109 # on other 5.x releases. This causes the configure
5110 # script to become confused, and results in libpcap
5111 # being unbuildable.
5112 #
5113 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5114 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5115 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 ac_func_search_save_LIBS=$LIBS
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125
5126 /* Override any GCC internal prototype to avoid an error.
5127 Use char because int might match the return type of a GCC
5128 builtin and then its argument prototype would still apply. */
5129 #ifdef __cplusplus
5130 extern "C"
5131 #endif
5132 char getaddrinfo ();
5133 int
5134 main ()
5135 {
5136 return getaddrinfo ();
5137 ;
5138 return 0;
5139 }
5140 _ACEOF
5141 for ac_lib in '' socket; do
5142 if test -z "$ac_lib"; then
5143 ac_res="none required"
5144 else
5145 ac_res=-l$ac_lib
5146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5147 fi
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (ac_try="$ac_link"
5150 case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_link") 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest$ac_exeext &&
5165 $as_test_x conftest$ac_exeext; then
5166 ac_cv_search_getaddrinfo=$ac_res
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171
5172 fi
5173
5174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5175 conftest$ac_exeext
5176 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5177 break
5178 fi
5179 done
5180 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5181 :
5182 else
5183 ac_cv_search_getaddrinfo=no
5184 fi
5185 rm conftest.$ac_ext
5186 LIBS=$ac_func_search_save_LIBS
5187 fi
5188 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5189 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5190 ac_res=$ac_cv_search_getaddrinfo
5191 if test "$ac_res" != no; then
5192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5193 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5194 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5195 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 if test "$cross_compiling" = yes; then
5199 td_cv_buggygetaddrinfo=yes
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207
5208 #include <sys/types.h>
5209 #include <netdb.h>
5210 #include <string.h>
5211 #include <sys/socket.h>
5212 #include <netinet/in.h>
5213
5214 main()
5215 {
5216 int passive, gaierr, inet4 = 0, inet6 = 0;
5217 struct addrinfo hints, *ai, *aitop;
5218 char straddr[INET6_ADDRSTRLEN], strport[16];
5219
5220 for (passive = 0; passive <= 1; passive++) {
5221 memset(&hints, 0, sizeof(hints));
5222 hints.ai_family = AF_UNSPEC;
5223 hints.ai_flags = passive ? AI_PASSIVE : 0;
5224 hints.ai_socktype = SOCK_STREAM;
5225 hints.ai_protocol = IPPROTO_TCP;
5226 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5227 (void)gai_strerror(gaierr);
5228 goto bad;
5229 }
5230 for (ai = aitop; ai; ai = ai->ai_next) {
5231 if (ai->ai_addr == NULL ||
5232 ai->ai_addrlen == 0 ||
5233 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5234 straddr, sizeof(straddr), strport, sizeof(strport),
5235 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5236 goto bad;
5237 }
5238 switch (ai->ai_family) {
5239 case AF_INET:
5240 if (strcmp(strport, "54321") != 0) {
5241 goto bad;
5242 }
5243 if (passive) {
5244 if (strcmp(straddr, "0.0.0.0") != 0) {
5245 goto bad;
5246 }
5247 } else {
5248 if (strcmp(straddr, "127.0.0.1") != 0) {
5249 goto bad;
5250 }
5251 }
5252 inet4++;
5253 break;
5254 case AF_INET6:
5255 if (strcmp(strport, "54321") != 0) {
5256 goto bad;
5257 }
5258 if (passive) {
5259 if (strcmp(straddr, "::") != 0) {
5260 goto bad;
5261 }
5262 } else {
5263 if (strcmp(straddr, "::1") != 0) {
5264 goto bad;
5265 }
5266 }
5267 inet6++;
5268 break;
5269 case AF_UNSPEC:
5270 goto bad;
5271 break;
5272 #ifdef AF_UNIX
5273 case AF_UNIX:
5274 #else
5275 #ifdef AF_LOCAL
5276 case AF_LOCAL:
5277 #endif
5278 #endif
5279 default:
5280 /* another family support? */
5281 break;
5282 }
5283 }
5284 }
5285
5286 /* supported family should be 2, unsupported family should be 0 */
5287 if (!(inet4 == 0 || inet4 == 2))
5288 goto bad;
5289 if (!(inet6 == 0 || inet6 == 2))
5290 goto bad;
5291
5292 if (aitop)
5293 freeaddrinfo(aitop);
5294 exit(0);
5295
5296 bad:
5297 if (aitop)
5298 freeaddrinfo(aitop);
5299 exit(1);
5300 }
5301
5302 _ACEOF
5303 rm -f conftest$ac_exeext
5304 if { (ac_try="$ac_link"
5305 case "(($ac_try" in
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5308 esac
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310 (eval "$ac_link") 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5314 { (case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_try") 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 td_cv_buggygetaddrinfo=no
5324 else
5325 echo "$as_me: program exited with status $ac_status" >&5
5326 echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 ( exit $ac_status )
5330 td_cv_buggygetaddrinfo=yes
5331 fi
5332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5333 fi
5334
5335
5336 fi
5337
5338 if test "$td_cv_buggygetaddrinfo" = no; then
5339 { echo "$as_me:$LINENO: result: good" >&5
5340 echo "${ECHO_T}good" >&6; }
5341 else
5342 { echo "$as_me:$LINENO: result: buggy" >&5
5343 echo "${ECHO_T}buggy" >&6; }
5344 fi
5345
5346 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5347 #
5348 # XXX - it doesn't appear that "ipv6type" can ever be
5349 # set to "linux". Should this be testing for
5350 # "linux-glibc", or for that *or* "linux-libinet6"?
5351 # If the latter, note that "linux-libinet6" is also
5352 # the type given to some non-Linux OSes.
5353 #
5354 if test "$ipv6type" != "linux"; then
5355 echo 'Fatal: You must get working getaddrinfo() function.'
5356 echo ' or you can specify "--disable-ipv6"'.
5357 exit 1
5358 else
5359 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5360 echo ' Better upgrade your system library to newest version'
5361 echo ' of GNU C library (aka glibc).'
5362 fi
5363 fi
5364
5365 fi
5366
5367
5368 for ac_func in getnameinfo
5369 do
5370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5384 #define $ac_func innocuous_$ac_func
5385
5386 /* System header to define __stub macros and hopefully few prototypes,
5387 which can conflict with char $ac_func (); below.
5388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 <limits.h> exists even on freestanding compilers. */
5390
5391 #ifdef __STDC__
5392 # include <limits.h>
5393 #else
5394 # include <assert.h>
5395 #endif
5396
5397 #undef $ac_func
5398
5399 /* Override any GCC internal prototype to avoid an error.
5400 Use char because int might match the return type of a GCC
5401 builtin and then its argument prototype would still apply. */
5402 #ifdef __cplusplus
5403 extern "C"
5404 #endif
5405 char $ac_func ();
5406 /* The GNU C library defines this for functions which it implements
5407 to always fail with ENOSYS. Some functions are actually named
5408 something starting with __ and the normal name is an alias. */
5409 #if defined __stub_$ac_func || defined __stub___$ac_func
5410 choke me
5411 #endif
5412
5413 int
5414 main ()
5415 {
5416 return $ac_func ();
5417 ;
5418 return 0;
5419 }
5420 _ACEOF
5421 rm -f conftest.$ac_objext conftest$ac_exeext
5422 if { (ac_try="$ac_link"
5423 case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426 esac
5427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_link") 2>conftest.er1
5429 ac_status=$?
5430 grep -v '^ *+' conftest.er1 >conftest.err
5431 rm -f conftest.er1
5432 cat conftest.err >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && {
5435 test -z "$ac_c_werror_flag" ||
5436 test ! -s conftest.err
5437 } && test -s conftest$ac_exeext &&
5438 $as_test_x conftest$ac_exeext; then
5439 eval "$as_ac_var=yes"
5440 else
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444 eval "$as_ac_var=no"
5445 fi
5446
5447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5448 conftest$ac_exeext conftest.$ac_ext
5449 fi
5450 ac_res=`eval echo '${'$as_ac_var'}'`
5451 { echo "$as_me:$LINENO: result: $ac_res" >&5
5452 echo "${ECHO_T}$ac_res" >&6; }
5453 if test `eval echo '${'$as_ac_var'}'` = yes; then
5454 cat >>confdefs.h <<_ACEOF
5455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5456 _ACEOF
5457
5458 else
5459 case " $LIBOBJS " in
5460 *" $ac_func.$ac_objext "* ) ;;
5461 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5462 ;;
5463 esac
5464
5465 fi
5466 done
5467
5468
5469 fi
5470
5471 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5472 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5473 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 #include <netdnet/dnetdb.h>
5483
5484 _ACEOF
5485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5486 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5487 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5488 else
5489 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5490 fi
5491 rm -f -r conftest*
5492
5493 fi
5494 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5495 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5496 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5497 cat >>confdefs.h <<\_ACEOF
5498 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5499 _ACEOF
5500
5501 fi
5502
5503
5504 { echo "$as_me:$LINENO: checking for addrinfo" >&5
5505 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5506 if test "${ac_cv_addrinfo+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515
5516 # include <netdb.h>
5517 int
5518 main ()
5519 {
5520 struct addrinfo a
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_cv_addrinfo=yes
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 ac_cv_addrinfo=no
5548 fi
5549
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552
5553 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5554 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5555 if test $ac_cv_addrinfo = yes; then
5556 cat >>confdefs.h <<\_ACEOF
5557 #define HAVE_ADDRINFO 1
5558 _ACEOF
5559
5560 else
5561 cat >>confdefs.h <<\_ACEOF
5562 #define NEED_ADDRINFO_H 1
5563 _ACEOF
5564
5565 fi
5566
5567 if test "$ac_cv_addrinfo" = no; then
5568 missing_includes=yes
5569 fi
5570
5571
5572 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5573 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5574 if test "${ac_cv_maxserv+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <netdb.h>
5584 #ifdef NI_MAXSERV
5585 yes
5586 #endif
5587 _ACEOF
5588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5589 $EGREP "yes" >/dev/null 2>&1; then
5590 ac_cv_maxserv=yes
5591 else
5592 ac_cv_maxserv=no
5593 fi
5594 rm -f -r conftest*
5595
5596 fi
5597
5598 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5599 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5600 if test $ac_cv_maxserv != yes; then
5601 cat >>confdefs.h <<\_ACEOF
5602 #define NEED_ADDRINFO_H 1
5603 _ACEOF
5604
5605 fi
5606
5607 if test "$ac_cv_maxserv" = no; then
5608 missing_includes=yes
5609 fi
5610
5611
5612 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5613 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5614 if test "${ac_cv_namereqd+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h. */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 #include <netdb.h>
5624 #ifdef NI_NOFQDN
5625 yes
5626 #endif
5627 _ACEOF
5628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5629 $EGREP "yes" >/dev/null 2>&1; then
5630 ac_cv_namereqd=yes
5631 else
5632 ac_cv_namereqd=no
5633 fi
5634 rm -f -r conftest*
5635
5636 fi
5637
5638 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5639 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
5640 if test $ac_cv_namereqd != yes; then
5641 cat >>confdefs.h <<\_ACEOF
5642 #define NEED_ADDRINFO_H 1
5643 _ACEOF
5644
5645 fi
5646
5647 if test "$ac_cv_namereqd" = no; then
5648 missing_includes=yes
5649 fi
5650
5651
5652 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5653 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5654 if test "${ac_cv_sa_storage+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663
5664 # include <sys/types.h>
5665 # include <sys/socket.h>
5666 int
5667 main ()
5668 {
5669 struct sockaddr_storage s
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5676 case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.$ac_objext; then
5691 ac_cv_sa_storage=yes
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696 ac_cv_sa_storage=no
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 fi
5701
5702 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5703 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
5704 if test $ac_cv_sa_storage = yes; then
5705 cat >>confdefs.h <<\_ACEOF
5706 #define HAVE_SOCKADDR_STORAGE 1
5707 _ACEOF
5708
5709 fi
5710
5711 if test "$ac_cv_sa_storage" = no; then
5712 missing_includes=yes
5713 fi
5714
5715
5716
5717
5718
5719
5720
5721 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
5722 do
5723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5737 #define $ac_func innocuous_$ac_func
5738
5739 /* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func (); below.
5741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5742 <limits.h> exists even on freestanding compilers. */
5743
5744 #ifdef __STDC__
5745 # include <limits.h>
5746 #else
5747 # include <assert.h>
5748 #endif
5749
5750 #undef $ac_func
5751
5752 /* Override any GCC internal prototype to avoid an error.
5753 Use char because int might match the return type of a GCC
5754 builtin and then its argument prototype would still apply. */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 char $ac_func ();
5759 /* The GNU C library defines this for functions which it implements
5760 to always fail with ENOSYS. Some functions are actually named
5761 something starting with __ and the normal name is an alias. */
5762 #if defined __stub_$ac_func || defined __stub___$ac_func
5763 choke me
5764 #endif
5765
5766 int
5767 main ()
5768 {
5769 return $ac_func ();
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext conftest$ac_exeext
5775 if { (ac_try="$ac_link"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_link") 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } && {
5788 test -z "$ac_c_werror_flag" ||
5789 test ! -s conftest.err
5790 } && test -s conftest$ac_exeext &&
5791 $as_test_x conftest$ac_exeext; then
5792 eval "$as_ac_var=yes"
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 eval "$as_ac_var=no"
5798 fi
5799
5800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5801 conftest$ac_exeext conftest.$ac_ext
5802 fi
5803 ac_res=`eval echo '${'$as_ac_var'}'`
5804 { echo "$as_me:$LINENO: result: $ac_res" >&5
5805 echo "${ECHO_T}$ac_res" >&6; }
5806 if test `eval echo '${'$as_ac_var'}'` = yes; then
5807 cat >>confdefs.h <<_ACEOF
5808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5809 _ACEOF
5810
5811 else
5812 case " $LIBOBJS " in
5813 *" $ac_func.$ac_objext "* ) ;;
5814 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5815 ;;
5816 esac
5817
5818 fi
5819 done
5820
5821
5822
5823
5824
5825 for ac_func in fork vfork strftime
5826 do
5827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5841 #define $ac_func innocuous_$ac_func
5842
5843 /* System header to define __stub macros and hopefully few prototypes,
5844 which can conflict with char $ac_func (); below.
5845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846 <limits.h> exists even on freestanding compilers. */
5847
5848 #ifdef __STDC__
5849 # include <limits.h>
5850 #else
5851 # include <assert.h>
5852 #endif
5853
5854 #undef $ac_func
5855
5856 /* Override any GCC internal prototype to avoid an error.
5857 Use char because int might match the return type of a GCC
5858 builtin and then its argument prototype would still apply. */
5859 #ifdef __cplusplus
5860 extern "C"
5861 #endif
5862 char $ac_func ();
5863 /* The GNU C library defines this for functions which it implements
5864 to always fail with ENOSYS. Some functions are actually named
5865 something starting with __ and the normal name is an alias. */
5866 #if defined __stub_$ac_func || defined __stub___$ac_func
5867 choke me
5868 #endif
5869
5870 int
5871 main ()
5872 {
5873 return $ac_func ();
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (ac_try="$ac_link"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_link") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest$ac_exeext &&
5895 $as_test_x conftest$ac_exeext; then
5896 eval "$as_ac_var=yes"
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 eval "$as_ac_var=no"
5902 fi
5903
5904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5905 conftest$ac_exeext conftest.$ac_ext
5906 fi
5907 ac_res=`eval echo '${'$as_ac_var'}'`
5908 { echo "$as_me:$LINENO: result: $ac_res" >&5
5909 echo "${ECHO_T}$ac_res" >&6; }
5910 if test `eval echo '${'$as_ac_var'}'` = yes; then
5911 cat >>confdefs.h <<_ACEOF
5912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5913 _ACEOF
5914
5915 fi
5916 done
5917
5918
5919
5920 for ac_func in setlinebuf alarm
5921 do
5922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5936 #define $ac_func innocuous_$ac_func
5937
5938 /* System header to define __stub macros and hopefully few prototypes,
5939 which can conflict with char $ac_func (); below.
5940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5941 <limits.h> exists even on freestanding compilers. */
5942
5943 #ifdef __STDC__
5944 # include <limits.h>
5945 #else
5946 # include <assert.h>
5947 #endif
5948
5949 #undef $ac_func
5950
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5954 #ifdef __cplusplus
5955 extern "C"
5956 #endif
5957 char $ac_func ();
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined __stub_$ac_func || defined __stub___$ac_func
5962 choke me
5963 #endif
5964
5965 int
5966 main ()
5967 {
5968 return $ac_func ();
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_link") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest$ac_exeext &&
5990 $as_test_x conftest$ac_exeext; then
5991 eval "$as_ac_var=yes"
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 eval "$as_ac_var=no"
5997 fi
5998
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000 conftest$ac_exeext conftest.$ac_ext
6001 fi
6002 ac_res=`eval echo '${'$as_ac_var'}'`
6003 { echo "$as_me:$LINENO: result: $ac_res" >&5
6004 echo "${ECHO_T}$ac_res" >&6; }
6005 if test `eval echo '${'$as_ac_var'}'` = yes; then
6006 cat >>confdefs.h <<_ACEOF
6007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6008 _ACEOF
6009
6010 fi
6011 done
6012
6013
6014 needsnprintf=no
6015
6016
6017 for ac_func in vsnprintf snprintf
6018 do
6019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025 cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h. */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6033 #define $ac_func innocuous_$ac_func
6034
6035 /* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char $ac_func (); below.
6037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6038 <limits.h> exists even on freestanding compilers. */
6039
6040 #ifdef __STDC__
6041 # include <limits.h>
6042 #else
6043 # include <assert.h>
6044 #endif
6045
6046 #undef $ac_func
6047
6048 /* Override any GCC internal prototype to avoid an error.
6049 Use char because int might match the return type of a GCC
6050 builtin and then its argument prototype would still apply. */
6051 #ifdef __cplusplus
6052 extern "C"
6053 #endif
6054 char $ac_func ();
6055 /* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058 #if defined __stub_$ac_func || defined __stub___$ac_func
6059 choke me
6060 #endif
6061
6062 int
6063 main ()
6064 {
6065 return $ac_func ();
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext conftest$ac_exeext
6071 if { (ac_try="$ac_link"
6072 case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_link") 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && {
6084 test -z "$ac_c_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest$ac_exeext &&
6087 $as_test_x conftest$ac_exeext; then
6088 eval "$as_ac_var=yes"
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 eval "$as_ac_var=no"
6094 fi
6095
6096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6097 conftest$ac_exeext conftest.$ac_ext
6098 fi
6099 ac_res=`eval echo '${'$as_ac_var'}'`
6100 { echo "$as_me:$LINENO: result: $ac_res" >&5
6101 echo "${ECHO_T}$ac_res" >&6; }
6102 if test `eval echo '${'$as_ac_var'}'` = yes; then
6103 cat >>confdefs.h <<_ACEOF
6104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6105 _ACEOF
6106
6107 else
6108 needsnprintf=yes
6109 fi
6110 done
6111
6112 if test $needsnprintf = yes; then
6113 case " $LIBOBJS " in
6114 *" snprintf.$ac_objext "* ) ;;
6115 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6116 ;;
6117 esac
6118
6119 fi
6120
6121
6122 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6123 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6124 if test "${ac_cv_type_signal+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <sys/types.h>
6134 #include <signal.h>
6135
6136 int
6137 main ()
6138 {
6139 return *(signal (0, 0)) (0) == 1;
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest.$ac_objext
6145 if { (ac_try="$ac_compile"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compile") 2>conftest.er1
6152 ac_status=$?
6153 grep -v '^ *+' conftest.er1 >conftest.err
6154 rm -f conftest.er1
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && {
6158 test -z "$ac_c_werror_flag" ||
6159 test ! -s conftest.err
6160 } && test -s conftest.$ac_objext; then
6161 ac_cv_type_signal=int
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 ac_cv_type_signal=void
6167 fi
6168
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 fi
6171 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6172 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6173
6174 cat >>confdefs.h <<_ACEOF
6175 #define RETSIGTYPE $ac_cv_type_signal
6176 _ACEOF
6177
6178
6179 if test "$ac_cv_type_signal" = void ; then
6180
6181 cat >>confdefs.h <<\_ACEOF
6182 #define RETSIGVAL
6183 _ACEOF
6184
6185 else
6186
6187 cat >>confdefs.h <<\_ACEOF
6188 #define RETSIGVAL (0)
6189 _ACEOF
6190
6191 fi
6192 case "$host_os" in
6193
6194 irix*)
6195
6196 cat >>confdefs.h <<\_ACEOF
6197 #define _BSD_SIGNALS 1
6198 _ACEOF
6199
6200 ;;
6201
6202 *)
6203
6204 for ac_func in sigaction
6205 do
6206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6220 #define $ac_func innocuous_$ac_func
6221
6222 /* System header to define __stub macros and hopefully few prototypes,
6223 which can conflict with char $ac_func (); below.
6224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 <limits.h> exists even on freestanding compilers. */
6226
6227 #ifdef __STDC__
6228 # include <limits.h>
6229 #else
6230 # include <assert.h>
6231 #endif
6232
6233 #undef $ac_func
6234
6235 /* Override any GCC internal prototype to avoid an error.
6236 Use char because int might match the return type of a GCC
6237 builtin and then its argument prototype would still apply. */
6238 #ifdef __cplusplus
6239 extern "C"
6240 #endif
6241 char $ac_func ();
6242 /* The GNU C library defines this for functions which it implements
6243 to always fail with ENOSYS. Some functions are actually named
6244 something starting with __ and the normal name is an alias. */
6245 #if defined __stub_$ac_func || defined __stub___$ac_func
6246 choke me
6247 #endif
6248
6249 int
6250 main ()
6251 {
6252 return $ac_func ();
6253 ;
6254 return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (ac_try="$ac_link"
6259 case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_link") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest$ac_exeext &&
6274 $as_test_x conftest$ac_exeext; then
6275 eval "$as_ac_var=yes"
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 eval "$as_ac_var=no"
6281 fi
6282
6283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6284 conftest$ac_exeext conftest.$ac_ext
6285 fi
6286 ac_res=`eval echo '${'$as_ac_var'}'`
6287 { echo "$as_me:$LINENO: result: $ac_res" >&5
6288 echo "${ECHO_T}$ac_res" >&6; }
6289 if test `eval echo '${'$as_ac_var'}'` = yes; then
6290 cat >>confdefs.h <<_ACEOF
6291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6292 _ACEOF
6293
6294 fi
6295 done
6296
6297 if test $ac_cv_func_sigaction = no ; then
6298
6299 for ac_func in sigset
6300 do
6301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6315 #define $ac_func innocuous_$ac_func
6316
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char $ac_func (); below.
6319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320 <limits.h> exists even on freestanding compilers. */
6321
6322 #ifdef __STDC__
6323 # include <limits.h>
6324 #else
6325 # include <assert.h>
6326 #endif
6327
6328 #undef $ac_func
6329
6330 /* Override any GCC internal prototype to avoid an error.
6331 Use char because int might match the return type of a GCC
6332 builtin and then its argument prototype would still apply. */
6333 #ifdef __cplusplus
6334 extern "C"
6335 #endif
6336 char $ac_func ();
6337 /* The GNU C library defines this for functions which it implements
6338 to always fail with ENOSYS. Some functions are actually named
6339 something starting with __ and the normal name is an alias. */
6340 #if defined __stub_$ac_func || defined __stub___$ac_func
6341 choke me
6342 #endif
6343
6344 int
6345 main ()
6346 {
6347 return $ac_func ();
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (ac_try="$ac_link"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_link") 2>conftest.er1
6360 ac_status=$?
6361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } && {
6366 test -z "$ac_c_werror_flag" ||
6367 test ! -s conftest.err
6368 } && test -s conftest$ac_exeext &&
6369 $as_test_x conftest$ac_exeext; then
6370 eval "$as_ac_var=yes"
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 eval "$as_ac_var=no"
6376 fi
6377
6378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6379 conftest$ac_exeext conftest.$ac_ext
6380 fi
6381 ac_res=`eval echo '${'$as_ac_var'}'`
6382 { echo "$as_me:$LINENO: result: $ac_res" >&5
6383 echo "${ECHO_T}$ac_res" >&6; }
6384 if test `eval echo '${'$as_ac_var'}'` = yes; then
6385 cat >>confdefs.h <<_ACEOF
6386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6387 _ACEOF
6388
6389 fi
6390 done
6391
6392 fi
6393 ;;
6394 esac
6395
6396 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6397 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6398 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 ac_func_search_save_LIBS=$LIBS
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6412 #ifdef __cplusplus
6413 extern "C"
6414 #endif
6415 char dnet_htoa ();
6416 int
6417 main ()
6418 {
6419 return dnet_htoa ();
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 for ac_lib in '' dnet; do
6425 if test -z "$ac_lib"; then
6426 ac_res="none required"
6427 else
6428 ac_res=-l$ac_lib
6429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6430 fi
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (ac_try="$ac_link"
6433 case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436 esac
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_link") 2>conftest.er1
6439 ac_status=$?
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } && {
6445 test -z "$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6447 } && test -s conftest$ac_exeext &&
6448 $as_test_x conftest$ac_exeext; then
6449 ac_cv_search_dnet_htoa=$ac_res
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454
6455 fi
6456
6457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6458 conftest$ac_exeext
6459 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6460 break
6461 fi
6462 done
6463 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6464 :
6465 else
6466 ac_cv_search_dnet_htoa=no
6467 fi
6468 rm conftest.$ac_ext
6469 LIBS=$ac_func_search_save_LIBS
6470 fi
6471 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6472 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6473 ac_res=$ac_cv_search_dnet_htoa
6474 if test "$ac_res" != no; then
6475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6476 cat >>confdefs.h <<\_ACEOF
6477 #define HAVE_DNET_HTOA 1
6478 _ACEOF
6479
6480 fi
6481
6482
6483
6484 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6485 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6486 if test "${ac_cv_lib_rpc_main+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489 ac_check_lib_save_LIBS=$LIBS
6490 LIBS="-lrpc $LIBS"
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497
6498
6499 int
6500 main ()
6501 {
6502 return main ();
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 rm -f conftest.$ac_objext conftest$ac_exeext
6508 if { (ac_try="$ac_link"
6509 case "(($ac_try" in
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6512 esac
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_link") 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && {
6521 test -z "$ac_c_werror_flag" ||
6522 test ! -s conftest.err
6523 } && test -s conftest$ac_exeext &&
6524 $as_test_x conftest$ac_exeext; then
6525 ac_cv_lib_rpc_main=yes
6526 else
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_cv_lib_rpc_main=no
6531 fi
6532
6533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6534 conftest$ac_exeext conftest.$ac_ext
6535 LIBS=$ac_check_lib_save_LIBS
6536 fi
6537 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6538 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6539 if test $ac_cv_lib_rpc_main = yes; then
6540 cat >>confdefs.h <<_ACEOF
6541 #define HAVE_LIBRPC 1
6542 _ACEOF
6543
6544 LIBS="-lrpc $LIBS"
6545
6546 fi
6547
6548 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6549 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6550 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 ac_func_search_save_LIBS=$LIBS
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560
6561 /* Override any GCC internal prototype to avoid an error.
6562 Use char because int might match the return type of a GCC
6563 builtin and then its argument prototype would still apply. */
6564 #ifdef __cplusplus
6565 extern "C"
6566 #endif
6567 char getrpcbynumber ();
6568 int
6569 main ()
6570 {
6571 return getrpcbynumber ();
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 for ac_lib in '' nsl; do
6577 if test -z "$ac_lib"; then
6578 ac_res="none required"
6579 else
6580 ac_res=-l$ac_lib
6581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6582 fi
6583 rm -f conftest.$ac_objext conftest$ac_exeext
6584 if { (ac_try="$ac_link"
6585 case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_link") 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && {
6597 test -z "$ac_c_werror_flag" ||
6598 test ! -s conftest.err
6599 } && test -s conftest$ac_exeext &&
6600 $as_test_x conftest$ac_exeext; then
6601 ac_cv_search_getrpcbynumber=$ac_res
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606
6607 fi
6608
6609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6610 conftest$ac_exeext
6611 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6612 break
6613 fi
6614 done
6615 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6616 :
6617 else
6618 ac_cv_search_getrpcbynumber=no
6619 fi
6620 rm conftest.$ac_ext
6621 LIBS=$ac_func_search_save_LIBS
6622 fi
6623 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6624 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6625 ac_res=$ac_cv_search_getrpcbynumber
6626 if test "$ac_res" != no; then
6627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6628 cat >>confdefs.h <<\_ACEOF
6629 #define HAVE_GETRPCBYNUMBER 1
6630 _ACEOF
6631
6632 fi
6633
6634
6635
6636
6637 # Most operating systems have gethostbyname() in the default searched
6638 # libraries (i.e. libc):
6639 # Some OSes (eg. Solaris) place it in libnsl
6640 # Some strange OSes (SINIX) have it in libsocket:
6641 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6642 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6643 if test "${ac_cv_search_gethostbyname+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646 ac_func_search_save_LIBS=$LIBS
6647 cat >conftest.$ac_ext <<_ACEOF
6648 /* confdefs.h. */
6649 _ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653
6654 /* Override any GCC internal prototype to avoid an error.
6655 Use char because int might match the return type of a GCC
6656 builtin and then its argument prototype would still apply. */
6657 #ifdef __cplusplus
6658 extern "C"
6659 #endif
6660 char gethostbyname ();
6661 int
6662 main ()
6663 {
6664 return gethostbyname ();
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 for ac_lib in '' nsl socket resolv; do
6670 if test -z "$ac_lib"; then
6671 ac_res="none required"
6672 else
6673 ac_res=-l$ac_lib
6674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6675 fi
6676 rm -f conftest.$ac_objext conftest$ac_exeext
6677 if { (ac_try="$ac_link"
6678 case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_link") 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest$ac_exeext &&
6693 $as_test_x conftest$ac_exeext; then
6694 ac_cv_search_gethostbyname=$ac_res
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6698
6699
6700 fi
6701
6702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6703 conftest$ac_exeext
6704 if test "${ac_cv_search_gethostbyname+set}" = set; then
6705 break
6706 fi
6707 done
6708 if test "${ac_cv_search_gethostbyname+set}" = set; then
6709 :
6710 else
6711 ac_cv_search_gethostbyname=no
6712 fi
6713 rm conftest.$ac_ext
6714 LIBS=$ac_func_search_save_LIBS
6715 fi
6716 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6717 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6718 ac_res=$ac_cv_search_gethostbyname
6719 if test "$ac_res" != no; then
6720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6721
6722 fi
6723
6724 # Unfortunately libsocket sometimes depends on libnsl and
6725 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6726 if test "$ac_cv_search_gethostbyname" = "no"
6727 then
6728 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6729 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6730 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 ac_check_lib_save_LIBS=$LIBS
6734 LIBS="-lsocket -lnsl $LIBS"
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741
6742 /* Override any GCC internal prototype to avoid an error.
6743 Use char because int might match the return type of a GCC
6744 builtin and then its argument prototype would still apply. */
6745 #ifdef __cplusplus
6746 extern "C"
6747 #endif
6748 char gethostbyname ();
6749 int
6750 main ()
6751 {
6752 return gethostbyname ();
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest.$ac_objext conftest$ac_exeext
6758 if { (ac_try="$ac_link"
6759 case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_link") 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest$ac_exeext &&
6774 $as_test_x conftest$ac_exeext; then
6775 ac_cv_lib_socket_gethostbyname=yes
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 ac_cv_lib_socket_gethostbyname=no
6781 fi
6782
6783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6784 conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6786 fi
6787 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6788 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6789 if test $ac_cv_lib_socket_gethostbyname = yes; then
6790 LIBS="-lsocket -lnsl $LIBS"
6791 fi
6792
6793 fi
6794 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6795 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6796 if test "${ac_cv_search_socket+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 ac_func_search_save_LIBS=$LIBS
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806
6807 /* Override any GCC internal prototype to avoid an error.
6808 Use char because int might match the return type of a GCC
6809 builtin and then its argument prototype would still apply. */
6810 #ifdef __cplusplus
6811 extern "C"
6812 #endif
6813 char socket ();
6814 int
6815 main ()
6816 {
6817 return socket ();
6818 ;
6819 return 0;
6820 }
6821 _ACEOF
6822 for ac_lib in '' socket; do
6823 if test -z "$ac_lib"; then
6824 ac_res="none required"
6825 else
6826 ac_res=-l$ac_lib
6827 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6828 fi
6829 rm -f conftest.$ac_objext conftest$ac_exeext
6830 if { (ac_try="$ac_link"
6831 case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834 esac
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_link") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest$ac_exeext &&
6846 $as_test_x conftest$ac_exeext; then
6847 ac_cv_search_socket=$ac_res
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852
6853 fi
6854
6855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6856 conftest$ac_exeext
6857 if test "${ac_cv_search_socket+set}" = set; then
6858 break
6859 fi
6860 done
6861 if test "${ac_cv_search_socket+set}" = set; then
6862 :
6863 else
6864 ac_cv_search_socket=no
6865 fi
6866 rm conftest.$ac_ext
6867 LIBS=$ac_func_search_save_LIBS
6868 fi
6869 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6870 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6871 ac_res=$ac_cv_search_socket
6872 if test "$ac_res" != no; then
6873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6874
6875 else
6876 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6877 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6878 if test "${ac_cv_lib_socket_socket+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 ac_check_lib_save_LIBS=$LIBS
6882 LIBS="-lsocket -lnsl $LIBS"
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889
6890 /* Override any GCC internal prototype to avoid an error.
6891 Use char because int might match the return type of a GCC
6892 builtin and then its argument prototype would still apply. */
6893 #ifdef __cplusplus
6894 extern "C"
6895 #endif
6896 char socket ();
6897 int
6898 main ()
6899 {
6900 return socket ();
6901 ;
6902 return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext &&
6922 $as_test_x conftest$ac_exeext; then
6923 ac_cv_lib_socket_socket=yes
6924 else
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 ac_cv_lib_socket_socket=no
6929 fi
6930
6931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6932 conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6934 fi
6935 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6936 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6937 if test $ac_cv_lib_socket_socket = yes; then
6938 LIBS="-lsocket -lnsl $LIBS"
6939 fi
6940
6941 fi
6942
6943 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6944 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6945 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6946 if test "${ac_cv_search_putmsg+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 ac_func_search_save_LIBS=$LIBS
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956
6957 /* Override any GCC internal prototype to avoid an error.
6958 Use char because int might match the return type of a GCC
6959 builtin and then its argument prototype would still apply. */
6960 #ifdef __cplusplus
6961 extern "C"
6962 #endif
6963 char putmsg ();
6964 int
6965 main ()
6966 {
6967 return putmsg ();
6968 ;
6969 return 0;
6970 }
6971 _ACEOF
6972 for ac_lib in '' str; do
6973 if test -z "$ac_lib"; then
6974 ac_res="none required"
6975 else
6976 ac_res=-l$ac_lib
6977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6978 fi
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (ac_try="$ac_link"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_link") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest$ac_exeext &&
6996 $as_test_x conftest$ac_exeext; then
6997 ac_cv_search_putmsg=$ac_res
6998 else
6999 echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002
7003 fi
7004
7005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7006 conftest$ac_exeext
7007 if test "${ac_cv_search_putmsg+set}" = set; then
7008 break
7009 fi
7010 done
7011 if test "${ac_cv_search_putmsg+set}" = set; then
7012 :
7013 else
7014 ac_cv_search_putmsg=no
7015 fi
7016 rm conftest.$ac_ext
7017 LIBS=$ac_func_search_save_LIBS
7018 fi
7019 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7020 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
7021 ac_res=$ac_cv_search_putmsg
7022 if test "$ac_res" != no; then
7023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7024
7025 fi
7026
7027
7028
7029 LBL_LIBS="$LIBS"
7030 pfopen=/usr/examples/packetfilter/pfopen.c
7031 if test -f $pfopen ; then
7032
7033 for ac_func in pfopen
7034 do
7035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7049 #define $ac_func innocuous_$ac_func
7050
7051 /* System header to define __stub macros and hopefully few prototypes,
7052 which can conflict with char $ac_func (); below.
7053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7054 <limits.h> exists even on freestanding compilers. */
7055
7056 #ifdef __STDC__
7057 # include <limits.h>
7058 #else
7059 # include <assert.h>
7060 #endif
7061
7062 #undef $ac_func
7063
7064 /* Override any GCC internal prototype to avoid an error.
7065 Use char because int might match the return type of a GCC
7066 builtin and then its argument prototype would still apply. */
7067 #ifdef __cplusplus
7068 extern "C"
7069 #endif
7070 char $ac_func ();
7071 /* The GNU C library defines this for functions which it implements
7072 to always fail with ENOSYS. Some functions are actually named
7073 something starting with __ and the normal name is an alias. */
7074 #if defined __stub_$ac_func || defined __stub___$ac_func
7075 choke me
7076 #endif
7077
7078 int
7079 main ()
7080 {
7081 return $ac_func ();
7082 ;
7083 return 0;
7084 }
7085 _ACEOF
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (ac_try="$ac_link"
7088 case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_link") 2>conftest.er1
7094 ac_status=$?
7095 grep -v '^ *+' conftest.er1 >conftest.err
7096 rm -f conftest.er1
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest$ac_exeext &&
7103 $as_test_x conftest$ac_exeext; then
7104 eval "$as_ac_var=yes"
7105 else
7106 echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7108
7109 eval "$as_ac_var=no"
7110 fi
7111
7112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7113 conftest$ac_exeext conftest.$ac_ext
7114 fi
7115 ac_res=`eval echo '${'$as_ac_var'}'`
7116 { echo "$as_me:$LINENO: result: $ac_res" >&5
7117 echo "${ECHO_T}$ac_res" >&6; }
7118 if test `eval echo '${'$as_ac_var'}'` = yes; then
7119 cat >>confdefs.h <<_ACEOF
7120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7121 _ACEOF
7122
7123 fi
7124 done
7125
7126 if test $ac_cv_func_pfopen = "no" ; then
7127 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7128 echo "${ECHO_T}Using $pfopen" >&6; }
7129 LIBS="$LIBS $pfopen"
7130 fi
7131 fi
7132 { echo "$as_me:$LINENO: checking for local pcap library" >&5
7133 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7134 libpcap=FAIL
7135 lastdir=FAIL
7136 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7137 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7138 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7139 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7140 sed -e 's/-PRE-GIT$//' `
7141 if test $lastdir = $basedir ; then
7142 continue;
7143 fi
7144 lastdir=$dir
7145 if test -r $dir/libpcap.a ; then
7146 libpcap=$dir/libpcap.a
7147 d=$dir
7148 fi
7149 done
7150 if test $libpcap = FAIL ; then
7151 { echo "$as_me:$LINENO: result: not found" >&5
7152 echo "${ECHO_T}not found" >&6; }
7153
7154 #
7155 # Look for pcap-config.
7156 #
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 case $PCAP_CONFIG in
7166 [\\/]* | ?:[\\/]*)
7167 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7168 ;;
7169 *)
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185 ;;
7186 esac
7187 fi
7188 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7189 if test -n "$PCAP_CONFIG"; then
7190 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7191 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7192 else
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198 fi
7199 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7200 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7201 # Extract the first word of "pcap-config", so it can be a program name with args.
7202 set dummy pcap-config; ac_word=$2
7203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208 case $ac_pt_PCAP_CONFIG in
7209 [\\/]* | ?:[\\/]*)
7210 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7211 ;;
7212 *)
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 ;;
7229 esac
7230 fi
7231 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7232 if test -n "$ac_pt_PCAP_CONFIG"; then
7233 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7234 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7235 else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238 fi
7239
7240 if test "x$ac_pt_PCAP_CONFIG" = x; then
7241 PCAP_CONFIG=""
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7246 whose name does not start with the host triplet. If you think this
7247 configuration is useful to you, please write to autoconf@gnu.org." >&5
7248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7249 whose name does not start with the host triplet. If you think this
7250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7254 fi
7255 else
7256 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7257 fi
7258
7259 if test -n "$PCAP_CONFIG" ; then
7260 #
7261 # Found - use it to get the include flags for
7262 # libpcap and the flags to link with libpcap.
7263 #
7264 # Please read section 11.6 "Shell Substitutions"
7265 # in the autoconf manual before doing anything
7266 # to this that involves quoting. Especially note
7267 # the statement "There is just no portable way to use
7268 # double-quoted strings inside double-quoted back-quoted
7269 # expressions (pfew!)."
7270 #
7271 cflags=`"$PCAP_CONFIG" --cflags`
7272 V_INCLS="$cflags $V_INCLS"
7273 libpcap=`"$PCAP_CONFIG" --libs`
7274 else
7275 #
7276 # Not found; look for pcap.
7277 #
7278 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7279 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7280 if test "${ac_cv_lib_pcap_main+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 ac_check_lib_save_LIBS=$LIBS
7284 LIBS="-lpcap $LIBS"
7285 cat >conftest.$ac_ext <<_ACEOF
7286 /* confdefs.h. */
7287 _ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291
7292
7293 int
7294 main ()
7295 {
7296 return main ();
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (ac_try="$ac_link"
7303 case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306 esac
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_link") 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest$ac_exeext &&
7318 $as_test_x conftest$ac_exeext; then
7319 ac_cv_lib_pcap_main=yes
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ac_cv_lib_pcap_main=no
7325 fi
7326
7327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7328 conftest$ac_exeext conftest.$ac_ext
7329 LIBS=$ac_check_lib_save_LIBS
7330 fi
7331 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7332 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7333 if test $ac_cv_lib_pcap_main = yes; then
7334 libpcap="-lpcap"
7335 fi
7336
7337 if test $libpcap = FAIL ; then
7338 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7339 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7340 { (exit 1); exit 1; }; }
7341 fi
7342 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7343 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7344 if test \( ! -r /usr/local/include/pcap.h \) -a \
7345 \( ! -r /usr/include/pcap.h \); then
7346 if test -r /usr/local/include/pcap/pcap.h; then
7347 d="/usr/local/include/pcap"
7348 elif test -r /usr/include/pcap/pcap.h; then
7349 d="/usr/include/pcap"
7350 fi
7351 fi
7352 if test -z "$d" ; then
7353 { echo "$as_me:$LINENO: result: not found" >&5
7354 echo "${ECHO_T}not found" >&6; }
7355 else
7356 V_INCLS="-I$d $V_INCLS"
7357 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7358 echo "${ECHO_T}found -- -I$d added" >&6; }
7359 fi
7360 fi
7361 else
7362 V_PCAPDEP=$libpcap
7363 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7364 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7365 if test -r $d/pcap.h; then
7366 V_INCLS="-I$d $V_INCLS"
7367 elif test -r $places/pcap.h; then
7368 V_INCLS="-I$places $V_INCLS"
7369 else
7370 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7371 echo "$as_me: error: cannot find pcap.h" >&2;}
7372 { (exit see INSTALL); exit see INSTALL; }; }
7373 fi
7374 { echo "$as_me:$LINENO: result: $libpcap" >&5
7375 echo "${ECHO_T}$libpcap" >&6; }
7376 # Extract the first word of "pcap-config", so it can be a program name with args.
7377 set dummy pcap-config; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 case $PCAP_CONFIG in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7386 ;;
7387 *)
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $d
7390 do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403 ;;
7404 esac
7405 fi
7406 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7407 if test -n "$PCAP_CONFIG"; then
7408 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7409 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7410 else
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7413 fi
7414
7415
7416 if test -n "$PCAP_CONFIG"; then
7417 #
7418 # The libpcap directory has a pcap-config script.
7419 # Use it to get any additioal libraries needed
7420 # to link with the libpcap archive library in
7421 # that directory.
7422 #
7423 # Please read section 11.6 "Shell Substitutions"
7424 # in the autoconf manual before doing anything
7425 # to this that involves quoting. Especially note
7426 # the statement "There is just no portable way to use
7427 # double-quoted strings inside double-quoted back-quoted
7428 # expressions (pfew!)."
7429 #
7430 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7431 libpcap="$libpcap $additional_libs"
7432 fi
7433 fi
7434 LIBS="$libpcap $LIBS"
7435 if ! test -n "$PCAP_CONFIG" ; then
7436 #
7437 # We don't have pcap-config; find out any additional link flags
7438 # we need. (If we have pcap-config, we assume it tells us what
7439 # we need.)
7440 #
7441 case "$host_os" in
7442
7443 aix*)
7444 #
7445 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7446 # present, as we use the STREAMS routines.
7447 #
7448 # (XXX - true only if we're linking with a static libpcap?)
7449 #
7450 pseexe="/lib/pse.exp"
7451 { echo "$as_me:$LINENO: checking for $pseexe" >&5
7452 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7453 if test -f $pseexe ; then
7454 { echo "$as_me:$LINENO: result: yes" >&5
7455 echo "${ECHO_T}yes" >&6; }
7456 LIBS="$LIBS -I:$pseexe"
7457 fi
7458
7459 #
7460 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7461 # we use them to load the BPF module.
7462 #
7463 # (XXX - true only if we're linking with a static libpcap?)
7464 #
7465 LIBS="$LIBS -lodm -lcfg"
7466 ;;
7467 esac
7468 fi
7469
7470 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7471 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7472 if test "${ac_cv_func_pcap_loop+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7483 #define pcap_loop innocuous_pcap_loop
7484
7485 /* System header to define __stub macros and hopefully few prototypes,
7486 which can conflict with char pcap_loop (); below.
7487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7488 <limits.h> exists even on freestanding compilers. */
7489
7490 #ifdef __STDC__
7491 # include <limits.h>
7492 #else
7493 # include <assert.h>
7494 #endif
7495
7496 #undef pcap_loop
7497
7498 /* Override any GCC internal prototype to avoid an error.
7499 Use char because int might match the return type of a GCC
7500 builtin and then its argument prototype would still apply. */
7501 #ifdef __cplusplus
7502 extern "C"
7503 #endif
7504 char pcap_loop ();
7505 /* The GNU C library defines this for functions which it implements
7506 to always fail with ENOSYS. Some functions are actually named
7507 something starting with __ and the normal name is an alias. */
7508 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7509 choke me
7510 #endif
7511
7512 int
7513 main ()
7514 {
7515 return pcap_loop ();
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (ac_try="$ac_link"
7522 case "(($ac_try" in
7523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7525 esac
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_link") 2>conftest.er1
7528 ac_status=$?
7529 grep -v '^ *+' conftest.er1 >conftest.err
7530 rm -f conftest.er1
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest$ac_exeext &&
7537 $as_test_x conftest$ac_exeext; then
7538 ac_cv_func_pcap_loop=yes
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_cv_func_pcap_loop=no
7544 fi
7545
7546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7547 conftest$ac_exeext conftest.$ac_ext
7548 fi
7549 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7550 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7551 if test $ac_cv_func_pcap_loop = yes; then
7552 :
7553 else
7554
7555 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7556 config.log file in your report" >&5
7557 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7558 config.log file in your report" >&2;}
7559 { (exit 1); exit 1; }; }
7560
7561 fi
7562
7563
7564 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7565 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7566 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h. */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7577 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7578
7579 /* System header to define __stub macros and hopefully few prototypes,
7580 which can conflict with char pcap_list_datalinks (); below.
7581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7582 <limits.h> exists even on freestanding compilers. */
7583
7584 #ifdef __STDC__
7585 # include <limits.h>
7586 #else
7587 # include <assert.h>
7588 #endif
7589
7590 #undef pcap_list_datalinks
7591
7592 /* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7595 #ifdef __cplusplus
7596 extern "C"
7597 #endif
7598 char pcap_list_datalinks ();
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7603 choke me
7604 #endif
7605
7606 int
7607 main ()
7608 {
7609 return pcap_list_datalinks ();
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext conftest$ac_exeext
7615 if { (ac_try="$ac_link"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_link") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest$ac_exeext &&
7631 $as_test_x conftest$ac_exeext; then
7632 ac_cv_func_pcap_list_datalinks=yes
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637 ac_cv_func_pcap_list_datalinks=no
7638 fi
7639
7640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7641 conftest$ac_exeext conftest.$ac_ext
7642 fi
7643 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7644 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7645 if test $ac_cv_func_pcap_list_datalinks = yes; then
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_PCAP_LIST_DATALINKS 1
7648 _ACEOF
7649
7650 else
7651
7652 case " $LIBOBJS " in
7653 *" datalinks.$ac_objext "* ) ;;
7654 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7655 ;;
7656 esac
7657
7658
7659 fi
7660
7661 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7662 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7663 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h. */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7674 #define pcap_set_datalink innocuous_pcap_set_datalink
7675
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char pcap_set_datalink (); below.
7678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7679 <limits.h> exists even on freestanding compilers. */
7680
7681 #ifdef __STDC__
7682 # include <limits.h>
7683 #else
7684 # include <assert.h>
7685 #endif
7686
7687 #undef pcap_set_datalink
7688
7689 /* Override any GCC internal prototype to avoid an error.
7690 Use char because int might match the return type of a GCC
7691 builtin and then its argument prototype would still apply. */
7692 #ifdef __cplusplus
7693 extern "C"
7694 #endif
7695 char pcap_set_datalink ();
7696 /* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7700 choke me
7701 #endif
7702
7703 int
7704 main ()
7705 {
7706 return pcap_set_datalink ();
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext conftest$ac_exeext
7712 if { (ac_try="$ac_link"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_link") 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest$ac_exeext &&
7728 $as_test_x conftest$ac_exeext; then
7729 ac_cv_func_pcap_set_datalink=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_func_pcap_set_datalink=no
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738 conftest$ac_exeext conftest.$ac_ext
7739 fi
7740 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7741 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7742 if test $ac_cv_func_pcap_set_datalink = yes; then
7743 cat >>confdefs.h <<\_ACEOF
7744 #define HAVE_PCAP_SET_DATALINK 1
7745 _ACEOF
7746
7747 fi
7748
7749 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7750 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7751 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7762 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7763
7764 /* System header to define __stub macros and hopefully few prototypes,
7765 which can conflict with char pcap_datalink_name_to_val (); below.
7766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7767 <limits.h> exists even on freestanding compilers. */
7768
7769 #ifdef __STDC__
7770 # include <limits.h>
7771 #else
7772 # include <assert.h>
7773 #endif
7774
7775 #undef pcap_datalink_name_to_val
7776
7777 /* Override any GCC internal prototype to avoid an error.
7778 Use char because int might match the return type of a GCC
7779 builtin and then its argument prototype would still apply. */
7780 #ifdef __cplusplus
7781 extern "C"
7782 #endif
7783 char pcap_datalink_name_to_val ();
7784 /* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7788 choke me
7789 #endif
7790
7791 int
7792 main ()
7793 {
7794 return pcap_datalink_name_to_val ();
7795 ;
7796 return 0;
7797 }
7798 _ACEOF
7799 rm -f conftest.$ac_objext conftest$ac_exeext
7800 if { (ac_try="$ac_link"
7801 case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_link") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest$ac_exeext &&
7816 $as_test_x conftest$ac_exeext; then
7817 ac_cv_func_pcap_datalink_name_to_val=yes
7818 else
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 ac_cv_func_pcap_datalink_name_to_val=no
7823 fi
7824
7825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7826 conftest$ac_exeext conftest.$ac_ext
7827 fi
7828 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7829 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7830 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7831
7832 cat >>confdefs.h <<\_ACEOF
7833 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7834 _ACEOF
7835
7836 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7837 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7838 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7849 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7850
7851 /* System header to define __stub macros and hopefully few prototypes,
7852 which can conflict with char pcap_datalink_val_to_description (); below.
7853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854 <limits.h> exists even on freestanding compilers. */
7855
7856 #ifdef __STDC__
7857 # include <limits.h>
7858 #else
7859 # include <assert.h>
7860 #endif
7861
7862 #undef pcap_datalink_val_to_description
7863
7864 /* Override any GCC internal prototype to avoid an error.
7865 Use char because int might match the return type of a GCC
7866 builtin and then its argument prototype would still apply. */
7867 #ifdef __cplusplus
7868 extern "C"
7869 #endif
7870 char pcap_datalink_val_to_description ();
7871 /* The GNU C library defines this for functions which it implements
7872 to always fail with ENOSYS. Some functions are actually named
7873 something starting with __ and the normal name is an alias. */
7874 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7875 choke me
7876 #endif
7877
7878 int
7879 main ()
7880 {
7881 return pcap_datalink_val_to_description ();
7882 ;
7883 return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (ac_try="$ac_link"
7888 case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_link") 2>conftest.er1
7894 ac_status=$?
7895 grep -v '^ *+' conftest.er1 >conftest.err
7896 rm -f conftest.er1
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } && {
7900 test -z "$ac_c_werror_flag" ||
7901 test ! -s conftest.err
7902 } && test -s conftest$ac_exeext &&
7903 $as_test_x conftest$ac_exeext; then
7904 ac_cv_func_pcap_datalink_val_to_description=yes
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 ac_cv_func_pcap_datalink_val_to_description=no
7910 fi
7911
7912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7913 conftest$ac_exeext conftest.$ac_ext
7914 fi
7915 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7916 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7917 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7918 cat >>confdefs.h <<\_ACEOF
7919 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7920 _ACEOF
7921
7922 else
7923
7924 case " $LIBOBJS " in
7925 *" dlnames.$ac_objext "* ) ;;
7926 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7927 ;;
7928 esac
7929
7930
7931 fi
7932
7933
7934 else
7935
7936 case " $LIBOBJS " in
7937 *" dlnames.$ac_objext "* ) ;;
7938 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7939 ;;
7940 esac
7941
7942
7943 fi
7944
7945
7946
7947 for ac_func in pcap_breakloop
7948 do
7949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7963 #define $ac_func innocuous_$ac_func
7964
7965 /* System header to define __stub macros and hopefully few prototypes,
7966 which can conflict with char $ac_func (); below.
7967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7968 <limits.h> exists even on freestanding compilers. */
7969
7970 #ifdef __STDC__
7971 # include <limits.h>
7972 #else
7973 # include <assert.h>
7974 #endif
7975
7976 #undef $ac_func
7977
7978 /* Override any GCC internal prototype to avoid an error.
7979 Use char because int might match the return type of a GCC
7980 builtin and then its argument prototype would still apply. */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 char $ac_func ();
7985 /* The GNU C library defines this for functions which it implements
7986 to always fail with ENOSYS. Some functions are actually named
7987 something starting with __ and the normal name is an alias. */
7988 #if defined __stub_$ac_func || defined __stub___$ac_func
7989 choke me
7990 #endif
7991
7992 int
7993 main ()
7994 {
7995 return $ac_func ();
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
8018 eval "$as_ac_var=yes"
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 eval "$as_ac_var=no"
8024 fi
8025
8026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027 conftest$ac_exeext conftest.$ac_ext
8028 fi
8029 ac_res=`eval echo '${'$as_ac_var'}'`
8030 { echo "$as_me:$LINENO: result: $ac_res" >&5
8031 echo "${ECHO_T}$ac_res" >&6; }
8032 if test `eval echo '${'$as_ac_var'}'` = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8035 _ACEOF
8036
8037 fi
8038 done
8039
8040
8041 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8042 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8043 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8054 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8055
8056 /* System header to define __stub macros and hopefully few prototypes,
8057 which can conflict with char pcap_dump_ftell (); below.
8058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8059 <limits.h> exists even on freestanding compilers. */
8060
8061 #ifdef __STDC__
8062 # include <limits.h>
8063 #else
8064 # include <assert.h>
8065 #endif
8066
8067 #undef pcap_dump_ftell
8068
8069 /* Override any GCC internal prototype to avoid an error.
8070 Use char because int might match the return type of a GCC
8071 builtin and then its argument prototype would still apply. */
8072 #ifdef __cplusplus
8073 extern "C"
8074 #endif
8075 char pcap_dump_ftell ();
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8080 choke me
8081 #endif
8082
8083 int
8084 main ()
8085 {
8086 return pcap_dump_ftell ();
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext conftest$ac_exeext
8092 if { (ac_try="$ac_link"
8093 case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_link") 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest$ac_exeext &&
8108 $as_test_x conftest$ac_exeext; then
8109 ac_cv_func_pcap_dump_ftell=yes
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114 ac_cv_func_pcap_dump_ftell=no
8115 fi
8116
8117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118 conftest$ac_exeext conftest.$ac_ext
8119 fi
8120 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8121 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8122 if test $ac_cv_func_pcap_dump_ftell = yes; then
8123 cat >>confdefs.h <<\_ACEOF
8124 #define HAVE_PCAP_DUMP_FTELL 1
8125 _ACEOF
8126
8127 else
8128
8129 case " $LIBOBJS " in
8130 *" pcap_dump_ftell.$ac_objext "* ) ;;
8131 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8132 ;;
8133 esac
8134
8135
8136 fi
8137
8138
8139
8140 #
8141 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8142 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8143 #
8144 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8145 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8146 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8147 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8148 # it does not ship with a libc symbol "inet_ntop()", it ships with
8149 # "_inet_ntop()", and has a #define macro in one of the system headers
8150 # to rename it.
8151 #
8152 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8153 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 #include <sys/types.h>
8161 #include <sys/socket.h>
8162 #include <netinet/in.h>
8163 #include <arpa/inet.h>
8164 int
8165 main ()
8166 {
8167 char src[4], dst[128];
8168 inet_ntop(AF_INET, src, dst, sizeof(dst));
8169 ;
8170 return 0;
8171 }
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (ac_try="$ac_link"
8175 case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_link") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest$ac_exeext &&
8190 $as_test_x conftest$ac_exeext; then
8191 { echo "$as_me:$LINENO: result: yes" >&5
8192 echo "${ECHO_T}yes" >&6; }
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8199 case " $LIBOBJS " in
8200 *" inet_ntop.$ac_objext "* ) ;;
8201 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8202 ;;
8203 esac
8204
8205 fi
8206
8207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8208 conftest$ac_exeext conftest.$ac_ext
8209 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8210 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 #include <sys/types.h>
8218 #include <sys/socket.h>
8219 #include <netinet/in.h>
8220 #include <arpa/inet.h>
8221 int
8222 main ()
8223 {
8224 char src[128], dst[4];
8225 inet_pton(AF_INET, src, dst);
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (ac_try="$ac_link"
8232 case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_link") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest$ac_exeext &&
8247 $as_test_x conftest$ac_exeext; then
8248 { echo "$as_me:$LINENO: result: yes" >&5
8249 echo "${ECHO_T}yes" >&6; }
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 { echo "$as_me:$LINENO: result: no" >&5
8255 echo "${ECHO_T}no" >&6; }
8256 case " $LIBOBJS " in
8257 *" inet_pton.$ac_objext "* ) ;;
8258 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8259 ;;
8260 esac
8261
8262 fi
8263
8264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8265 conftest$ac_exeext conftest.$ac_ext
8266 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8267 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 #include <sys/types.h>
8275 #include <netinet/in.h>
8276 #include <arpa/inet.h>
8277 int
8278 main ()
8279 {
8280 char src[128];
8281 struct in_addr dst;
8282 inet_aton(src, &dst);
8283 ;
8284 return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (ac_try="$ac_link"
8289 case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_link") 2>conftest.er1
8295 ac_status=$?
8296 grep -v '^ *+' conftest.er1 >conftest.err
8297 rm -f conftest.er1
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest$ac_exeext &&
8304 $as_test_x conftest$ac_exeext; then
8305 { echo "$as_me:$LINENO: result: yes" >&5
8306 echo "${ECHO_T}yes" >&6; }
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 { echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6; }
8313 case " $LIBOBJS " in
8314 *" inet_aton.$ac_objext "* ) ;;
8315 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8316 ;;
8317 esac
8318
8319 fi
8320
8321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8322 conftest$ac_exeext conftest.$ac_ext
8323
8324 #
8325 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8326 #
8327 # You are in a twisty little maze of UN*Xes, all different.
8328 # Some might not have ether_ntohost().
8329 # Some might have it, but not declare it in any header file.
8330 # Some might have it, but declare it in <netinet/if_ether.h>.
8331 # Some might have it, but declare it in <netinet/ether.h>
8332 # (And some might have it but document it as something declared in
8333 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8334 #
8335 # Before you is a C compiler.
8336 #
8337
8338 for ac_func in ether_ntohost
8339 do
8340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8354 #define $ac_func innocuous_$ac_func
8355
8356 /* System header to define __stub macros and hopefully few prototypes,
8357 which can conflict with char $ac_func (); below.
8358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8359 <limits.h> exists even on freestanding compilers. */
8360
8361 #ifdef __STDC__
8362 # include <limits.h>
8363 #else
8364 # include <assert.h>
8365 #endif
8366
8367 #undef $ac_func
8368
8369 /* Override any GCC internal prototype to avoid an error.
8370 Use char because int might match the return type of a GCC
8371 builtin and then its argument prototype would still apply. */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 char $ac_func ();
8376 /* The GNU C library defines this for functions which it implements
8377 to always fail with ENOSYS. Some functions are actually named
8378 something starting with __ and the normal name is an alias. */
8379 #if defined __stub_$ac_func || defined __stub___$ac_func
8380 choke me
8381 #endif
8382
8383 int
8384 main ()
8385 {
8386 return $ac_func ();
8387 ;
8388 return 0;
8389 }
8390 _ACEOF
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (ac_try="$ac_link"
8393 case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_link") 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } && {
8405 test -z "$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8407 } && test -s conftest$ac_exeext &&
8408 $as_test_x conftest$ac_exeext; then
8409 eval "$as_ac_var=yes"
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414 eval "$as_ac_var=no"
8415 fi
8416
8417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8418 conftest$ac_exeext conftest.$ac_ext
8419 fi
8420 ac_res=`eval echo '${'$as_ac_var'}'`
8421 { echo "$as_me:$LINENO: result: $ac_res" >&5
8422 echo "${ECHO_T}$ac_res" >&6; }
8423 if test `eval echo '${'$as_ac_var'}'` = yes; then
8424 cat >>confdefs.h <<_ACEOF
8425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8426 _ACEOF
8427
8428 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8429 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8430 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433
8434 if test "$cross_compiling" = yes; then
8435 ac_cv_buggy_ether_ntohost="not while cross-compiling"
8436 else
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h. */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8443
8444 #include <netdb.h>
8445 #include <sys/types.h>
8446 #include <sys/param.h>
8447 #include <sys/socket.h>
8448
8449 int
8450 main(int argc, char **argv)
8451 {
8452 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8453 char name[MAXHOSTNAMELEN];
8454
8455 ether_ntohost(name, (struct ether_addr *)ea);
8456 exit(0);
8457 }
8458
8459 _ACEOF
8460 rm -f conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8462 case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_link") 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8471 { (case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_try") 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_buggy_ether_ntohost=no
8481 else
8482 echo "$as_me: program exited with status $ac_status" >&5
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 ( exit $ac_status )
8487 ac_cv_buggy_ether_ntohost=yes
8488 fi
8489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8490 fi
8491
8492
8493 fi
8494 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8495 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8496 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8497 cat >>confdefs.h <<\_ACEOF
8498 #define USE_ETHER_NTOHOST 1
8499 _ACEOF
8500
8501 fi
8502
8503 fi
8504 done
8505
8506 if test "$ac_cv_func_ether_ntohost" = yes -a \
8507 "$ac_cv_buggy_ether_ntohost" = "no"; then
8508 #
8509 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
8510 #
8511 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8512 #
8513 # Yes. Does it declare ether_ntohost()?
8514 #
8515 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8516 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8517 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526
8527 #include <sys/types.h>
8528 #include <sys/socket.h>
8529 #include <netinet/in.h>
8530 #include <arpa/inet.h>
8531 struct mbuf;
8532 struct rtentry;
8533 #include <net/if.h>
8534 #include <netinet/if_ether.h>
8535
8536
8537 int
8538 main ()
8539 {
8540 #ifndef ether_ntohost
8541 (void) ether_ntohost;
8542 #endif
8543
8544 ;
8545 return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext
8549 if { (ac_try="$ac_compile"
8550 case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_compile") 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest.$ac_objext; then
8565 ac_cv_have_decl_ether_ntohost=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570 ac_cv_have_decl_ether_ntohost=no
8571 fi
8572
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 fi
8575 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8576 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8577 if test $ac_cv_have_decl_ether_ntohost = yes; then
8578
8579
8580 cat >>confdefs.h <<\_ACEOF
8581 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8582 _ACEOF
8583
8584
8585 fi
8586
8587 fi
8588 #
8589 # Did that succeed?
8590 #
8591 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8592 #
8593 # No, how about <netinet/ether.h>, as on Linux?
8594 #
8595
8596 for ac_header in netinet/ether.h
8597 do
8598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 fi
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606 { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8608 else
8609 # Is the header compilable?
8610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 $ac_includes_default
8619 #include <$ac_header>
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (ac_try="$ac_compile"
8623 case "(($ac_try" in
8624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_compile") 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest.$ac_objext; then
8638 ac_header_compiler=yes
8639 else
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 ac_header_compiler=no
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8648 echo "${ECHO_T}$ac_header_compiler" >&6; }
8649
8650 # Is the header present?
8651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 #include <$ac_header>
8660 _ACEOF
8661 if { (ac_try="$ac_cpp conftest.$ac_ext"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } >/dev/null && {
8674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 }; then
8677 ac_header_preproc=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_header_preproc=no
8683 fi
8684
8685 rm -f conftest.err conftest.$ac_ext
8686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8687 echo "${ECHO_T}$ac_header_preproc" >&6; }
8688
8689 # So? What about this header?
8690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8691 yes:no: )
8692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8696 ac_header_preproc=yes
8697 ;;
8698 no:yes:* )
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8711
8712 ;;
8713 esac
8714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 eval "$as_ac_Header=\$ac_header_preproc"
8720 fi
8721 ac_res=`eval echo '${'$as_ac_Header'}'`
8722 { echo "$as_me:$LINENO: result: $ac_res" >&5
8723 echo "${ECHO_T}$ac_res" >&6; }
8724
8725 fi
8726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8727 cat >>confdefs.h <<_ACEOF
8728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8729 _ACEOF
8730
8731 fi
8732
8733 done
8734
8735 if test "$ac_cv_header_netinet_ether_h" = yes; then
8736 #
8737 # We have it - does it declare ether_ntohost()?
8738 # Unset ac_cv_have_decl_ether_ntohost so we don't
8739 # treat the previous failure as a cached value and
8740 # suppress the next test.
8741 #
8742 unset ac_cv_have_decl_ether_ntohost
8743 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8744 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8745 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754
8755 #include <netinet/ether.h>
8756
8757
8758 int
8759 main ()
8760 {
8761 #ifndef ether_ntohost
8762 (void) ether_ntohost;
8763 #endif
8764
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (ac_try="$ac_compile"
8771 case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_compile") 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && {
8783 test -z "$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8785 } && test -s conftest.$ac_objext; then
8786 ac_cv_have_decl_ether_ntohost=yes
8787 else
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ac_cv_have_decl_ether_ntohost=no
8792 fi
8793
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 fi
8796 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8797 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8798 if test $ac_cv_have_decl_ether_ntohost = yes; then
8799
8800
8801 cat >>confdefs.h <<\_ACEOF
8802 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8803 _ACEOF
8804
8805
8806 fi
8807
8808 fi
8809 fi
8810 #
8811 # Is ether_ntohost() declared?
8812 #
8813 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8814 #
8815 # No, we'll have to declare it ourselves.
8816 # Do we have "struct ether_addr"?
8817 #
8818 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8819 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8820 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829
8830 #include <sys/types.h>
8831 #include <sys/socket.h>
8832 #include <netinet/in.h>
8833 #include <arpa/inet.h>
8834 struct mbuf;
8835 struct rtentry;
8836 #include <net/if.h>
8837 #include <netinet/if_ether.h>
8838
8839
8840 typedef struct ether_addr ac__type_new_;
8841 int
8842 main ()
8843 {
8844 if ((ac__type_new_ *) 0)
8845 return 0;
8846 if (sizeof (ac__type_new_))
8847 return 0;
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext
8853 if { (ac_try="$ac_compile"
8854 case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_compile") 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } && {
8866 test -z "$ac_c_werror_flag" ||
8867 test ! -s conftest.err
8868 } && test -s conftest.$ac_objext; then
8869 ac_cv_type_struct_ether_addr=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ac_cv_type_struct_ether_addr=no
8875 fi
8876
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8880 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8881 if test $ac_cv_type_struct_ether_addr = yes; then
8882
8883 cat >>confdefs.h <<_ACEOF
8884 #define HAVE_STRUCT_ETHER_ADDR 1
8885 _ACEOF
8886
8887
8888 fi
8889
8890
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_DECL_ETHER_NTOHOST 0
8893 _ACEOF
8894
8895 else
8896
8897 cat >>confdefs.h <<\_ACEOF
8898 #define HAVE_DECL_ETHER_NTOHOST 1
8899 _ACEOF
8900
8901 fi
8902 fi
8903
8904 # libdlpi is needed for Solaris 11 and later.
8905 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8906 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8907 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-ldlpi -L/lib $LIBS"
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918
8919 /* Override any GCC internal prototype to avoid an error.
8920 Use char because int might match the return type of a GCC
8921 builtin and then its argument prototype would still apply. */
8922 #ifdef __cplusplus
8923 extern "C"
8924 #endif
8925 char dlpi_walk ();
8926 int
8927 main ()
8928 {
8929 return dlpi_walk ();
8930 ;
8931 return 0;
8932 }
8933 _ACEOF
8934 rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (ac_try="$ac_link"
8936 case "(($ac_try" in
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_link") 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest$ac_exeext &&
8951 $as_test_x conftest$ac_exeext; then
8952 ac_cv_lib_dlpi_dlpi_walk=yes
8953 else
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 ac_cv_lib_dlpi_dlpi_walk=no
8958 fi
8959
8960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961 conftest$ac_exeext conftest.$ac_ext
8962 LIBS=$ac_check_lib_save_LIBS
8963 fi
8964 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8965 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8966 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8967 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8968 fi
8969
8970
8971
8972 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8973 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8974 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h. */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8983
8984 # include <sys/types.h>
8985 # include <sys/socket.h>
8986 int
8987 main ()
8988 {
8989 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8990 ;
8991 return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext
8995 if { (ac_try="$ac_compile"
8996 case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_compile") 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && {
9008 test -z "$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 } && test -s conftest.$ac_objext; then
9011 ac_cv_sockaddr_has_sa_len=yes
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9015
9016 ac_cv_sockaddr_has_sa_len=no
9017 fi
9018
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 fi
9021
9022 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9023 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9024 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9025 cat >>confdefs.h <<\_ACEOF
9026 #define HAVE_SOCKADDR_SA_LEN 1
9027 _ACEOF
9028
9029 fi
9030
9031 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9032 missing_includes=yes
9033 fi
9034
9035 #
9036 # Do we have the new open API? Check for pcap_create, and assume that,
9037 # if we do, we also have pcap_activate() and the other new routines
9038 # introduced in libpcap 1.0.0.
9039 #
9040
9041 for ac_func in pcap_create
9042 do
9043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9057 #define $ac_func innocuous_$ac_func
9058
9059 /* System header to define __stub macros and hopefully few prototypes,
9060 which can conflict with char $ac_func (); below.
9061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9062 <limits.h> exists even on freestanding compilers. */
9063
9064 #ifdef __STDC__
9065 # include <limits.h>
9066 #else
9067 # include <assert.h>
9068 #endif
9069
9070 #undef $ac_func
9071
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 char $ac_func ();
9079 /* The GNU C library defines this for functions which it implements
9080 to always fail with ENOSYS. Some functions are actually named
9081 something starting with __ and the normal name is an alias. */
9082 #if defined __stub_$ac_func || defined __stub___$ac_func
9083 choke me
9084 #endif
9085
9086 int
9087 main ()
9088 {
9089 return $ac_func ();
9090 ;
9091 return 0;
9092 }
9093 _ACEOF
9094 rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (ac_try="$ac_link"
9096 case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_link") 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && {
9108 test -z "$ac_c_werror_flag" ||
9109 test ! -s conftest.err
9110 } && test -s conftest$ac_exeext &&
9111 $as_test_x conftest$ac_exeext; then
9112 eval "$as_ac_var=yes"
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9116
9117 eval "$as_ac_var=no"
9118 fi
9119
9120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9121 conftest$ac_exeext conftest.$ac_ext
9122 fi
9123 ac_res=`eval echo '${'$as_ac_var'}'`
9124 { echo "$as_me:$LINENO: result: $ac_res" >&5
9125 echo "${ECHO_T}$ac_res" >&6; }
9126 if test `eval echo '${'$as_ac_var'}'` = yes; then
9127 cat >>confdefs.h <<_ACEOF
9128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9129 _ACEOF
9130
9131 fi
9132 done
9133
9134 if test $ac_cv_func_pcap_create = "yes" ; then
9135 #
9136 # OK, do we have pcap_set_tstamp_type? If so, assume we have
9137 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9138 #
9139
9140 for ac_func in pcap_set_tstamp_type
9141 do
9142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9156 #define $ac_func innocuous_$ac_func
9157
9158 /* System header to define __stub macros and hopefully few prototypes,
9159 which can conflict with char $ac_func (); below.
9160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9161 <limits.h> exists even on freestanding compilers. */
9162
9163 #ifdef __STDC__
9164 # include <limits.h>
9165 #else
9166 # include <assert.h>
9167 #endif
9168
9169 #undef $ac_func
9170
9171 /* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9174 #ifdef __cplusplus
9175 extern "C"
9176 #endif
9177 char $ac_func ();
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined __stub_$ac_func || defined __stub___$ac_func
9182 choke me
9183 #endif
9184
9185 int
9186 main ()
9187 {
9188 return $ac_func ();
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (ac_try="$ac_link"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_link") 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest$ac_exeext &&
9210 $as_test_x conftest$ac_exeext; then
9211 eval "$as_ac_var=yes"
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 eval "$as_ac_var=no"
9217 fi
9218
9219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9220 conftest$ac_exeext conftest.$ac_ext
9221 fi
9222 ac_res=`eval echo '${'$as_ac_var'}'`
9223 { echo "$as_me:$LINENO: result: $ac_res" >&5
9224 echo "${ECHO_T}$ac_res" >&6; }
9225 if test `eval echo '${'$as_ac_var'}'` = yes; then
9226 cat >>confdefs.h <<_ACEOF
9227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9228 _ACEOF
9229
9230 fi
9231 done
9232
9233 fi
9234
9235
9236
9237
9238 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9239 do
9240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 else
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9254 #define $ac_func innocuous_$ac_func
9255
9256 /* System header to define __stub macros and hopefully few prototypes,
9257 which can conflict with char $ac_func (); below.
9258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9259 <limits.h> exists even on freestanding compilers. */
9260
9261 #ifdef __STDC__
9262 # include <limits.h>
9263 #else
9264 # include <assert.h>
9265 #endif
9266
9267 #undef $ac_func
9268
9269 /* Override any GCC internal prototype to avoid an error.
9270 Use char because int might match the return type of a GCC
9271 builtin and then its argument prototype would still apply. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 #endif
9275 char $ac_func ();
9276 /* The GNU C library defines this for functions which it implements
9277 to always fail with ENOSYS. Some functions are actually named
9278 something starting with __ and the normal name is an alias. */
9279 #if defined __stub_$ac_func || defined __stub___$ac_func
9280 choke me
9281 #endif
9282
9283 int
9284 main ()
9285 {
9286 return $ac_func ();
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (ac_try="$ac_link"
9293 case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_link") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && {
9305 test -z "$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 } && test -s conftest$ac_exeext &&
9308 $as_test_x conftest$ac_exeext; then
9309 eval "$as_ac_var=yes"
9310 else
9311 echo "$as_me: failed program was:" >&5
9312 sed 's/^/| /' conftest.$ac_ext >&5
9313
9314 eval "$as_ac_var=no"
9315 fi
9316
9317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9318 conftest$ac_exeext conftest.$ac_ext
9319 fi
9320 ac_res=`eval echo '${'$as_ac_var'}'`
9321 { echo "$as_me:$LINENO: result: $ac_res" >&5
9322 echo "${ECHO_T}$ac_res" >&6; }
9323 if test `eval echo '${'$as_ac_var'}'` = yes; then
9324 cat >>confdefs.h <<_ACEOF
9325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9326 _ACEOF
9327
9328 fi
9329 done
9330
9331 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9332 savedppflags="$CPPLAGS"
9333 CPPFLAGS="$CPPFLAGS $V_INCLS"
9334 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9335 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9336 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 #include <pcap.h>
9346
9347 typedef pcap_if_t ac__type_new_;
9348 int
9349 main ()
9350 {
9351 if ((ac__type_new_ *) 0)
9352 return 0;
9353 if (sizeof (ac__type_new_))
9354 return 0;
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_cv_type_pcap_if_t=yes
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ac_cv_type_pcap_if_t=no
9382 fi
9383
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 fi
9386 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9387 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9388 if test $ac_cv_type_pcap_if_t = yes; then
9389
9390 cat >>confdefs.h <<_ACEOF
9391 #define HAVE_PCAP_IF_T 1
9392 _ACEOF
9393
9394
9395 fi
9396
9397 CPPFLAGS="$savedcppflags"
9398 fi
9399
9400 if test $ac_cv_func_pcap_lib_version = "no" ; then
9401 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9402 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409
9410 int
9411 main ()
9412 {
9413
9414 extern char pcap_version[];
9415
9416 return (int)pcap_version;
9417
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440 ac_lbl_cv_pcap_version_defined=yes
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 ac_lbl_cv_pcap_version_defined=no
9446 fi
9447
9448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9449 conftest$ac_exeext conftest.$ac_ext
9450 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9451 { echo "$as_me:$LINENO: result: yes" >&5
9452 echo "${ECHO_T}yes" >&6; }
9453 cat >>confdefs.h <<\_ACEOF
9454 #define HAVE_PCAP_VERSION 1
9455 _ACEOF
9456
9457 else
9458 { echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6; }
9460 fi
9461 fi
9462 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9463 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470
9471 int
9472 main ()
9473 {
9474
9475 extern int pcap_debug;
9476
9477 return pcap_debug;
9478
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (ac_try="$ac_link"
9485 case "(($ac_try" in
9486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9488 esac
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_link") 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && {
9497 test -z "$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9499 } && test -s conftest$ac_exeext &&
9500 $as_test_x conftest$ac_exeext; then
9501 ac_lbl_cv_pcap_debug_defined=yes
9502 else
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_lbl_cv_pcap_debug_defined=no
9507 fi
9508
9509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9510 conftest$ac_exeext conftest.$ac_ext
9511 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9512 { echo "$as_me:$LINENO: result: yes" >&5
9513 echo "${ECHO_T}yes" >&6; }
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_PCAP_DEBUG 1
9516 _ACEOF
9517
9518 else
9519 { echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6; }
9521 #
9522 # OK, what about "yydebug"?
9523 #
9524 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9525 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532
9533 int
9534 main ()
9535 {
9536
9537 extern int yydebug;
9538
9539 return yydebug;
9540
9541 ;
9542 return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9547 case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_c_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest$ac_exeext &&
9562 $as_test_x conftest$ac_exeext; then
9563 ac_lbl_cv_yydebug_defined=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_lbl_cv_yydebug_defined=no
9569 fi
9570
9571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572 conftest$ac_exeext conftest.$ac_ext
9573 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9574 { echo "$as_me:$LINENO: result: yes" >&5
9575 echo "${ECHO_T}yes" >&6; }
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_YYDEBUG 1
9578 _ACEOF
9579
9580 else
9581 { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9583 fi
9584 fi
9585
9586 for ac_func in bpf_dump
9587 do
9588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9602 #define $ac_func innocuous_$ac_func
9603
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char $ac_func (); below.
9606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607 <limits.h> exists even on freestanding compilers. */
9608
9609 #ifdef __STDC__
9610 # include <limits.h>
9611 #else
9612 # include <assert.h>
9613 #endif
9614
9615 #undef $ac_func
9616
9617 /* Override any GCC internal prototype to avoid an error.
9618 Use char because int might match the return type of a GCC
9619 builtin and then its argument prototype would still apply. */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 char $ac_func ();
9624 /* The GNU C library defines this for functions which it implements
9625 to always fail with ENOSYS. Some functions are actually named
9626 something starting with __ and the normal name is an alias. */
9627 #if defined __stub_$ac_func || defined __stub___$ac_func
9628 choke me
9629 #endif
9630
9631 int
9632 main ()
9633 {
9634 return $ac_func ();
9635 ;
9636 return 0;
9637 }
9638 _ACEOF
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (ac_try="$ac_link"
9641 case "(($ac_try" in
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9644 esac
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_link") 2>conftest.er1
9647 ac_status=$?
9648 grep -v '^ *+' conftest.er1 >conftest.err
9649 rm -f conftest.er1
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } && {
9653 test -z "$ac_c_werror_flag" ||
9654 test ! -s conftest.err
9655 } && test -s conftest$ac_exeext &&
9656 $as_test_x conftest$ac_exeext; then
9657 eval "$as_ac_var=yes"
9658 else
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9661
9662 eval "$as_ac_var=no"
9663 fi
9664
9665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9666 conftest$ac_exeext conftest.$ac_ext
9667 fi
9668 ac_res=`eval echo '${'$as_ac_var'}'`
9669 { echo "$as_me:$LINENO: result: $ac_res" >&5
9670 echo "${ECHO_T}$ac_res" >&6; }
9671 if test `eval echo '${'$as_ac_var'}'` = yes; then
9672 cat >>confdefs.h <<_ACEOF
9673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9674 _ACEOF
9675
9676 else
9677 case " $LIBOBJS " in
9678 *" $ac_func.$ac_objext "* ) ;;
9679 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9680 ;;
9681 esac
9682
9683 fi
9684 done
9685
9686
9687 V_GROUP=0
9688 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9689 V_GROUP=wheel
9690 fi
9691 #
9692 # Assume V7/BSD convention for man pages (file formats in section 5,
9693 # miscellaneous info in section 7).
9694 #
9695 MAN_FILE_FORMATS=5
9696 MAN_MISC_INFO=7
9697 case "$host_os" in
9698
9699 aix*)
9700
9701 cat >>confdefs.h <<\_ACEOF
9702 #define _SUN 1
9703 _ACEOF
9704
9705 ;;
9706
9707 hpux*)
9708 #
9709 # Use System V conventions for man pages.
9710 #
9711 MAN_FILE_FORMATS=4
9712 MAN_MISC_INFO=5
9713 ;;
9714
9715 irix*)
9716 V_GROUP=sys
9717
9718 #
9719 # Use System V conventions for man pages.
9720 #
9721 MAN_FILE_FORMATS=4
9722 MAN_MISC_INFO=5
9723 ;;
9724
9725 osf*)
9726 V_GROUP=system
9727
9728 #
9729 # Use System V conventions for man pages.
9730 #
9731 MAN_FILE_FORMATS=4
9732 MAN_MISC_INFO=5
9733 ;;
9734
9735 solaris*)
9736 V_GROUP=sys
9737
9738 #
9739 # Use System V conventions for man pages.
9740 #
9741 MAN_FILE_FORMATS=4
9742 MAN_MISC_INFO=5
9743 ;;
9744 esac
9745
9746 if test -f /dev/bpf0 ; then
9747 V_GROUP=bpf
9748 fi
9749
9750
9751 for ac_header in sys/bitypes.h
9752 do
9753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 fi
9760 ac_res=`eval echo '${'$as_ac_Header'}'`
9761 { echo "$as_me:$LINENO: result: $ac_res" >&5
9762 echo "${ECHO_T}$ac_res" >&6; }
9763 else
9764 # Is the header compilable?
9765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h. */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 $ac_includes_default
9774 #include <$ac_header>
9775 _ACEOF
9776 rm -f conftest.$ac_objext
9777 if { (ac_try="$ac_compile"
9778 case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781 esac
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_compile") 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } && {
9790 test -z "$ac_c_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest.$ac_objext; then
9793 ac_header_compiler=yes
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 ac_header_compiler=no
9799 fi
9800
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9803 echo "${ECHO_T}$ac_header_compiler" >&6; }
9804
9805 # Is the header present?
9806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 #include <$ac_header>
9815 _ACEOF
9816 if { (ac_try="$ac_cpp conftest.$ac_ext"
9817 case "(($ac_try" in
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } >/dev/null && {
9829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 }; then
9832 ac_header_preproc=yes
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 ac_header_preproc=no
9838 fi
9839
9840 rm -f conftest.err conftest.$ac_ext
9841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9842 echo "${ECHO_T}$ac_header_preproc" >&6; }
9843
9844 # So? What about this header?
9845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9846 yes:no: )
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9851 ac_header_preproc=yes
9852 ;;
9853 no:yes:* )
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9866
9867 ;;
9868 esac
9869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 eval "$as_ac_Header=\$ac_header_preproc"
9875 fi
9876 ac_res=`eval echo '${'$as_ac_Header'}'`
9877 { echo "$as_me:$LINENO: result: $ac_res" >&5
9878 echo "${ECHO_T}$ac_res" >&6; }
9879
9880 fi
9881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9884 _ACEOF
9885
9886 fi
9887
9888 done
9889
9890
9891 { echo "$as_me:$LINENO: checking for int8_t" >&5
9892 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9893 if test "${ac_cv_type_int8_t+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 $ac_includes_default
9903 #ifdef HAVE_SYS_BITYPES_H
9904 #include <sys/bitypes.h>
9905 #endif
9906
9907 typedef int8_t ac__type_new_;
9908 int
9909 main ()
9910 {
9911 if ((ac__type_new_ *) 0)
9912 return 0;
9913 if (sizeof (ac__type_new_))
9914 return 0;
9915 ;
9916 return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9921 case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9936 ac_cv_type_int8_t=yes
9937 else
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 ac_cv_type_int8_t=no
9942 fi
9943
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9947 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9948 if test $ac_cv_type_int8_t = yes; then
9949 :
9950 else
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define int8_t signed char
9954 _ACEOF
9955
9956 fi
9957
9958 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9959 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9960 if test "${ac_cv_type_u_int8_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 #ifdef HAVE_SYS_BITYPES_H
9971 #include <sys/bitypes.h>
9972 #endif
9973
9974 typedef u_int8_t ac__type_new_;
9975 int
9976 main ()
9977 {
9978 if ((ac__type_new_ *) 0)
9979 return 0;
9980 if (sizeof (ac__type_new_))
9981 return 0;
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 rm -f conftest.$ac_objext
9987 if { (ac_try="$ac_compile"
9988 case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991 esac
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_compile") 2>conftest.er1
9994 ac_status=$?
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest.$ac_objext; then
10003 ac_cv_type_u_int8_t=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 ac_cv_type_u_int8_t=no
10009 fi
10010
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 fi
10013 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10014 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10015 if test $ac_cv_type_u_int8_t = yes; then
10016 :
10017 else
10018
10019 cat >>confdefs.h <<\_ACEOF
10020 #define u_int8_t unsigned char
10021 _ACEOF
10022
10023 fi
10024
10025 { echo "$as_me:$LINENO: checking for int16_t" >&5
10026 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10027 if test "${ac_cv_type_int16_t+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h. */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 $ac_includes_default
10037 typedef int16_t ac__type_new_;
10038 int
10039 main ()
10040 {
10041 if ((ac__type_new_ *) 0)
10042 return 0;
10043 if (sizeof (ac__type_new_))
10044 return 0;
10045 ;
10046 return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (ac_try="$ac_compile"
10051 case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_compile") 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest.$ac_objext; then
10066 ac_cv_type_int16_t=yes
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 ac_cv_type_int16_t=no
10072 fi
10073
10074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075 fi
10076 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10077 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10078 if test $ac_cv_type_int16_t = yes; then
10079 :
10080 else
10081
10082 cat >>confdefs.h <<\_ACEOF
10083 #define int16_t short
10084 _ACEOF
10085
10086 $ac_includes_default
10087 #ifdef HAVE_SYS_BITYPES_H
10088 #include <sys/bitypes.h>
10089 #endif
10090 fi
10091
10092 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10093 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10094 if test "${ac_cv_type_u_int16_t+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $ac_includes_default
10104 #ifdef HAVE_SYS_BITYPES_H
10105 #include <sys/bitypes.h>
10106 #endif
10107
10108 typedef u_int16_t ac__type_new_;
10109 int
10110 main ()
10111 {
10112 if ((ac__type_new_ *) 0)
10113 return 0;
10114 if (sizeof (ac__type_new_))
10115 return 0;
10116 ;
10117 return 0;
10118 }
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (ac_try="$ac_compile"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_compile") 2>conftest.er1
10128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } && {
10134 test -z "$ac_c_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest.$ac_objext; then
10137 ac_cv_type_u_int16_t=yes
10138 else
10139 echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10141
10142 ac_cv_type_u_int16_t=no
10143 fi
10144
10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146 fi
10147 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10148 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10149 if test $ac_cv_type_u_int16_t = yes; then
10150 :
10151 else
10152
10153 cat >>confdefs.h <<\_ACEOF
10154 #define u_int16_t unsigned short
10155 _ACEOF
10156
10157 fi
10158
10159 { echo "$as_me:$LINENO: checking for int32_t" >&5
10160 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10161 if test "${ac_cv_type_int32_t+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 $ac_includes_default
10171 #ifdef HAVE_SYS_BITYPES_H
10172 #include <sys/bitypes.h>
10173 #endif
10174
10175 typedef int32_t ac__type_new_;
10176 int
10177 main ()
10178 {
10179 if ((ac__type_new_ *) 0)
10180 return 0;
10181 if (sizeof (ac__type_new_))
10182 return 0;
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (ac_try="$ac_compile"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_compile") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest.$ac_objext; then
10204 ac_cv_type_int32_t=yes
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 ac_cv_type_int32_t=no
10210 fi
10211
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 fi
10214 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10215 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10216 if test $ac_cv_type_int32_t = yes; then
10217 :
10218 else
10219
10220 cat >>confdefs.h <<\_ACEOF
10221 #define int32_t int
10222 _ACEOF
10223
10224 fi
10225
10226 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10227 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10228 if test "${ac_cv_type_u_int32_t+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 $ac_includes_default
10238 #ifdef HAVE_SYS_BITYPES_H
10239 #include <sys/bitypes.h>
10240 #endif
10241
10242 typedef u_int32_t ac__type_new_;
10243 int
10244 main ()
10245 {
10246 if ((ac__type_new_ *) 0)
10247 return 0;
10248 if (sizeof (ac__type_new_))
10249 return 0;
10250 ;
10251 return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext
10255 if { (ac_try="$ac_compile"
10256 case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_compile") 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && {
10268 test -z "$ac_c_werror_flag" ||
10269 test ! -s conftest.err
10270 } && test -s conftest.$ac_objext; then
10271 ac_cv_type_u_int32_t=yes
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 ac_cv_type_u_int32_t=no
10277 fi
10278
10279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10280 fi
10281 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10282 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10283 if test $ac_cv_type_u_int32_t = yes; then
10284 :
10285 else
10286
10287 cat >>confdefs.h <<\_ACEOF
10288 #define u_int32_t unsigned int
10289 _ACEOF
10290
10291 fi
10292
10293 { echo "$as_me:$LINENO: checking for int64_t" >&5
10294 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10295 if test "${ac_cv_type_int64_t+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 $ac_includes_default
10305 #ifdef HAVE_SYS_BITYPES_H
10306 #include <sys/bitypes.h>
10307 #endif
10308
10309 typedef int64_t ac__type_new_;
10310 int
10311 main ()
10312 {
10313 if ((ac__type_new_ *) 0)
10314 return 0;
10315 if (sizeof (ac__type_new_))
10316 return 0;
10317 ;
10318 return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext
10322 if { (ac_try="$ac_compile"
10323 case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_compile") 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
10338 ac_cv_type_int64_t=yes
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_cv_type_int64_t=no
10344 fi
10345
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 fi
10348 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10349 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10350 if test $ac_cv_type_int64_t = yes; then
10351 :
10352 else
10353
10354 cat >>confdefs.h <<\_ACEOF
10355 #define int64_t long long
10356 _ACEOF
10357
10358 fi
10359
10360 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10361 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10362 if test "${ac_cv_type_u_int64_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371 $ac_includes_default
10372 #ifdef HAVE_SYS_BITYPES_H
10373 #include <sys/bitypes.h>
10374 #endif
10375
10376 typedef u_int64_t ac__type_new_;
10377 int
10378 main ()
10379 {
10380 if ((ac__type_new_ *) 0)
10381 return 0;
10382 if (sizeof (ac__type_new_))
10383 return 0;
10384 ;
10385 return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (ac_try="$ac_compile"
10390 case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_compile") 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest.$ac_objext; then
10405 ac_cv_type_u_int64_t=yes
10406 else
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_type_u_int64_t=no
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 fi
10415 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10416 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10417 if test $ac_cv_type_u_int64_t = yes; then
10418 :
10419 else
10420
10421 cat >>confdefs.h <<\_ACEOF
10422 #define u_int64_t unsigned long long
10423 _ACEOF
10424
10425 fi
10426
10427
10428 #
10429 # We can't just check for <inttypes.h> - some systems have one that
10430 # doesn't define all the PRI[doxu]64 macros.
10431 #
10432
10433 for ac_header in inttypes.h
10434 do
10435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 fi
10442 ac_res=`eval echo '${'$as_ac_Header'}'`
10443 { echo "$as_me:$LINENO: result: $ac_res" >&5
10444 echo "${ECHO_T}$ac_res" >&6; }
10445 else
10446 # Is the header compilable?
10447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10449 cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h. */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 $ac_includes_default
10456 #include <$ac_header>
10457 _ACEOF
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_compile") 2>conftest.er1
10466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest.$ac_objext; then
10475 ac_header_compiler=yes
10476 else
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10479
10480 ac_header_compiler=no
10481 fi
10482
10483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10485 echo "${ECHO_T}$ac_header_compiler" >&6; }
10486
10487 # Is the header present?
10488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 #include <$ac_header>
10497 _ACEOF
10498 if { (ac_try="$ac_cpp conftest.$ac_ext"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } >/dev/null && {
10511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 }; then
10514 ac_header_preproc=yes
10515 else
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10518
10519 ac_header_preproc=no
10520 fi
10521
10522 rm -f conftest.err conftest.$ac_ext
10523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10524 echo "${ECHO_T}$ac_header_preproc" >&6; }
10525
10526 # So? What about this header?
10527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10528 yes:no: )
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10533 ac_header_preproc=yes
10534 ;;
10535 no:yes:* )
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10548
10549 ;;
10550 esac
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 eval "$as_ac_Header=\$ac_header_preproc"
10557 fi
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10561
10562 fi
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 _ACEOF
10567
10568 #
10569 # OK, we have inttypes.h, but does it define those macros?
10570 #
10571 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10572 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10573 cat >conftest.$ac_ext <<_ACEOF
10574
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580
10581 #include <inttypes.h>
10582 #include <stdio.h>
10583 #include <sys/types.h>
10584 #ifdef HAVE_SYS_BITYPES_H
10585 #include <sys/bitypes.h>
10586 #endif
10587
10588 main()
10589 {
10590 printf("%" PRId64 "\n", (u_int64_t)1);
10591 printf("%" PRIo64 "\n", (u_int64_t)1);
10592 printf("%" PRIx64 "\n", (u_int64_t)1);
10593 printf("%" PRIu64 "\n", (u_int64_t)1);
10594 }
10595
10596
10597 _ACEOF
10598 rm -f conftest.$ac_objext
10599 if { (ac_try="$ac_compile"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_compile") 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest.$ac_objext; then
10615
10616 { echo "$as_me:$LINENO: result: yes" >&5
10617 echo "${ECHO_T}yes" >&6; }
10618 ac_lbl_inttypes_h_defines_formats=yes
10619
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624
10625 { echo "$as_me:$LINENO: result: no" >&5
10626 echo "${ECHO_T}no" >&6; }
10627 ac_lbl_inttypes_h_defines_formats=no
10628
10629 fi
10630
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632
10633 else
10634
10635 #
10636 # We don't have inttypes.h, so it obviously can't define those
10637 # macros.
10638 #
10639 ac_lbl_inttypes_h_defines_formats=no
10640
10641 fi
10642
10643 done
10644
10645 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10646
10647 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10648 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10649 if test "$cross_compiling" = yes; then
10650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10651 See \`config.log' for more details." >&5
10652 echo "$as_me: error: cannot run test program while cross compiling
10653 See \`config.log' for more details." >&2;}
10654 { (exit 1); exit 1; }; }
10655 else
10656 cat >conftest.$ac_ext <<_ACEOF
10657
10658 /* confdefs.h. */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663
10664 # ifdef HAVE_INTTYPES_H
10665 #include <inttypes.h>
10666 # endif
10667 # ifdef HAVE_SYS_BITYPES_H
10668 #include <sys/bitypes.h>
10669 # endif
10670 #include <stdio.h>
10671 #include <sys/types.h>
10672
10673 main()
10674 {
10675 u_int64_t t = 1;
10676 char strbuf[16+1];
10677 sprintf(strbuf, "%016lx", t << 32);
10678 if (strcmp(strbuf, "0000000100000000") == 0)
10679 exit(0);
10680 else
10681 exit(1);
10682 }
10683
10684
10685 _ACEOF
10686 rm -f conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706
10707 cat >>confdefs.h <<\_ACEOF
10708 #define PRId64 "ld"
10709 _ACEOF
10710
10711 cat >>confdefs.h <<\_ACEOF
10712 #define PRIo64 "lo"
10713 _ACEOF
10714
10715 cat >>confdefs.h <<\_ACEOF
10716 #define PRIx64 "lx"
10717 _ACEOF
10718
10719 cat >>confdefs.h <<\_ACEOF
10720 #define PRIu64 "lu"
10721 _ACEOF
10722
10723 { echo "$as_me:$LINENO: result: yes" >&5
10724 echo "${ECHO_T}yes" >&6; }
10725
10726 else
10727 echo "$as_me: program exited with status $ac_status" >&5
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 ( exit $ac_status )
10732
10733 { echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6; }
10735
10736
10737 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10738 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
10739 if test "$cross_compiling" = yes; then
10740 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10741 See \`config.log' for more details." >&5
10742 echo "$as_me: error: cannot run test program while cross compiling
10743 See \`config.log' for more details." >&2;}
10744 { (exit 1); exit 1; }; }
10745 else
10746 cat >conftest.$ac_ext <<_ACEOF
10747
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753
10754 # ifdef HAVE_INTTYPES_H
10755 #include <inttypes.h>
10756 # endif
10757 # ifdef HAVE_SYS_BITYPES_H
10758 #include <sys/bitypes.h>
10759 # endif
10760 #include <stdio.h>
10761 #include <sys/types.h>
10762
10763 main()
10764 {
10765 u_int64_t t = 1;
10766 char strbuf[16+1];
10767 sprintf(strbuf, "%016llx", t << 32);
10768 if (strcmp(strbuf, "0000000100000000") == 0)
10769 exit(0);
10770 else
10771 exit(1);
10772 }
10773
10774
10775 _ACEOF
10776 rm -f conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796
10797 cat >>confdefs.h <<\_ACEOF
10798 #define PRId64 "lld"
10799 _ACEOF
10800
10801 cat >>confdefs.h <<\_ACEOF
10802 #define PRIo64 "llo"
10803 _ACEOF
10804
10805 cat >>confdefs.h <<\_ACEOF
10806 #define PRIx64 "llx"
10807 _ACEOF
10808
10809 cat >>confdefs.h <<\_ACEOF
10810 #define PRIu64 "llu"
10811 _ACEOF
10812
10813 { echo "$as_me:$LINENO: result: yes" >&5
10814 echo "${ECHO_T}yes" >&6; }
10815
10816 else
10817 echo "$as_me: program exited with status $ac_status" >&5
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821 ( exit $ac_status )
10822
10823 { echo "$as_me:$LINENO: result: no" >&5
10824 echo "${ECHO_T}no" >&6; }
10825
10826
10827 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10828 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10829 if test "$cross_compiling" = yes; then
10830 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10831 See \`config.log' for more details." >&5
10832 echo "$as_me: error: cannot run test program while cross compiling
10833 See \`config.log' for more details." >&2;}
10834 { (exit 1); exit 1; }; }
10835 else
10836 cat >conftest.$ac_ext <<_ACEOF
10837
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843
10844 # ifdef HAVE_INTTYPES_H
10845 #include <inttypes.h>
10846 # endif
10847 # ifdef HAVE_SYS_BITYPES_H
10848 #include <sys/bitypes.h>
10849 # endif
10850 #include <stdio.h>
10851 #include <sys/types.h>
10852
10853 main()
10854 {
10855 u_int64_t t = 1;
10856 char strbuf[16+1];
10857 sprintf(strbuf, "%016Lx", t << 32);
10858 if (strcmp(strbuf, "0000000100000000") == 0)
10859 exit(0);
10860 else
10861 exit(1);
10862 }
10863
10864
10865 _ACEOF
10866 rm -f conftest$ac_exeext
10867 if { (ac_try="$ac_link"
10868 case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_link") 2>&5
10874 ac_status=$?
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880 esac
10881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886
10887 cat >>confdefs.h <<\_ACEOF
10888 #define PRId64 "Ld"
10889 _ACEOF
10890
10891 cat >>confdefs.h <<\_ACEOF
10892 #define PRIo64 "Lo"
10893 _ACEOF
10894
10895 cat >>confdefs.h <<\_ACEOF
10896 #define PRIx64 "Lx"
10897 _ACEOF
10898
10899 cat >>confdefs.h <<\_ACEOF
10900 #define PRIu64 "Lu"
10901 _ACEOF
10902
10903 { echo "$as_me:$LINENO: result: yes" >&5
10904 echo "${ECHO_T}yes" >&6; }
10905
10906 else
10907 echo "$as_me: program exited with status $ac_status" >&5
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911 ( exit $ac_status )
10912
10913 { echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6; }
10915
10916
10917 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10918 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10919 if test "$cross_compiling" = yes; then
10920 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10921 See \`config.log' for more details." >&5
10922 echo "$as_me: error: cannot run test program while cross compiling
10923 See \`config.log' for more details." >&2;}
10924 { (exit 1); exit 1; }; }
10925 else
10926 cat >conftest.$ac_ext <<_ACEOF
10927
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933
10934 # ifdef HAVE_INTTYPES_H
10935 #include <inttypes.h>
10936 # endif
10937 # ifdef HAVE_SYS_BITYPES_H
10938 #include <sys/bitypes.h>
10939 # endif
10940 #include <stdio.h>
10941 #include <sys/types.h>
10942
10943 main()
10944 {
10945 u_int64_t t = 1;
10946 char strbuf[16+1];
10947 sprintf(strbuf, "%016qx", t << 32);
10948 if (strcmp(strbuf, "0000000100000000") == 0)
10949 exit(0);
10950 else
10951 exit(1);
10952 }
10953
10954
10955 _ACEOF
10956 rm -f conftest$ac_exeext
10957 if { (ac_try="$ac_link"
10958 case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_link") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10967 { (case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_try") 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976
10977 cat >>confdefs.h <<\_ACEOF
10978 #define PRId64 "qd"
10979 _ACEOF
10980
10981 cat >>confdefs.h <<\_ACEOF
10982 #define PRIo64 "qo"
10983 _ACEOF
10984
10985 cat >>confdefs.h <<\_ACEOF
10986 #define PRIx64 "qx"
10987 _ACEOF
10988
10989 cat >>confdefs.h <<\_ACEOF
10990 #define PRIu64 "qu"
10991 _ACEOF
10992
10993 { echo "$as_me:$LINENO: result: yes" >&5
10994 echo "${ECHO_T}yes" >&6; }
10995
10996 else
10997 echo "$as_me: program exited with status $ac_status" >&5
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ( exit $ac_status )
11002
11003 { echo "$as_me:$LINENO: result: no" >&5
11004 echo "${ECHO_T}no" >&6; }
11005
11006 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11007 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11008 { (exit 1); exit 1; }; }
11009
11010
11011 fi
11012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11013 fi
11014
11015
11016
11017
11018
11019 fi
11020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11021 fi
11022
11023
11024
11025
11026
11027 fi
11028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11029 fi
11030
11031
11032
11033
11034
11035 fi
11036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11037 fi
11038
11039
11040
11041 fi
11042
11043 #
11044 # Check for some headers introduced in later versions of libpcap
11045 # and used by some printers.
11046 #
11047 # Those headers use the {u_}intN_t types, so we must do this after
11048 # we check for what's needed to get them defined.
11049 #
11050 savedcppflags="$CPPFLAGS"
11051 CPPFLAGS="$CPPFLAGS $V_INCLS"
11052
11053 for ac_header in pcap/bluetooth.h
11054 do
11055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h. */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 #include <tcpdump-stdinc.h>
11068
11069 #include <$ac_header>
11070 _ACEOF
11071 rm -f conftest.$ac_objext
11072 if { (ac_try="$ac_compile"
11073 case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_compile") 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest.$ac_objext; then
11088 eval "$as_ac_Header=yes"
11089 else
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093 eval "$as_ac_Header=no"
11094 fi
11095
11096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 fi
11098 ac_res=`eval echo '${'$as_ac_Header'}'`
11099 { echo "$as_me:$LINENO: result: $ac_res" >&5
11100 echo "${ECHO_T}$ac_res" >&6; }
11101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11102 cat >>confdefs.h <<_ACEOF
11103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11104 _ACEOF
11105
11106 fi
11107
11108 done
11109
11110
11111 for ac_header in pcap/usb.h
11112 do
11113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 #include <tcpdump-stdinc.h>
11126
11127 #include <$ac_header>
11128 _ACEOF
11129 rm -f conftest.$ac_objext
11130 if { (ac_try="$ac_compile"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_compile") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest.$ac_objext; then
11146 eval "$as_ac_Header=yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 eval "$as_ac_Header=no"
11152 fi
11153
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 fi
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11162 _ACEOF
11163
11164 fi
11165
11166 done
11167
11168 CPPFLAGS="$savedcppflags"
11169
11170 if test -n "$ac_tool_prefix"; then
11171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11175 if test "${ac_cv_prog_RANLIB+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 if test -n "$RANLIB"; then
11179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11180 else
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11183 do
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11191 fi
11192 done
11193 done
11194 IFS=$as_save_IFS
11195
11196 fi
11197 fi
11198 RANLIB=$ac_cv_prog_RANLIB
11199 if test -n "$RANLIB"; then
11200 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11201 echo "${ECHO_T}$RANLIB" >&6; }
11202 else
11203 { echo "$as_me:$LINENO: result: no" >&5
11204 echo "${ECHO_T}no" >&6; }
11205 fi
11206
11207
11208 fi
11209 if test -z "$ac_cv_prog_RANLIB"; then
11210 ac_ct_RANLIB=$RANLIB
11211 # Extract the first word of "ranlib", so it can be a program name with args.
11212 set dummy ranlib; ac_word=$2
11213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218 if test -n "$ac_ct_RANLIB"; then
11219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11220 else
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_prog_ac_ct_RANLIB="ranlib"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232 done
11233 done
11234 IFS=$as_save_IFS
11235
11236 fi
11237 fi
11238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11239 if test -n "$ac_ct_RANLIB"; then
11240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11241 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11242 else
11243 { echo "$as_me:$LINENO: result: no" >&5
11244 echo "${ECHO_T}no" >&6; }
11245 fi
11246
11247 if test "x$ac_ct_RANLIB" = x; then
11248 RANLIB=":"
11249 else
11250 case $cross_compiling:$ac_tool_warned in
11251 yes:)
11252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11253 whose name does not start with the host triplet. If you think this
11254 configuration is useful to you, please write to autoconf@gnu.org." >&5
11255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11256 whose name does not start with the host triplet. If you think this
11257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11258 ac_tool_warned=yes ;;
11259 esac
11260 RANLIB=$ac_ct_RANLIB
11261 fi
11262 else
11263 RANLIB="$ac_cv_prog_RANLIB"
11264 fi
11265
11266
11267 rm -f os-proto.h
11268 if test "${LBL_CFLAGS+set}" = set; then
11269 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11270 fi
11271 if test -f .devel ; then
11272 if test "$GCC" = yes ; then
11273 if test "${LBL_CFLAGS+set}" != set; then
11274 if test "$ac_cv_prog_cc_g" = yes ; then
11275 V_CCOPT="-g $V_CCOPT"
11276 fi
11277 V_CCOPT="$V_CCOPT -Wall"
11278 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11279 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
11280 fi
11281 fi
11282 else
11283 case "$host_os" in
11284
11285 irix6*)
11286 V_CCOPT="$V_CCOPT -n32"
11287 ;;
11288
11289 *)
11290 ;;
11291 esac
11292 fi
11293 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11294 name="lbl/os-$os.h"
11295 if test -f $name ; then
11296 ln -s $name os-proto.h
11297
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_OS_PROTO_H 1
11300 _ACEOF
11301
11302 else
11303 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11304 echo "$as_me: WARNING: can't find $name" >&2;}
11305 fi
11306 fi
11307
11308 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11309 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11310 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319
11320 # include <sys/types.h>
11321 # include <sys/socket.h>
11322 int
11323 main ()
11324 {
11325 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (ac_try="$ac_compile"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_cv_lbl_sockaddr_has_sa_len=yes
11348 else
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_cv_lbl_sockaddr_has_sa_len=no
11353 fi
11354
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 fi
11357
11358 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11359 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11360 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11361
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_SOCKADDR_SA_LEN 1
11364 _ACEOF
11365
11366 fi
11367
11368 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11369 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11370 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373 case "$host_cpu" in
11374
11375 #
11376 # These are CPU types where:
11377 #
11378 # the CPU faults on an unaligned access, but at least some
11379 # OSes that support that CPU catch the fault and simulate
11380 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11381 # the simulation is slow, so we don't want to use it;
11382 #
11383 # the CPU, I infer (from the old
11384 #
11385 # XXX: should also check that they don't do weird things (like on arm)
11386 #
11387 # comment) doesn't fault on unaligned accesses, but doesn't
11388 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11389 #
11390 # for whatever reason, the test program doesn't work
11391 # (this has been claimed to be the case for several of those
11392 # CPUs - I don't know what the problem is; the problem
11393 # was reported as "the test program dumps core" for SuperH,
11394 # but that's what the test program is *supposed* to do -
11395 # it dumps core before it writes anything, so the test
11396 # for an empty output file should find an empty output
11397 # file and conclude that unaligned accesses don't work).
11398 #
11399 # This run-time test won't work if you're cross-compiling, so
11400 # in order to support cross-compiling for a particular CPU,
11401 # we have to wire in the list of CPU types anyway, as far as
11402 # I know, so perhaps we should just have a set of CPUs on
11403 # which we know it doesn't work, a set of CPUs on which we
11404 # know it does work, and have the script just fail on other
11405 # cpu types and update it when such a failure occurs.
11406 #
11407 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11408 ac_cv_lbl_unaligned_fail=yes
11409 ;;
11410
11411 *)
11412 cat >conftest.c <<EOF
11413 # include <sys/types.h>
11414 # include <sys/wait.h>
11415 # include <stdio.h>
11416 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11417 main() {
11418 unsigned int i;
11419 pid_t pid;
11420 int status;
11421 /* avoid "core dumped" message */
11422 pid = fork();
11423 if (pid < 0)
11424 exit(2);
11425 if (pid > 0) {
11426 /* parent */
11427 pid = waitpid(pid, &status, 0);
11428 if (pid < 0)
11429 exit(3);
11430 exit(!WIFEXITED(status));
11431 }
11432 /* child */
11433 i = *(unsigned int *)&a[1];
11434 printf("%d\n", i);
11435 exit(0);
11436 }
11437 EOF
11438 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11439 conftest.c $LIBS >/dev/null 2>&1
11440 if test ! -x conftest ; then
11441 ac_cv_lbl_unaligned_fail=yes
11442 else
11443 ./conftest >conftest.out
11444 if test ! -s conftest.out ; then
11445 ac_cv_lbl_unaligned_fail=yes
11446 else
11447 ac_cv_lbl_unaligned_fail=no
11448 fi
11449 fi
11450 rm -f -r conftest* core core.conftest
11451 ;;
11452 esac
11453 fi
11454
11455 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11456 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11457 if test $ac_cv_lbl_unaligned_fail = yes ; then
11458
11459 cat >>confdefs.h <<\_ACEOF
11460 #define LBL_ALIGN 1
11461 _ACEOF
11462
11463 fi
11464
11465
11466 { echo "$as_me:$LINENO: checking for h_errno" >&5
11467 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
11468 if test "${ac_cv_var_h_errno+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h. */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477
11478 # include <sys/types.h>
11479 # include <netdb.h>
11480 int
11481 main ()
11482 {
11483 int foo = h_errno;
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (ac_try="$ac_compile"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493 esac
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_compile") 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && {
11502 test -z "$ac_c_werror_flag" ||
11503 test ! -s conftest.err
11504 } && test -s conftest.$ac_objext; then
11505 ac_cv_var_h_errno=yes
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510 ac_cv_var_h_errno=no
11511 fi
11512
11513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11514 fi
11515
11516 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11517 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11518 if test "$ac_cv_var_h_errno" = "yes"; then
11519 cat >>confdefs.h <<\_ACEOF
11520 #define HAVE_H_ERRNO 1
11521 _ACEOF
11522
11523 fi
11524
11525
11526 # Check for SSLeay
11527 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
11528 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
11529 # Specify location for both includes and libraries.
11530 want_libcrypto=youmama
11531
11532 # Check whether --with-crypto was given.
11533 if test "${with_crypto+set}" = set; then
11534 withval=$with_crypto;
11535 if test $withval = no
11536 then
11537 want_libcrypto=no
11538 { echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6; }
11540 elif test $withval = yes
11541 then
11542 want_libcrypto=yes
11543 { echo "$as_me:$LINENO: result: yes" >&5
11544 echo "${ECHO_T}yes" >&6; }
11545 else
11546 want_libcrypto=yes
11547 { echo "$as_me:$LINENO: result: yes" >&5
11548 echo "${ECHO_T}yes" >&6; }
11549 crypto_dir=$withval
11550 fi
11551
11552 else
11553
11554 #
11555 # Use libcrypto if it's present, otherwise don't.
11556 #
11557 want_libcrypto=ifavailable
11558 { echo "$as_me:$LINENO: result: yes, if available" >&5
11559 echo "${ECHO_T}yes, if available" >&6; }
11560
11561 fi
11562
11563 if test "$want_libcrypto" != "no"; then
11564 ac_cv_ssleay_path=no
11565 incdir=no
11566 if test "x$crypto_dir" = x; then
11567 #
11568 # Location not specified; check the default locations.
11569 #
11570 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
11571 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
11572 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
11573 if test "x${host_alias}" != x; then
11574 dirs="/usr/${host_alias} $dirs"
11575 fi
11576 for dir in $dirs; do
11577
11578 #
11579 # Find the last component of $libdir; it's not necessarily
11580 # "lib" - it might be "lib64" on, for example, x86-64
11581 # Linux systems.
11582 #
11583 # We assume the directory in which we're looking for
11584 # libcrypto has a subdirectory with that as its name.
11585 #
11586 tmplib=`echo "$libdir" | sed 's,.*/,,'`
11587
11588 #
11589 # XXX - is there a better way to check if a given library is
11590 # in a given directory than checking each of the possible
11591 # shared library suffixes?
11592 #
11593 # Are there any other suffixes we need to look for? Do we
11594 # have to worry about ".so.{version}"?
11595 #
11596 # Or should we just look for "libcrypto.*"?
11597 #
11598 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
11599 -f "$dir/$tmplib/libcrypto.so" -o \
11600 -f "$dir/$tmplib/libcrypto.sl" -o \
11601 -f "$dir/$tmplib/libcrypto.dylib" \); then
11602 ac_cv_ssleay_path="$dir"
11603 fi
11604
11605 #
11606 # Make sure we have the headers as well.
11607 #
11608 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
11609 incdir="-I$dir/include"
11610 fi
11611
11612
11613 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11614 break;
11615 else
11616 ac_cv_ssleay_path=no
11617 incdir=no
11618 fi
11619 done
11620 if test "$ac_cv_ssleay_path" != no; then
11621 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11622 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
11623 fi
11624 else
11625 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
11626 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
11627
11628 #
11629 # Find the last component of $libdir; it's not necessarily
11630 # "lib" - it might be "lib64" on, for example, x86-64
11631 # Linux systems.
11632 #
11633 # We assume the directory in which we're looking for
11634 # libcrypto has a subdirectory with that as its name.
11635 #
11636 tmplib=`echo "$libdir" | sed 's,.*/,,'`
11637
11638 #
11639 # XXX - is there a better way to check if a given library is
11640 # in a given directory than checking each of the possible
11641 # shared library suffixes?
11642 #
11643 # Are there any other suffixes we need to look for? Do we
11644 # have to worry about ".so.{version}"?
11645 #
11646 # Or should we just look for "libcrypto.*"?
11647 #
11648 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
11649 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
11650 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
11651 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
11652 ac_cv_ssleay_path="$crypto_dir"
11653 fi
11654
11655 #
11656 # Make sure we have the headers as well.
11657 #
11658 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
11659 incdir="-I$crypto_dir/include"
11660 fi
11661
11662 if test "$ac_cv_ssleay_path" != no; then
11663 { echo "$as_me:$LINENO: result: found" >&5
11664 echo "${ECHO_T}found" >&6; }
11665 fi
11666 fi
11667 if test "$ac_cv_ssleay_path" != no; then
11668 V_INCLS="$V_INCLS $incdir"
11669 if test "$dir" != "/usr"; then
11670 LDFLAGS="-L$dir/lib $LDFLAGS"
11671 fi
11672 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11673 LIBS="$LIBS -lRSAglue"
11674 fi
11675 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11676 LIBS="$LIBS -lrsaref"
11677 fi
11678
11679 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11680 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
11681 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 ac_check_lib_save_LIBS=$LIBS
11685 LIBS="-lcrypto $LIBS"
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692
11693 /* Override any GCC internal prototype to avoid an error.
11694 Use char because int might match the return type of a GCC
11695 builtin and then its argument prototype would still apply. */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 char DES_cbc_encrypt ();
11700 int
11701 main ()
11702 {
11703 return DES_cbc_encrypt ();
11704 ;
11705 return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest.$ac_objext conftest$ac_exeext
11709 if { (ac_try="$ac_link"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_link") 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest$ac_exeext &&
11725 $as_test_x conftest$ac_exeext; then
11726 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11727 else
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 ac_cv_lib_crypto_DES_cbc_encrypt=no
11732 fi
11733
11734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_lib_save_LIBS
11737 fi
11738 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11739 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
11740 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define HAVE_LIBCRYPTO 1
11743 _ACEOF
11744
11745 LIBS="-lcrypto $LIBS"
11746
11747 fi
11748
11749
11750 savedppflags="$CPPLAGS"
11751 CPPFLAGS="$CPPFLAGS $V_INCLS"
11752
11753 for ac_header in openssl/evp.h
11754 do
11755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 fi
11762 ac_res=`eval echo '${'$as_ac_Header'}'`
11763 { echo "$as_me:$LINENO: result: $ac_res" >&5
11764 echo "${ECHO_T}$ac_res" >&6; }
11765 else
11766 # Is the header compilable?
11767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h. */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 $ac_includes_default
11776 #include <$ac_header>
11777 _ACEOF
11778 rm -f conftest.$ac_objext
11779 if { (ac_try="$ac_compile"
11780 case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_compile") 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest.$ac_objext; then
11795 ac_header_compiler=yes
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 ac_header_compiler=no
11801 fi
11802
11803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11805 echo "${ECHO_T}$ac_header_compiler" >&6; }
11806
11807 # Is the header present?
11808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <$ac_header>
11817 _ACEOF
11818 if { (ac_try="$ac_cpp conftest.$ac_ext"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } >/dev/null && {
11831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 }; then
11834 ac_header_preproc=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_header_preproc=no
11840 fi
11841
11842 rm -f conftest.err conftest.$ac_ext
11843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11844 echo "${ECHO_T}$ac_header_preproc" >&6; }
11845
11846 # So? What about this header?
11847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11848 yes:no: )
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11853 ac_header_preproc=yes
11854 ;;
11855 no:yes:* )
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11868
11869 ;;
11870 esac
11871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876 eval "$as_ac_Header=\$ac_header_preproc"
11877 fi
11878 ac_res=`eval echo '${'$as_ac_Header'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11881
11882 fi
11883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11884 cat >>confdefs.h <<_ACEOF
11885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11886 _ACEOF
11887
11888 fi
11889
11890 done
11891
11892 CPPFLAGS="$savedcppflags"
11893 else
11894 #
11895 # Not found. Did the user explicitly ask for it?
11896 #
11897 { echo "$as_me:$LINENO: result: not found" >&5
11898 echo "${ECHO_T}not found" >&6; }
11899 if test "$want_libcrypto" = yes; then
11900 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
11901 echo "$as_me: error: SSLeay not found" >&2;}
11902 { (exit 1); exit 1; }; }
11903 fi
11904 fi
11905 fi
11906
11907 if test "$missing_includes" = "yes"; then
11908 CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
11909 V_INCLS="$V_INCLS -I$srcdir/missing"
11910 fi
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921 # Find a good install program. We prefer a C program (faster),
11922 # so one script is as good as another. But avoid the broken or
11923 # incompatible versions:
11924 # SysV /etc/install, /usr/sbin/install
11925 # SunOS /usr/etc/install
11926 # IRIX /sbin/install
11927 # AIX /bin/install
11928 # AmigaOS /C/install, which installs bootblocks on floppy discs
11929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11932 # OS/2's system install, which has a completely different semantic
11933 # ./install, which can be erroneously created by make from ./install.sh.
11934 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11935 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11936 if test -z "$INSTALL"; then
11937 if test "${ac_cv_path_install+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941 for as_dir in $PATH
11942 do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
11945 # Account for people who put trailing slashes in PATH elements.
11946 case $as_dir/ in
11947 ./ | .// | /cC/* | \
11948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11949 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11950 /usr/ucb/* ) ;;
11951 *)
11952 # OSF1 and SCO ODT 3.0 have their own names for install.
11953 # Don't use installbsd from OSF since it installs stuff as root
11954 # by default.
11955 for ac_prog in ginstall scoinst install; do
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11958 if test $ac_prog = install &&
11959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11960 # AIX install. It has an incompatible calling convention.
11961 :
11962 elif test $ac_prog = install &&
11963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11964 # program-specific install script used by HP pwplus--don't use.
11965 :
11966 else
11967 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11968 break 3
11969 fi
11970 fi
11971 done
11972 done
11973 ;;
11974 esac
11975 done
11976 IFS=$as_save_IFS
11977
11978
11979 fi
11980 if test "${ac_cv_path_install+set}" = set; then
11981 INSTALL=$ac_cv_path_install
11982 else
11983 # As a last resort, use the slow shell script. Don't cache a
11984 # value for INSTALL within a source directory, because that will
11985 # break other packages using the cache if that directory is
11986 # removed, or if the value is a relative name.
11987 INSTALL=$ac_install_sh
11988 fi
11989 fi
11990 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11991 echo "${ECHO_T}$INSTALL" >&6; }
11992
11993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11994 # It thinks the first close brace ends the variable substitution.
11995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11996
11997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11998
11999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12000
12001
12002 ac_config_headers="$ac_config_headers config.h"
12003
12004
12005 ac_config_commands="$ac_config_commands default-1"
12006
12007 ac_config_files="$ac_config_files Makefile tcpdump.1"
12008
12009 cat >confcache <<\_ACEOF
12010 # This file is a shell script that caches the results of configure
12011 # tests run on this system so they can be shared between configure
12012 # scripts and configure runs, see configure's option --config-cache.
12013 # It is not useful on other systems. If it contains results you don't
12014 # want to keep, you may remove or edit it.
12015 #
12016 # config.status only pays attention to the cache file if you give it
12017 # the --recheck option to rerun configure.
12018 #
12019 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12020 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12021 # following values.
12022
12023 _ACEOF
12024
12025 # The following way of writing the cache mishandles newlines in values,
12026 # but we know of no workaround that is simple, portable, and efficient.
12027 # So, we kill variables containing newlines.
12028 # Ultrix sh set writes to stderr and can't be redirected directly,
12029 # and sets the high bit in the cache file unless we assign to the vars.
12030 (
12031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12032 eval ac_val=\$$ac_var
12033 case $ac_val in #(
12034 *${as_nl}*)
12035 case $ac_var in #(
12036 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12037 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12038 esac
12039 case $ac_var in #(
12040 _ | IFS | as_nl) ;; #(
12041 *) $as_unset $ac_var ;;
12042 esac ;;
12043 esac
12044 done
12045
12046 (set) 2>&1 |
12047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12048 *${as_nl}ac_space=\ *)
12049 # `set' does not quote correctly, so add quotes (double-quote
12050 # substitution turns \\\\ into \\, and sed turns \\ into \).
12051 sed -n \
12052 "s/'/'\\\\''/g;
12053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12054 ;; #(
12055 *)
12056 # `set' quotes correctly as required by POSIX, so do not add quotes.
12057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12058 ;;
12059 esac |
12060 sort
12061 ) |
12062 sed '
12063 /^ac_cv_env_/b end
12064 t clear
12065 :clear
12066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12067 t end
12068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12069 :end' >>confcache
12070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12071 if test -w "$cache_file"; then
12072 test "x$cache_file" != "x/dev/null" &&
12073 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12074 echo "$as_me: updating cache $cache_file" >&6;}
12075 cat confcache >$cache_file
12076 else
12077 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12078 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12079 fi
12080 fi
12081 rm -f confcache
12082
12083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12084 # Let make expand exec_prefix.
12085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12086
12087 DEFS=-DHAVE_CONFIG_H
12088
12089 ac_libobjs=
12090 ac_ltlibobjs=
12091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12092 # 1. Remove the extension, and $U if already installed.
12093 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12094 ac_i=`echo "$ac_i" | sed "$ac_script"`
12095 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12096 # will be set to the directory where LIBOBJS objects are built.
12097 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12098 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12099 done
12100 LIBOBJS=$ac_libobjs
12101
12102 LTLIBOBJS=$ac_ltlibobjs
12103
12104
12105
12106 : ${CONFIG_STATUS=./config.status}
12107 ac_clean_files_save=$ac_clean_files
12108 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12109 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12110 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12111 cat >$CONFIG_STATUS <<_ACEOF
12112 #! $SHELL
12113 # Generated by $as_me.
12114 # Run this file to recreate the current configuration.
12115 # Compiler output produced by configure, useful for debugging
12116 # configure, is in config.log if it exists.
12117
12118 debug=false
12119 ac_cs_recheck=false
12120 ac_cs_silent=false
12121 SHELL=\${CONFIG_SHELL-$SHELL}
12122 _ACEOF
12123
12124 cat >>$CONFIG_STATUS <<\_ACEOF
12125 ## --------------------- ##
12126 ## M4sh Initialization. ##
12127 ## --------------------- ##
12128
12129 # Be more Bourne compatible
12130 DUALCASE=1; export DUALCASE # for MKS sh
12131 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12132 emulate sh
12133 NULLCMD=:
12134 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12135 # is contrary to our usage. Disable this feature.
12136 alias -g '${1+"$@"}'='"$@"'
12137 setopt NO_GLOB_SUBST
12138 else
12139 case `(set -o) 2>/dev/null` in
12140 *posix*) set -o posix ;;
12141 esac
12142
12143 fi
12144
12145
12146
12147
12148 # PATH needs CR
12149 # Avoid depending upon Character Ranges.
12150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12153 as_cr_digits='0123456789'
12154 as_cr_alnum=$as_cr_Letters$as_cr_digits
12155
12156 # The user is always right.
12157 if test "${PATH_SEPARATOR+set}" != set; then
12158 echo "#! /bin/sh" >conf$$.sh
12159 echo "exit 0" >>conf$$.sh
12160 chmod +x conf$$.sh
12161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12162 PATH_SEPARATOR=';'
12163 else
12164 PATH_SEPARATOR=:
12165 fi
12166 rm -f conf$$.sh
12167 fi
12168
12169 # Support unset when possible.
12170 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12171 as_unset=unset
12172 else
12173 as_unset=false
12174 fi
12175
12176
12177 # IFS
12178 # We need space, tab and new line, in precisely that order. Quoting is
12179 # there to prevent editors from complaining about space-tab.
12180 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12181 # splitting by setting IFS to empty value.)
12182 as_nl='
12183 '
12184 IFS=" "" $as_nl"
12185
12186 # Find who we are. Look in the path if we contain no directory separator.
12187 case $0 in
12188 *[\\/]* ) as_myself=$0 ;;
12189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12191 do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12195 done
12196 IFS=$as_save_IFS
12197
12198 ;;
12199 esac
12200 # We did not find ourselves, most probably we were run as `sh COMMAND'
12201 # in which case we are not to be found in the path.
12202 if test "x$as_myself" = x; then
12203 as_myself=$0
12204 fi
12205 if test ! -f "$as_myself"; then
12206 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12207 { (exit 1); exit 1; }
12208 fi
12209
12210 # Work around bugs in pre-3.0 UWIN ksh.
12211 for as_var in ENV MAIL MAILPATH
12212 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12213 done
12214 PS1='$ '
12215 PS2='> '
12216 PS4='+ '
12217
12218 # NLS nuisances.
12219 for as_var in \
12220 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12221 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12222 LC_TELEPHONE LC_TIME
12223 do
12224 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12225 eval $as_var=C; export $as_var
12226 else
12227 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12228 fi
12229 done
12230
12231 # Required to use basename.
12232 if expr a : '\(a\)' >/dev/null 2>&1 &&
12233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12234 as_expr=expr
12235 else
12236 as_expr=false
12237 fi
12238
12239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12240 as_basename=basename
12241 else
12242 as_basename=false
12243 fi
12244
12245
12246 # Name of the executable.
12247 as_me=`$as_basename -- "$0" ||
12248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12249 X"$0" : 'X\(//\)$' \| \
12250 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12251 echo X/"$0" |
12252 sed '/^.*\/\([^/][^/]*\)\/*$/{
12253 s//\1/
12254 q
12255 }
12256 /^X\/\(\/\/\)$/{
12257 s//\1/
12258 q
12259 }
12260 /^X\/\(\/\).*/{
12261 s//\1/
12262 q
12263 }
12264 s/.*/./; q'`
12265
12266 # CDPATH.
12267 $as_unset CDPATH
12268
12269
12270
12271 as_lineno_1=$LINENO
12272 as_lineno_2=$LINENO
12273 test "x$as_lineno_1" != "x$as_lineno_2" &&
12274 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12275
12276 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12277 # uniformly replaced by the line number. The first 'sed' inserts a
12278 # line-number line after each line using $LINENO; the second 'sed'
12279 # does the real work. The second script uses 'N' to pair each
12280 # line-number line with the line containing $LINENO, and appends
12281 # trailing '-' during substitution so that $LINENO is not a special
12282 # case at line end.
12283 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12284 # scripts with optimization help from Paolo Bonzini. Blame Lee
12285 # E. McMahon (1931-1989) for sed's syntax. :-)
12286 sed -n '
12287 p
12288 /[$]LINENO/=
12289 ' <$as_myself |
12290 sed '
12291 s/[$]LINENO.*/&-/
12292 t lineno
12293 b
12294 :lineno
12295 N
12296 :loop
12297 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12298 t loop
12299 s/-\n.*//
12300 ' >$as_me.lineno &&
12301 chmod +x "$as_me.lineno" ||
12302 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12303 { (exit 1); exit 1; }; }
12304
12305 # Don't try to exec as it changes $[0], causing all sort of problems
12306 # (the dirname of $[0] is not the place where we might find the
12307 # original and so on. Autoconf is especially sensitive to this).
12308 . "./$as_me.lineno"
12309 # Exit status is that of the last command.
12310 exit
12311 }
12312
12313
12314 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12315 as_dirname=dirname
12316 else
12317 as_dirname=false
12318 fi
12319
12320 ECHO_C= ECHO_N= ECHO_T=
12321 case `echo -n x` in
12322 -n*)
12323 case `echo 'x\c'` in
12324 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12325 *) ECHO_C='\c';;
12326 esac;;
12327 *)
12328 ECHO_N='-n';;
12329 esac
12330
12331 if expr a : '\(a\)' >/dev/null 2>&1 &&
12332 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12333 as_expr=expr
12334 else
12335 as_expr=false
12336 fi
12337
12338 rm -f conf$$ conf$$.exe conf$$.file
12339 if test -d conf$$.dir; then
12340 rm -f conf$$.dir/conf$$.file
12341 else
12342 rm -f conf$$.dir
12343 mkdir conf$$.dir
12344 fi
12345 echo >conf$$.file
12346 if ln -s conf$$.file conf$$ 2>/dev/null; then
12347 as_ln_s='ln -s'
12348 # ... but there are two gotchas:
12349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12351 # In both cases, we have to default to `cp -p'.
12352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12353 as_ln_s='cp -p'
12354 elif ln conf$$.file conf$$ 2>/dev/null; then
12355 as_ln_s=ln
12356 else
12357 as_ln_s='cp -p'
12358 fi
12359 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12360 rmdir conf$$.dir 2>/dev/null
12361
12362 if mkdir -p . 2>/dev/null; then
12363 as_mkdir_p=:
12364 else
12365 test -d ./-p && rmdir ./-p
12366 as_mkdir_p=false
12367 fi
12368
12369 if test -x / >/dev/null 2>&1; then
12370 as_test_x='test -x'
12371 else
12372 if ls -dL / >/dev/null 2>&1; then
12373 as_ls_L_option=L
12374 else
12375 as_ls_L_option=
12376 fi
12377 as_test_x='
12378 eval sh -c '\''
12379 if test -d "$1"; then
12380 test -d "$1/.";
12381 else
12382 case $1 in
12383 -*)set "./$1";;
12384 esac;
12385 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12386 ???[sx]*):;;*)false;;esac;fi
12387 '\'' sh
12388 '
12389 fi
12390 as_executable_p=$as_test_x
12391
12392 # Sed expression to map a string onto a valid CPP name.
12393 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12394
12395 # Sed expression to map a string onto a valid variable name.
12396 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12397
12398
12399 exec 6>&1
12400
12401 # Save the log message, to keep $[0] and so on meaningful, and to
12402 # report actual input values of CONFIG_FILES etc. instead of their
12403 # values after options handling.
12404 ac_log="
12405 This file was extended by $as_me, which was
12406 generated by GNU Autoconf 2.61. Invocation command line was
12407
12408 CONFIG_FILES = $CONFIG_FILES
12409 CONFIG_HEADERS = $CONFIG_HEADERS
12410 CONFIG_LINKS = $CONFIG_LINKS
12411 CONFIG_COMMANDS = $CONFIG_COMMANDS
12412 $ $0 $@
12413
12414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12415 "
12416
12417 _ACEOF
12418
12419 cat >>$CONFIG_STATUS <<_ACEOF
12420 # Files that config.status was made for.
12421 config_files="$ac_config_files"
12422 config_headers="$ac_config_headers"
12423 config_commands="$ac_config_commands"
12424
12425 _ACEOF
12426
12427 cat >>$CONFIG_STATUS <<\_ACEOF
12428 ac_cs_usage="\
12429 \`$as_me' instantiates files from templates according to the
12430 current configuration.
12431
12432 Usage: $0 [OPTIONS] [FILE]...
12433
12434 -h, --help print this help, then exit
12435 -V, --version print version number and configuration settings, then exit
12436 -q, --quiet do not print progress messages
12437 -d, --debug don't remove temporary files
12438 --recheck update $as_me by reconfiguring in the same conditions
12439 --file=FILE[:TEMPLATE]
12440 instantiate the configuration file FILE
12441 --header=FILE[:TEMPLATE]
12442 instantiate the configuration header FILE
12443
12444 Configuration files:
12445 $config_files
12446
12447 Configuration headers:
12448 $config_headers
12449
12450 Configuration commands:
12451 $config_commands
12452
12453 Report bugs to <bug-autoconf@gnu.org>."
12454
12455 _ACEOF
12456 cat >>$CONFIG_STATUS <<_ACEOF
12457 ac_cs_version="\\
12458 config.status
12459 configured by $0, generated by GNU Autoconf 2.61,
12460 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12461
12462 Copyright (C) 2006 Free Software Foundation, Inc.
12463 This config.status script is free software; the Free Software Foundation
12464 gives unlimited permission to copy, distribute and modify it."
12465
12466 ac_pwd='$ac_pwd'
12467 srcdir='$srcdir'
12468 INSTALL='$INSTALL'
12469 _ACEOF
12470
12471 cat >>$CONFIG_STATUS <<\_ACEOF
12472 # If no file are specified by the user, then we need to provide default
12473 # value. By we need to know if files were specified by the user.
12474 ac_need_defaults=:
12475 while test $# != 0
12476 do
12477 case $1 in
12478 --*=*)
12479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12481 ac_shift=:
12482 ;;
12483 *)
12484 ac_option=$1
12485 ac_optarg=$2
12486 ac_shift=shift
12487 ;;
12488 esac
12489
12490 case $ac_option in
12491 # Handling of the options.
12492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12493 ac_cs_recheck=: ;;
12494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12495 echo "$ac_cs_version"; exit ;;
12496 --debug | --debu | --deb | --de | --d | -d )
12497 debug=: ;;
12498 --file | --fil | --fi | --f )
12499 $ac_shift
12500 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12501 ac_need_defaults=false;;
12502 --header | --heade | --head | --hea )
12503 $ac_shift
12504 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12505 ac_need_defaults=false;;
12506 --he | --h)
12507 # Conflict between --help and --header
12508 { echo "$as_me: error: ambiguous option: $1
12509 Try \`$0 --help' for more information." >&2
12510 { (exit 1); exit 1; }; };;
12511 --help | --hel | -h )
12512 echo "$ac_cs_usage"; exit ;;
12513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12515 ac_cs_silent=: ;;
12516
12517 # This is an error.
12518 -*) { echo "$as_me: error: unrecognized option: $1
12519 Try \`$0 --help' for more information." >&2
12520 { (exit 1); exit 1; }; } ;;
12521
12522 *) ac_config_targets="$ac_config_targets $1"
12523 ac_need_defaults=false ;;
12524
12525 esac
12526 shift
12527 done
12528
12529 ac_configure_extra_args=
12530
12531 if $ac_cs_silent; then
12532 exec 6>/dev/null
12533 ac_configure_extra_args="$ac_configure_extra_args --silent"
12534 fi
12535
12536 _ACEOF
12537 cat >>$CONFIG_STATUS <<_ACEOF
12538 if \$ac_cs_recheck; then
12539 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12540 CONFIG_SHELL=$SHELL
12541 export CONFIG_SHELL
12542 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12543 fi
12544
12545 _ACEOF
12546 cat >>$CONFIG_STATUS <<\_ACEOF
12547 exec 5>>config.log
12548 {
12549 echo
12550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12551 ## Running $as_me. ##
12552 _ASBOX
12553 echo "$ac_log"
12554 } >&5
12555
12556 _ACEOF
12557 cat >>$CONFIG_STATUS <<_ACEOF
12558 #
12559 # INIT-COMMANDS
12560 #
12561
12562
12563 _ACEOF
12564
12565 cat >>$CONFIG_STATUS <<\_ACEOF
12566
12567 # Handling of arguments.
12568 for ac_config_target in $ac_config_targets
12569 do
12570 case $ac_config_target in
12571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12572 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12574 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
12575
12576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12578 { (exit 1); exit 1; }; };;
12579 esac
12580 done
12581
12582
12583 # If the user did not use the arguments to specify the items to instantiate,
12584 # then the envvar interface is used. Set only those that are not.
12585 # We use the long form for the default assignment because of an extremely
12586 # bizarre bug on SunOS 4.1.3.
12587 if $ac_need_defaults; then
12588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12591 fi
12592
12593 # Have a temporary directory for convenience. Make it in the build tree
12594 # simply because there is no reason against having it here, and in addition,
12595 # creating and moving files from /tmp can sometimes cause problems.
12596 # Hook for its removal unless debugging.
12597 # Note that there is a small window in which the directory will not be cleaned:
12598 # after its creation but before its name has been assigned to `$tmp'.
12599 $debug ||
12600 {
12601 tmp=
12602 trap 'exit_status=$?
12603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12604 ' 0
12605 trap '{ (exit 1); exit 1; }' 1 2 13 15
12606 }
12607 # Create a (secure) tmp directory for tmp files.
12608
12609 {
12610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12611 test -n "$tmp" && test -d "$tmp"
12612 } ||
12613 {
12614 tmp=./conf$$-$RANDOM
12615 (umask 077 && mkdir "$tmp")
12616 } ||
12617 {
12618 echo "$me: cannot create a temporary directory in ." >&2
12619 { (exit 1); exit 1; }
12620 }
12621
12622 #
12623 # Set up the sed scripts for CONFIG_FILES section.
12624 #
12625
12626 # No need to generate the scripts if there are no CONFIG_FILES.
12627 # This happens for instance when ./config.status config.h
12628 if test -n "$CONFIG_FILES"; then
12629
12630 _ACEOF
12631
12632
12633
12634 ac_delim='%!_!# '
12635 for ac_last_try in false false false false false :; do
12636 cat >conf$$subs.sed <<_ACEOF
12637 SHELL!$SHELL$ac_delim
12638 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12639 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12640 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12641 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12642 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12643 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12644 exec_prefix!$exec_prefix$ac_delim
12645 prefix!$prefix$ac_delim
12646 program_transform_name!$program_transform_name$ac_delim
12647 bindir!$bindir$ac_delim
12648 sbindir!$sbindir$ac_delim
12649 libexecdir!$libexecdir$ac_delim
12650 datarootdir!$datarootdir$ac_delim
12651 datadir!$datadir$ac_delim
12652 sysconfdir!$sysconfdir$ac_delim
12653 sharedstatedir!$sharedstatedir$ac_delim
12654 localstatedir!$localstatedir$ac_delim
12655 includedir!$includedir$ac_delim
12656 oldincludedir!$oldincludedir$ac_delim
12657 docdir!$docdir$ac_delim
12658 infodir!$infodir$ac_delim
12659 htmldir!$htmldir$ac_delim
12660 dvidir!$dvidir$ac_delim
12661 pdfdir!$pdfdir$ac_delim
12662 psdir!$psdir$ac_delim
12663 libdir!$libdir$ac_delim
12664 localedir!$localedir$ac_delim
12665 mandir!$mandir$ac_delim
12666 DEFS!$DEFS$ac_delim
12667 ECHO_C!$ECHO_C$ac_delim
12668 ECHO_N!$ECHO_N$ac_delim
12669 ECHO_T!$ECHO_T$ac_delim
12670 LIBS!$LIBS$ac_delim
12671 build_alias!$build_alias$ac_delim
12672 host_alias!$host_alias$ac_delim
12673 target_alias!$target_alias$ac_delim
12674 build!$build$ac_delim
12675 build_cpu!$build_cpu$ac_delim
12676 build_vendor!$build_vendor$ac_delim
12677 build_os!$build_os$ac_delim
12678 host!$host$ac_delim
12679 host_cpu!$host_cpu$ac_delim
12680 host_vendor!$host_vendor$ac_delim
12681 host_os!$host_os$ac_delim
12682 SHLICC2!$SHLICC2$ac_delim
12683 CC!$CC$ac_delim
12684 CFLAGS!$CFLAGS$ac_delim
12685 LDFLAGS!$LDFLAGS$ac_delim
12686 CPPFLAGS!$CPPFLAGS$ac_delim
12687 ac_ct_CC!$ac_ct_CC$ac_delim
12688 EXEEXT!$EXEEXT$ac_delim
12689 OBJEXT!$OBJEXT$ac_delim
12690 CPP!$CPP$ac_delim
12691 GREP!$GREP$ac_delim
12692 EGREP!$EGREP$ac_delim
12693 LIBOBJS!$LIBOBJS$ac_delim
12694 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
12695 RANLIB!$RANLIB$ac_delim
12696 V_CCOPT!$V_CCOPT$ac_delim
12697 V_DEFS!$V_DEFS$ac_delim
12698 V_GROUP!$V_GROUP$ac_delim
12699 V_INCLS!$V_INCLS$ac_delim
12700 V_PCAPDEP!$V_PCAPDEP$ac_delim
12701 LOCALSRC!$LOCALSRC$ac_delim
12702 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12703 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12704 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12705 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12706 INSTALL_DATA!$INSTALL_DATA$ac_delim
12707 LTLIBOBJS!$LTLIBOBJS$ac_delim
12708 _ACEOF
12709
12710 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
12711 break
12712 elif $ac_last_try; then
12713 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12714 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12715 { (exit 1); exit 1; }; }
12716 else
12717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12718 fi
12719 done
12720
12721 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12722 if test -n "$ac_eof"; then
12723 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12724 ac_eof=`expr $ac_eof + 1`
12725 fi
12726
12727 cat >>$CONFIG_STATUS <<_ACEOF
12728 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12730 _ACEOF
12731 sed '
12732 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12733 s/^/s,@/; s/!/@,|#_!!_#|/
12734 :n
12735 t n
12736 s/'"$ac_delim"'$/,g/; t
12737 s/$/\\/; p
12738 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12739 ' >>$CONFIG_STATUS <conf$$subs.sed
12740 rm -f conf$$subs.sed
12741 cat >>$CONFIG_STATUS <<_ACEOF
12742 :end
12743 s/|#_!!_#|//g
12744 CEOF$ac_eof
12745 _ACEOF
12746
12747
12748 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12749 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12750 # trailing colons and then remove the whole line if VPATH becomes empty
12751 # (actually we leave an empty line to preserve line numbers).
12752 if test "x$srcdir" = x.; then
12753 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12754 s/:*\$(srcdir):*/:/
12755 s/:*\${srcdir}:*/:/
12756 s/:*@srcdir@:*/:/
12757 s/^\([^=]*=[ ]*\):*/\1/
12758 s/:*$//
12759 s/^[^=]*=[ ]*$//
12760 }'
12761 fi
12762
12763 cat >>$CONFIG_STATUS <<\_ACEOF
12764 fi # test -n "$CONFIG_FILES"
12765
12766
12767 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12768 do
12769 case $ac_tag in
12770 :[FHLC]) ac_mode=$ac_tag; continue;;
12771 esac
12772 case $ac_mode$ac_tag in
12773 :[FHL]*:*);;
12774 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12775 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12776 { (exit 1); exit 1; }; };;
12777 :[FH]-) ac_tag=-:-;;
12778 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12779 esac
12780 ac_save_IFS=$IFS
12781 IFS=:
12782 set x $ac_tag
12783 IFS=$ac_save_IFS
12784 shift
12785 ac_file=$1
12786 shift
12787
12788 case $ac_mode in
12789 :L) ac_source=$1;;
12790 :[FH])
12791 ac_file_inputs=
12792 for ac_f
12793 do
12794 case $ac_f in
12795 -) ac_f="$tmp/stdin";;
12796 *) # Look for the file first in the build tree, then in the source tree
12797 # (if the path is not absolute). The absolute path cannot be DOS-style,
12798 # because $ac_f cannot contain `:'.
12799 test -f "$ac_f" ||
12800 case $ac_f in
12801 [\\/$]*) false;;
12802 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12803 esac ||
12804 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12805 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12806 { (exit 1); exit 1; }; };;
12807 esac
12808 ac_file_inputs="$ac_file_inputs $ac_f"
12809 done
12810
12811 # Let's still pretend it is `configure' which instantiates (i.e., don't
12812 # use $as_me), people would be surprised to read:
12813 # /* config.h. Generated by config.status. */
12814 configure_input="Generated from "`IFS=:
12815 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12816 if test x"$ac_file" != x-; then
12817 configure_input="$ac_file. $configure_input"
12818 { echo "$as_me:$LINENO: creating $ac_file" >&5
12819 echo "$as_me: creating $ac_file" >&6;}
12820 fi
12821
12822 case $ac_tag in
12823 *:-:* | *:-) cat >"$tmp/stdin";;
12824 esac
12825 ;;
12826 esac
12827
12828 ac_dir=`$as_dirname -- "$ac_file" ||
12829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12830 X"$ac_file" : 'X\(//\)[^/]' \| \
12831 X"$ac_file" : 'X\(//\)$' \| \
12832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12833 echo X"$ac_file" |
12834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12835 s//\1/
12836 q
12837 }
12838 /^X\(\/\/\)[^/].*/{
12839 s//\1/
12840 q
12841 }
12842 /^X\(\/\/\)$/{
12843 s//\1/
12844 q
12845 }
12846 /^X\(\/\).*/{
12847 s//\1/
12848 q
12849 }
12850 s/.*/./; q'`
12851 { as_dir="$ac_dir"
12852 case $as_dir in #(
12853 -*) as_dir=./$as_dir;;
12854 esac
12855 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12856 as_dirs=
12857 while :; do
12858 case $as_dir in #(
12859 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12860 *) as_qdir=$as_dir;;
12861 esac
12862 as_dirs="'$as_qdir' $as_dirs"
12863 as_dir=`$as_dirname -- "$as_dir" ||
12864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12865 X"$as_dir" : 'X\(//\)[^/]' \| \
12866 X"$as_dir" : 'X\(//\)$' \| \
12867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12868 echo X"$as_dir" |
12869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12870 s//\1/
12871 q
12872 }
12873 /^X\(\/\/\)[^/].*/{
12874 s//\1/
12875 q
12876 }
12877 /^X\(\/\/\)$/{
12878 s//\1/
12879 q
12880 }
12881 /^X\(\/\).*/{
12882 s//\1/
12883 q
12884 }
12885 s/.*/./; q'`
12886 test -d "$as_dir" && break
12887 done
12888 test -z "$as_dirs" || eval "mkdir $as_dirs"
12889 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12890 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12891 { (exit 1); exit 1; }; }; }
12892 ac_builddir=.
12893
12894 case "$ac_dir" in
12895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12896 *)
12897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12898 # A ".." for each directory in $ac_dir_suffix.
12899 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12900 case $ac_top_builddir_sub in
12901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12903 esac ;;
12904 esac
12905 ac_abs_top_builddir=$ac_pwd
12906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12907 # for backward compatibility:
12908 ac_top_builddir=$ac_top_build_prefix
12909
12910 case $srcdir in
12911 .) # We are building in place.
12912 ac_srcdir=.
12913 ac_top_srcdir=$ac_top_builddir_sub
12914 ac_abs_top_srcdir=$ac_pwd ;;
12915 [\\/]* | ?:[\\/]* ) # Absolute name.
12916 ac_srcdir=$srcdir$ac_dir_suffix;
12917 ac_top_srcdir=$srcdir
12918 ac_abs_top_srcdir=$srcdir ;;
12919 *) # Relative name.
12920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12921 ac_top_srcdir=$ac_top_build_prefix$srcdir
12922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12923 esac
12924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12925
12926
12927 case $ac_mode in
12928 :F)
12929 #
12930 # CONFIG_FILE
12931 #
12932
12933 case $INSTALL in
12934 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12935 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12936 esac
12937 _ACEOF
12938
12939 cat >>$CONFIG_STATUS <<\_ACEOF
12940 # If the template does not know about datarootdir, expand it.
12941 # FIXME: This hack should be removed a few years after 2.60.
12942 ac_datarootdir_hack=; ac_datarootdir_seen=
12943
12944 case `sed -n '/datarootdir/ {
12945 p
12946 q
12947 }
12948 /@datadir@/p
12949 /@docdir@/p
12950 /@infodir@/p
12951 /@localedir@/p
12952 /@mandir@/p
12953 ' $ac_file_inputs` in
12954 *datarootdir*) ac_datarootdir_seen=yes;;
12955 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12956 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12957 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12958 _ACEOF
12959 cat >>$CONFIG_STATUS <<_ACEOF
12960 ac_datarootdir_hack='
12961 s&@datadir@&$datadir&g
12962 s&@docdir@&$docdir&g
12963 s&@infodir@&$infodir&g
12964 s&@localedir@&$localedir&g
12965 s&@mandir@&$mandir&g
12966 s&\\\${datarootdir}&$datarootdir&g' ;;
12967 esac
12968 _ACEOF
12969
12970 # Neutralize VPATH when `$srcdir' = `.'.
12971 # Shell code in configure.ac might set extrasub.
12972 # FIXME: do we really want to maintain this feature?
12973 cat >>$CONFIG_STATUS <<_ACEOF
12974 sed "$ac_vpsub
12975 $extrasub
12976 _ACEOF
12977 cat >>$CONFIG_STATUS <<\_ACEOF
12978 :t
12979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12980 s&@configure_input@&$configure_input&;t t
12981 s&@top_builddir@&$ac_top_builddir_sub&;t t
12982 s&@srcdir@&$ac_srcdir&;t t
12983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12984 s&@top_srcdir@&$ac_top_srcdir&;t t
12985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12986 s&@builddir@&$ac_builddir&;t t
12987 s&@abs_builddir@&$ac_abs_builddir&;t t
12988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12989 s&@INSTALL@&$ac_INSTALL&;t t
12990 $ac_datarootdir_hack
12991 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12992
12993 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12994 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12996 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12997 which seems to be undefined. Please make sure it is defined." >&5
12998 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12999 which seems to be undefined. Please make sure it is defined." >&2;}
13000
13001 rm -f "$tmp/stdin"
13002 case $ac_file in
13003 -) cat "$tmp/out"; rm -f "$tmp/out";;
13004 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13005 esac
13006 ;;
13007 :H)
13008 #
13009 # CONFIG_HEADER
13010 #
13011 _ACEOF
13012
13013 # Transform confdefs.h into a sed script `conftest.defines', that
13014 # substitutes the proper values into config.h.in to produce config.h.
13015 rm -f conftest.defines conftest.tail
13016 # First, append a space to every undef/define line, to ease matching.
13017 echo 's/$/ /' >conftest.defines
13018 # Then, protect against being on the right side of a sed subst, or in
13019 # an unquoted here document, in config.status. If some macros were
13020 # called several times there might be several #defines for the same
13021 # symbol, which is useless. But do not sort them, since the last
13022 # AC_DEFINE must be honored.
13023 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13024 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13025 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13026 # PARAMS is the parameter list in the macro definition--in most cases, it's
13027 # just an empty string.
13028 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13029 ac_dB='\\)[ (].*,\\1define\\2'
13030 ac_dC=' '
13031 ac_dD=' ,'
13032
13033 uniq confdefs.h |
13034 sed -n '
13035 t rset
13036 :rset
13037 s/^[ ]*#[ ]*define[ ][ ]*//
13038 t ok
13039 d
13040 :ok
13041 s/[\\&,]/\\&/g
13042 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13043 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13044 ' >>conftest.defines
13045
13046 # Remove the space that was appended to ease matching.
13047 # Then replace #undef with comments. This is necessary, for
13048 # example, in the case of _POSIX_SOURCE, which is predefined and required
13049 # on some systems where configure will not decide to define it.
13050 # (The regexp can be short, since the line contains either #define or #undef.)
13051 echo 's/ $//
13052 s,^[ #]*u.*,/* & */,' >>conftest.defines
13053
13054 # Break up conftest.defines:
13055 ac_max_sed_lines=50
13056
13057 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13058 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13059 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13060 # et cetera.
13061 ac_in='$ac_file_inputs'
13062 ac_out='"$tmp/out1"'
13063 ac_nxt='"$tmp/out2"'
13064
13065 while :
13066 do
13067 # Write a here document:
13068 cat >>$CONFIG_STATUS <<_ACEOF
13069 # First, check the format of the line:
13070 cat >"\$tmp/defines.sed" <<\\CEOF
13071 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13072 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13073 b
13074 :def
13075 _ACEOF
13076 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13077 echo 'CEOF
13078 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13079 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13080 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13081 grep . conftest.tail >/dev/null || break
13082 rm -f conftest.defines
13083 mv conftest.tail conftest.defines
13084 done
13085 rm -f conftest.defines conftest.tail
13086
13087 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13088 cat >>$CONFIG_STATUS <<\_ACEOF
13089 if test x"$ac_file" != x-; then
13090 echo "/* $configure_input */" >"$tmp/config.h"
13091 cat "$ac_result" >>"$tmp/config.h"
13092 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13093 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13094 echo "$as_me: $ac_file is unchanged" >&6;}
13095 else
13096 rm -f $ac_file
13097 mv "$tmp/config.h" $ac_file
13098 fi
13099 else
13100 echo "/* $configure_input */"
13101 cat "$ac_result"
13102 fi
13103 rm -f "$tmp/out12"
13104 ;;
13105
13106 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13107 echo "$as_me: executing $ac_file commands" >&6;}
13108 ;;
13109 esac
13110
13111
13112 case $ac_file$ac_mode in
13113 "default-1":C) if test -f .devel; then
13114 echo timestamp > stamp-h
13115 cat Makefile-devel-adds >> Makefile
13116 make depend
13117 fi ;;
13118
13119 esac
13120 done # for ac_tag
13121
13122
13123 { (exit 0); exit 0; }
13124 _ACEOF
13125 chmod +x $CONFIG_STATUS
13126 ac_clean_files=$ac_clean_files_save
13127
13128
13129 # configure is writing to config.log, and then calls config.status.
13130 # config.status does its own redirection, appending to config.log.
13131 # Unfortunately, on DOS this fails, as config.log is still kept open
13132 # by configure, so config.status won't be able to write to it; its
13133 # output is simply discarded. So we exec the FD to /dev/null,
13134 # effectively closing config.log, so it can be properly (re)opened and
13135 # appended to by config.status. When coming back to configure, we
13136 # need to make the FD available again.
13137 if test "$no_create" != yes; then
13138 ac_cs_success=:
13139 ac_config_status_args=
13140 test "$silent" = yes &&
13141 ac_config_status_args="$ac_config_status_args --quiet"
13142 exec 5>/dev/null
13143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13144 exec 5>>config.log
13145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13146 # would make configure fail if this is the last instruction.
13147 $ac_cs_success || { (exit 1); exit 1; }
13148 fi
13149
13150 exit 0