]> The Tcpdump Group git mirrors - tcpdump/blob - configure
From Toshihiro Kanda, via FreeBSD: fix printing of address in AARP
[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 --enable-smb enable possibly-buggy SMB printer default=yes
1271 --disable-smb disable possibly-buggy SMB printer
1272 --enable-ipv6 enable ipv6 (with ipv4) support
1273 --disable-ipv6 disable ipv6 support
1274
1275 Optional Packages:
1276 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1277 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1278 --without-gcc don't use gcc
1279 --with-smi link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1280 --without-smi don't link with libsmi
1281 --with-user=USERNAME drop privileges by default to USERNAME
1282 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1283 --with-crypto[=PATH] use SSLeay libcrypto (located in directory PATH, if
1284 supplied). [default=yes, if available]
1285
1286 Some influential environment variables:
1287 CC C compiler command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1294 CPP C preprocessor
1295
1296 Use these variables to override the choices made by `configure' or to help
1297 it to find libraries and programs with nonstandard names/locations.
1298
1299 _ACEOF
1300 ac_status=$?
1301 fi
1302
1303 if test "$ac_init_help" = "recursive"; then
1304 # If there are subdirs, report their specific --help.
1305 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1306 test -d "$ac_dir" || continue
1307 ac_builddir=.
1308
1309 case "$ac_dir" in
1310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1311 *)
1312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1313 # A ".." for each directory in $ac_dir_suffix.
1314 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1315 case $ac_top_builddir_sub in
1316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318 esac ;;
1319 esac
1320 ac_abs_top_builddir=$ac_pwd
1321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1322 # for backward compatibility:
1323 ac_top_builddir=$ac_top_build_prefix
1324
1325 case $srcdir in
1326 .) # We are building in place.
1327 ac_srcdir=.
1328 ac_top_srcdir=$ac_top_builddir_sub
1329 ac_abs_top_srcdir=$ac_pwd ;;
1330 [\\/]* | ?:[\\/]* ) # Absolute name.
1331 ac_srcdir=$srcdir$ac_dir_suffix;
1332 ac_top_srcdir=$srcdir
1333 ac_abs_top_srcdir=$srcdir ;;
1334 *) # Relative name.
1335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1336 ac_top_srcdir=$ac_top_build_prefix$srcdir
1337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1338 esac
1339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1340
1341 cd "$ac_dir" || { ac_status=$?; continue; }
1342 # Check for guested configure.
1343 if test -f "$ac_srcdir/configure.gnu"; then
1344 echo &&
1345 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1346 elif test -f "$ac_srcdir/configure"; then
1347 echo &&
1348 $SHELL "$ac_srcdir/configure" --help=recursive
1349 else
1350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1351 fi || ac_status=$?
1352 cd "$ac_pwd" || { ac_status=$?; break; }
1353 done
1354 fi
1355
1356 test -n "$ac_init_help" && exit $ac_status
1357 if $ac_init_version; then
1358 cat <<\_ACEOF
1359 configure
1360 generated by GNU Autoconf 2.61
1361
1362 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1363 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1364 This configure script is free software; the Free Software Foundation
1365 gives unlimited permission to copy, distribute and modify it.
1366 _ACEOF
1367 exit
1368 fi
1369 cat >config.log <<_ACEOF
1370 This file contains any messages produced by compilers while
1371 running configure, to aid debugging if configure makes a mistake.
1372
1373 It was created by $as_me, which was
1374 generated by GNU Autoconf 2.61. Invocation command line was
1375
1376 $ $0 $@
1377
1378 _ACEOF
1379 exec 5>>config.log
1380 {
1381 cat <<_ASUNAME
1382 ## --------- ##
1383 ## Platform. ##
1384 ## --------- ##
1385
1386 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1387 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1388 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1389 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1390 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1391
1392 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1393 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1394
1395 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1396 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1397 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1398 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1399 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1400 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1401 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1402
1403 _ASUNAME
1404
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 echo "PATH: $as_dir"
1411 done
1412 IFS=$as_save_IFS
1413
1414 } >&5
1415
1416 cat >&5 <<_ACEOF
1417
1418
1419 ## ----------- ##
1420 ## Core tests. ##
1421 ## ----------- ##
1422
1423 _ACEOF
1424
1425
1426 # Keep a trace of the command line.
1427 # Strip out --no-create and --no-recursion so they do not pile up.
1428 # Strip out --silent because we don't want to record it for future runs.
1429 # Also quote any args containing shell meta-characters.
1430 # Make two passes to allow for proper duplicate-argument suppression.
1431 ac_configure_args=
1432 ac_configure_args0=
1433 ac_configure_args1=
1434 ac_must_keep_next=false
1435 for ac_pass in 1 2
1436 do
1437 for ac_arg
1438 do
1439 case $ac_arg in
1440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1443 continue ;;
1444 *\'*)
1445 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 esac
1447 case $ac_pass in
1448 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1449 2)
1450 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1451 if test $ac_must_keep_next = true; then
1452 ac_must_keep_next=false # Got value, back to normal.
1453 else
1454 case $ac_arg in
1455 *=* | --config-cache | -C | -disable-* | --disable-* \
1456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1458 | -with-* | --with-* | -without-* | --without-* | --x)
1459 case "$ac_configure_args0 " in
1460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1461 esac
1462 ;;
1463 -* ) ac_must_keep_next=true ;;
1464 esac
1465 fi
1466 ac_configure_args="$ac_configure_args '$ac_arg'"
1467 ;;
1468 esac
1469 done
1470 done
1471 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1472 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1473
1474 # When interrupted or exit'd, cleanup temporary files, and complete
1475 # config.log. We remove comments because anyway the quotes in there
1476 # would cause problems or look ugly.
1477 # WARNING: Use '\'' to represent an apostrophe within the trap.
1478 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1479 trap 'exit_status=$?
1480 # Save into config.log some information that might help in debugging.
1481 {
1482 echo
1483
1484 cat <<\_ASBOX
1485 ## ---------------- ##
1486 ## Cache variables. ##
1487 ## ---------------- ##
1488 _ASBOX
1489 echo
1490 # The following way of writing the cache mishandles newlines in values,
1491 (
1492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1493 eval ac_val=\$$ac_var
1494 case $ac_val in #(
1495 *${as_nl}*)
1496 case $ac_var in #(
1497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1499 esac
1500 case $ac_var in #(
1501 _ | IFS | as_nl) ;; #(
1502 *) $as_unset $ac_var ;;
1503 esac ;;
1504 esac
1505 done
1506 (set) 2>&1 |
1507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1508 *${as_nl}ac_space=\ *)
1509 sed -n \
1510 "s/'\''/'\''\\\\'\'''\''/g;
1511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1512 ;; #(
1513 *)
1514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1515 ;;
1516 esac |
1517 sort
1518 )
1519 echo
1520
1521 cat <<\_ASBOX
1522 ## ----------------- ##
1523 ## Output variables. ##
1524 ## ----------------- ##
1525 _ASBOX
1526 echo
1527 for ac_var in $ac_subst_vars
1528 do
1529 eval ac_val=\$$ac_var
1530 case $ac_val in
1531 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1532 esac
1533 echo "$ac_var='\''$ac_val'\''"
1534 done | sort
1535 echo
1536
1537 if test -n "$ac_subst_files"; then
1538 cat <<\_ASBOX
1539 ## ------------------- ##
1540 ## File substitutions. ##
1541 ## ------------------- ##
1542 _ASBOX
1543 echo
1544 for ac_var in $ac_subst_files
1545 do
1546 eval ac_val=\$$ac_var
1547 case $ac_val in
1548 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549 esac
1550 echo "$ac_var='\''$ac_val'\''"
1551 done | sort
1552 echo
1553 fi
1554
1555 if test -s confdefs.h; then
1556 cat <<\_ASBOX
1557 ## ----------- ##
1558 ## confdefs.h. ##
1559 ## ----------- ##
1560 _ASBOX
1561 echo
1562 cat confdefs.h
1563 echo
1564 fi
1565 test "$ac_signal" != 0 &&
1566 echo "$as_me: caught signal $ac_signal"
1567 echo "$as_me: exit $exit_status"
1568 } >&5
1569 rm -f core *.core core.conftest.* &&
1570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1571 exit $exit_status
1572 ' 0
1573 for ac_signal in 1 2 13 15; do
1574 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1575 done
1576 ac_signal=0
1577
1578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1579 rm -f -r conftest* confdefs.h
1580
1581 # Predefined preprocessor variables.
1582
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_NAME "$PACKAGE_NAME"
1585 _ACEOF
1586
1587
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1590 _ACEOF
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_STRING "$PACKAGE_STRING"
1600 _ACEOF
1601
1602
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1605 _ACEOF
1606
1607
1608 # Let the site file select an alternate cache file if it wants to.
1609 # Prefer explicitly selected file to automatically selected ones.
1610 if test -n "$CONFIG_SITE"; then
1611 set x "$CONFIG_SITE"
1612 elif test "x$prefix" != xNONE; then
1613 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1614 else
1615 set x "$ac_default_prefix/share/config.site" \
1616 "$ac_default_prefix/etc/config.site"
1617 fi
1618 shift
1619 for ac_site_file
1620 do
1621 if test -r "$ac_site_file"; then
1622 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1623 echo "$as_me: loading site script $ac_site_file" >&6;}
1624 sed 's/^/| /' "$ac_site_file" >&5
1625 . "$ac_site_file"
1626 fi
1627 done
1628
1629 if test -r "$cache_file"; then
1630 # Some versions of bash will fail to source /dev/null (special
1631 # files actually), so we avoid doing that.
1632 if test -f "$cache_file"; then
1633 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1634 echo "$as_me: loading cache $cache_file" >&6;}
1635 case $cache_file in
1636 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1637 *) . "./$cache_file";;
1638 esac
1639 fi
1640 else
1641 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1642 echo "$as_me: creating cache $cache_file" >&6;}
1643 >$cache_file
1644 fi
1645
1646 # Check that the precious variables saved in the cache have kept the same
1647 # value.
1648 ac_cache_corrupted=false
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1651 eval ac_new_set=\$ac_env_${ac_var}_set
1652 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1653 eval ac_new_val=\$ac_env_${ac_var}_value
1654 case $ac_old_set,$ac_new_set in
1655 set,)
1656 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1657 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1658 ac_cache_corrupted=: ;;
1659 ,set)
1660 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1661 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1662 ac_cache_corrupted=: ;;
1663 ,);;
1664 *)
1665 if test "x$ac_old_val" != "x$ac_new_val"; then
1666 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1667 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1668 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1669 echo "$as_me: former value: $ac_old_val" >&2;}
1670 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1671 echo "$as_me: current value: $ac_new_val" >&2;}
1672 ac_cache_corrupted=:
1673 fi;;
1674 esac
1675 # Pass precious variables to config.status.
1676 if test "$ac_new_set" = set; then
1677 case $ac_new_val in
1678 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 *) ac_arg=$ac_var=$ac_new_val ;;
1680 esac
1681 case " $ac_configure_args " in
1682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1683 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1684 esac
1685 fi
1686 done
1687 if $ac_cache_corrupted; then
1688 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1689 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1690 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1691 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1692 { (exit 1); exit 1; }; }
1693 fi
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711 ac_ext=c
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716
1717
1718
1719 ac_aux_dir=
1720 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1721 if test -f "$ac_dir/install-sh"; then
1722 ac_aux_dir=$ac_dir
1723 ac_install_sh="$ac_aux_dir/install-sh -c"
1724 break
1725 elif test -f "$ac_dir/install.sh"; then
1726 ac_aux_dir=$ac_dir
1727 ac_install_sh="$ac_aux_dir/install.sh -c"
1728 break
1729 elif test -f "$ac_dir/shtool"; then
1730 ac_aux_dir=$ac_dir
1731 ac_install_sh="$ac_aux_dir/shtool install -c"
1732 break
1733 fi
1734 done
1735 if test -z "$ac_aux_dir"; then
1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1737 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1738 { (exit 1); exit 1; }; }
1739 fi
1740
1741 # These three variables are undocumented and unsupported,
1742 # and are intended to be withdrawn in a future Autoconf release.
1743 # They can cause serious problems if a builder's source tree is in a directory
1744 # whose full name contains unusual characters.
1745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1748
1749
1750 # Make sure we can run config.sub.
1751 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1753 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1754 { (exit 1); exit 1; }; }
1755
1756 { echo "$as_me:$LINENO: checking build system type" >&5
1757 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1758 if test "${ac_cv_build+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 ac_build_alias=$build_alias
1762 test "x$ac_build_alias" = x &&
1763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1764 test "x$ac_build_alias" = x &&
1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1766 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1767 { (exit 1); exit 1; }; }
1768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1770 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773 fi
1774 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1775 echo "${ECHO_T}$ac_cv_build" >&6; }
1776 case $ac_cv_build in
1777 *-*-*) ;;
1778 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1779 echo "$as_me: error: invalid value of canonical build" >&2;}
1780 { (exit 1); exit 1; }; };;
1781 esac
1782 build=$ac_cv_build
1783 ac_save_IFS=$IFS; IFS='-'
1784 set x $ac_cv_build
1785 shift
1786 build_cpu=$1
1787 build_vendor=$2
1788 shift; shift
1789 # Remember, the first character of IFS is used to create $*,
1790 # except with old shells:
1791 build_os=$*
1792 IFS=$ac_save_IFS
1793 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1794
1795
1796 { echo "$as_me:$LINENO: checking host system type" >&5
1797 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1798 if test "${ac_cv_host+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test "x$host_alias" = x; then
1802 ac_cv_host=$ac_cv_build
1803 else
1804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1806 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1807 { (exit 1); exit 1; }; }
1808 fi
1809
1810 fi
1811 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1812 echo "${ECHO_T}$ac_cv_host" >&6; }
1813 case $ac_cv_host in
1814 *-*-*) ;;
1815 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1816 echo "$as_me: error: invalid value of canonical host" >&2;}
1817 { (exit 1); exit 1; }; };;
1818 esac
1819 host=$ac_cv_host
1820 ac_save_IFS=$IFS; IFS='-'
1821 set x $ac_cv_host
1822 shift
1823 host_cpu=$1
1824 host_vendor=$2
1825 shift; shift
1826 # Remember, the first character of IFS is used to create $*,
1827 # except with old shells:
1828 host_os=$*
1829 IFS=$ac_save_IFS
1830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1831
1832
1833
1834
1835
1836
1837
1838
1839 # Check whether --with-gcc was given.
1840 if test "${with_gcc+set}" = set; then
1841 withval=$with_gcc;
1842 fi
1843
1844 V_CCOPT="-O"
1845 V_INCLS=""
1846 if test "${srcdir}" != "." ; then
1847 V_INCLS="-I\$(srcdir)"
1848 fi
1849 if test "${CFLAGS+set}" = set; then
1850 LBL_CFLAGS="$CFLAGS"
1851 fi
1852 if test -z "$CC" ; then
1853 case "$host_os" in
1854
1855 bsdi*)
1856 # Extract the first word of "shlicc2", so it can be a program name with args.
1857 set dummy shlicc2; ac_word=$2
1858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1860 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863 if test -n "$SHLICC2"; then
1864 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1865 else
1866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 for as_dir in $PATH
1868 do
1869 IFS=$as_save_IFS
1870 test -z "$as_dir" && as_dir=.
1871 for ac_exec_ext in '' $ac_executable_extensions; do
1872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1873 ac_cv_prog_SHLICC2="yes"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 break 2
1876 fi
1877 done
1878 done
1879 IFS=$as_save_IFS
1880
1881 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1882 fi
1883 fi
1884 SHLICC2=$ac_cv_prog_SHLICC2
1885 if test -n "$SHLICC2"; then
1886 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1887 echo "${ECHO_T}$SHLICC2" >&6; }
1888 else
1889 { echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6; }
1891 fi
1892
1893
1894 if test $SHLICC2 = yes ; then
1895 CC=shlicc2
1896 export CC
1897 fi
1898 ;;
1899 esac
1900 fi
1901 if test -z "$CC" -a "$with_gcc" = no ; then
1902 CC=cc
1903 export CC
1904 fi
1905 ac_ext=c
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1910 if test -n "$ac_tool_prefix"; then
1911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1931 fi
1932 done
1933 done
1934 IFS=$as_save_IFS
1935
1936 fi
1937 fi
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940 { echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6; }
1942 else
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1945 fi
1946
1947
1948 fi
1949 if test -z "$ac_cv_prog_CC"; then
1950 ac_ct_CC=$CC
1951 # Extract the first word of "gcc", so it can be a program name with args.
1952 set dummy gcc; ac_word=$2
1953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 if test -n "$ac_ct_CC"; then
1959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964 IFS=$as_save_IFS
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1968 ac_cv_prog_ac_ct_CC="gcc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 break 2
1971 fi
1972 done
1973 done
1974 IFS=$as_save_IFS
1975
1976 fi
1977 fi
1978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1979 if test -n "$ac_ct_CC"; then
1980 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1981 echo "${ECHO_T}$ac_ct_CC" >&6; }
1982 else
1983 { echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6; }
1985 fi
1986
1987 if test "x$ac_ct_CC" = x; then
1988 CC=""
1989 else
1990 case $cross_compiling:$ac_tool_warned in
1991 yes:)
1992 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1993 whose name does not start with the host triplet. If you think this
1994 configuration is useful to you, please write to autoconf@gnu.org." >&5
1995 echo "$as_me: 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." >&2;}
1998 ac_tool_warned=yes ;;
1999 esac
2000 CC=$ac_ct_CC
2001 fi
2002 else
2003 CC="$ac_cv_prog_CC"
2004 fi
2005
2006 if test -z "$CC"; then
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}cc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_CC="${ac_tool_prefix}cc"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029 done
2030 done
2031 IFS=$as_save_IFS
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 { echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6; }
2039 else
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2042 fi
2043
2044
2045 fi
2046 fi
2047 if test -z "$CC"; then
2048 # Extract the first word of "cc", so it can be a program name with args.
2049 set dummy cc; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055 if test -n "$CC"; then
2056 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 else
2058 ac_prog_rejected=no
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062 IFS=$as_save_IFS
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2067 ac_prog_rejected=yes
2068 continue
2069 fi
2070 ac_cv_prog_CC="cc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2073 fi
2074 done
2075 done
2076 IFS=$as_save_IFS
2077
2078 if test $ac_prog_rejected = yes; then
2079 # We found a bogon in the path, so make sure we never use it.
2080 set dummy $ac_cv_prog_CC
2081 shift
2082 if test $# != 0; then
2083 # We chose a different compiler from the bogus one.
2084 # However, it has the same basename, so the bogon will be chosen
2085 # first if we set CC to just the basename; use the full file name.
2086 shift
2087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2088 fi
2089 fi
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094 { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2096 else
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2099 fi
2100
2101
2102 fi
2103 if test -z "$CC"; then
2104 if test -n "$ac_tool_prefix"; then
2105 for ac_prog in cl.exe
2106 do
2107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2
2127 fi
2128 done
2129 done
2130 IFS=$as_save_IFS
2131
2132 fi
2133 fi
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136 { echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6; }
2138 else
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2141 fi
2142
2143
2144 test -n "$CC" && break
2145 done
2146 fi
2147 if test -z "$CC"; then
2148 ac_ct_CC=$CC
2149 for ac_prog in cl.exe
2150 do
2151 # Extract the first word of "$ac_prog", so it can be a program name with args.
2152 set dummy $ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 if test -n "$ac_ct_CC"; then
2159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_ac_ct_CC="$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2171 fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6; }
2182 else
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188 test -n "$ac_ct_CC" && break
2189 done
2190
2191 if test "x$ac_ct_CC" = x; then
2192 CC=""
2193 else
2194 case $cross_compiling:$ac_tool_warned in
2195 yes:)
2196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2197 whose name does not start with the host triplet. If you think this
2198 configuration is useful to you, please write to autoconf@gnu.org." >&5
2199 echo "$as_me: 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." >&2;}
2202 ac_tool_warned=yes ;;
2203 esac
2204 CC=$ac_ct_CC
2205 fi
2206 fi
2207
2208 fi
2209
2210
2211 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: no acceptable C compiler found in \$PATH
2214 See \`config.log' for more details." >&2;}
2215 { (exit 1); exit 1; }; }
2216
2217 # Provide some information about the compiler.
2218 echo "$as_me:$LINENO: checking for C compiler version" >&5
2219 ac_compiler=`set X $ac_compile; echo $2`
2220 { (ac_try="$ac_compiler --version >&5"
2221 case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2224 esac
2225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2226 (eval "$ac_compiler --version >&5") 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }
2230 { (ac_try="$ac_compiler -v >&5"
2231 case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234 esac
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_compiler -v >&5") 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }
2240 { (ac_try="$ac_compiler -V >&5"
2241 case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244 esac
2245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2246 (eval "$ac_compiler -V >&5") 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }
2250
2251 cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h. */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2257
2258 int
2259 main ()
2260 {
2261
2262 ;
2263 return 0;
2264 }
2265 _ACEOF
2266 ac_clean_files_save=$ac_clean_files
2267 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2268 # Try to create an executable without -o first, disregard a.out.
2269 # It will help us diagnose broken compilers, and finding out an intuition
2270 # of exeext.
2271 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2272 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2273 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2274 #
2275 # List of possible output files, starting from the most likely.
2276 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2277 # only as a last resort. b.out is created by i960 compilers.
2278 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2279 #
2280 # The IRIX 6 linker writes into existing files which may not be
2281 # executable, retaining their permissions. Remove them first so a
2282 # subsequent execution test works.
2283 ac_rmfiles=
2284 for ac_file in $ac_files
2285 do
2286 case $ac_file in
2287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2288 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2289 esac
2290 done
2291 rm -f $ac_rmfiles
2292
2293 if { (ac_try="$ac_link_default"
2294 case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297 esac
2298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2299 (eval "$ac_link_default") 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2304 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2305 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2306 # so that the user can short-circuit this test for compilers unknown to
2307 # Autoconf.
2308 for ac_file in $ac_files ''
2309 do
2310 test -f "$ac_file" || continue
2311 case $ac_file in
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2313 ;;
2314 [ab].out )
2315 # We found the default executable, but exeext='' is most
2316 # certainly right.
2317 break;;
2318 *.* )
2319 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2320 then :; else
2321 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2322 fi
2323 # We set ac_cv_exeext here because the later test for it is not
2324 # safe: cross compilers may not add the suffix if given an `-o'
2325 # argument, so we may need to know it at that point already.
2326 # Even if this section looks crufty: it has the advantage of
2327 # actually working.
2328 break;;
2329 * )
2330 break;;
2331 esac
2332 done
2333 test "$ac_cv_exeext" = no && ac_cv_exeext=
2334
2335 else
2336 ac_file=''
2337 fi
2338
2339 { echo "$as_me:$LINENO: result: $ac_file" >&5
2340 echo "${ECHO_T}$ac_file" >&6; }
2341 if test -z "$ac_file"; then
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: C compiler cannot create executables
2348 See \`config.log' for more details." >&2;}
2349 { (exit 77); exit 77; }; }
2350 fi
2351
2352 ac_exeext=$ac_cv_exeext
2353
2354 # Check that the compiler produces executables we can run. If not, either
2355 # the compiler is broken, or we cross compile.
2356 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2357 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2358 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2359 # If not cross compiling, check that we can run a simple program.
2360 if test "$cross_compiling" != yes; then
2361 if { ac_try='./$ac_file'
2362 { (case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_try") 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 cross_compiling=no
2372 else
2373 if test "$cross_compiling" = maybe; then
2374 cross_compiling=yes
2375 else
2376 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2377 If you meant to cross compile, use \`--host'.
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }
2383 fi
2384 fi
2385 fi
2386 { echo "$as_me:$LINENO: result: yes" >&5
2387 echo "${ECHO_T}yes" >&6; }
2388
2389 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2390 ac_clean_files=$ac_clean_files_save
2391 # Check that the compiler produces executables we can run. If not, either
2392 # the compiler is broken, or we cross compile.
2393 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2394 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2395 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2396 echo "${ECHO_T}$cross_compiling" >&6; }
2397
2398 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2399 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2400 if { (ac_try="$ac_link"
2401 case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_link") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; then
2410 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2411 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2412 # work properly (i.e., refer to `conftest.exe'), while it won't with
2413 # `rm'.
2414 for ac_file in conftest.exe conftest conftest.*; do
2415 test -f "$ac_file" || continue
2416 case $ac_file in
2417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419 break;;
2420 * ) break;;
2421 esac
2422 done
2423 else
2424 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2425 See \`config.log' for more details." >&5
2426 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&2;}
2428 { (exit 1); exit 1; }; }
2429 fi
2430
2431 rm -f conftest$ac_cv_exeext
2432 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2433 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2434
2435 rm -f conftest.$ac_ext
2436 EXEEXT=$ac_cv_exeext
2437 ac_exeext=$EXEEXT
2438 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2439 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2440 if test "${ac_cv_objext+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h. */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2449
2450 int
2451 main ()
2452 {
2453
2454 ;
2455 return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.o conftest.obj
2459 if { (ac_try="$ac_compile"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compile") 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 for ac_file in conftest.o conftest.obj conftest.*; do
2470 test -f "$ac_file" || continue;
2471 case $ac_file in
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2473 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2474 break;;
2475 esac
2476 done
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }
2486 fi
2487
2488 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2489 fi
2490 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2491 echo "${ECHO_T}$ac_cv_objext" >&6; }
2492 OBJEXT=$ac_cv_objext
2493 ac_objext=$OBJEXT
2494 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2495 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2496 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499 cat >conftest.$ac_ext <<_ACEOF
2500 /* confdefs.h. */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2505
2506 int
2507 main ()
2508 {
2509 #ifndef __GNUC__
2510 choke me
2511 #endif
2512
2513 ;
2514 return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (ac_try="$ac_compile"
2519 case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_compile") 2>conftest.er1
2525 ac_status=$?
2526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } && {
2531 test -z "$ac_c_werror_flag" ||
2532 test ! -s conftest.err
2533 } && test -s conftest.$ac_objext; then
2534 ac_compiler_gnu=yes
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_compiler_gnu=no
2540 fi
2541
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2544
2545 fi
2546 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2548 GCC=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CFLAGS=${CFLAGS+set}
2550 ac_save_CFLAGS=$CFLAGS
2551 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2552 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_cc_g+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 ac_save_c_werror_flag=$ac_c_werror_flag
2557 ac_c_werror_flag=yes
2558 ac_cv_prog_cc_g=no
2559 CFLAGS="-g"
2560 cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h. */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2566
2567 int
2568 main ()
2569 {
2570
2571 ;
2572 return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (ac_try="$ac_compile"
2577 case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_compile") 2>conftest.er1
2583 ac_status=$?
2584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest.$ac_objext; then
2592 ac_cv_prog_cc_g=yes
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 CFLAGS=""
2598 cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2604
2605 int
2606 main ()
2607 {
2608
2609 ;
2610 return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2615 case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } && {
2627 test -z "$ac_c_werror_flag" ||
2628 test ! -s conftest.err
2629 } && test -s conftest.$ac_objext; then
2630 :
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 ac_c_werror_flag=$ac_save_c_werror_flag
2636 CFLAGS="-g"
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643
2644 int
2645 main ()
2646 {
2647
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (ac_try="$ac_compile"
2654 case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659 (eval "$ac_compile") 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } && {
2666 test -z "$ac_c_werror_flag" ||
2667 test ! -s conftest.err
2668 } && test -s conftest.$ac_objext; then
2669 ac_cv_prog_cc_g=yes
2670 else
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674
2675 fi
2676
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
2685 fi
2686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2688 if test "$ac_test_CFLAGS" = set; then
2689 CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691 if test "$GCC" = yes; then
2692 CFLAGS="-g -O2"
2693 else
2694 CFLAGS="-g"
2695 fi
2696 else
2697 if test "$GCC" = yes; then
2698 CFLAGS="-O2"
2699 else
2700 CFLAGS=
2701 fi
2702 fi
2703 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2704 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_cc_c89+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 ac_cv_prog_cc_c89=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724 char **p;
2725 int i;
2726 {
2727 return p[i];
2728 }
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2730 {
2731 char *s;
2732 va_list v;
2733 va_start (v,p);
2734 s = g (p, va_arg (v,int));
2735 va_end (v);
2736 return s;
2737 }
2738
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2740 function prototypes and stuff, but not '\xHH' hex character constants.
2741 These don't provoke an error unfortunately, instead are silently treated
2742 as 'x'. The following induces an error, until -std is added to get
2743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2744 array size at least. It's necessary to write '\x00'==0 to get something
2745 that's true only with -std. */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747
2748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2749 inside strings and character constants. */
2750 #define FOO(x) 'x'
2751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2752
2753 int test (int i, double x);
2754 struct s1 {int (*f) (int a);};
2755 struct s2 {int (*f) (double a);};
2756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2757 int argc;
2758 char **argv;
2759 int
2760 main ()
2761 {
2762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2763 ;
2764 return 0;
2765 }
2766 _ACEOF
2767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2769 do
2770 CC="$ac_save_CC $ac_arg"
2771 rm -f conftest.$ac_objext
2772 if { (ac_try="$ac_compile"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2788 ac_cv_prog_cc_c89=$ac_arg
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793
2794 fi
2795
2796 rm -f core conftest.err conftest.$ac_objext
2797 test "x$ac_cv_prog_cc_c89" != "xno" && break
2798 done
2799 rm -f conftest.$ac_ext
2800 CC=$ac_save_CC
2801
2802 fi
2803 # AC_CACHE_VAL
2804 case "x$ac_cv_prog_cc_c89" in
2805 x)
2806 { echo "$as_me:$LINENO: result: none needed" >&5
2807 echo "${ECHO_T}none needed" >&6; } ;;
2808 xno)
2809 { echo "$as_me:$LINENO: result: unsupported" >&5
2810 echo "${ECHO_T}unsupported" >&6; } ;;
2811 *)
2812 CC="$CC $ac_cv_prog_cc_c89"
2813 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2815 esac
2816
2817
2818 ac_ext=c
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823
2824 if test "$GCC" = yes ; then
2825 if test "$SHLICC2" = yes ; then
2826 ac_cv_lbl_gcc_vers=2
2827 V_CCOPT="-O2"
2828 else
2829 { echo "$as_me:$LINENO: checking gcc version" >&5
2830 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2831 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2835 sed -e '/^gcc version /!d' \
2836 -e 's/^gcc version //' \
2837 -e 's/ .*//' -e 's/^[^0-9]*//' \
2838 -e 's/\..*//'`
2839 fi
2840
2841 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2842 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2843 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2844 V_CCOPT="-O2"
2845 fi
2846 fi
2847 else
2848 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2849 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2850 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860 #include <sys/types.h>
2861 int
2862 main ()
2863 {
2864 int frob(int, char *)
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && {
2883 test -z "$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
2886 ac_cv_lbl_cc_ansi_prototypes=yes
2887 else
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 ac_cv_lbl_cc_ansi_prototypes=no
2892 fi
2893
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 fi
2896
2897 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2898 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2899 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2900 case "$host_os" in
2901
2902 hpux*)
2903 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2904 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2905 savedcflags="$CFLAGS"
2906 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2907 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #include <sys/types.h>
2917 int
2918 main ()
2919 {
2920 int frob(int, char *)
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && {
2939 test -z "$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 } && test -s conftest.$ac_objext; then
2942 ac_cv_lbl_cc_hpux_cc_aa=yes
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2946
2947 ac_cv_lbl_cc_hpux_cc_aa=no
2948 fi
2949
2950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951 fi
2952
2953 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2954 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2955 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2956 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2957 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960 CFLAGS="$savedcflags"
2961 V_CCOPT="-Aa $V_CCOPT"
2962
2963 cat >>confdefs.h <<\_ACEOF
2964 #define _HPUX_SOURCE 1
2965 _ACEOF
2966
2967 ;;
2968
2969 osf*)
2970 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2971 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2972 savedcflags="$CFLAGS"
2973 CFLAGS="-std1"
2974 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <sys/types.h>
2984 int
2985 main ()
2986 {
2987 int frob(int, char *)
2988 ;
2989 return 0;
2990 }
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (ac_try="$ac_compile"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_compile") 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } && {
3006 test -z "$ac_c_werror_flag" ||
3007 test ! -s conftest.err
3008 } && test -s conftest.$ac_objext; then
3009 ac_cv_lbl_cc_osf1_cc_std1=yes
3010 else
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 ac_cv_lbl_cc_osf1_cc_std1=no
3015 fi
3016
3017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 fi
3019
3020 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3021 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3022 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3023 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3024 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3025 { (exit 1); exit 1; }; }
3026 fi
3027 CFLAGS="$savedcflags"
3028 V_CCOPT="-std1 $V_CCOPT"
3029 ;;
3030
3031 *)
3032 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3033 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3034 { (exit 1); exit 1; }; }
3035 ;;
3036 esac
3037 fi
3038 V_INCLS="$V_INCLS -I/usr/local/include"
3039 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3040
3041 case "$host_os" in
3042
3043 irix*)
3044 V_CCOPT="$V_CCOPT -xansi -signed -O"
3045 ;;
3046
3047 osf*)
3048 #
3049 # Presumed to be DEC OSF/1, Digital UNIX, or
3050 # Tru64 UNIX.
3051 #
3052 V_CCOPT="$V_CCOPT -O"
3053 ;;
3054
3055 ultrix*)
3056 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3057 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3058 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 #include <sys/types.h>
3068 int
3069 main ()
3070 {
3071 struct a { int b; };
3072 void c(const struct a *)
3073 ;
3074 return 0;
3075 }
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
3094 ac_cv_lbl_cc_const_proto=yes
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 ac_cv_lbl_cc_const_proto=no
3100 fi
3101
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 fi
3104
3105 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3106 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3107 if test $ac_cv_lbl_cc_const_proto = no ; then
3108
3109 cat >>confdefs.h <<\_ACEOF
3110 #define const
3111 _ACEOF
3112
3113 fi
3114 ;;
3115 esac
3116 fi
3117
3118 { echo "$as_me:$LINENO: checking for inline" >&5
3119 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3120 save_CFLAGS="$CFLAGS"
3121 CFLAGS="$V_CCOPT"
3122 if test "${ac_cv_lbl_inline+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125
3126 ac_cv_lbl_inline=""
3127 ac_lbl_cc_inline=no
3128 for ac_lbl_inline in inline __inline__ __inline
3129 do
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #define inline $ac_lbl_inline
3137 static inline struct iltest *foo(void);
3138 struct iltest {
3139 int iltest1;
3140 int iltest2;
3141 };
3142
3143 static inline struct iltest *
3144 foo()
3145 {
3146 static struct iltest xxx;
3147
3148 return &xxx;
3149 }
3150 int
3151 main ()
3152 {
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_lbl_cc_inline=yes
3176 else
3177 echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 if test "$ac_lbl_cc_inline" = yes ; then
3185 break;
3186 fi
3187 done
3188 if test "$ac_lbl_cc_inline" = yes ; then
3189 ac_cv_lbl_inline=$ac_lbl_inline
3190 fi
3191 fi
3192
3193 CFLAGS="$save_CFLAGS"
3194 if test ! -z "$ac_cv_lbl_inline" ; then
3195 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3196 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3197 else
3198 { echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6; }
3200 fi
3201
3202 cat >>confdefs.h <<_ACEOF
3203 #define inline $ac_cv_lbl_inline
3204 _ACEOF
3205
3206
3207 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3208 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3209 if test "${ac_cv___attribute__+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212
3213 cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h. */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219
3220 #include <stdlib.h>
3221
3222 static void foo(void) __attribute__ ((noreturn));
3223
3224 static void
3225 foo(void)
3226 {
3227 exit(1);
3228 }
3229
3230 int
3231 main(int argc, char **argv)
3232 {
3233 foo();
3234 }
3235
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (ac_try="$ac_compile"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3254 ac_cv___attribute__=yes
3255 else
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259 ac_cv___attribute__=no
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 fi
3264
3265 if test "$ac_cv___attribute__" = "yes"; then
3266
3267 cat >>confdefs.h <<\_ACEOF
3268 #define HAVE___ATTRIBUTE__ 1
3269 _ACEOF
3270
3271 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3272 else
3273 V_DEFS="$V_DEFS -D_U_=\"\""
3274 fi
3275 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3276 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3277
3278 if test "$ac_cv___attribute__" = "yes"; then
3279
3280 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3281 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3282 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285
3286 cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h. */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292
3293 #include <stdlib.h>
3294
3295 extern int (*foo)(const char *fmt, ...)
3296 __attribute__ ((format (printf, 1, 2)));
3297
3298 int
3299 main(int argc, char **argv)
3300 {
3301 (*foo)("%s", "test");
3302 }
3303
3304 _ACEOF
3305 rm -f conftest.$ac_objext
3306 if { (ac_try="$ac_compile"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv___attribute___format_function_pointer=yes
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 ac_cv___attribute___format_function_pointer=no
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332
3333 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3334
3335 cat >>confdefs.h <<\_ACEOF
3336 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3337 _ACEOF
3338
3339 fi
3340 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3341 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3342
3343 fi
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3354 fi
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361 do
3362 ac_preproc_ok=false
3363 for ac_c_preproc_warn_flag in '' yes
3364 do
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #ifdef __STDC__
3378 # include <limits.h>
3379 #else
3380 # include <assert.h>
3381 #endif
3382 Syntax error
3383 _ACEOF
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 }; then
3400 :
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 # Broken: fails on valid input.
3406 continue
3407 fi
3408
3409 rm -f conftest.err conftest.$ac_ext
3410
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h. */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3419 #include <ac_nonexistent.h>
3420 _ACEOF
3421 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } >/dev/null && {
3434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 }; then
3437 # Broken: success on invalid input.
3438 continue
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3446 fi
3447
3448 rm -f conftest.err conftest.$ac_ext
3449
3450 done
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3454 break
3455 fi
3456
3457 done
3458 ac_cv_prog_CPP=$CPP
3459
3460 fi
3461 CPP=$ac_cv_prog_CPP
3462 else
3463 ac_cv_prog_CPP=$CPP
3464 fi
3465 { echo "$as_me:$LINENO: result: $CPP" >&5
3466 echo "${ECHO_T}$CPP" >&6; }
3467 ac_preproc_ok=false
3468 for ac_c_preproc_warn_flag in '' yes
3469 do
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487 Syntax error
3488 _ACEOF
3489 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
3505 :
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 # Broken: fails on valid input.
3511 continue
3512 fi
3513
3514 rm -f conftest.err conftest.$ac_ext
3515
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3525 _ACEOF
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548 # Passes both tests.
3549 ac_preproc_ok=:
3550 break
3551 fi
3552
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 done
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.$ac_ext
3558 if $ac_preproc_ok; then
3559 :
3560 else
3561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3562 See \`config.log' for more details." >&5
3563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3564 See \`config.log' for more details." >&2;}
3565 { (exit 1); exit 1; }; }
3566 fi
3567
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
3574
3575 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3576 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3577 if test "${ac_cv_path_GREP+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 # Extract the first word of "grep ggrep" to use in msg output
3581 if test -z "$GREP"; then
3582 set dummy grep ggrep; ac_prog_name=$2
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 ac_path_GREP_found=false
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3590 do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_prog in grep ggrep; do
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3597 # Check for GNU ac_path_GREP and select it if it is found.
3598 # Check for GNU $ac_path_GREP
3599 case `"$ac_path_GREP" --version 2>&1` in
3600 *GNU*)
3601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3602 *)
3603 ac_count=0
3604 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3605 while :
3606 do
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
3610 echo 'GREP' >> "conftest.nl"
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3613 ac_count=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP="$ac_path_GREP"
3617 ac_path_GREP_max=$ac_count
3618 fi
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3621 done
3622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3623 esac
3624
3625
3626 $ac_path_GREP_found && break 3
3627 done
3628 done
3629
3630 done
3631 IFS=$as_save_IFS
3632
3633
3634 fi
3635
3636 GREP="$ac_cv_path_GREP"
3637 if test -z "$GREP"; then
3638 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3639 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3640 { (exit 1); exit 1; }; }
3641 fi
3642
3643 else
3644 ac_cv_path_GREP=$GREP
3645 fi
3646
3647
3648 fi
3649 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3651 GREP="$ac_cv_path_GREP"
3652
3653
3654 { echo "$as_me:$LINENO: checking for egrep" >&5
3655 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3656 if test "${ac_cv_path_EGREP+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660 then ac_cv_path_EGREP="$GREP -E"
3661 else
3662 # Extract the first word of "egrep" to use in msg output
3663 if test -z "$EGREP"; then
3664 set dummy egrep; ac_prog_name=$2
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 ac_path_EGREP_found=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_prog in egrep; do
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3679 # Check for GNU ac_path_EGREP and select it if it is found.
3680 # Check for GNU $ac_path_EGREP
3681 case `"$ac_path_EGREP" --version 2>&1` in
3682 *GNU*)
3683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3684 *)
3685 ac_count=0
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 while :
3688 do
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'EGREP' >> "conftest.nl"
3693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_EGREP="$ac_path_EGREP"
3699 ac_path_EGREP_max=$ac_count
3700 fi
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705 esac
3706
3707
3708 $ac_path_EGREP_found && break 3
3709 done
3710 done
3711
3712 done
3713 IFS=$as_save_IFS
3714
3715
3716 fi
3717
3718 EGREP="$ac_cv_path_EGREP"
3719 if test -z "$EGREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3723 fi
3724
3725 else
3726 ac_cv_path_EGREP=$EGREP
3727 fi
3728
3729
3730 fi
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3734 EGREP="$ac_cv_path_EGREP"
3735
3736
3737 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3738 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3739 if test "${ac_cv_header_stdc+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <stdlib.h>
3749 #include <stdarg.h>
3750 #include <string.h>
3751 #include <float.h>
3752
3753 int
3754 main ()
3755 {
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compile") 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
3778 ac_cv_header_stdc=yes
3779 else
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3782
3783 ac_cv_header_stdc=no
3784 fi
3785
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787
3788 if test $ac_cv_header_stdc = yes; then
3789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 #include <string.h>
3797
3798 _ACEOF
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 $EGREP "memchr" >/dev/null 2>&1; then
3801 :
3802 else
3803 ac_cv_header_stdc=no
3804 fi
3805 rm -f conftest*
3806
3807 fi
3808
3809 if test $ac_cv_header_stdc = yes; then
3810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <stdlib.h>
3818
3819 _ACEOF
3820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3821 $EGREP "free" >/dev/null 2>&1; then
3822 :
3823 else
3824 ac_cv_header_stdc=no
3825 fi
3826 rm -f conftest*
3827
3828 fi
3829
3830 if test $ac_cv_header_stdc = yes; then
3831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3832 if test "$cross_compiling" = yes; then
3833 :
3834 else
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #include <ctype.h>
3842 #include <stdlib.h>
3843 #if ((' ' & 0x0FF) == 0x020)
3844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3846 #else
3847 # define ISLOWER(c) \
3848 (('a' <= (c) && (c) <= 'i') \
3849 || ('j' <= (c) && (c) <= 'r') \
3850 || ('s' <= (c) && (c) <= 'z'))
3851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3852 #endif
3853
3854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3855 int
3856 main ()
3857 {
3858 int i;
3859 for (i = 0; i < 256; i++)
3860 if (XOR (islower (i), ISLOWER (i))
3861 || toupper (i) != TOUPPER (i))
3862 return 2;
3863 return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 :
3887 else
3888 echo "$as_me: program exited with status $ac_status" >&5
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892 ( exit $ac_status )
3893 ac_cv_header_stdc=no
3894 fi
3895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3896 fi
3897
3898
3899 fi
3900 fi
3901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3903 if test $ac_cv_header_stdc = yes; then
3904
3905 cat >>confdefs.h <<\_ACEOF
3906 #define STDC_HEADERS 1
3907 _ACEOF
3908
3909 fi
3910
3911 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3922 inttypes.h stdint.h unistd.h
3923 do
3924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 $ac_includes_default
3937
3938 #include <$ac_header>
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3942 case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_compile") 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && {
3954 test -z "$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest.$ac_objext; then
3957 eval "$as_ac_Header=yes"
3958 else
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962 eval "$as_ac_Header=no"
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 fi
3967 ac_res=`eval echo '${'$as_ac_Header'}'`
3968 { echo "$as_me:$LINENO: result: $ac_res" >&5
3969 echo "${ECHO_T}$ac_res" >&6; }
3970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3971 cat >>confdefs.h <<_ACEOF
3972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3973 _ACEOF
3974
3975 fi
3976
3977 done
3978
3979
3980
3981
3982
3983 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3984 do
3985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 fi
3992 ac_res=`eval echo '${'$as_ac_Header'}'`
3993 { echo "$as_me:$LINENO: result: $ac_res" >&5
3994 echo "${ECHO_T}$ac_res" >&6; }
3995 else
3996 # Is the header compilable?
3997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4006 #include <$ac_header>
4007 _ACEOF
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compile") 2>conftest.er1
4016 ac_status=$?
4017 grep -v '^ *+' conftest.er1 >conftest.err
4018 rm -f conftest.er1
4019 cat conftest.err >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && {
4022 test -z "$ac_c_werror_flag" ||
4023 test ! -s conftest.err
4024 } && test -s conftest.$ac_objext; then
4025 ac_header_compiler=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 ac_header_compiler=no
4031 fi
4032
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4035 echo "${ECHO_T}$ac_header_compiler" >&6; }
4036
4037 # Is the header present?
4038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #include <$ac_header>
4047 _ACEOF
4048 if { (ac_try="$ac_cpp conftest.$ac_ext"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4055 ac_status=$?
4056 grep -v '^ *+' conftest.er1 >conftest.err
4057 rm -f conftest.er1
4058 cat conftest.err >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } >/dev/null && {
4061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4063 }; then
4064 ac_header_preproc=yes
4065 else
4066 echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069 ac_header_preproc=no
4070 fi
4071
4072 rm -f conftest.err conftest.$ac_ext
4073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4074 echo "${ECHO_T}$ac_header_preproc" >&6; }
4075
4076 # So? What about this header?
4077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4078 yes:no: )
4079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4083 ac_header_preproc=yes
4084 ;;
4085 no:yes:* )
4086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4098
4099 ;;
4100 esac
4101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 eval "$as_ac_Header=\$ac_header_preproc"
4107 fi
4108 ac_res=`eval echo '${'$as_ac_Header'}'`
4109 { echo "$as_me:$LINENO: result: $ac_res" >&5
4110 echo "${ECHO_T}$ac_res" >&6; }
4111
4112 fi
4113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4114 cat >>confdefs.h <<_ACEOF
4115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4116 _ACEOF
4117
4118 fi
4119
4120 done
4121
4122
4123 for ac_header in net/pfvar.h
4124 do
4125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 #include <sys/socket.h>
4139 #include <net/if.h>
4140
4141 #include <$ac_header>
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && {
4157 test -z "$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4159 } && test -s conftest.$ac_objext; then
4160 eval "$as_ac_Header=yes"
4161 else
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 eval "$as_ac_Header=no"
4166 fi
4167
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 fi
4170 ac_res=`eval echo '${'$as_ac_Header'}'`
4171 { echo "$as_me:$LINENO: result: $ac_res" >&5
4172 echo "${ECHO_T}$ac_res" >&6; }
4173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4174 cat >>confdefs.h <<_ACEOF
4175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4176 _ACEOF
4177
4178 fi
4179
4180 done
4181
4182 if test "$ac_cv_header_net_pfvar_h" = yes; then
4183 LOCALSRC="print-pflog.c $LOCALSRC"
4184 fi
4185
4186 for ac_header in netinet/if_ether.h
4187 do
4188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/socket.h>
4202
4203 #include <$ac_header>
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && {
4219 test -z "$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 } && test -s conftest.$ac_objext; then
4222 eval "$as_ac_Header=yes"
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 eval "$as_ac_Header=no"
4228 fi
4229
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 fi
4232 ac_res=`eval echo '${'$as_ac_Header'}'`
4233 { echo "$as_me:$LINENO: result: $ac_res" >&5
4234 echo "${ECHO_T}$ac_res" >&6; }
4235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238 _ACEOF
4239
4240 fi
4241
4242 done
4243
4244 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4245 #
4246 # The simple test didn't work.
4247 # Do we need to include <net/if.h> first?
4248 # Unset ac_cv_header_netinet_if_ether_h so we don't
4249 # treat the previous failure as a cached value and
4250 # suppress the next test.
4251 #
4252 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4253 echo "$as_me: Rechecking with some additional includes" >&6;}
4254 unset ac_cv_header_netinet_if_ether_h
4255
4256 for ac_header in netinet/if_ether.h
4257 do
4258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h. */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 #include <sys/types.h>
4271 #include <sys/socket.h>
4272 #include <netinet/in.h>
4273 struct mbuf;
4274 struct rtentry;
4275 #include <net/if.h>
4276
4277 #include <$ac_header>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_compile") 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && {
4293 test -z "$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4295 } && test -s conftest.$ac_objext; then
4296 eval "$as_ac_Header=yes"
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 eval "$as_ac_Header=no"
4302 fi
4303
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 ac_res=`eval echo '${'$as_ac_Header'}'`
4307 { echo "$as_me:$LINENO: result: $ac_res" >&5
4308 echo "${ECHO_T}$ac_res" >&6; }
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 _ACEOF
4313
4314 fi
4315
4316 done
4317
4318 fi
4319
4320 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4321 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4322 if test "${ac_cv_header_time+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <sys/types.h>
4332 #include <sys/time.h>
4333 #include <time.h>
4334
4335 int
4336 main ()
4337 {
4338 if ((struct tm *) 0)
4339 return 0;
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4361 ac_cv_header_time=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 ac_cv_header_time=no
4367 fi
4368
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4372 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4373 if test $ac_cv_header_time = yes; then
4374
4375 cat >>confdefs.h <<\_ACEOF
4376 #define TIME_WITH_SYS_TIME 1
4377 _ACEOF
4378
4379 fi
4380
4381
4382 case "$host_os" in
4383
4384 linux*)
4385 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4386 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4387 if test "$cross_compiling" = yes; then
4388 if test "${ac_cv_linux_vers+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 ac_cv_linux_vers=unknown
4392 fi
4393
4394 else
4395 if test "${ac_cv_linux_vers+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 ac_cv_linux_vers=`uname -r 2>&1 | \
4399 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4400 fi
4401
4402 fi
4403 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4404 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4405 if test $ac_cv_linux_vers = unknown ; then
4406 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4407 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4408 { (exit 1); exit 1; }; }
4409 fi
4410 if test $ac_cv_linux_vers -lt 2 ; then
4411 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4412 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4413 { (exit 1); exit 1; }; }
4414 fi
4415 ;;
4416
4417 *)
4418 ;;
4419 esac
4420
4421
4422
4423 # Check whether --with-smi was given.
4424 if test "${with_smi+set}" = set; then
4425 withval=$with_smi;
4426 else
4427 with_smi=yes
4428 fi
4429
4430
4431 if test "x$with_smi" != "xno" ; then
4432
4433 for ac_header in smi.h
4434 do
4435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 fi
4442 ac_res=`eval echo '${'$as_ac_Header'}'`
4443 { echo "$as_me:$LINENO: result: $ac_res" >&5
4444 echo "${ECHO_T}$ac_res" >&6; }
4445 else
4446 # Is the header compilable?
4447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4456 #include <$ac_header>
4457 _ACEOF
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_header_compiler=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 ac_header_compiler=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4485 echo "${ECHO_T}$ac_header_compiler" >&6; }
4486
4487 # Is the header present?
4488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496 #include <$ac_header>
4497 _ACEOF
4498 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
4511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 }; then
4514 ac_header_preproc=yes
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 ac_header_preproc=no
4520 fi
4521
4522 rm -f conftest.err conftest.$ac_ext
4523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4524 echo "${ECHO_T}$ac_header_preproc" >&6; }
4525
4526 # So? What about this header?
4527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4528 yes:no: )
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4533 ac_header_preproc=yes
4534 ;;
4535 no:yes:* )
4536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4548
4549 ;;
4550 esac
4551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 eval "$as_ac_Header=\$ac_header_preproc"
4557 fi
4558 ac_res=`eval echo '${'$as_ac_Header'}'`
4559 { echo "$as_me:$LINENO: result: $ac_res" >&5
4560 echo "${ECHO_T}$ac_res" >&6; }
4561
4562 fi
4563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4564 cat >>confdefs.h <<_ACEOF
4565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4566 _ACEOF
4567
4568 fi
4569
4570 done
4571
4572
4573 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4574 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4575 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 ac_check_lib_save_LIBS=$LIBS
4579 LIBS="-lsmi $LIBS"
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586
4587 /* Override any GCC internal prototype to avoid an error.
4588 Use char because int might match the return type of a GCC
4589 builtin and then its argument prototype would still apply. */
4590 #ifdef __cplusplus
4591 extern "C"
4592 #endif
4593 char smiInit ();
4594 int
4595 main ()
4596 {
4597 return smiInit ();
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext conftest$ac_exeext
4603 if { (ac_try="$ac_link"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_link") 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && {
4616 test -z "$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 } && test -s conftest$ac_exeext &&
4619 $as_test_x conftest$ac_exeext; then
4620 ac_cv_lib_smi_smiInit=yes
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ac_cv_lib_smi_smiInit=no
4626 fi
4627
4628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4629 conftest$ac_exeext conftest.$ac_ext
4630 LIBS=$ac_check_lib_save_LIBS
4631 fi
4632 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4633 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4634 if test $ac_cv_lib_smi_smiInit = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636 #define HAVE_LIBSMI 1
4637 _ACEOF
4638
4639 LIBS="-lsmi $LIBS"
4640
4641 fi
4642
4643 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4644 then
4645 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4646 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4647 if test "$cross_compiling" = yes; then
4648 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4649 echo "${ECHO_T}not when cross-compiling" >&6; }
4650 libsmi=no
4651
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 /* libsmi available check */
4660 #include <smi.h>
4661 main()
4662 {
4663 int current, revision, age, n;
4664 const int required = 2;
4665 if (smiInit(""))
4666 exit(1);
4667 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4668 exit(2);
4669 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4670 if (n != 3)
4671 exit(3);
4672 if (required < current - age || required > current)
4673 exit(4);
4674 exit(0);
4675 }
4676
4677 _ACEOF
4678 rm -f conftest$ac_exeext
4679 if { (ac_try="$ac_link"
4680 case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_link") 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4689 { (case "(($ac_try" in
4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4692 esac
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694 (eval "$ac_try") 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4700 cat >>confdefs.h <<\_ACEOF
4701 #define LIBSMI 1
4702 _ACEOF
4703
4704 libsmi=yes
4705 else
4706 echo "$as_me: program exited with status $ac_status" >&5
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 ( exit $ac_status )
4711 case $? in
4712 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4713 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4714 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4715 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4716 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4717 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4718 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4719 echo "${ECHO_T}no - too old" >&6; } ;;
4720 *) { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; } ;;
4722 esac
4723 libsmi=no
4724 fi
4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4726 fi
4727
4728
4729 fi
4730 fi
4731
4732 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4733 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4734 # Check whether --enable-smb was given.
4735 if test "${enable_smb+set}" = set; then
4736 enableval=$enable_smb;
4737 else
4738 enableval=yes
4739 fi
4740
4741 case "$enableval" in
4742 yes) { echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6; }
4744 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4745 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4746 cat >>confdefs.h <<\_ACEOF
4747 #define TCPDUMP_DO_SMB 1
4748 _ACEOF
4749
4750 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4751 ;;
4752 *) { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 ;;
4755 esac
4756
4757
4758 # Check whether --with-user was given.
4759 if test "${with_user+set}" = set; then
4760 withval=$with_user;
4761 fi
4762
4763 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4764 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4765 if test ! -z "$with_user" ; then
4766 cat >>confdefs.h <<_ACEOF
4767 #define WITH_USER "$withval"
4768 _ACEOF
4769
4770 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4771 echo "${ECHO_T}to \"$withval\"" >&6; }
4772 else
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778 # Check whether --with-chroot was given.
4779 if test "${with_chroot+set}" = set; then
4780 withval=$with_chroot;
4781 fi
4782
4783 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4784 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4785 if test ! -z "$with_chroot" ; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define WITH_CHROOT "$withval"
4788 _ACEOF
4789
4790 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4791 echo "${ECHO_T}to \"$withval\"" >&6; }
4792 else
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4795 fi
4796
4797 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4798 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4799 # Check whether --enable-ipv6 was given.
4800 if test "${enable_ipv6+set}" = set; then
4801 enableval=$enable_ipv6; case "$enableval" in
4802 yes) { echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6; }
4804 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"
4805 cat >>confdefs.h <<\_ACEOF
4806 #define INET6 1
4807 _ACEOF
4808
4809 ipv6=yes
4810 ;;
4811 *)
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 ipv6=no
4815 ;;
4816 esac
4817 else
4818 if test "$cross_compiling" = yes; then
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4821 ipv6=no
4822
4823 else
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 /* AF_INET6 available check */
4831 #include <sys/types.h>
4832 #include <sys/socket.h>
4833 main()
4834 {
4835 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4836 exit(1);
4837 else
4838 exit(0);
4839 }
4840
4841 _ACEOF
4842 rm -f conftest$ac_exeext
4843 if { (ac_try="$ac_link"
4844 case "(($ac_try" in
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4847 esac
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_link") 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4853 { (case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_try") 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 { echo "$as_me:$LINENO: result: yes" >&5
4863 echo "${ECHO_T}yes" >&6; }
4864 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"
4865 cat >>confdefs.h <<\_ACEOF
4866 #define INET6 1
4867 _ACEOF
4868
4869 ipv6=yes
4870 else
4871 echo "$as_me: program exited with status $ac_status" >&5
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 ( exit $ac_status )
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4878 ipv6=no
4879 fi
4880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4881 fi
4882
4883
4884 fi
4885
4886
4887 ipv6type=unknown
4888 ipv6lib=none
4889 ipv6trylibc=no
4890
4891 if test "$ipv6" = "yes"; then
4892 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4893 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4894 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4895 case $i in
4896 inria)
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <netinet/in.h>
4904 #ifdef IPV6_INRIA_VERSION
4905 yes
4906 #endif
4907 _ACEOF
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "yes" >/dev/null 2>&1; then
4910 ipv6type=$i;
4911 CFLAGS="-DINET6 $CFLAGS"
4912 fi
4913 rm -f conftest*
4914
4915 ;;
4916 kame)
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 #include <netinet/in.h>
4924 #ifdef __KAME__
4925 yes
4926 #endif
4927 _ACEOF
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "yes" >/dev/null 2>&1; then
4930 ipv6type=$i;
4931 ipv6lib=inet6;
4932 ipv6libdir=/usr/local/v6/lib;
4933 ipv6trylibc=yes;
4934 CFLAGS="-DINET6 $CFLAGS"
4935 fi
4936 rm -f conftest*
4937
4938 ;;
4939 linux-glibc)
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <features.h>
4947 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4948 yes
4949 #endif
4950 _ACEOF
4951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4952 $EGREP "yes" >/dev/null 2>&1; then
4953 ipv6type=$i;
4954 CFLAGS="-DINET6 $CFLAGS"
4955 fi
4956 rm -f conftest*
4957
4958 ;;
4959 linux-libinet6)
4960 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4961 ipv6type=$i
4962 ipv6lib=inet6
4963 ipv6libdir=/usr/inet6/lib
4964 ipv6trylibc=yes;
4965 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4966 fi
4967 ;;
4968 toshiba)
4969 cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <sys/param.h>
4976 #ifdef _TOSHIBA_INET6
4977 yes
4978 #endif
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981 $EGREP "yes" >/dev/null 2>&1; then
4982 ipv6type=$i;
4983 ipv6lib=inet6;
4984 ipv6libdir=/usr/local/v6/lib;
4985 CFLAGS="-DINET6 $CFLAGS"
4986 fi
4987 rm -f conftest*
4988
4989 ;;
4990 v6d)
4991 cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h. */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #include </usr/local/v6/include/sys/v6config.h>
4998 #ifdef __V6D__
4999 yes
5000 #endif
5001 _ACEOF
5002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003 $EGREP "yes" >/dev/null 2>&1; then
5004 ipv6type=$i;
5005 ipv6lib=v6;
5006 ipv6libdir=/usr/local/v6/lib;
5007 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5008 fi
5009 rm -f conftest*
5010
5011 ;;
5012 zeta)
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 #include <sys/param.h>
5020 #ifdef _ZETA_MINAMI_INET6
5021 yes
5022 #endif
5023 _ACEOF
5024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5025 $EGREP "yes" >/dev/null 2>&1; then
5026 ipv6type=$i;
5027 ipv6lib=inet6;
5028 ipv6libdir=/usr/local/v6/lib;
5029 CFLAGS="-DINET6 $CFLAGS"
5030 fi
5031 rm -f conftest*
5032
5033 ;;
5034 esac
5035 if test "$ipv6type" != "unknown"; then
5036 break
5037 fi
5038 done
5039 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5040 echo "${ECHO_T}$ipv6type" >&6; }
5041 fi
5042
5043 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5044 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5045 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5046 echo "You have $ipv6lib library, using it"
5047 else
5048 if test "$ipv6trylibc" = "yes"; then
5049 echo "You do not have $ipv6lib library, using libc"
5050 else
5051 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5052 echo "You need to fetch lib$ipv6lib.a from appropriate"
5053 echo 'ipv6 kit and compile beforehand.'
5054 exit 1
5055 fi
5056 fi
5057 fi
5058
5059
5060 if test "$ipv6" = "yes"; then
5061 #
5062 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5063 # function in libc; there are "ngetaddrinfo()" and
5064 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5065 # "getaddrinfo" to be either "ngetaddrinfo" or
5066 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5067 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5068 #
5069 # So this test doesn't work on Tru64 5.1, and possibly
5070 # on other 5.x releases. This causes the configure
5071 # script to become confused, and results in libpcap
5072 # being unbuildable.
5073 #
5074 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5075 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5076 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 ac_func_search_save_LIBS=$LIBS
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086
5087 /* Override any GCC internal prototype to avoid an error.
5088 Use char because int might match the return type of a GCC
5089 builtin and then its argument prototype would still apply. */
5090 #ifdef __cplusplus
5091 extern "C"
5092 #endif
5093 char getaddrinfo ();
5094 int
5095 main ()
5096 {
5097 return getaddrinfo ();
5098 ;
5099 return 0;
5100 }
5101 _ACEOF
5102 for ac_lib in '' socket; do
5103 if test -z "$ac_lib"; then
5104 ac_res="none required"
5105 else
5106 ac_res=-l$ac_lib
5107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5108 fi
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && {
5123 test -z "$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 } && test -s conftest$ac_exeext &&
5126 $as_test_x conftest$ac_exeext; then
5127 ac_cv_search_getaddrinfo=$ac_res
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132
5133 fi
5134
5135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5136 conftest$ac_exeext
5137 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5138 break
5139 fi
5140 done
5141 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5142 :
5143 else
5144 ac_cv_search_getaddrinfo=no
5145 fi
5146 rm conftest.$ac_ext
5147 LIBS=$ac_func_search_save_LIBS
5148 fi
5149 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5150 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5151 ac_res=$ac_cv_search_getaddrinfo
5152 if test "$ac_res" != no; then
5153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5154 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5155 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5156 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 if test "$cross_compiling" = yes; then
5160 td_cv_buggygetaddrinfo=yes
5161 else
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168
5169 #include <sys/types.h>
5170 #include <netdb.h>
5171 #include <string.h>
5172 #include <sys/socket.h>
5173 #include <netinet/in.h>
5174
5175 main()
5176 {
5177 int passive, gaierr, inet4 = 0, inet6 = 0;
5178 struct addrinfo hints, *ai, *aitop;
5179 char straddr[INET6_ADDRSTRLEN], strport[16];
5180
5181 for (passive = 0; passive <= 1; passive++) {
5182 memset(&hints, 0, sizeof(hints));
5183 hints.ai_family = AF_UNSPEC;
5184 hints.ai_flags = passive ? AI_PASSIVE : 0;
5185 hints.ai_socktype = SOCK_STREAM;
5186 hints.ai_protocol = IPPROTO_TCP;
5187 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5188 (void)gai_strerror(gaierr);
5189 goto bad;
5190 }
5191 for (ai = aitop; ai; ai = ai->ai_next) {
5192 if (ai->ai_addr == NULL ||
5193 ai->ai_addrlen == 0 ||
5194 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5195 straddr, sizeof(straddr), strport, sizeof(strport),
5196 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5197 goto bad;
5198 }
5199 switch (ai->ai_family) {
5200 case AF_INET:
5201 if (strcmp(strport, "54321") != 0) {
5202 goto bad;
5203 }
5204 if (passive) {
5205 if (strcmp(straddr, "0.0.0.0") != 0) {
5206 goto bad;
5207 }
5208 } else {
5209 if (strcmp(straddr, "127.0.0.1") != 0) {
5210 goto bad;
5211 }
5212 }
5213 inet4++;
5214 break;
5215 case AF_INET6:
5216 if (strcmp(strport, "54321") != 0) {
5217 goto bad;
5218 }
5219 if (passive) {
5220 if (strcmp(straddr, "::") != 0) {
5221 goto bad;
5222 }
5223 } else {
5224 if (strcmp(straddr, "::1") != 0) {
5225 goto bad;
5226 }
5227 }
5228 inet6++;
5229 break;
5230 case AF_UNSPEC:
5231 goto bad;
5232 break;
5233 #ifdef AF_UNIX
5234 case AF_UNIX:
5235 #else
5236 #ifdef AF_LOCAL
5237 case AF_LOCAL:
5238 #endif
5239 #endif
5240 default:
5241 /* another family support? */
5242 break;
5243 }
5244 }
5245 }
5246
5247 /* supported family should be 2, unsupported family should be 0 */
5248 if (!(inet4 == 0 || inet4 == 2))
5249 goto bad;
5250 if (!(inet6 == 0 || inet6 == 2))
5251 goto bad;
5252
5253 if (aitop)
5254 freeaddrinfo(aitop);
5255 exit(0);
5256
5257 bad:
5258 if (aitop)
5259 freeaddrinfo(aitop);
5260 exit(1);
5261 }
5262
5263 _ACEOF
5264 rm -f conftest$ac_exeext
5265 if { (ac_try="$ac_link"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_link") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5275 { (case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_try") 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 td_cv_buggygetaddrinfo=no
5285 else
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 ( exit $ac_status )
5291 td_cv_buggygetaddrinfo=yes
5292 fi
5293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5294 fi
5295
5296
5297 fi
5298
5299 if test "$td_cv_buggygetaddrinfo" = no; then
5300 { echo "$as_me:$LINENO: result: good" >&5
5301 echo "${ECHO_T}good" >&6; }
5302 else
5303 { echo "$as_me:$LINENO: result: buggy" >&5
5304 echo "${ECHO_T}buggy" >&6; }
5305 fi
5306
5307 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5308 #
5309 # XXX - it doesn't appear that "ipv6type" can ever be
5310 # set to "linux". Should this be testing for
5311 # "linux-glibc", or for that *or* "linux-libinet6"?
5312 # If the latter, note that "linux-libinet6" is also
5313 # the type given to some non-Linux OSes.
5314 #
5315 if test "$ipv6type" != "linux"; then
5316 echo 'Fatal: You must get working getaddrinfo() function.'
5317 echo ' or you can specify "--disable-ipv6"'.
5318 exit 1
5319 else
5320 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5321 echo ' Better upgrade your system library to newest version'
5322 echo ' of GNU C library (aka glibc).'
5323 fi
5324 fi
5325
5326 fi
5327
5328
5329 for ac_func in getnameinfo
5330 do
5331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5345 #define $ac_func innocuous_$ac_func
5346
5347 /* System header to define __stub macros and hopefully few prototypes,
5348 which can conflict with char $ac_func (); below.
5349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5350 <limits.h> exists even on freestanding compilers. */
5351
5352 #ifdef __STDC__
5353 # include <limits.h>
5354 #else
5355 # include <assert.h>
5356 #endif
5357
5358 #undef $ac_func
5359
5360 /* Override any GCC internal prototype to avoid an error.
5361 Use char because int might match the return type of a GCC
5362 builtin and then its argument prototype would still apply. */
5363 #ifdef __cplusplus
5364 extern "C"
5365 #endif
5366 char $ac_func ();
5367 /* The GNU C library defines this for functions which it implements
5368 to always fail with ENOSYS. Some functions are actually named
5369 something starting with __ and the normal name is an alias. */
5370 #if defined __stub_$ac_func || defined __stub___$ac_func
5371 choke me
5372 #endif
5373
5374 int
5375 main ()
5376 {
5377 return $ac_func ();
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest.$ac_objext conftest$ac_exeext
5383 if { (ac_try="$ac_link"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_link") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest$ac_exeext &&
5399 $as_test_x conftest$ac_exeext; then
5400 eval "$as_ac_var=yes"
5401 else
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 eval "$as_ac_var=no"
5406 fi
5407
5408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5409 conftest$ac_exeext conftest.$ac_ext
5410 fi
5411 ac_res=`eval echo '${'$as_ac_var'}'`
5412 { echo "$as_me:$LINENO: result: $ac_res" >&5
5413 echo "${ECHO_T}$ac_res" >&6; }
5414 if test `eval echo '${'$as_ac_var'}'` = yes; then
5415 cat >>confdefs.h <<_ACEOF
5416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5417 _ACEOF
5418
5419 else
5420 case " $LIBOBJS " in
5421 *" $ac_func.$ac_objext "* ) ;;
5422 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5423 ;;
5424 esac
5425
5426 fi
5427 done
5428
5429
5430 fi
5431
5432 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5433 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5434 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #include <netdnet/dnetdb.h>
5444
5445 _ACEOF
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5448 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5449 else
5450 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5451 fi
5452 rm -f conftest*
5453
5454 fi
5455 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5456 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5457 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5458 cat >>confdefs.h <<\_ACEOF
5459 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5460 _ACEOF
5461
5462 fi
5463
5464 { echo "$as_me:$LINENO: checking for char" >&5
5465 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5466 if test "${ac_cv_type_char+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5476 typedef char ac__type_new_;
5477 int
5478 main ()
5479 {
5480 if ((ac__type_new_ *) 0)
5481 return 0;
5482 if (sizeof (ac__type_new_))
5483 return 0;
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 rm -f conftest.$ac_objext
5489 if { (ac_try="$ac_compile"
5490 case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && {
5502 test -z "$ac_c_werror_flag" ||
5503 test ! -s conftest.err
5504 } && test -s conftest.$ac_objext; then
5505 ac_cv_type_char=yes
5506 else
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.$ac_ext >&5
5509
5510 ac_cv_type_char=no
5511 fi
5512
5513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 fi
5515 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5516 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5517
5518 # The cast to long int works around a bug in the HP C Compiler
5519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5521 # This bug is HP SR number 8606223364.
5522 { echo "$as_me:$LINENO: checking size of char" >&5
5523 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5524 if test "${ac_cv_sizeof_char+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527 if test "$cross_compiling" = yes; then
5528 # Depending upon the size, compute the lo and hi bounds.
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 $ac_includes_default
5536 typedef char ac__type_sizeof_;
5537 int
5538 main ()
5539 {
5540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5541 test_array [0] = 0
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest.$ac_objext; then
5564 ac_lo=0 ac_mid=0
5565 while :; do
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h. */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 $ac_includes_default
5573 typedef char ac__type_sizeof_;
5574 int
5575 main ()
5576 {
5577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5578 test_array [0] = 0
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 ac_hi=$ac_mid; break
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 ac_lo=`expr $ac_mid + 1`
5607 if test $ac_lo -le $ac_mid; then
5608 ac_lo= ac_hi=
5609 break
5610 fi
5611 ac_mid=`expr 2 '*' $ac_mid + 1`
5612 fi
5613
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 done
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5627 typedef char ac__type_sizeof_;
5628 int
5629 main ()
5630 {
5631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5632 test_array [0] = 0
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (ac_try="$ac_compile"
5640 case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5655 ac_hi=-1 ac_mid=-1
5656 while :; do
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 $ac_includes_default
5664 typedef char ac__type_sizeof_;
5665 int
5666 main ()
5667 {
5668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5669 test_array [0] = 0
5670
5671 ;
5672 return 0;
5673 }
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5677 case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 ac_lo=$ac_mid; break
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_hi=`expr '(' $ac_mid ')' - 1`
5698 if test $ac_mid -le $ac_hi; then
5699 ac_lo= ac_hi=
5700 break
5701 fi
5702 ac_mid=`expr 2 '*' $ac_mid`
5703 fi
5704
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 done
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711 ac_lo= ac_hi=
5712 fi
5713
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 # Binary search between lo and hi bounds.
5719 while test "x$ac_lo" != "x$ac_hi"; do
5720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5721 cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h. */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 $ac_includes_default
5728 typedef char ac__type_sizeof_;
5729 int
5730 main ()
5731 {
5732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5733 test_array [0] = 0
5734
5735 ;
5736 return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (ac_try="$ac_compile"
5741 case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744 esac
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_hi=$ac_mid
5757 else
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 ac_lo=`expr '(' $ac_mid ')' + 1`
5762 fi
5763
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 done
5766 case $ac_lo in
5767 ?*) ac_cv_sizeof_char=$ac_lo;;
5768 '') if test "$ac_cv_type_char" = yes; then
5769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5770 See \`config.log' for more details." >&5
5771 echo "$as_me: error: cannot compute sizeof (char)
5772 See \`config.log' for more details." >&2;}
5773 { (exit 77); exit 77; }; }
5774 else
5775 ac_cv_sizeof_char=0
5776 fi ;;
5777 esac
5778 else
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 $ac_includes_default
5786 typedef char ac__type_sizeof_;
5787 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5788 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5789 #include <stdio.h>
5790 #include <stdlib.h>
5791 int
5792 main ()
5793 {
5794
5795 FILE *f = fopen ("conftest.val", "w");
5796 if (! f)
5797 return 1;
5798 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5799 {
5800 long int i = longval ();
5801 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5802 return 1;
5803 fprintf (f, "%ld\n", i);
5804 }
5805 else
5806 {
5807 unsigned long int i = ulongval ();
5808 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5809 return 1;
5810 fprintf (f, "%lu\n", i);
5811 }
5812 return ferror (f) || fclose (f) != 0;
5813
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest$ac_exeext
5819 if { (ac_try="$ac_link"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_link") 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_sizeof_char=`cat conftest.val`
5839 else
5840 echo "$as_me: program exited with status $ac_status" >&5
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ( exit $ac_status )
5845 if test "$ac_cv_type_char" = yes; then
5846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5847 See \`config.log' for more details." >&5
5848 echo "$as_me: error: cannot compute sizeof (char)
5849 See \`config.log' for more details." >&2;}
5850 { (exit 77); exit 77; }; }
5851 else
5852 ac_cv_sizeof_char=0
5853 fi
5854 fi
5855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 rm -f conftest.val
5858 fi
5859 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5860 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5861
5862
5863
5864 cat >>confdefs.h <<_ACEOF
5865 #define SIZEOF_CHAR $ac_cv_sizeof_char
5866 _ACEOF
5867
5868
5869 { echo "$as_me:$LINENO: checking for short" >&5
5870 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5871 if test "${ac_cv_type_short+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 $ac_includes_default
5881 typedef short ac__type_new_;
5882 int
5883 main ()
5884 {
5885 if ((ac__type_new_ *) 0)
5886 return 0;
5887 if (sizeof (ac__type_new_))
5888 return 0;
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 rm -f conftest.$ac_objext
5894 if { (ac_try="$ac_compile"
5895 case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compile") 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && {
5907 test -z "$ac_c_werror_flag" ||
5908 test ! -s conftest.err
5909 } && test -s conftest.$ac_objext; then
5910 ac_cv_type_short=yes
5911 else
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5914
5915 ac_cv_type_short=no
5916 fi
5917
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 fi
5920 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5921 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5922
5923 # The cast to long int works around a bug in the HP C Compiler
5924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5926 # This bug is HP SR number 8606223364.
5927 { echo "$as_me:$LINENO: checking size of short" >&5
5928 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5929 if test "${ac_cv_sizeof_short+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 if test "$cross_compiling" = yes; then
5933 # Depending upon the size, compute the lo and hi bounds.
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5941 typedef short ac__type_sizeof_;
5942 int
5943 main ()
5944 {
5945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5946 test_array [0] = 0
5947
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (ac_try="$ac_compile"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5969 ac_lo=0 ac_mid=0
5970 while :; do
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 $ac_includes_default
5978 typedef short ac__type_sizeof_;
5979 int
5980 main ()
5981 {
5982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5983 test_array [0] = 0
5984
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (ac_try="$ac_compile"
5991 case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_compile") 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_c_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest.$ac_objext; then
6006 ac_hi=$ac_mid; break
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ac_lo=`expr $ac_mid + 1`
6012 if test $ac_lo -le $ac_mid; then
6013 ac_lo= ac_hi=
6014 break
6015 fi
6016 ac_mid=`expr 2 '*' $ac_mid + 1`
6017 fi
6018
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 done
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
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 $ac_includes_default
6032 typedef short ac__type_sizeof_;
6033 int
6034 main ()
6035 {
6036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6037 test_array [0] = 0
6038
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6045 case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_c_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6060 ac_hi=-1 ac_mid=-1
6061 while :; do
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 $ac_includes_default
6069 typedef short ac__type_sizeof_;
6070 int
6071 main ()
6072 {
6073 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6074 test_array [0] = 0
6075
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compile") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest.$ac_objext; then
6097 ac_lo=$ac_mid; break
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_hi=`expr '(' $ac_mid ')' - 1`
6103 if test $ac_mid -le $ac_hi; then
6104 ac_lo= ac_hi=
6105 break
6106 fi
6107 ac_mid=`expr 2 '*' $ac_mid`
6108 fi
6109
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 done
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 ac_lo= ac_hi=
6117 fi
6118
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 # Binary search between lo and hi bounds.
6124 while test "x$ac_lo" != "x$ac_hi"; do
6125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6133 typedef short ac__type_sizeof_;
6134 int
6135 main ()
6136 {
6137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6138 test_array [0] = 0
6139
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_hi=$ac_mid
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 ac_lo=`expr '(' $ac_mid ')' + 1`
6167 fi
6168
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 done
6171 case $ac_lo in
6172 ?*) ac_cv_sizeof_short=$ac_lo;;
6173 '') if test "$ac_cv_type_short" = yes; then
6174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6175 See \`config.log' for more details." >&5
6176 echo "$as_me: error: cannot compute sizeof (short)
6177 See \`config.log' for more details." >&2;}
6178 { (exit 77); exit 77; }; }
6179 else
6180 ac_cv_sizeof_short=0
6181 fi ;;
6182 esac
6183 else
6184 cat >conftest.$ac_ext <<_ACEOF
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 $ac_includes_default
6191 typedef short ac__type_sizeof_;
6192 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6193 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6194 #include <stdio.h>
6195 #include <stdlib.h>
6196 int
6197 main ()
6198 {
6199
6200 FILE *f = fopen ("conftest.val", "w");
6201 if (! f)
6202 return 1;
6203 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6204 {
6205 long int i = longval ();
6206 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6207 return 1;
6208 fprintf (f, "%ld\n", i);
6209 }
6210 else
6211 {
6212 unsigned long int i = ulongval ();
6213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6214 return 1;
6215 fprintf (f, "%lu\n", i);
6216 }
6217 return ferror (f) || fclose (f) != 0;
6218
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 rm -f conftest$ac_exeext
6224 if { (ac_try="$ac_link"
6225 case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_link") 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237 esac
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_sizeof_short=`cat conftest.val`
6244 else
6245 echo "$as_me: program exited with status $ac_status" >&5
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ( exit $ac_status )
6250 if test "$ac_cv_type_short" = yes; then
6251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6252 See \`config.log' for more details." >&5
6253 echo "$as_me: error: cannot compute sizeof (short)
6254 See \`config.log' for more details." >&2;}
6255 { (exit 77); exit 77; }; }
6256 else
6257 ac_cv_sizeof_short=0
6258 fi
6259 fi
6260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6261 fi
6262 rm -f conftest.val
6263 fi
6264 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6265 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6266
6267
6268
6269 cat >>confdefs.h <<_ACEOF
6270 #define SIZEOF_SHORT $ac_cv_sizeof_short
6271 _ACEOF
6272
6273
6274 { echo "$as_me:$LINENO: checking for int" >&5
6275 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6276 if test "${ac_cv_type_int+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6286 typedef int ac__type_new_;
6287 int
6288 main ()
6289 {
6290 if ((ac__type_new_ *) 0)
6291 return 0;
6292 if (sizeof (ac__type_new_))
6293 return 0;
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 ac_cv_type_int=yes
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ac_cv_type_int=no
6321 fi
6322
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6326 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6327
6328 # The cast to long int works around a bug in the HP C Compiler
6329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6331 # This bug is HP SR number 8606223364.
6332 { echo "$as_me:$LINENO: checking size of int" >&5
6333 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6334 if test "${ac_cv_sizeof_int+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 if test "$cross_compiling" = yes; then
6338 # Depending upon the size, compute the lo and hi bounds.
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h. */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 $ac_includes_default
6346 typedef int ac__type_sizeof_;
6347 int
6348 main ()
6349 {
6350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6351 test_array [0] = 0
6352
6353 ;
6354 return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6359 case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362 esac
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_compile") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest.$ac_objext; then
6374 ac_lo=0 ac_mid=0
6375 while :; do
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 $ac_includes_default
6383 typedef int ac__type_sizeof_;
6384 int
6385 main ()
6386 {
6387 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6388 test_array [0] = 0
6389
6390 ;
6391 return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6396 case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest.$ac_objext; then
6411 ac_hi=$ac_mid; break
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ac_lo=`expr $ac_mid + 1`
6417 if test $ac_lo -le $ac_mid; then
6418 ac_lo= ac_hi=
6419 break
6420 fi
6421 ac_mid=`expr 2 '*' $ac_mid + 1`
6422 fi
6423
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 done
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6437 typedef int ac__type_sizeof_;
6438 int
6439 main ()
6440 {
6441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6442 test_array [0] = 0
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 rm -f conftest.$ac_objext
6449 if { (ac_try="$ac_compile"
6450 case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_compile") 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } && {
6462 test -z "$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6464 } && test -s conftest.$ac_objext; then
6465 ac_hi=-1 ac_mid=-1
6466 while :; do
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6474 typedef int ac__type_sizeof_;
6475 int
6476 main ()
6477 {
6478 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6479 test_array [0] = 0
6480
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6487 case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 ac_lo=$ac_mid; break
6503 else
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507 ac_hi=`expr '(' $ac_mid ')' - 1`
6508 if test $ac_mid -le $ac_hi; then
6509 ac_lo= ac_hi=
6510 break
6511 fi
6512 ac_mid=`expr 2 '*' $ac_mid`
6513 fi
6514
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 done
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6520
6521 ac_lo= ac_hi=
6522 fi
6523
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 fi
6526
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 # Binary search between lo and hi bounds.
6529 while test "x$ac_lo" != "x$ac_hi"; do
6530 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 typedef int ac__type_sizeof_;
6539 int
6540 main ()
6541 {
6542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6543 test_array [0] = 0
6544
6545 ;
6546 return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && {
6563 test -z "$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6565 } && test -s conftest.$ac_objext; then
6566 ac_hi=$ac_mid
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6570
6571 ac_lo=`expr '(' $ac_mid ')' + 1`
6572 fi
6573
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 done
6576 case $ac_lo in
6577 ?*) ac_cv_sizeof_int=$ac_lo;;
6578 '') if test "$ac_cv_type_int" = yes; then
6579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6580 See \`config.log' for more details." >&5
6581 echo "$as_me: error: cannot compute sizeof (int)
6582 See \`config.log' for more details." >&2;}
6583 { (exit 77); exit 77; }; }
6584 else
6585 ac_cv_sizeof_int=0
6586 fi ;;
6587 esac
6588 else
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 $ac_includes_default
6596 typedef int ac__type_sizeof_;
6597 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6598 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6599 #include <stdio.h>
6600 #include <stdlib.h>
6601 int
6602 main ()
6603 {
6604
6605 FILE *f = fopen ("conftest.val", "w");
6606 if (! f)
6607 return 1;
6608 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6609 {
6610 long int i = longval ();
6611 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6612 return 1;
6613 fprintf (f, "%ld\n", i);
6614 }
6615 else
6616 {
6617 unsigned long int i = ulongval ();
6618 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6619 return 1;
6620 fprintf (f, "%lu\n", i);
6621 }
6622 return ferror (f) || fclose (f) != 0;
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest$ac_exeext
6629 if { (ac_try="$ac_link"
6630 case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_link") 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_sizeof_int=`cat conftest.val`
6649 else
6650 echo "$as_me: program exited with status $ac_status" >&5
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 ( exit $ac_status )
6655 if test "$ac_cv_type_int" = yes; then
6656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6657 See \`config.log' for more details." >&5
6658 echo "$as_me: error: cannot compute sizeof (int)
6659 See \`config.log' for more details." >&2;}
6660 { (exit 77); exit 77; }; }
6661 else
6662 ac_cv_sizeof_int=0
6663 fi
6664 fi
6665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6666 fi
6667 rm -f conftest.val
6668 fi
6669 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6670 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6671
6672
6673
6674 cat >>confdefs.h <<_ACEOF
6675 #define SIZEOF_INT $ac_cv_sizeof_int
6676 _ACEOF
6677
6678
6679 { echo "$as_me:$LINENO: checking for long" >&5
6680 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6681 if test "${ac_cv_type_long+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 $ac_includes_default
6691 typedef long ac__type_new_;
6692 int
6693 main ()
6694 {
6695 if ((ac__type_new_ *) 0)
6696 return 0;
6697 if (sizeof (ac__type_new_))
6698 return 0;
6699 ;
6700 return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_compile") 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } && {
6717 test -z "$ac_c_werror_flag" ||
6718 test ! -s conftest.err
6719 } && test -s conftest.$ac_objext; then
6720 ac_cv_type_long=yes
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 ac_cv_type_long=no
6726 fi
6727
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 fi
6730 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6731 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6732
6733 # The cast to long int works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 { echo "$as_me:$LINENO: checking size of long" >&5
6738 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6739 if test "${ac_cv_sizeof_long+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 if test "$cross_compiling" = yes; then
6743 # Depending upon the size, compute the lo and hi bounds.
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6751 typedef long ac__type_sizeof_;
6752 int
6753 main ()
6754 {
6755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6756 test_array [0] = 0
6757
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest.$ac_objext
6763 if { (ac_try="$ac_compile"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 ac_lo=0 ac_mid=0
6780 while :; do
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 $ac_includes_default
6788 typedef long ac__type_sizeof_;
6789 int
6790 main ()
6791 {
6792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6793 test_array [0] = 0
6794
6795 ;
6796 return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext
6800 if { (ac_try="$ac_compile"
6801 case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 ac_hi=$ac_mid; break
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ac_lo=`expr $ac_mid + 1`
6822 if test $ac_lo -le $ac_mid; then
6823 ac_lo= ac_hi=
6824 break
6825 fi
6826 ac_mid=`expr 2 '*' $ac_mid + 1`
6827 fi
6828
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 done
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6834
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h. */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6842 typedef long ac__type_sizeof_;
6843 int
6844 main ()
6845 {
6846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6847 test_array [0] = 0
6848
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (ac_try="$ac_compile"
6855 case "(($ac_try" in
6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857 *) ac_try_echo=$ac_try;;
6858 esac
6859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6860 (eval "$ac_compile") 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } && {
6867 test -z "$ac_c_werror_flag" ||
6868 test ! -s conftest.err
6869 } && test -s conftest.$ac_objext; then
6870 ac_hi=-1 ac_mid=-1
6871 while :; do
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 $ac_includes_default
6879 typedef long ac__type_sizeof_;
6880 int
6881 main ()
6882 {
6883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6884 test_array [0] = 0
6885
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (ac_try="$ac_compile"
6892 case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_compile") 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 } && test -s conftest.$ac_objext; then
6907 ac_lo=$ac_mid; break
6908 else
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912 ac_hi=`expr '(' $ac_mid ')' - 1`
6913 if test $ac_mid -le $ac_hi; then
6914 ac_lo= ac_hi=
6915 break
6916 fi
6917 ac_mid=`expr 2 '*' $ac_mid`
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 done
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ac_lo= ac_hi=
6927 fi
6928
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 # Binary search between lo and hi bounds.
6934 while test "x$ac_lo" != "x$ac_hi"; do
6935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6943 typedef long ac__type_sizeof_;
6944 int
6945 main ()
6946 {
6947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6948 test_array [0] = 0
6949
6950 ;
6951 return 0;
6952 }
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6956 case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959 esac
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961 (eval "$ac_compile") 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest.$ac_objext; then
6971 ac_hi=$ac_mid
6972 else
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976 ac_lo=`expr '(' $ac_mid ')' + 1`
6977 fi
6978
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 done
6981 case $ac_lo in
6982 ?*) ac_cv_sizeof_long=$ac_lo;;
6983 '') if test "$ac_cv_type_long" = yes; then
6984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6985 See \`config.log' for more details." >&5
6986 echo "$as_me: error: cannot compute sizeof (long)
6987 See \`config.log' for more details." >&2;}
6988 { (exit 77); exit 77; }; }
6989 else
6990 ac_cv_sizeof_long=0
6991 fi ;;
6992 esac
6993 else
6994 cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h. */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 $ac_includes_default
7001 typedef long ac__type_sizeof_;
7002 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7003 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7004 #include <stdio.h>
7005 #include <stdlib.h>
7006 int
7007 main ()
7008 {
7009
7010 FILE *f = fopen ("conftest.val", "w");
7011 if (! f)
7012 return 1;
7013 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7014 {
7015 long int i = longval ();
7016 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7017 return 1;
7018 fprintf (f, "%ld\n", i);
7019 }
7020 else
7021 {
7022 unsigned long int i = ulongval ();
7023 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7024 return 1;
7025 fprintf (f, "%lu\n", i);
7026 }
7027 return ferror (f) || fclose (f) != 0;
7028
7029 ;
7030 return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest$ac_exeext
7034 if { (ac_try="$ac_link"
7035 case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7038 esac
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_link") 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7044 { (case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7047 esac
7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_try") 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_sizeof_long=`cat conftest.val`
7054 else
7055 echo "$as_me: program exited with status $ac_status" >&5
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7058
7059 ( exit $ac_status )
7060 if test "$ac_cv_type_long" = yes; then
7061 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7062 See \`config.log' for more details." >&5
7063 echo "$as_me: error: cannot compute sizeof (long)
7064 See \`config.log' for more details." >&2;}
7065 { (exit 77); exit 77; }; }
7066 else
7067 ac_cv_sizeof_long=0
7068 fi
7069 fi
7070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7071 fi
7072 rm -f conftest.val
7073 fi
7074 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7075 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7076
7077
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define SIZEOF_LONG $ac_cv_sizeof_long
7081 _ACEOF
7082
7083
7084 { echo "$as_me:$LINENO: checking for long long" >&5
7085 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7086 if test "${ac_cv_type_long_long+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7096 typedef long long ac__type_new_;
7097 int
7098 main ()
7099 {
7100 if ((ac__type_new_ *) 0)
7101 return 0;
7102 if (sizeof (ac__type_new_))
7103 return 0;
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_type_long_long=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_type_long_long=no
7131 fi
7132
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7136 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7137
7138 # The cast to long int works around a bug in the HP C Compiler
7139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7141 # This bug is HP SR number 8606223364.
7142 { echo "$as_me:$LINENO: checking size of long long" >&5
7143 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7144 if test "${ac_cv_sizeof_long_long+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 if test "$cross_compiling" = yes; then
7148 # Depending upon the size, compute the lo and hi bounds.
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7156 typedef long long ac__type_sizeof_;
7157 int
7158 main ()
7159 {
7160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7161 test_array [0] = 0
7162
7163 ;
7164 return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (ac_try="$ac_compile"
7169 case "(($ac_try" in
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_compile") 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest.$ac_objext; then
7184 ac_lo=0 ac_mid=0
7185 while :; do
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7193 typedef long long ac__type_sizeof_;
7194 int
7195 main ()
7196 {
7197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7198 test_array [0] = 0
7199
7200 ;
7201 return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (ac_try="$ac_compile"
7206 case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209 esac
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.$ac_objext; then
7221 ac_hi=$ac_mid; break
7222 else
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7225
7226 ac_lo=`expr $ac_mid + 1`
7227 if test $ac_lo -le $ac_mid; then
7228 ac_lo= ac_hi=
7229 break
7230 fi
7231 ac_mid=`expr 2 '*' $ac_mid + 1`
7232 fi
7233
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 done
7236 else
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 $ac_includes_default
7247 typedef long long ac__type_sizeof_;
7248 int
7249 main ()
7250 {
7251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7252 test_array [0] = 0
7253
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_hi=-1 ac_mid=-1
7276 while :; do
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 $ac_includes_default
7284 typedef long long ac__type_sizeof_;
7285 int
7286 main ()
7287 {
7288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7289 test_array [0] = 0
7290
7291 ;
7292 return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7297 case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
7312 ac_lo=$ac_mid; break
7313 else
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 ac_hi=`expr '(' $ac_mid ')' - 1`
7318 if test $ac_mid -le $ac_hi; then
7319 ac_lo= ac_hi=
7320 break
7321 fi
7322 ac_mid=`expr 2 '*' $ac_mid`
7323 fi
7324
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 done
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 ac_lo= ac_hi=
7332 fi
7333
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 fi
7336
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 # Binary search between lo and hi bounds.
7339 while test "x$ac_lo" != "x$ac_hi"; do
7340 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 $ac_includes_default
7348 typedef long long ac__type_sizeof_;
7349 int
7350 main ()
7351 {
7352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7353 test_array [0] = 0
7354
7355 ;
7356 return 0;
7357 }
7358 _ACEOF
7359 rm -f conftest.$ac_objext
7360 if { (ac_try="$ac_compile"
7361 case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364 esac
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_compile") 2>conftest.er1
7367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } && {
7373 test -z "$ac_c_werror_flag" ||
7374 test ! -s conftest.err
7375 } && test -s conftest.$ac_objext; then
7376 ac_hi=$ac_mid
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 ac_lo=`expr '(' $ac_mid ')' + 1`
7382 fi
7383
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 done
7386 case $ac_lo in
7387 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7388 '') if test "$ac_cv_type_long_long" = yes; then
7389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7390 See \`config.log' for more details." >&5
7391 echo "$as_me: error: cannot compute sizeof (long long)
7392 See \`config.log' for more details." >&2;}
7393 { (exit 77); exit 77; }; }
7394 else
7395 ac_cv_sizeof_long_long=0
7396 fi ;;
7397 esac
7398 else
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h. */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 $ac_includes_default
7406 typedef long long ac__type_sizeof_;
7407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7409 #include <stdio.h>
7410 #include <stdlib.h>
7411 int
7412 main ()
7413 {
7414
7415 FILE *f = fopen ("conftest.val", "w");
7416 if (! f)
7417 return 1;
7418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7419 {
7420 long int i = longval ();
7421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7422 return 1;
7423 fprintf (f, "%ld\n", i);
7424 }
7425 else
7426 {
7427 unsigned long int i = ulongval ();
7428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7429 return 1;
7430 fprintf (f, "%lu\n", i);
7431 }
7432 return ferror (f) || fclose (f) != 0;
7433
7434 ;
7435 return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7440 case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_link") 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7449 { (case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_try") 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_sizeof_long_long=`cat conftest.val`
7459 else
7460 echo "$as_me: program exited with status $ac_status" >&5
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 ( exit $ac_status )
7465 if test "$ac_cv_type_long_long" = yes; then
7466 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7467 See \`config.log' for more details." >&5
7468 echo "$as_me: error: cannot compute sizeof (long long)
7469 See \`config.log' for more details." >&2;}
7470 { (exit 77); exit 77; }; }
7471 else
7472 ac_cv_sizeof_long_long=0
7473 fi
7474 fi
7475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7476 fi
7477 rm -f conftest.val
7478 fi
7479 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7480 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7481
7482
7483
7484 cat >>confdefs.h <<_ACEOF
7485 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7486 _ACEOF
7487
7488
7489
7490
7491 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7492 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7493 if test "${ac_cv_addrinfo+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502
7503 # include <netdb.h>
7504 int
7505 main ()
7506 {
7507 struct addrinfo a
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_addrinfo=yes
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_addrinfo=no
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539
7540 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7541 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7542 if test $ac_cv_addrinfo = yes; then
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_ADDRINFO 1
7545 _ACEOF
7546
7547 else
7548 cat >>confdefs.h <<\_ACEOF
7549 #define NEED_ADDRINFO_H 1
7550 _ACEOF
7551
7552 fi
7553
7554 if test "$ac_cv_addrinfo" = no; then
7555 missing_includes=yes
7556 fi
7557
7558
7559 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7560 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7561 if test "${ac_cv_maxserv+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <netdb.h>
7571 #ifdef NI_MAXSERV
7572 yes
7573 #endif
7574 _ACEOF
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 $EGREP "yes" >/dev/null 2>&1; then
7577 ac_cv_maxserv=yes
7578 else
7579 ac_cv_maxserv=no
7580 fi
7581 rm -f conftest*
7582
7583 fi
7584
7585 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7586 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7587 if test $ac_cv_maxserv != yes; then
7588 cat >>confdefs.h <<\_ACEOF
7589 #define NEED_ADDRINFO_H 1
7590 _ACEOF
7591
7592 fi
7593
7594 if test "$ac_cv_maxserv" = no; then
7595 missing_includes=yes
7596 fi
7597
7598
7599 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7600 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7601 if test "${ac_cv_namereqd+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <netdb.h>
7611 #ifdef NI_NOFQDN
7612 yes
7613 #endif
7614 _ACEOF
7615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7616 $EGREP "yes" >/dev/null 2>&1; then
7617 ac_cv_namereqd=yes
7618 else
7619 ac_cv_namereqd=no
7620 fi
7621 rm -f conftest*
7622
7623 fi
7624
7625 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7626 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7627 if test $ac_cv_namereqd != yes; then
7628 cat >>confdefs.h <<\_ACEOF
7629 #define NEED_ADDRINFO_H 1
7630 _ACEOF
7631
7632 fi
7633
7634 if test "$ac_cv_namereqd" = no; then
7635 missing_includes=yes
7636 fi
7637
7638
7639 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7640 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7641 if test "${ac_cv_sa_storage+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650
7651 # include <sys/types.h>
7652 # include <sys/socket.h>
7653 int
7654 main ()
7655 {
7656 struct sockaddr_storage s
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7678 ac_cv_sa_storage=yes
7679 else
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683 ac_cv_sa_storage=no
7684 fi
7685
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 fi
7688
7689 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7690 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7691 if test $ac_cv_sa_storage = yes; then
7692 cat >>confdefs.h <<\_ACEOF
7693 #define HAVE_SOCKADDR_STORAGE 1
7694 _ACEOF
7695
7696 fi
7697
7698 if test "$ac_cv_sa_storage" = no; then
7699 missing_includes=yes
7700 fi
7701
7702
7703 ac_cv_addrsz=yes
7704 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7705 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7706 if test "${ac_cv_inaddrsz+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715
7716 # include <arpa/nameser.h>
7717 int
7718 main ()
7719 {
7720 int a = INADDRSZ
7721 ;
7722 return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (ac_try="$ac_compile"
7727 case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7730 esac
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_compile") 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest.$ac_objext; then
7742 ac_cv_inaddrsz=yes
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 ac_cv_inaddrsz=no
7748 fi
7749
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 fi
7752
7753 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7754 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7755 if test $ac_cv_inaddrsz = yes; then
7756 cat >>confdefs.h <<\_ACEOF
7757 #define HAVE_INADDRSZ 1
7758 _ACEOF
7759
7760 else
7761 ac_cv_addrsz=no
7762 fi
7763 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7764 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7765 if test "${ac_cv_in6addrsz+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774
7775 # include <arpa/nameser.h>
7776 int
7777 main ()
7778 {
7779 int a = IN6ADDRSZ
7780 ;
7781 return 0;
7782 }
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7786 case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest.$ac_objext; then
7801 ac_cv_in6addrsz=yes
7802 else
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806 ac_cv_in6addrsz=no
7807 fi
7808
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 fi
7811
7812 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7813 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7814 if test $ac_cv_in6addrsz = yes; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_IN6ADDRSZ 1
7817 _ACEOF
7818
7819 else
7820 ac_cv_addrsz=no
7821 fi
7822
7823 if test "$ac_cv_addrsz" = no; then
7824 missing_includes=yes
7825 fi
7826
7827
7828 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7829 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7830 if test "${ac_cv_res_inet6+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839
7840 # include <sys/types.h>
7841 # include <netinet/in.h>
7842 # include <resolv.h>
7843 int
7844 main ()
7845 {
7846 int a = RES_USE_INET6
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7853 case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then
7868 ac_cv_res_inet6=yes
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 ac_cv_res_inet6=no
7874 fi
7875
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 fi
7878
7879 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7880 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7881 if test $ac_cv_res_inet6 = yes; then
7882 cat >>confdefs.h <<\_ACEOF
7883 #define HAVE_RES_USE_INET6 1
7884 _ACEOF
7885
7886 fi
7887
7888 if test "$ac_cv_res_inet6" = no; then
7889 missing_includes=yes
7890 fi
7891
7892
7893 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7894 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7895 if test "${ac_cv_res_state_ext+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904
7905 # include <sys/types.h>
7906 # include <netinet/in.h>
7907 # include <netinet6/in6.h>
7908 # include <resolv.h>
7909 int
7910 main ()
7911 {
7912 struct __res_state_ext e
7913 ;
7914 return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext
7918 if { (ac_try="$ac_compile"
7919 case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_compile") 2>conftest.er1
7925 ac_status=$?
7926 grep -v '^ *+' conftest.er1 >conftest.err
7927 rm -f conftest.er1
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } && {
7931 test -z "$ac_c_werror_flag" ||
7932 test ! -s conftest.err
7933 } && test -s conftest.$ac_objext; then
7934 ac_cv_res_state_ext=yes
7935 else
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 ac_cv_res_state_ext=no
7940 fi
7941
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 fi
7944
7945 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7946 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7947 if test $ac_cv_res_state_ext = yes; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_RES_STATE_EXT 1
7950 _ACEOF
7951
7952 fi
7953
7954 if test "$ac_cv_res_state_ext" = no; then
7955 missing_includes=yes
7956 fi
7957
7958
7959 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7960 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7961 if test "${ac_cv_res_state+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964 cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h. */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7970
7971 # include <sys/types.h>
7972 # include <netinet/in.h>
7973 # include <netinet6/in6.h>
7974 # include <resolv.h>
7975 int
7976 main ()
7977 {
7978 struct __res_state e; e.nsort = 0
7979 ;
7980 return 0;
7981 }
7982 _ACEOF
7983 rm -f conftest.$ac_objext
7984 if { (ac_try="$ac_compile"
7985 case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
8000 ac_cv_res_state=yes
8001 else
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 ac_cv_res_state=no
8006 fi
8007
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 fi
8010
8011 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8012 echo "${ECHO_T}$ac_cv_res_state" >&6; }
8013 if test $ac_cv_res_state = yes; then
8014 cat >>confdefs.h <<\_ACEOF
8015 #define HAVE_NEW_RES_STATE 1
8016 _ACEOF
8017
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8029 do
8030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036 cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8044 #define $ac_func innocuous_$ac_func
8045
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char $ac_func (); below.
8048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8049 <limits.h> exists even on freestanding compilers. */
8050
8051 #ifdef __STDC__
8052 # include <limits.h>
8053 #else
8054 # include <assert.h>
8055 #endif
8056
8057 #undef $ac_func
8058
8059 /* Override any GCC internal prototype to avoid an error.
8060 Use char because int might match the return type of a GCC
8061 builtin and then its argument prototype would still apply. */
8062 #ifdef __cplusplus
8063 extern "C"
8064 #endif
8065 char $ac_func ();
8066 /* The GNU C library defines this for functions which it implements
8067 to always fail with ENOSYS. Some functions are actually named
8068 something starting with __ and the normal name is an alias. */
8069 #if defined __stub_$ac_func || defined __stub___$ac_func
8070 choke me
8071 #endif
8072
8073 int
8074 main ()
8075 {
8076 return $ac_func ();
8077 ;
8078 return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8083 case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext &&
8098 $as_test_x conftest$ac_exeext; then
8099 eval "$as_ac_var=yes"
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 eval "$as_ac_var=no"
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108 conftest$ac_exeext conftest.$ac_ext
8109 fi
8110 ac_res=`eval echo '${'$as_ac_var'}'`
8111 { echo "$as_me:$LINENO: result: $ac_res" >&5
8112 echo "${ECHO_T}$ac_res" >&6; }
8113 if test `eval echo '${'$as_ac_var'}'` = yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8116 _ACEOF
8117
8118 else
8119 case " $LIBOBJS " in
8120 *" $ac_func.$ac_objext "* ) ;;
8121 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8122 ;;
8123 esac
8124
8125 fi
8126 done
8127
8128
8129
8130 for ac_func in strftime
8131 do
8132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8146 #define $ac_func innocuous_$ac_func
8147
8148 /* System header to define __stub macros and hopefully few prototypes,
8149 which can conflict with char $ac_func (); below.
8150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8151 <limits.h> exists even on freestanding compilers. */
8152
8153 #ifdef __STDC__
8154 # include <limits.h>
8155 #else
8156 # include <assert.h>
8157 #endif
8158
8159 #undef $ac_func
8160
8161 /* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8164 #ifdef __cplusplus
8165 extern "C"
8166 #endif
8167 char $ac_func ();
8168 /* The GNU C library defines this for functions which it implements
8169 to always fail with ENOSYS. Some functions are actually named
8170 something starting with __ and the normal name is an alias. */
8171 #if defined __stub_$ac_func || defined __stub___$ac_func
8172 choke me
8173 #endif
8174
8175 int
8176 main ()
8177 {
8178 return $ac_func ();
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (ac_try="$ac_link"
8185 case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_link") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest$ac_exeext &&
8200 $as_test_x conftest$ac_exeext; then
8201 eval "$as_ac_var=yes"
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 eval "$as_ac_var=no"
8207 fi
8208
8209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8210 conftest$ac_exeext conftest.$ac_ext
8211 fi
8212 ac_res=`eval echo '${'$as_ac_var'}'`
8213 { echo "$as_me:$LINENO: result: $ac_res" >&5
8214 echo "${ECHO_T}$ac_res" >&6; }
8215 if test `eval echo '${'$as_ac_var'}'` = yes; then
8216 cat >>confdefs.h <<_ACEOF
8217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8218 _ACEOF
8219
8220 fi
8221 done
8222
8223
8224
8225 for ac_func in setlinebuf alarm
8226 do
8227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8241 #define $ac_func innocuous_$ac_func
8242
8243 /* System header to define __stub macros and hopefully few prototypes,
8244 which can conflict with char $ac_func (); below.
8245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8246 <limits.h> exists even on freestanding compilers. */
8247
8248 #ifdef __STDC__
8249 # include <limits.h>
8250 #else
8251 # include <assert.h>
8252 #endif
8253
8254 #undef $ac_func
8255
8256 /* Override any GCC internal prototype to avoid an error.
8257 Use char because int might match the return type of a GCC
8258 builtin and then its argument prototype would still apply. */
8259 #ifdef __cplusplus
8260 extern "C"
8261 #endif
8262 char $ac_func ();
8263 /* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266 #if defined __stub_$ac_func || defined __stub___$ac_func
8267 choke me
8268 #endif
8269
8270 int
8271 main ()
8272 {
8273 return $ac_func ();
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_link") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest$ac_exeext &&
8295 $as_test_x conftest$ac_exeext; then
8296 eval "$as_ac_var=yes"
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 eval "$as_ac_var=no"
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8305 conftest$ac_exeext conftest.$ac_ext
8306 fi
8307 ac_res=`eval echo '${'$as_ac_var'}'`
8308 { echo "$as_me:$LINENO: result: $ac_res" >&5
8309 echo "${ECHO_T}$ac_res" >&6; }
8310 if test `eval echo '${'$as_ac_var'}'` = yes; then
8311 cat >>confdefs.h <<_ACEOF
8312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8313 _ACEOF
8314
8315 fi
8316 done
8317
8318
8319 needsnprintf=no
8320
8321
8322 for ac_func in vsnprintf snprintf
8323 do
8324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338 #define $ac_func innocuous_$ac_func
8339
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8344
8345 #ifdef __STDC__
8346 # include <limits.h>
8347 #else
8348 # include <assert.h>
8349 #endif
8350
8351 #undef $ac_func
8352
8353 /* Override any GCC internal prototype to avoid an error.
8354 Use char because int might match the return type of a GCC
8355 builtin and then its argument prototype would still apply. */
8356 #ifdef __cplusplus
8357 extern "C"
8358 #endif
8359 char $ac_func ();
8360 /* The GNU C library defines this for functions which it implements
8361 to always fail with ENOSYS. Some functions are actually named
8362 something starting with __ and the normal name is an alias. */
8363 #if defined __stub_$ac_func || defined __stub___$ac_func
8364 choke me
8365 #endif
8366
8367 int
8368 main ()
8369 {
8370 return $ac_func ();
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_link") 2>conftest.er1
8383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest$ac_exeext &&
8392 $as_test_x conftest$ac_exeext; then
8393 eval "$as_ac_var=yes"
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 eval "$as_ac_var=no"
8399 fi
8400
8401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8402 conftest$ac_exeext conftest.$ac_ext
8403 fi
8404 ac_res=`eval echo '${'$as_ac_var'}'`
8405 { echo "$as_me:$LINENO: result: $ac_res" >&5
8406 echo "${ECHO_T}$ac_res" >&6; }
8407 if test `eval echo '${'$as_ac_var'}'` = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8410 _ACEOF
8411
8412 else
8413 needsnprintf=yes
8414 fi
8415 done
8416
8417 if test $needsnprintf = yes; then
8418 case " $LIBOBJS " in
8419 *" snprintf.$ac_objext "* ) ;;
8420 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8421 ;;
8422 esac
8423
8424 fi
8425
8426
8427 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8428 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8429 if test "${ac_cv_type_signal+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 #include <sys/types.h>
8439 #include <signal.h>
8440
8441 int
8442 main ()
8443 {
8444 return *(signal (0, 0)) (0) == 1;
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (ac_try="$ac_compile"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_compile") 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest.$ac_objext; then
8466 ac_cv_type_signal=int
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 ac_cv_type_signal=void
8472 fi
8473
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8477 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8478
8479 cat >>confdefs.h <<_ACEOF
8480 #define RETSIGTYPE $ac_cv_type_signal
8481 _ACEOF
8482
8483
8484 if test "$ac_cv_type_signal" = void ; then
8485
8486 cat >>confdefs.h <<\_ACEOF
8487 #define RETSIGVAL
8488 _ACEOF
8489
8490 else
8491
8492 cat >>confdefs.h <<\_ACEOF
8493 #define RETSIGVAL (0)
8494 _ACEOF
8495
8496 fi
8497 case "$host_os" in
8498
8499 irix*)
8500
8501 cat >>confdefs.h <<\_ACEOF
8502 #define _BSD_SIGNALS 1
8503 _ACEOF
8504
8505 ;;
8506
8507 *)
8508
8509 for ac_func in sigaction
8510 do
8511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8525 #define $ac_func innocuous_$ac_func
8526
8527 /* System header to define __stub macros and hopefully few prototypes,
8528 which can conflict with char $ac_func (); below.
8529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8530 <limits.h> exists even on freestanding compilers. */
8531
8532 #ifdef __STDC__
8533 # include <limits.h>
8534 #else
8535 # include <assert.h>
8536 #endif
8537
8538 #undef $ac_func
8539
8540 /* Override any GCC internal prototype to avoid an error.
8541 Use char because int might match the return type of a GCC
8542 builtin and then its argument prototype would still apply. */
8543 #ifdef __cplusplus
8544 extern "C"
8545 #endif
8546 char $ac_func ();
8547 /* The GNU C library defines this for functions which it implements
8548 to always fail with ENOSYS. Some functions are actually named
8549 something starting with __ and the normal name is an alias. */
8550 #if defined __stub_$ac_func || defined __stub___$ac_func
8551 choke me
8552 #endif
8553
8554 int
8555 main ()
8556 {
8557 return $ac_func ();
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_link") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest$ac_exeext &&
8579 $as_test_x conftest$ac_exeext; then
8580 eval "$as_ac_var=yes"
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 eval "$as_ac_var=no"
8586 fi
8587
8588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8589 conftest$ac_exeext conftest.$ac_ext
8590 fi
8591 ac_res=`eval echo '${'$as_ac_var'}'`
8592 { echo "$as_me:$LINENO: result: $ac_res" >&5
8593 echo "${ECHO_T}$ac_res" >&6; }
8594 if test `eval echo '${'$as_ac_var'}'` = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8597 _ACEOF
8598
8599 fi
8600 done
8601
8602 if test $ac_cv_func_sigaction = no ; then
8603
8604 for ac_func in sigset
8605 do
8606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8620 #define $ac_func innocuous_$ac_func
8621
8622 /* System header to define __stub macros and hopefully few prototypes,
8623 which can conflict with char $ac_func (); below.
8624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8625 <limits.h> exists even on freestanding compilers. */
8626
8627 #ifdef __STDC__
8628 # include <limits.h>
8629 #else
8630 # include <assert.h>
8631 #endif
8632
8633 #undef $ac_func
8634
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8638 #ifdef __cplusplus
8639 extern "C"
8640 #endif
8641 char $ac_func ();
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined __stub_$ac_func || defined __stub___$ac_func
8646 choke me
8647 #endif
8648
8649 int
8650 main ()
8651 {
8652 return $ac_func ();
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (ac_try="$ac_link"
8659 case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8662 esac
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_link") 2>conftest.er1
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && {
8671 test -z "$ac_c_werror_flag" ||
8672 test ! -s conftest.err
8673 } && test -s conftest$ac_exeext &&
8674 $as_test_x conftest$ac_exeext; then
8675 eval "$as_ac_var=yes"
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 eval "$as_ac_var=no"
8681 fi
8682
8683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8684 conftest$ac_exeext conftest.$ac_ext
8685 fi
8686 ac_res=`eval echo '${'$as_ac_var'}'`
8687 { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8689 if test `eval echo '${'$as_ac_var'}'` = yes; then
8690 cat >>confdefs.h <<_ACEOF
8691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8692 _ACEOF
8693
8694 fi
8695 done
8696
8697 fi
8698 ;;
8699 esac
8700
8701 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8702 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8703 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 ac_func_search_save_LIBS=$LIBS
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 char dnet_htoa ();
8721 int
8722 main ()
8723 {
8724 return dnet_htoa ();
8725 ;
8726 return 0;
8727 }
8728 _ACEOF
8729 for ac_lib in '' dnet; do
8730 if test -z "$ac_lib"; then
8731 ac_res="none required"
8732 else
8733 ac_res=-l$ac_lib
8734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8735 fi
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (ac_try="$ac_link"
8738 case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8741 esac
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743 (eval "$ac_link") 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest$ac_exeext &&
8753 $as_test_x conftest$ac_exeext; then
8754 ac_cv_search_dnet_htoa=$ac_res
8755 else
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759
8760 fi
8761
8762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8763 conftest$ac_exeext
8764 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8765 break
8766 fi
8767 done
8768 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8769 :
8770 else
8771 ac_cv_search_dnet_htoa=no
8772 fi
8773 rm conftest.$ac_ext
8774 LIBS=$ac_func_search_save_LIBS
8775 fi
8776 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8777 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8778 ac_res=$ac_cv_search_dnet_htoa
8779 if test "$ac_res" != no; then
8780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8781 cat >>confdefs.h <<\_ACEOF
8782 #define HAVE_DNET_HTOA 1
8783 _ACEOF
8784
8785 fi
8786
8787
8788
8789 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8790 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8791 if test "${ac_cv_lib_rpc_main+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 ac_check_lib_save_LIBS=$LIBS
8795 LIBS="-lrpc $LIBS"
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802
8803
8804 int
8805 main ()
8806 {
8807 return main ();
8808 ;
8809 return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (ac_try="$ac_link"
8814 case "(($ac_try" in
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8817 esac
8818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_link") 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && {
8826 test -z "$ac_c_werror_flag" ||
8827 test ! -s conftest.err
8828 } && test -s conftest$ac_exeext &&
8829 $as_test_x conftest$ac_exeext; then
8830 ac_cv_lib_rpc_main=yes
8831 else
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 ac_cv_lib_rpc_main=no
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8839 conftest$ac_exeext conftest.$ac_ext
8840 LIBS=$ac_check_lib_save_LIBS
8841 fi
8842 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8843 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8844 if test $ac_cv_lib_rpc_main = yes; then
8845 cat >>confdefs.h <<_ACEOF
8846 #define HAVE_LIBRPC 1
8847 _ACEOF
8848
8849 LIBS="-lrpc $LIBS"
8850
8851 fi
8852
8853 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8854 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8855 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 ac_func_search_save_LIBS=$LIBS
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865
8866 /* Override any GCC internal prototype to avoid an error.
8867 Use char because int might match the return type of a GCC
8868 builtin and then its argument prototype would still apply. */
8869 #ifdef __cplusplus
8870 extern "C"
8871 #endif
8872 char getrpcbynumber ();
8873 int
8874 main ()
8875 {
8876 return getrpcbynumber ();
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 for ac_lib in '' nsl; do
8882 if test -z "$ac_lib"; then
8883 ac_res="none required"
8884 else
8885 ac_res=-l$ac_lib
8886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8887 fi
8888 rm -f conftest.$ac_objext conftest$ac_exeext
8889 if { (ac_try="$ac_link"
8890 case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_link") 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest$ac_exeext &&
8905 $as_test_x conftest$ac_exeext; then
8906 ac_cv_search_getrpcbynumber=$ac_res
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911
8912 fi
8913
8914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8915 conftest$ac_exeext
8916 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8917 break
8918 fi
8919 done
8920 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8921 :
8922 else
8923 ac_cv_search_getrpcbynumber=no
8924 fi
8925 rm conftest.$ac_ext
8926 LIBS=$ac_func_search_save_LIBS
8927 fi
8928 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8929 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8930 ac_res=$ac_cv_search_getrpcbynumber
8931 if test "$ac_res" != no; then
8932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8933 cat >>confdefs.h <<\_ACEOF
8934 #define HAVE_GETRPCBYNUMBER 1
8935 _ACEOF
8936
8937 fi
8938
8939
8940
8941
8942 # Most operating systems have gethostbyname() in the default searched
8943 # libraries (i.e. libc):
8944 # Some OSes (eg. Solaris) place it in libnsl
8945 # Some strange OSes (SINIX) have it in libsocket:
8946 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8947 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8948 if test "${ac_cv_search_gethostbyname+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951 ac_func_search_save_LIBS=$LIBS
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 char gethostbyname ();
8966 int
8967 main ()
8968 {
8969 return gethostbyname ();
8970 ;
8971 return 0;
8972 }
8973 _ACEOF
8974 for ac_lib in '' nsl socket resolv; do
8975 if test -z "$ac_lib"; then
8976 ac_res="none required"
8977 else
8978 ac_res=-l$ac_lib
8979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8980 fi
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (ac_try="$ac_link"
8983 case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_link") 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest$ac_exeext &&
8998 $as_test_x conftest$ac_exeext; then
8999 ac_cv_search_gethostbyname=$ac_res
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004
9005 fi
9006
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext
9009 if test "${ac_cv_search_gethostbyname+set}" = set; then
9010 break
9011 fi
9012 done
9013 if test "${ac_cv_search_gethostbyname+set}" = set; then
9014 :
9015 else
9016 ac_cv_search_gethostbyname=no
9017 fi
9018 rm conftest.$ac_ext
9019 LIBS=$ac_func_search_save_LIBS
9020 fi
9021 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9022 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9023 ac_res=$ac_cv_search_gethostbyname
9024 if test "$ac_res" != no; then
9025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9026
9027 fi
9028
9029 # Unfortunately libsocket sometimes depends on libnsl and
9030 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9031 if test "$ac_cv_search_gethostbyname" = "no"
9032 then
9033 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9034 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9035 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lsocket -lnsl $LIBS"
9040 cat >conftest.$ac_ext <<_ACEOF
9041 /* confdefs.h. */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9046
9047 /* Override any GCC internal prototype to avoid an error.
9048 Use char because int might match the return type of a GCC
9049 builtin and then its argument prototype would still apply. */
9050 #ifdef __cplusplus
9051 extern "C"
9052 #endif
9053 char gethostbyname ();
9054 int
9055 main ()
9056 {
9057 return gethostbyname ();
9058 ;
9059 return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9064 case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_link") 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest$ac_exeext &&
9079 $as_test_x conftest$ac_exeext; then
9080 ac_cv_lib_socket_gethostbyname=yes
9081 else
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085 ac_cv_lib_socket_gethostbyname=no
9086 fi
9087
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9091 fi
9092 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9093 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9094 if test $ac_cv_lib_socket_gethostbyname = yes; then
9095 LIBS="-lsocket -lnsl $LIBS"
9096 fi
9097
9098 fi
9099 { echo "$as_me:$LINENO: checking for library containing socket" >&5
9100 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9101 if test "${ac_cv_search_socket+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104 ac_func_search_save_LIBS=$LIBS
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 char socket ();
9119 int
9120 main ()
9121 {
9122 return socket ();
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 for ac_lib in '' socket; do
9128 if test -z "$ac_lib"; then
9129 ac_res="none required"
9130 else
9131 ac_res=-l$ac_lib
9132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9133 fi
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9136 case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } && {
9148 test -z "$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9150 } && test -s conftest$ac_exeext &&
9151 $as_test_x conftest$ac_exeext; then
9152 ac_cv_search_socket=$ac_res
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157
9158 fi
9159
9160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9161 conftest$ac_exeext
9162 if test "${ac_cv_search_socket+set}" = set; then
9163 break
9164 fi
9165 done
9166 if test "${ac_cv_search_socket+set}" = set; then
9167 :
9168 else
9169 ac_cv_search_socket=no
9170 fi
9171 rm conftest.$ac_ext
9172 LIBS=$ac_func_search_save_LIBS
9173 fi
9174 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9175 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9176 ac_res=$ac_cv_search_socket
9177 if test "$ac_res" != no; then
9178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9179
9180 else
9181 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9182 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9183 if test "${ac_cv_lib_socket_socket+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186 ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lsocket -lnsl $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h. */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9194
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 char socket ();
9202 int
9203 main ()
9204 {
9205 return socket ();
9206 ;
9207 return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext conftest$ac_exeext
9211 if { (ac_try="$ac_link"
9212 case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_link") 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && {
9224 test -z "$ac_c_werror_flag" ||
9225 test ! -s conftest.err
9226 } && test -s conftest$ac_exeext &&
9227 $as_test_x conftest$ac_exeext; then
9228 ac_cv_lib_socket_socket=yes
9229 else
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233 ac_cv_lib_socket_socket=no
9234 fi
9235
9236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9239 fi
9240 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9241 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9242 if test $ac_cv_lib_socket_socket = yes; then
9243 LIBS="-lsocket -lnsl $LIBS"
9244 fi
9245
9246 fi
9247
9248 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9249 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9250 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9251 if test "${ac_cv_search_putmsg+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254 ac_func_search_save_LIBS=$LIBS
9255 cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h. */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261
9262 /* Override any GCC internal prototype to avoid an error.
9263 Use char because int might match the return type of a GCC
9264 builtin and then its argument prototype would still apply. */
9265 #ifdef __cplusplus
9266 extern "C"
9267 #endif
9268 char putmsg ();
9269 int
9270 main ()
9271 {
9272 return putmsg ();
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 for ac_lib in '' str; do
9278 if test -z "$ac_lib"; then
9279 ac_res="none required"
9280 else
9281 ac_res=-l$ac_lib
9282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9283 fi
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (ac_try="$ac_link"
9286 case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_link") 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest$ac_exeext &&
9301 $as_test_x conftest$ac_exeext; then
9302 ac_cv_search_putmsg=$ac_res
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307
9308 fi
9309
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311 conftest$ac_exeext
9312 if test "${ac_cv_search_putmsg+set}" = set; then
9313 break
9314 fi
9315 done
9316 if test "${ac_cv_search_putmsg+set}" = set; then
9317 :
9318 else
9319 ac_cv_search_putmsg=no
9320 fi
9321 rm conftest.$ac_ext
9322 LIBS=$ac_func_search_save_LIBS
9323 fi
9324 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9325 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9326 ac_res=$ac_cv_search_putmsg
9327 if test "$ac_res" != no; then
9328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9329
9330 fi
9331
9332
9333
9334 LBL_LIBS="$LIBS"
9335 pfopen=/usr/examples/packetfilter/pfopen.c
9336 if test -f $pfopen ; then
9337
9338 for ac_func in pfopen
9339 do
9340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define $ac_func innocuous_$ac_func
9355
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char $ac_func (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9360
9361 #ifdef __STDC__
9362 # include <limits.h>
9363 #else
9364 # include <assert.h>
9365 #endif
9366
9367 #undef $ac_func
9368
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char $ac_func ();
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_$ac_func || defined __stub___$ac_func
9380 choke me
9381 #endif
9382
9383 int
9384 main ()
9385 {
9386 return $ac_func ();
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9393 case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest$ac_exeext &&
9408 $as_test_x conftest$ac_exeext; then
9409 eval "$as_ac_var=yes"
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414 eval "$as_ac_var=no"
9415 fi
9416
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9419 fi
9420 ac_res=`eval echo '${'$as_ac_var'}'`
9421 { echo "$as_me:$LINENO: result: $ac_res" >&5
9422 echo "${ECHO_T}$ac_res" >&6; }
9423 if test `eval echo '${'$as_ac_var'}'` = yes; then
9424 cat >>confdefs.h <<_ACEOF
9425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9426 _ACEOF
9427
9428 fi
9429 done
9430
9431 if test $ac_cv_func_pfopen = "no" ; then
9432 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9433 echo "${ECHO_T}Using $pfopen" >&6; }
9434 LIBS="$LIBS $pfopen"
9435 fi
9436 fi
9437 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9438 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9439 libpcap=FAIL
9440 lastdir=FAIL
9441 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9442 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9443 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9444 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9445 if test $lastdir = $basedir ; then
9446 continue;
9447 fi
9448 lastdir=$dir
9449 if test -r $dir/libpcap.a ; then
9450 libpcap=$dir/libpcap.a
9451 d=$dir
9452 fi
9453 done
9454 if test $libpcap = FAIL ; then
9455 { echo "$as_me:$LINENO: result: not found" >&5
9456 echo "${ECHO_T}not found" >&6; }
9457
9458 #
9459 # Look for pcap-config.
9460 #
9461 # Extract the first word of "pcap-config", so it can be a program name with args.
9462 set dummy pcap-config; ac_word=$2
9463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9465 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468 case $PCAP_CONFIG in
9469 [\\/]* | ?:[\\/]*)
9470 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9471 ;;
9472 *)
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in $PATH
9475 do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9480 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9483 fi
9484 done
9485 done
9486 IFS=$as_save_IFS
9487
9488 ;;
9489 esac
9490 fi
9491 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9492 if test -n "$PCAP_CONFIG"; then
9493 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9494 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9495 else
9496 { echo "$as_me:$LINENO: result: no" >&5
9497 echo "${ECHO_T}no" >&6; }
9498 fi
9499
9500
9501 if test -n "$PCAP_CONFIG" ; then
9502 #
9503 # Found - use it to get the include flags for
9504 # libpcap and the flags to link with libpcap.
9505 #
9506 V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9507 libpcap="`\"$PCAP_CONFIG\" --libs`"
9508 else
9509 #
9510 # Not found; look for pcap.
9511 #
9512 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9513 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9514 if test "${ac_cv_lib_pcap_main+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 ac_check_lib_save_LIBS=$LIBS
9518 LIBS="-lpcap $LIBS"
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525
9526
9527 int
9528 main ()
9529 {
9530 return main ();
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext &&
9552 $as_test_x conftest$ac_exeext; then
9553 ac_cv_lib_pcap_main=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 ac_cv_lib_pcap_main=no
9559 fi
9560
9561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9564 fi
9565 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9566 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9567 if test $ac_cv_lib_pcap_main = yes; then
9568 libpcap="-lpcap"
9569 fi
9570
9571 if test $libpcap = FAIL ; then
9572 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9573 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9574 { (exit 1); exit 1; }; }
9575 fi
9576 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9577 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9578 if test \( ! -r /usr/local/include/pcap.h \) -a \
9579 \( ! -r /usr/include/pcap.h \); then
9580 if test -r /usr/local/include/pcap/pcap.h; then
9581 d="/usr/local/include/pcap"
9582 elif test -r /usr/include/pcap/pcap.h; then
9583 d="/usr/include/pcap"
9584 fi
9585 fi
9586 if test -z "$d" ; then
9587 { echo "$as_me:$LINENO: result: not found" >&5
9588 echo "${ECHO_T}not found" >&6; }
9589 else
9590 V_INCLS="-I$d $V_INCLS"
9591 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9592 echo "${ECHO_T}found -- -I$d added" >&6; }
9593 fi
9594 fi
9595 else
9596 V_PCAPDEP=$libpcap
9597 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9598 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9599 if test -r $d/pcap.h; then
9600 V_INCLS="-I$d $V_INCLS"
9601 elif test -r $places/pcap.h; then
9602 V_INCLS="-I$places $V_INCLS"
9603 else
9604 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9605 echo "$as_me: error: cannot find pcap.h" >&2;}
9606 { (exit see INSTALL); exit see INSTALL; }; }
9607 fi
9608 { echo "$as_me:$LINENO: result: $libpcap" >&5
9609 echo "${ECHO_T}$libpcap" >&6; }
9610 # Extract the first word of "pcap-config", so it can be a program name with args.
9611 set dummy pcap-config; ac_word=$2
9612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9614 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 case $PCAP_CONFIG in
9618 [\\/]* | ?:[\\/]*)
9619 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9620 ;;
9621 *)
9622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623 for as_dir in $d
9624 do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9629 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9631 break 2
9632 fi
9633 done
9634 done
9635 IFS=$as_save_IFS
9636
9637 ;;
9638 esac
9639 fi
9640 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9641 if test -n "$PCAP_CONFIG"; then
9642 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9643 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9644 else
9645 { echo "$as_me:$LINENO: result: no" >&5
9646 echo "${ECHO_T}no" >&6; }
9647 fi
9648
9649
9650 if test -n "$PCAP_CONFIG"; then
9651 #
9652 # The libpcap directory has a pcap-config script.
9653 # Use it to get any additioal libraries needed
9654 # to link with the libpcap archive library in
9655 # that directory
9656 #
9657 libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9658 fi
9659 fi
9660 LIBS="$libpcap $LIBS"
9661 if ! test -n "$PCAP_CONFIG" ; then
9662 #
9663 # We don't have pcap-config; find out any additional link flags
9664 # we need. (If we have pcap-config, we assume it tells us what
9665 # we need.)
9666 #
9667 case "$host_os" in
9668
9669 aix*)
9670 #
9671 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9672 # present, as we use the STREAMS routines.
9673 #
9674 # (XXX - true only if we're linking with a static libpcap?)
9675 #
9676 pseexe="/lib/pse.exp"
9677 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9678 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9679 if test -f $pseexe ; then
9680 { echo "$as_me:$LINENO: result: yes" >&5
9681 echo "${ECHO_T}yes" >&6; }
9682 LIBS="$LIBS -I:$pseexe"
9683 fi
9684
9685 #
9686 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9687 # we use them to load the BPF module.
9688 #
9689 # (XXX - true only if we're linking with a static libpcap?)
9690 #
9691 LIBS="$LIBS -lodm -lcfg"
9692 ;;
9693 esac
9694 fi
9695
9696 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9697 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9698 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9709 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9710
9711 /* System header to define __stub macros and hopefully few prototypes,
9712 which can conflict with char pcap_list_datalinks (); below.
9713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714 <limits.h> exists even on freestanding compilers. */
9715
9716 #ifdef __STDC__
9717 # include <limits.h>
9718 #else
9719 # include <assert.h>
9720 #endif
9721
9722 #undef pcap_list_datalinks
9723
9724 /* Override any GCC internal prototype to avoid an error.
9725 Use char because int might match the return type of a GCC
9726 builtin and then its argument prototype would still apply. */
9727 #ifdef __cplusplus
9728 extern "C"
9729 #endif
9730 char pcap_list_datalinks ();
9731 /* The GNU C library defines this for functions which it implements
9732 to always fail with ENOSYS. Some functions are actually named
9733 something starting with __ and the normal name is an alias. */
9734 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9735 choke me
9736 #endif
9737
9738 int
9739 main ()
9740 {
9741 return pcap_list_datalinks ();
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } && {
9760 test -z "$ac_c_werror_flag" ||
9761 test ! -s conftest.err
9762 } && test -s conftest$ac_exeext &&
9763 $as_test_x conftest$ac_exeext; then
9764 ac_cv_func_pcap_list_datalinks=yes
9765 else
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 ac_cv_func_pcap_list_datalinks=no
9770 fi
9771
9772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773 conftest$ac_exeext conftest.$ac_ext
9774 fi
9775 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9776 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9777 if test $ac_cv_func_pcap_list_datalinks = yes; then
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_PCAP_LIST_DATALINKS 1
9780 _ACEOF
9781
9782 else
9783
9784 case " $LIBOBJS " in
9785 *" datalinks.$ac_objext "* ) ;;
9786 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9787 ;;
9788 esac
9789
9790
9791 fi
9792
9793 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9794 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9795 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h. */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806 #define pcap_set_datalink innocuous_pcap_set_datalink
9807
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char pcap_set_datalink (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9812
9813 #ifdef __STDC__
9814 # include <limits.h>
9815 #else
9816 # include <assert.h>
9817 #endif
9818
9819 #undef pcap_set_datalink
9820
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 char pcap_set_datalink ();
9828 /* The GNU C library defines this for functions which it implements
9829 to always fail with ENOSYS. Some functions are actually named
9830 something starting with __ and the normal name is an alias. */
9831 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9832 choke me
9833 #endif
9834
9835 int
9836 main ()
9837 {
9838 return pcap_set_datalink ();
9839 ;
9840 return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext &&
9860 $as_test_x conftest$ac_exeext; then
9861 ac_cv_func_pcap_set_datalink=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_cv_func_pcap_set_datalink=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870 conftest$ac_exeext conftest.$ac_ext
9871 fi
9872 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9873 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9874 if test $ac_cv_func_pcap_set_datalink = yes; then
9875 cat >>confdefs.h <<\_ACEOF
9876 #define HAVE_PCAP_SET_DATALINK 1
9877 _ACEOF
9878
9879 fi
9880
9881 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9882 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9883 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 cat >conftest.$ac_ext <<_ACEOF
9887 /* confdefs.h. */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9894 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9895
9896 /* System header to define __stub macros and hopefully few prototypes,
9897 which can conflict with char pcap_datalink_name_to_val (); below.
9898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9899 <limits.h> exists even on freestanding compilers. */
9900
9901 #ifdef __STDC__
9902 # include <limits.h>
9903 #else
9904 # include <assert.h>
9905 #endif
9906
9907 #undef pcap_datalink_name_to_val
9908
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9912 #ifdef __cplusplus
9913 extern "C"
9914 #endif
9915 char pcap_datalink_name_to_val ();
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9920 choke me
9921 #endif
9922
9923 int
9924 main ()
9925 {
9926 return pcap_datalink_name_to_val ();
9927 ;
9928 return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9933 case "(($ac_try" in
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest$ac_exeext &&
9948 $as_test_x conftest$ac_exeext; then
9949 ac_cv_func_pcap_datalink_name_to_val=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954 ac_cv_func_pcap_datalink_name_to_val=no
9955 fi
9956
9957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9958 conftest$ac_exeext conftest.$ac_ext
9959 fi
9960 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9961 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9962 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9963
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9966 _ACEOF
9967
9968 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9969 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9970 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9981 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9982
9983 /* System header to define __stub macros and hopefully few prototypes,
9984 which can conflict with char pcap_datalink_val_to_description (); below.
9985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9986 <limits.h> exists even on freestanding compilers. */
9987
9988 #ifdef __STDC__
9989 # include <limits.h>
9990 #else
9991 # include <assert.h>
9992 #endif
9993
9994 #undef pcap_datalink_val_to_description
9995
9996 /* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
9999 #ifdef __cplusplus
10000 extern "C"
10001 #endif
10002 char pcap_datalink_val_to_description ();
10003 /* The GNU C library defines this for functions which it implements
10004 to always fail with ENOSYS. Some functions are actually named
10005 something starting with __ and the normal name is an alias. */
10006 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10007 choke me
10008 #endif
10009
10010 int
10011 main ()
10012 {
10013 return pcap_datalink_val_to_description ();
10014 ;
10015 return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_link") 2>conftest.er1
10026 ac_status=$?
10027 grep -v '^ *+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && {
10032 test -z "$ac_c_werror_flag" ||
10033 test ! -s conftest.err
10034 } && test -s conftest$ac_exeext &&
10035 $as_test_x conftest$ac_exeext; then
10036 ac_cv_func_pcap_datalink_val_to_description=yes
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_cv_func_pcap_datalink_val_to_description=no
10042 fi
10043
10044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045 conftest$ac_exeext conftest.$ac_ext
10046 fi
10047 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10048 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10049 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10052 _ACEOF
10053
10054 else
10055
10056 case " $LIBOBJS " in
10057 *" dlnames.$ac_objext "* ) ;;
10058 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10059 ;;
10060 esac
10061
10062
10063 fi
10064
10065
10066 else
10067
10068 case " $LIBOBJS " in
10069 *" dlnames.$ac_objext "* ) ;;
10070 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10071 ;;
10072 esac
10073
10074
10075 fi
10076
10077
10078
10079 for ac_func in pcap_breakloop
10080 do
10081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h. */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10095 #define $ac_func innocuous_$ac_func
10096
10097 /* System header to define __stub macros and hopefully few prototypes,
10098 which can conflict with char $ac_func (); below.
10099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10100 <limits.h> exists even on freestanding compilers. */
10101
10102 #ifdef __STDC__
10103 # include <limits.h>
10104 #else
10105 # include <assert.h>
10106 #endif
10107
10108 #undef $ac_func
10109
10110 /* Override any GCC internal prototype to avoid an error.
10111 Use char because int might match the return type of a GCC
10112 builtin and then its argument prototype would still apply. */
10113 #ifdef __cplusplus
10114 extern "C"
10115 #endif
10116 char $ac_func ();
10117 /* The GNU C library defines this for functions which it implements
10118 to always fail with ENOSYS. Some functions are actually named
10119 something starting with __ and the normal name is an alias. */
10120 #if defined __stub_$ac_func || defined __stub___$ac_func
10121 choke me
10122 #endif
10123
10124 int
10125 main ()
10126 {
10127 return $ac_func ();
10128 ;
10129 return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (ac_try="$ac_link"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_link") 2>conftest.er1
10140 ac_status=$?
10141 grep -v '^ *+' conftest.er1 >conftest.err
10142 rm -f conftest.er1
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest$ac_exeext &&
10149 $as_test_x conftest$ac_exeext; then
10150 eval "$as_ac_var=yes"
10151 else
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10154
10155 eval "$as_ac_var=no"
10156 fi
10157
10158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10159 conftest$ac_exeext conftest.$ac_ext
10160 fi
10161 ac_res=`eval echo '${'$as_ac_var'}'`
10162 { echo "$as_me:$LINENO: result: $ac_res" >&5
10163 echo "${ECHO_T}$ac_res" >&6; }
10164 if test `eval echo '${'$as_ac_var'}'` = yes; then
10165 cat >>confdefs.h <<_ACEOF
10166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10167 _ACEOF
10168
10169 fi
10170 done
10171
10172
10173 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10174 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10175 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10187
10188 /* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char pcap_dump_ftell (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10192
10193 #ifdef __STDC__
10194 # include <limits.h>
10195 #else
10196 # include <assert.h>
10197 #endif
10198
10199 #undef pcap_dump_ftell
10200
10201 /* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204 #ifdef __cplusplus
10205 extern "C"
10206 #endif
10207 char pcap_dump_ftell ();
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10212 choke me
10213 #endif
10214
10215 int
10216 main ()
10217 {
10218 return pcap_dump_ftell ();
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext &&
10240 $as_test_x conftest$ac_exeext; then
10241 ac_cv_func_pcap_dump_ftell=yes
10242 else
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ac_cv_func_pcap_dump_ftell=no
10247 fi
10248
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext conftest.$ac_ext
10251 fi
10252 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10253 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10254 if test $ac_cv_func_pcap_dump_ftell = yes; then
10255 cat >>confdefs.h <<\_ACEOF
10256 #define HAVE_PCAP_DUMP_FTELL 1
10257 _ACEOF
10258
10259 else
10260
10261 case " $LIBOBJS " in
10262 *" pcap_dump_ftell.$ac_objext "* ) ;;
10263 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10264 ;;
10265 esac
10266
10267
10268 fi
10269
10270
10271
10272 #
10273 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10274 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10275 #
10276 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10277 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10278 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10279 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10280 # it does not ship with a libc symbol "inet_ntop()", it ships with
10281 # "_inet_ntop()", and has a #define macro in one of the system headers
10282 # to rename it.
10283 #
10284 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10285 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 #include <sys/types.h>
10293 #include <sys/socket.h>
10294 #include <netinet/in.h>
10295 #include <arpa/inet.h>
10296 int
10297 main ()
10298 {
10299 char src[4], dst[128];
10300 inet_ntop(AF_INET, src, dst, sizeof(dst));
10301 ;
10302 return 0;
10303 }
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (ac_try="$ac_link"
10307 case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310 esac
10311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_link") 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } && {
10319 test -z "$ac_c_werror_flag" ||
10320 test ! -s conftest.err
10321 } && test -s conftest$ac_exeext &&
10322 $as_test_x conftest$ac_exeext; then
10323 { echo "$as_me:$LINENO: result: yes" >&5
10324 echo "${ECHO_T}yes" >&6; }
10325 else
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 { echo "$as_me:$LINENO: result: no" >&5
10330 echo "${ECHO_T}no" >&6; }
10331 case " $LIBOBJS " in
10332 *" inet_ntop.$ac_objext "* ) ;;
10333 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10334 ;;
10335 esac
10336
10337 fi
10338
10339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10340 conftest$ac_exeext conftest.$ac_ext
10341 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10342 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10349 #include <sys/types.h>
10350 #include <sys/socket.h>
10351 #include <netinet/in.h>
10352 #include <arpa/inet.h>
10353 int
10354 main ()
10355 {
10356 char src[128], dst[4];
10357 inet_pton(AF_INET, src, dst);
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_link") 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && {
10376 test -z "$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 } && test -s conftest$ac_exeext &&
10379 $as_test_x conftest$ac_exeext; then
10380 { echo "$as_me:$LINENO: result: yes" >&5
10381 echo "${ECHO_T}yes" >&6; }
10382 else
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 { echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6; }
10388 case " $LIBOBJS " in
10389 *" inet_pton.$ac_objext "* ) ;;
10390 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10391 ;;
10392 esac
10393
10394 fi
10395
10396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397 conftest$ac_exeext conftest.$ac_ext
10398 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10399 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 #include <sys/types.h>
10407 #include <netinet/in.h>
10408 #include <arpa/inet.h>
10409 int
10410 main ()
10411 {
10412 char src[128];
10413 struct in_addr dst;
10414 inet_aton(src, &dst);
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_link") 2>conftest.er1
10427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } && {
10433 test -z "$ac_c_werror_flag" ||
10434 test ! -s conftest.err
10435 } && test -s conftest$ac_exeext &&
10436 $as_test_x conftest$ac_exeext; then
10437 { echo "$as_me:$LINENO: result: yes" >&5
10438 echo "${ECHO_T}yes" >&6; }
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 { echo "$as_me:$LINENO: result: no" >&5
10444 echo "${ECHO_T}no" >&6; }
10445 case " $LIBOBJS " in
10446 *" inet_aton.$ac_objext "* ) ;;
10447 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10448 ;;
10449 esac
10450
10451 fi
10452
10453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10454 conftest$ac_exeext conftest.$ac_ext
10455
10456 #
10457 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10458 #
10459 # You are in a twisty little maze of UN*Xes, all different.
10460 # Some might not have ether_ntohost().
10461 # Some might have it, but not declare it in any header file.
10462 # Some might have it, but declare it in <netinet/if_ether.h>.
10463 # Some might have it, but declare it in <netinet/ether.h>
10464 # (And some might have it but document it as something declared in
10465 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10466 #
10467 # Before you is a C compiler.
10468 #
10469
10470 for ac_func in ether_ntohost
10471 do
10472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10486 #define $ac_func innocuous_$ac_func
10487
10488 /* System header to define __stub macros and hopefully few prototypes,
10489 which can conflict with char $ac_func (); below.
10490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10491 <limits.h> exists even on freestanding compilers. */
10492
10493 #ifdef __STDC__
10494 # include <limits.h>
10495 #else
10496 # include <assert.h>
10497 #endif
10498
10499 #undef $ac_func
10500
10501 /* Override any GCC internal prototype to avoid an error.
10502 Use char because int might match the return type of a GCC
10503 builtin and then its argument prototype would still apply. */
10504 #ifdef __cplusplus
10505 extern "C"
10506 #endif
10507 char $ac_func ();
10508 /* The GNU C library defines this for functions which it implements
10509 to always fail with ENOSYS. Some functions are actually named
10510 something starting with __ and the normal name is an alias. */
10511 #if defined __stub_$ac_func || defined __stub___$ac_func
10512 choke me
10513 #endif
10514
10515 int
10516 main ()
10517 {
10518 return $ac_func ();
10519 ;
10520 return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (ac_try="$ac_link"
10525 case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_link") 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && {
10537 test -z "$ac_c_werror_flag" ||
10538 test ! -s conftest.err
10539 } && test -s conftest$ac_exeext &&
10540 $as_test_x conftest$ac_exeext; then
10541 eval "$as_ac_var=yes"
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 eval "$as_ac_var=no"
10547 fi
10548
10549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10550 conftest$ac_exeext conftest.$ac_ext
10551 fi
10552 ac_res=`eval echo '${'$as_ac_var'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554 echo "${ECHO_T}$ac_res" >&6; }
10555 if test `eval echo '${'$as_ac_var'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10558 _ACEOF
10559
10560 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10561 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10562 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565
10566 if test "$cross_compiling" = yes; then
10567 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10568 else
10569 cat >conftest.$ac_ext <<_ACEOF
10570 /* confdefs.h. */
10571 _ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575
10576 #include <netdb.h>
10577 #include <sys/types.h>
10578 #include <sys/param.h>
10579 #include <sys/socket.h>
10580
10581 int
10582 main(int argc, char **argv)
10583 {
10584 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10585 char name[MAXHOSTNAMELEN];
10586
10587 ether_ntohost(name, (struct ether_addr *)ea);
10588 exit(0);
10589 }
10590
10591 _ACEOF
10592 rm -f conftest$ac_exeext
10593 if { (ac_try="$ac_link"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597 esac
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10603 { (case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_buggy_ether_ntohost=no
10613 else
10614 echo "$as_me: program exited with status $ac_status" >&5
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10617
10618 ( exit $ac_status )
10619 ac_cv_buggy_ether_ntohost=yes
10620 fi
10621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10622 fi
10623
10624
10625 fi
10626 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10627 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10628 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10629 cat >>confdefs.h <<\_ACEOF
10630 #define USE_ETHER_NTOHOST 1
10631 _ACEOF
10632
10633 fi
10634
10635 fi
10636 done
10637
10638 if test "$ac_cv_func_ether_ntohost" = yes -a \
10639 "$ac_cv_buggy_ether_ntohost" = "no"; then
10640 #
10641 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10642 #
10643 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10644 #
10645 # Yes. Does it declare ether_ntohost()?
10646 #
10647 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10648 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10649 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658
10659 #include <sys/types.h>
10660 #include <sys/socket.h>
10661 #include <netinet/in.h>
10662 #include <arpa/inet.h>
10663 struct mbuf;
10664 struct rtentry;
10665 #include <net/if.h>
10666 #include <netinet/if_ether.h>
10667
10668
10669 int
10670 main ()
10671 {
10672 #ifndef ether_ntohost
10673 (void) ether_ntohost;
10674 #endif
10675
10676 ;
10677 return 0;
10678 }
10679 _ACEOF
10680 rm -f conftest.$ac_objext
10681 if { (ac_try="$ac_compile"
10682 case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685 esac
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_compile") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest.$ac_objext; then
10697 ac_cv_have_decl_ether_ntohost=yes
10698 else
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10701
10702 ac_cv_have_decl_ether_ntohost=no
10703 fi
10704
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 fi
10707 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10708 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10709 if test $ac_cv_have_decl_ether_ntohost = yes; then
10710
10711
10712 cat >>confdefs.h <<\_ACEOF
10713 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10714 _ACEOF
10715
10716
10717 fi
10718
10719 fi
10720 #
10721 # Did that succeed?
10722 #
10723 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10724 #
10725 # No, how about <netinet/ether.h>, as on Linux?
10726 #
10727
10728 for ac_header in netinet/ether.h
10729 do
10730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 fi
10737 ac_res=`eval echo '${'$as_ac_Header'}'`
10738 { echo "$as_me:$LINENO: result: $ac_res" >&5
10739 echo "${ECHO_T}$ac_res" >&6; }
10740 else
10741 # Is the header compilable?
10742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 #include <$ac_header>
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_compile") 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest.$ac_objext; then
10770 ac_header_compiler=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_header_compiler=no
10776 fi
10777
10778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10780 echo "${ECHO_T}$ac_header_compiler" >&6; }
10781
10782 # Is the header present?
10783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h. */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 #include <$ac_header>
10792 _ACEOF
10793 if { (ac_try="$ac_cpp conftest.$ac_ext"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } >/dev/null && {
10806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 }; then
10809 ac_header_preproc=yes
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 ac_header_preproc=no
10815 fi
10816
10817 rm -f conftest.err conftest.$ac_ext
10818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10819 echo "${ECHO_T}$ac_header_preproc" >&6; }
10820
10821 # So? What about this header?
10822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10823 yes:no: )
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10828 ac_header_preproc=yes
10829 ;;
10830 no:yes:* )
10831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10843
10844 ;;
10845 esac
10846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 eval "$as_ac_Header=\$ac_header_preproc"
10852 fi
10853 ac_res=`eval echo '${'$as_ac_Header'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856
10857 fi
10858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10859 cat >>confdefs.h <<_ACEOF
10860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10861 _ACEOF
10862
10863 fi
10864
10865 done
10866
10867 if test "$ac_cv_header_netinet_ether_h" = yes; then
10868 #
10869 # We have it - does it declare ether_ntohost()?
10870 # Unset ac_cv_have_decl_ether_ntohost so we don't
10871 # treat the previous failure as a cached value and
10872 # suppress the next test.
10873 #
10874 unset ac_cv_have_decl_ether_ntohost
10875 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10876 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10877 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886
10887 #include <netinet/ether.h>
10888
10889
10890 int
10891 main ()
10892 {
10893 #ifndef ether_ntohost
10894 (void) ether_ntohost;
10895 #endif
10896
10897 ;
10898 return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext
10902 if { (ac_try="$ac_compile"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906 esac
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_compile") 2>conftest.er1
10909 ac_status=$?
10910 grep -v '^ *+' conftest.er1 >conftest.err
10911 rm -f conftest.er1
10912 cat conftest.err >&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } && {
10915 test -z "$ac_c_werror_flag" ||
10916 test ! -s conftest.err
10917 } && test -s conftest.$ac_objext; then
10918 ac_cv_have_decl_ether_ntohost=yes
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_cv_have_decl_ether_ntohost=no
10924 fi
10925
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 fi
10928 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10929 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10930 if test $ac_cv_have_decl_ether_ntohost = yes; then
10931
10932
10933 cat >>confdefs.h <<\_ACEOF
10934 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10935 _ACEOF
10936
10937
10938 fi
10939
10940 fi
10941 fi
10942 #
10943 # Is ether_ntohost() declared?
10944 #
10945 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10946 #
10947 # No, we'll have to declare it ourselves.
10948 # Do we have "struct ether_addr"?
10949 #
10950 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10951 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10952 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961
10962 #include <sys/types.h>
10963 #include <sys/socket.h>
10964 #include <netinet/in.h>
10965 #include <arpa/inet.h>
10966 struct mbuf;
10967 struct rtentry;
10968 #include <net/if.h>
10969 #include <netinet/if_ether.h>
10970
10971
10972 typedef struct ether_addr ac__type_new_;
10973 int
10974 main ()
10975 {
10976 if ((ac__type_new_ *) 0)
10977 return 0;
10978 if (sizeof (ac__type_new_))
10979 return 0;
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (ac_try="$ac_compile"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989 esac
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest.$ac_objext; then
11001 ac_cv_type_struct_ether_addr=yes
11002 else
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 ac_cv_type_struct_ether_addr=no
11007 fi
11008
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 fi
11011 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11012 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11013 if test $ac_cv_type_struct_ether_addr = yes; then
11014
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_STRUCT_ETHER_ADDR 1
11017 _ACEOF
11018
11019
11020 fi
11021
11022
11023 cat >>confdefs.h <<\_ACEOF
11024 #define HAVE_DECL_ETHER_NTOHOST 0
11025 _ACEOF
11026
11027 else
11028
11029 cat >>confdefs.h <<\_ACEOF
11030 #define HAVE_DECL_ETHER_NTOHOST 1
11031 _ACEOF
11032
11033 fi
11034 fi
11035
11036 # libdlpi is needed for Solaris 11 and later.
11037 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11038 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11039 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 ac_check_lib_save_LIBS=$LIBS
11043 LIBS="-ldlpi -L/lib $LIBS"
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 char dlpi_walk ();
11058 int
11059 main ()
11060 {
11061 return dlpi_walk ();
11062 ;
11063 return 0;
11064 }
11065 _ACEOF
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (ac_try="$ac_link"
11068 case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11071 esac
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073 (eval "$ac_link") 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } && {
11080 test -z "$ac_c_werror_flag" ||
11081 test ! -s conftest.err
11082 } && test -s conftest$ac_exeext &&
11083 $as_test_x conftest$ac_exeext; then
11084 ac_cv_lib_dlpi_dlpi_walk=yes
11085 else
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 ac_cv_lib_dlpi_dlpi_walk=no
11090 fi
11091
11092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11097 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11098 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11099 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
11100 fi
11101
11102
11103
11104 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11105 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11106 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 else
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h. */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115
11116 # include <sys/types.h>
11117 # include <sys/socket.h>
11118 int
11119 main ()
11120 {
11121 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11122 ;
11123 return 0;
11124 }
11125 _ACEOF
11126 rm -f conftest.$ac_objext
11127 if { (ac_try="$ac_compile"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131 esac
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_compile") 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest.$ac_objext; then
11143 ac_cv_sockaddr_has_sa_len=yes
11144 else
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_cv_sockaddr_has_sa_len=no
11149 fi
11150
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 fi
11153
11154 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11155 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11156 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_SOCKADDR_SA_LEN 1
11159 _ACEOF
11160
11161 fi
11162
11163 if test "$ac_cv_sockaddr_has_sa_len" = no; then
11164 missing_includes=yes
11165 fi
11166
11167 #
11168 # Do we have the new open API? Check for pcap_create, and assume that,
11169 # if we do, we also have pcap_activate() and the other new routines.
11170
11171 for ac_func in pcap_create
11172 do
11173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h. */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11187 #define $ac_func innocuous_$ac_func
11188
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below.
11191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192 <limits.h> exists even on freestanding compilers. */
11193
11194 #ifdef __STDC__
11195 # include <limits.h>
11196 #else
11197 # include <assert.h>
11198 #endif
11199
11200 #undef $ac_func
11201
11202 /* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 char $ac_func ();
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined __stub_$ac_func || defined __stub___$ac_func
11213 choke me
11214 #endif
11215
11216 int
11217 main ()
11218 {
11219 return $ac_func ();
11220 ;
11221 return 0;
11222 }
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (ac_try="$ac_link"
11226 case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229 esac
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest$ac_exeext &&
11241 $as_test_x conftest$ac_exeext; then
11242 eval "$as_ac_var=yes"
11243 else
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 eval "$as_ac_var=no"
11248 fi
11249
11250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11251 conftest$ac_exeext conftest.$ac_ext
11252 fi
11253 ac_res=`eval echo '${'$as_ac_var'}'`
11254 { echo "$as_me:$LINENO: result: $ac_res" >&5
11255 echo "${ECHO_T}$ac_res" >&6; }
11256 if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259 _ACEOF
11260
11261 fi
11262 done
11263
11264
11265
11266
11267
11268 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11269 do
11270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h. */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11284 #define $ac_func innocuous_$ac_func
11285
11286 /* System header to define __stub macros and hopefully few prototypes,
11287 which can conflict with char $ac_func (); below.
11288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11289 <limits.h> exists even on freestanding compilers. */
11290
11291 #ifdef __STDC__
11292 # include <limits.h>
11293 #else
11294 # include <assert.h>
11295 #endif
11296
11297 #undef $ac_func
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char $ac_func ();
11306 /* The GNU C library defines this for functions which it implements
11307 to always fail with ENOSYS. Some functions are actually named
11308 something starting with __ and the normal name is an alias. */
11309 #if defined __stub_$ac_func || defined __stub___$ac_func
11310 choke me
11311 #endif
11312
11313 int
11314 main ()
11315 {
11316 return $ac_func ();
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_link") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest$ac_exeext &&
11338 $as_test_x conftest$ac_exeext; then
11339 eval "$as_ac_var=yes"
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 eval "$as_ac_var=no"
11345 fi
11346
11347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11348 conftest$ac_exeext conftest.$ac_ext
11349 fi
11350 ac_res=`eval echo '${'$as_ac_var'}'`
11351 { echo "$as_me:$LINENO: result: $ac_res" >&5
11352 echo "${ECHO_T}$ac_res" >&6; }
11353 if test `eval echo '${'$as_ac_var'}'` = yes; then
11354 cat >>confdefs.h <<_ACEOF
11355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11356 _ACEOF
11357
11358 fi
11359 done
11360
11361 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11362 savedppflags="$CPPLAGS"
11363 CPPFLAGS="$CPPFLAGS $V_INCLS"
11364 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11365 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11366 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #include <pcap.h>
11376
11377 typedef pcap_if_t ac__type_new_;
11378 int
11379 main ()
11380 {
11381 if ((ac__type_new_ *) 0)
11382 return 0;
11383 if (sizeof (ac__type_new_))
11384 return 0;
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 rm -f conftest.$ac_objext
11390 if { (ac_try="$ac_compile"
11391 case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_compile") 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } && {
11403 test -z "$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11405 } && test -s conftest.$ac_objext; then
11406 ac_cv_type_pcap_if_t=yes
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 ac_cv_type_pcap_if_t=no
11412 fi
11413
11414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11415 fi
11416 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11417 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11418 if test $ac_cv_type_pcap_if_t = yes; then
11419
11420 cat >>confdefs.h <<_ACEOF
11421 #define HAVE_PCAP_IF_T 1
11422 _ACEOF
11423
11424
11425 fi
11426
11427 CPPFLAGS="$savedcppflags"
11428 fi
11429
11430 if test $ac_cv_func_pcap_lib_version = "no" ; then
11431 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11432 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h. */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439
11440 int
11441 main ()
11442 {
11443
11444 extern char pcap_version[];
11445
11446 return (int)pcap_version;
11447
11448 ;
11449 return 0;
11450 }
11451 _ACEOF
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (ac_try="$ac_link"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_link") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest$ac_exeext &&
11469 $as_test_x conftest$ac_exeext; then
11470 ac_lbl_cv_pcap_version_defined=yes
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_lbl_cv_pcap_version_defined=no
11476 fi
11477
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479 conftest$ac_exeext conftest.$ac_ext
11480 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11481 { echo "$as_me:$LINENO: result: yes" >&5
11482 echo "${ECHO_T}yes" >&6; }
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_PCAP_VERSION 1
11485 _ACEOF
11486
11487 else
11488 { echo "$as_me:$LINENO: result: no" >&5
11489 echo "${ECHO_T}no" >&6; }
11490 fi
11491 fi
11492 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11493 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11494 cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h. */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500
11501 int
11502 main ()
11503 {
11504
11505 extern int pcap_debug;
11506
11507 return pcap_debug;
11508
11509 ;
11510 return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_link") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest$ac_exeext &&
11530 $as_test_x conftest$ac_exeext; then
11531 ac_lbl_cv_pcap_debug_defined=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_lbl_cv_pcap_debug_defined=no
11537 fi
11538
11539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11540 conftest$ac_exeext conftest.$ac_ext
11541 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11542 { echo "$as_me:$LINENO: result: yes" >&5
11543 echo "${ECHO_T}yes" >&6; }
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_PCAP_DEBUG 1
11546 _ACEOF
11547
11548 else
11549 { echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6; }
11551 #
11552 # OK, what about "yydebug"?
11553 #
11554 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11555 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562
11563 int
11564 main ()
11565 {
11566
11567 extern int yydebug;
11568
11569 return yydebug;
11570
11571 ;
11572 return 0;
11573 }
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest$ac_exeext &&
11592 $as_test_x conftest$ac_exeext; then
11593 ac_lbl_cv_yydebug_defined=yes
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598 ac_lbl_cv_yydebug_defined=no
11599 fi
11600
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11604 { echo "$as_me:$LINENO: result: yes" >&5
11605 echo "${ECHO_T}yes" >&6; }
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_YYDEBUG 1
11608 _ACEOF
11609
11610 else
11611 { echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6; }
11613 fi
11614 fi
11615
11616 for ac_func in bpf_dump
11617 do
11618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11632 #define $ac_func innocuous_$ac_func
11633
11634 /* System header to define __stub macros and hopefully few prototypes,
11635 which can conflict with char $ac_func (); below.
11636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11637 <limits.h> exists even on freestanding compilers. */
11638
11639 #ifdef __STDC__
11640 # include <limits.h>
11641 #else
11642 # include <assert.h>
11643 #endif
11644
11645 #undef $ac_func
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char $ac_func ();
11654 /* The GNU C library defines this for functions which it implements
11655 to always fail with ENOSYS. Some functions are actually named
11656 something starting with __ and the normal name is an alias. */
11657 #if defined __stub_$ac_func || defined __stub___$ac_func
11658 choke me
11659 #endif
11660
11661 int
11662 main ()
11663 {
11664 return $ac_func ();
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (ac_try="$ac_link"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_link") 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && {
11683 test -z "$ac_c_werror_flag" ||
11684 test ! -s conftest.err
11685 } && test -s conftest$ac_exeext &&
11686 $as_test_x conftest$ac_exeext; then
11687 eval "$as_ac_var=yes"
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 eval "$as_ac_var=no"
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11696 conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 ac_res=`eval echo '${'$as_ac_var'}'`
11699 { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702 cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11704 _ACEOF
11705
11706 else
11707 case " $LIBOBJS " in
11708 *" $ac_func.$ac_objext "* ) ;;
11709 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11710 ;;
11711 esac
11712
11713 fi
11714 done
11715
11716
11717 V_GROUP=0
11718 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11719 V_GROUP=wheel
11720 fi
11721 #
11722 # Assume V7/BSD convention for man pages (file formats in section 5,
11723 # miscellaneous info in section 7).
11724 #
11725 MAN_FILE_FORMATS=5
11726 MAN_MISC_INFO=7
11727 case "$host_os" in
11728
11729 aix*)
11730 cat >>confdefs.h <<\_ACEOF
11731 #define _SUN 1
11732 _ACEOF
11733
11734 ;;
11735
11736 hpux*)
11737 #
11738 # Use System V conventions for man pages.
11739 #
11740 MAN_FILE_FORMATS=4
11741 MAN_MISC_INFO=5
11742 ;;
11743
11744 irix*)
11745 V_GROUP=sys
11746
11747 #
11748 # Use System V conventions for man pages.
11749 #
11750 MAN_FILE_FORMATS=4
11751 MAN_MISC_INFO=5
11752 ;;
11753
11754 osf*)
11755 V_GROUP=system
11756
11757 #
11758 # Use System V conventions for man pages.
11759 #
11760 MAN_FILE_FORMATS=4
11761 MAN_MISC_INFO=5
11762 ;;
11763
11764 solaris*)
11765 V_GROUP=sys
11766
11767 #
11768 # Use System V conventions for man pages.
11769 #
11770 MAN_FILE_FORMATS=4
11771 MAN_MISC_INFO=5
11772 ;;
11773 esac
11774
11775 if test -f /dev/bpf0 ; then
11776 V_GROUP=bpf
11777 fi
11778
11779 #
11780 # Check for some headers introduced in later versions of libpcap
11781 # and used by some printers.
11782 #
11783 savedcppflags="$CPPFLAGS"
11784 CPPFLAGS="$CPPFLAGS $V_INCLS"
11785
11786 for ac_header in pcap/bluetooth.h
11787 do
11788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 fi
11795 ac_res=`eval echo '${'$as_ac_Header'}'`
11796 { echo "$as_me:$LINENO: result: $ac_res" >&5
11797 echo "${ECHO_T}$ac_res" >&6; }
11798 else
11799 # Is the header compilable?
11800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 $ac_includes_default
11809 #include <$ac_header>
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 if { (ac_try="$ac_compile"
11813 case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_compile") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } && {
11825 test -z "$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11827 } && test -s conftest.$ac_objext; then
11828 ac_header_compiler=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 ac_header_compiler=no
11834 fi
11835
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11838 echo "${ECHO_T}$ac_header_compiler" >&6; }
11839
11840 # Is the header present?
11841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 #include <$ac_header>
11850 _ACEOF
11851 if { (ac_try="$ac_cpp conftest.$ac_ext"
11852 case "(($ac_try" in
11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11854 *) ac_try_echo=$ac_try;;
11855 esac
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11858 ac_status=$?
11859 grep -v '^ *+' conftest.er1 >conftest.err
11860 rm -f conftest.er1
11861 cat conftest.err >&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } >/dev/null && {
11864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 }; then
11867 ac_header_preproc=yes
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872 ac_header_preproc=no
11873 fi
11874
11875 rm -f conftest.err conftest.$ac_ext
11876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11877 echo "${ECHO_T}$ac_header_preproc" >&6; }
11878
11879 # So? What about this header?
11880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11881 yes:no: )
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11886 ac_header_preproc=yes
11887 ;;
11888 no:yes:* )
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11901
11902 ;;
11903 esac
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 eval "$as_ac_Header=\$ac_header_preproc"
11910 fi
11911 ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11914
11915 fi
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11919 _ACEOF
11920
11921 fi
11922
11923 done
11924
11925
11926 for ac_header in pcap/usb.h
11927 do
11928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 fi
11935 ac_res=`eval echo '${'$as_ac_Header'}'`
11936 { echo "$as_me:$LINENO: result: $ac_res" >&5
11937 echo "${ECHO_T}$ac_res" >&6; }
11938 else
11939 # Is the header compilable?
11940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 $ac_includes_default
11949 #include <$ac_header>
11950 _ACEOF
11951 rm -f conftest.$ac_objext
11952 if { (ac_try="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.$ac_objext; then
11968 ac_header_compiler=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_header_compiler=no
11974 fi
11975
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978 echo "${ECHO_T}$ac_header_compiler" >&6; }
11979
11980 # Is the header present?
11981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <$ac_header>
11990 _ACEOF
11991 if { (ac_try="$ac_cpp conftest.$ac_ext"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } >/dev/null && {
12004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 }; then
12007 ac_header_preproc=yes
12008 else
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ac_header_preproc=no
12013 fi
12014
12015 rm -f conftest.err conftest.$ac_ext
12016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12017 echo "${ECHO_T}$ac_header_preproc" >&6; }
12018
12019 # So? What about this header?
12020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12021 yes:no: )
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12026 ac_header_preproc=yes
12027 ;;
12028 no:yes:* )
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12041
12042 ;;
12043 esac
12044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049 eval "$as_ac_Header=\$ac_header_preproc"
12050 fi
12051 ac_res=`eval echo '${'$as_ac_Header'}'`
12052 { echo "$as_me:$LINENO: result: $ac_res" >&5
12053 echo "${ECHO_T}$ac_res" >&6; }
12054
12055 fi
12056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12057 cat >>confdefs.h <<_ACEOF
12058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12059 _ACEOF
12060
12061 fi
12062
12063 done
12064
12065 CPPFLAGS="$savedcppflags"
12066
12067
12068 for ac_header in sys/bitypes.h
12069 do
12070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 fi
12077 ac_res=`eval echo '${'$as_ac_Header'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12080 else
12081 # Is the header compilable?
12082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h. */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 $ac_includes_default
12091 #include <$ac_header>
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (ac_try="$ac_compile"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098 esac
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_compile") 2>conftest.er1
12101 ac_status=$?
12102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && {
12107 test -z "$ac_c_werror_flag" ||
12108 test ! -s conftest.err
12109 } && test -s conftest.$ac_objext; then
12110 ac_header_compiler=yes
12111 else
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 ac_header_compiler=no
12116 fi
12117
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12120 echo "${ECHO_T}$ac_header_compiler" >&6; }
12121
12122 # Is the header present?
12123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 #include <$ac_header>
12132 _ACEOF
12133 if { (ac_try="$ac_cpp conftest.$ac_ext"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } >/dev/null && {
12146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12148 }; then
12149 ac_header_preproc=yes
12150 else
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 ac_header_preproc=no
12155 fi
12156
12157 rm -f conftest.err conftest.$ac_ext
12158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12159 echo "${ECHO_T}$ac_header_preproc" >&6; }
12160
12161 # So? What about this header?
12162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12163 yes:no: )
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12168 ac_header_preproc=yes
12169 ;;
12170 no:yes:* )
12171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12183
12184 ;;
12185 esac
12186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 eval "$as_ac_Header=\$ac_header_preproc"
12192 fi
12193 ac_res=`eval echo '${'$as_ac_Header'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196
12197 fi
12198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12201 _ACEOF
12202
12203 fi
12204
12205 done
12206
12207
12208 { echo "$as_me:$LINENO: checking for int8_t" >&5
12209 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12210 if test "${ac_cv_type_int8_t+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 $ac_includes_default
12220 #ifdef HAVE_SYS_BITYPES_H
12221 #include <sys/bitypes.h>
12222 #endif
12223
12224 typedef int8_t ac__type_new_;
12225 int
12226 main ()
12227 {
12228 if ((ac__type_new_ *) 0)
12229 return 0;
12230 if (sizeof (ac__type_new_))
12231 return 0;
12232 ;
12233 return 0;
12234 }
12235 _ACEOF
12236 rm -f conftest.$ac_objext
12237 if { (ac_try="$ac_compile"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241 esac
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && {
12250 test -z "$ac_c_werror_flag" ||
12251 test ! -s conftest.err
12252 } && test -s conftest.$ac_objext; then
12253 ac_cv_type_int8_t=yes
12254 else
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 ac_cv_type_int8_t=no
12259 fi
12260
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262 fi
12263 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
12264 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12265 if test $ac_cv_type_int8_t = yes; then
12266 :
12267 else
12268
12269 cat >>confdefs.h <<\_ACEOF
12270 #define int8_t signed char
12271 _ACEOF
12272
12273 fi
12274
12275 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12276 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12277 if test "${ac_cv_type_u_int8_t+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 else
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 $ac_includes_default
12287 #ifdef HAVE_SYS_BITYPES_H
12288 #include <sys/bitypes.h>
12289 #endif
12290
12291 typedef u_int8_t ac__type_new_;
12292 int
12293 main ()
12294 {
12295 if ((ac__type_new_ *) 0)
12296 return 0;
12297 if (sizeof (ac__type_new_))
12298 return 0;
12299 ;
12300 return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext
12304 if { (ac_try="$ac_compile"
12305 case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12308 esac
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_compile") 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } && {
12317 test -z "$ac_c_werror_flag" ||
12318 test ! -s conftest.err
12319 } && test -s conftest.$ac_objext; then
12320 ac_cv_type_u_int8_t=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_type_u_int8_t=no
12326 fi
12327
12328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329 fi
12330 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
12331 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12332 if test $ac_cv_type_u_int8_t = yes; then
12333 :
12334 else
12335
12336 cat >>confdefs.h <<\_ACEOF
12337 #define u_int8_t unsigned char
12338 _ACEOF
12339
12340 fi
12341
12342 { echo "$as_me:$LINENO: checking for int16_t" >&5
12343 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12344 if test "${ac_cv_type_int16_t+set}" = set; then
12345 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h. */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12354 typedef int16_t ac__type_new_;
12355 int
12356 main ()
12357 {
12358 if ((ac__type_new_ *) 0)
12359 return 0;
12360 if (sizeof (ac__type_new_))
12361 return 0;
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext
12367 if { (ac_try="$ac_compile"
12368 case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_compile") 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest.$ac_objext; then
12383 ac_cv_type_int16_t=yes
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_type_int16_t=no
12389 fi
12390
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 fi
12393 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12394 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12395 if test $ac_cv_type_int16_t = yes; then
12396 :
12397 else
12398
12399 cat >>confdefs.h <<\_ACEOF
12400 #define int16_t short
12401 _ACEOF
12402
12403 $ac_includes_default
12404 #ifdef HAVE_SYS_BITYPES_H
12405 #include <sys/bitypes.h>
12406 #endif
12407 fi
12408
12409 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12410 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12411 if test "${ac_cv_type_u_int16_t+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414 cat >conftest.$ac_ext <<_ACEOF
12415 /* confdefs.h. */
12416 _ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 $ac_includes_default
12421 #ifdef HAVE_SYS_BITYPES_H
12422 #include <sys/bitypes.h>
12423 #endif
12424
12425 typedef u_int16_t ac__type_new_;
12426 int
12427 main ()
12428 {
12429 if ((ac__type_new_ *) 0)
12430 return 0;
12431 if (sizeof (ac__type_new_))
12432 return 0;
12433 ;
12434 return 0;
12435 }
12436 _ACEOF
12437 rm -f conftest.$ac_objext
12438 if { (ac_try="$ac_compile"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_compile") 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && {
12451 test -z "$ac_c_werror_flag" ||
12452 test ! -s conftest.err
12453 } && test -s conftest.$ac_objext; then
12454 ac_cv_type_u_int16_t=yes
12455 else
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 ac_cv_type_u_int16_t=no
12460 fi
12461
12462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463 fi
12464 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12466 if test $ac_cv_type_u_int16_t = yes; then
12467 :
12468 else
12469
12470 cat >>confdefs.h <<\_ACEOF
12471 #define u_int16_t unsigned short
12472 _ACEOF
12473
12474 fi
12475
12476 { echo "$as_me:$LINENO: checking for int32_t" >&5
12477 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12478 if test "${ac_cv_type_int32_t+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h. */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 $ac_includes_default
12488 #ifdef HAVE_SYS_BITYPES_H
12489 #include <sys/bitypes.h>
12490 #endif
12491
12492 typedef int32_t ac__type_new_;
12493 int
12494 main ()
12495 {
12496 if ((ac__type_new_ *) 0)
12497 return 0;
12498 if (sizeof (ac__type_new_))
12499 return 0;
12500 ;
12501 return 0;
12502 }
12503 _ACEOF
12504 rm -f conftest.$ac_objext
12505 if { (ac_try="$ac_compile"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_compile") 2>conftest.er1
12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && {
12518 test -z "$ac_c_werror_flag" ||
12519 test ! -s conftest.err
12520 } && test -s conftest.$ac_objext; then
12521 ac_cv_type_int32_t=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 ac_cv_type_int32_t=no
12527 fi
12528
12529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530 fi
12531 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12532 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12533 if test $ac_cv_type_int32_t = yes; then
12534 :
12535 else
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define int32_t int
12539 _ACEOF
12540
12541 fi
12542
12543 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12544 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12545 if test "${ac_cv_type_u_int32_t+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 $ac_includes_default
12555 #ifdef HAVE_SYS_BITYPES_H
12556 #include <sys/bitypes.h>
12557 #endif
12558
12559 typedef u_int32_t ac__type_new_;
12560 int
12561 main ()
12562 {
12563 if ((ac__type_new_ *) 0)
12564 return 0;
12565 if (sizeof (ac__type_new_))
12566 return 0;
12567 ;
12568 return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext
12572 if { (ac_try="$ac_compile"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_compile") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest.$ac_objext; then
12588 ac_cv_type_u_int32_t=yes
12589 else
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 ac_cv_type_u_int32_t=no
12594 fi
12595
12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597 fi
12598 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12600 if test $ac_cv_type_u_int32_t = yes; then
12601 :
12602 else
12603
12604 cat >>confdefs.h <<\_ACEOF
12605 #define u_int32_t unsigned int
12606 _ACEOF
12607
12608 fi
12609
12610 { echo "$as_me:$LINENO: checking for int64_t" >&5
12611 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12612 if test "${ac_cv_type_int64_t+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 #ifdef HAVE_SYS_BITYPES_H
12623 #include <sys/bitypes.h>
12624 #endif
12625
12626 typedef int64_t ac__type_new_;
12627 int
12628 main ()
12629 {
12630 if ((ac__type_new_ *) 0)
12631 return 0;
12632 if (sizeof (ac__type_new_))
12633 return 0;
12634 ;
12635 return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (ac_try="$ac_compile"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_compile") 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } && {
12652 test -z "$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12654 } && test -s conftest.$ac_objext; then
12655 ac_cv_type_int64_t=yes
12656 else
12657 echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 ac_cv_type_int64_t=no
12661 fi
12662
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 fi
12665 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12666 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12667 if test $ac_cv_type_int64_t = yes; then
12668 :
12669 else
12670
12671 cat >>confdefs.h <<\_ACEOF
12672 #define int64_t long long
12673 _ACEOF
12674
12675 fi
12676
12677 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12678 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12679 if test "${ac_cv_type_u_int64_t+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682 cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h. */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #ifdef HAVE_SYS_BITYPES_H
12690 #include <sys/bitypes.h>
12691 #endif
12692
12693 typedef u_int64_t ac__type_new_;
12694 int
12695 main ()
12696 {
12697 if ((ac__type_new_ *) 0)
12698 return 0;
12699 if (sizeof (ac__type_new_))
12700 return 0;
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710 esac
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_compile") 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest.$ac_objext; then
12722 ac_cv_type_u_int64_t=yes
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12726
12727 ac_cv_type_u_int64_t=no
12728 fi
12729
12730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 fi
12732 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12733 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12734 if test $ac_cv_type_u_int64_t = yes; then
12735 :
12736 else
12737
12738 cat >>confdefs.h <<\_ACEOF
12739 #define u_int64_t unsigned long long
12740 _ACEOF
12741
12742 fi
12743
12744
12745 #
12746 # We can't just check for <inttypes.h> - some systems have one that
12747 # doesn't define all the PRI[doxu]64 macros.
12748 #
12749
12750 for ac_header in inttypes.h
12751 do
12752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 fi
12759 ac_res=`eval echo '${'$as_ac_Header'}'`
12760 { echo "$as_me:$LINENO: result: $ac_res" >&5
12761 echo "${ECHO_T}$ac_res" >&6; }
12762 else
12763 # Is the header compilable?
12764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 $ac_includes_default
12773 #include <$ac_header>
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (ac_try="$ac_compile"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_compile") 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && {
12789 test -z "$ac_c_werror_flag" ||
12790 test ! -s conftest.err
12791 } && test -s conftest.$ac_objext; then
12792 ac_header_compiler=yes
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 ac_header_compiler=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12802 echo "${ECHO_T}$ac_header_compiler" >&6; }
12803
12804 # Is the header present?
12805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h. */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813 #include <$ac_header>
12814 _ACEOF
12815 if { (ac_try="$ac_cpp conftest.$ac_ext"
12816 case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev/null && {
12828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 }; then
12831 ac_header_preproc=yes
12832 else
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 ac_header_preproc=no
12837 fi
12838
12839 rm -f conftest.err conftest.$ac_ext
12840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12841 echo "${ECHO_T}$ac_header_preproc" >&6; }
12842
12843 # So? What about this header?
12844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12845 yes:no: )
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12850 ac_header_preproc=yes
12851 ;;
12852 no:yes:* )
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12865
12866 ;;
12867 esac
12868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 eval "$as_ac_Header=\$ac_header_preproc"
12874 fi
12875 ac_res=`eval echo '${'$as_ac_Header'}'`
12876 { echo "$as_me:$LINENO: result: $ac_res" >&5
12877 echo "${ECHO_T}$ac_res" >&6; }
12878
12879 fi
12880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12881 cat >>confdefs.h <<_ACEOF
12882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12883 _ACEOF
12884
12885 #
12886 # OK, we have inttypes.h, but does it define those macros?
12887 #
12888 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12889 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12890 cat >conftest.$ac_ext <<_ACEOF
12891
12892 /* confdefs.h. */
12893 _ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897
12898 #include <inttypes.h>
12899 #include <stdio.h>
12900 #include <sys/types.h>
12901 #ifdef HAVE_SYS_BITYPES_H
12902 #include <sys/bitypes.h>
12903 #endif
12904
12905 main()
12906 {
12907 printf("%" PRId64 "\n", (u_int64_t)1);
12908 printf("%" PRIo64 "\n", (u_int64_t)1);
12909 printf("%" PRIx64 "\n", (u_int64_t)1);
12910 printf("%" PRIu64 "\n", (u_int64_t)1);
12911 }
12912
12913
12914 _ACEOF
12915 rm -f conftest.$ac_objext
12916 if { (ac_try="$ac_compile"
12917 case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920 esac
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_compile") 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest.$ac_objext; then
12932
12933 { echo "$as_me:$LINENO: result: yes" >&5
12934 echo "${ECHO_T}yes" >&6; }
12935 ac_lbl_inttypes_h_defines_formats=yes
12936
12937 else
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941
12942 { echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6; }
12944 ac_lbl_inttypes_h_defines_formats=no
12945
12946 fi
12947
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949
12950 else
12951
12952 #
12953 # We don't have inttypes.h, so it obviously can't define those
12954 # macros.
12955 #
12956 ac_lbl_inttypes_h_defines_formats=no
12957
12958 fi
12959
12960 done
12961
12962 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12963
12964 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12965 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12966 if test "$cross_compiling" = yes; then
12967 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12968 See \`config.log' for more details." >&5
12969 echo "$as_me: error: cannot run test program while cross compiling
12970 See \`config.log' for more details." >&2;}
12971 { (exit 1); exit 1; }; }
12972 else
12973 cat >conftest.$ac_ext <<_ACEOF
12974
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980
12981 # ifdef HAVE_INTTYPES_H
12982 #include <inttypes.h>
12983 # endif
12984 # ifdef HAVE_SYS_BITYPES_H
12985 #include <sys/bitypes.h>
12986 # endif
12987 #include <stdio.h>
12988 #include <sys/types.h>
12989
12990 main()
12991 {
12992 u_int64_t t = 1;
12993 char strbuf[16+1];
12994 sprintf(strbuf, "%016lx", t << 32);
12995 if (strcmp(strbuf, "0000000100000000") == 0)
12996 exit(0);
12997 else
12998 exit(1);
12999 }
13000
13001
13002 _ACEOF
13003 rm -f conftest$ac_exeext
13004 if { (ac_try="$ac_link"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_link") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017 esac
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023
13024 cat >>confdefs.h <<\_ACEOF
13025 #define PRId64 "ld"
13026 _ACEOF
13027
13028 cat >>confdefs.h <<\_ACEOF
13029 #define PRIo64 "lo"
13030 _ACEOF
13031
13032 cat >>confdefs.h <<\_ACEOF
13033 #define PRIx64 "lx"
13034 _ACEOF
13035
13036 cat >>confdefs.h <<\_ACEOF
13037 #define PRIu64 "lu"
13038 _ACEOF
13039
13040 { echo "$as_me:$LINENO: result: yes" >&5
13041 echo "${ECHO_T}yes" >&6; }
13042
13043 else
13044 echo "$as_me: program exited with status $ac_status" >&5
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048 ( exit $ac_status )
13049
13050 { echo "$as_me:$LINENO: result: no" >&5
13051 echo "${ECHO_T}no" >&6; }
13052
13053
13054 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
13055 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
13056 if test "$cross_compiling" = yes; then
13057 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13058 See \`config.log' for more details." >&5
13059 echo "$as_me: error: cannot run test program while cross compiling
13060 See \`config.log' for more details." >&2;}
13061 { (exit 1); exit 1; }; }
13062 else
13063 cat >conftest.$ac_ext <<_ACEOF
13064
13065 /* confdefs.h. */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13070
13071 # ifdef HAVE_INTTYPES_H
13072 #include <inttypes.h>
13073 # endif
13074 # ifdef HAVE_SYS_BITYPES_H
13075 #include <sys/bitypes.h>
13076 # endif
13077 #include <stdio.h>
13078 #include <sys/types.h>
13079
13080 main()
13081 {
13082 u_int64_t t = 1;
13083 char strbuf[16+1];
13084 sprintf(strbuf, "%016llx", t << 32);
13085 if (strcmp(strbuf, "0000000100000000") == 0)
13086 exit(0);
13087 else
13088 exit(1);
13089 }
13090
13091
13092 _ACEOF
13093 rm -f conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13098 esac
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100 (eval "$ac_link") 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13104 { (case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13107 esac
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_try") 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113
13114 cat >>confdefs.h <<\_ACEOF
13115 #define PRId64 "lld"
13116 _ACEOF
13117
13118 cat >>confdefs.h <<\_ACEOF
13119 #define PRIo64 "llo"
13120 _ACEOF
13121
13122 cat >>confdefs.h <<\_ACEOF
13123 #define PRIx64 "llx"
13124 _ACEOF
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define PRIu64 "llu"
13128 _ACEOF
13129
13130 { echo "$as_me:$LINENO: result: yes" >&5
13131 echo "${ECHO_T}yes" >&6; }
13132
13133 else
13134 echo "$as_me: program exited with status $ac_status" >&5
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ( exit $ac_status )
13139
13140 { echo "$as_me:$LINENO: result: no" >&5
13141 echo "${ECHO_T}no" >&6; }
13142
13143
13144 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13145 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13146 if test "$cross_compiling" = yes; then
13147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13148 See \`config.log' for more details." >&5
13149 echo "$as_me: error: cannot run test program while cross compiling
13150 See \`config.log' for more details." >&2;}
13151 { (exit 1); exit 1; }; }
13152 else
13153 cat >conftest.$ac_ext <<_ACEOF
13154
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160
13161 # ifdef HAVE_INTTYPES_H
13162 #include <inttypes.h>
13163 # endif
13164 # ifdef HAVE_SYS_BITYPES_H
13165 #include <sys/bitypes.h>
13166 # endif
13167 #include <stdio.h>
13168 #include <sys/types.h>
13169
13170 main()
13171 {
13172 u_int64_t t = 1;
13173 char strbuf[16+1];
13174 sprintf(strbuf, "%016Lx", t << 32);
13175 if (strcmp(strbuf, "0000000100000000") == 0)
13176 exit(0);
13177 else
13178 exit(1);
13179 }
13180
13181
13182 _ACEOF
13183 rm -f conftest$ac_exeext
13184 if { (ac_try="$ac_link"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_link") 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13194 { (case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203
13204 cat >>confdefs.h <<\_ACEOF
13205 #define PRId64 "Ld"
13206 _ACEOF
13207
13208 cat >>confdefs.h <<\_ACEOF
13209 #define PRIo64 "Lo"
13210 _ACEOF
13211
13212 cat >>confdefs.h <<\_ACEOF
13213 #define PRIx64 "Lx"
13214 _ACEOF
13215
13216 cat >>confdefs.h <<\_ACEOF
13217 #define PRIu64 "Lu"
13218 _ACEOF
13219
13220 { echo "$as_me:$LINENO: result: yes" >&5
13221 echo "${ECHO_T}yes" >&6; }
13222
13223 else
13224 echo "$as_me: program exited with status $ac_status" >&5
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228 ( exit $ac_status )
13229
13230 { echo "$as_me:$LINENO: result: no" >&5
13231 echo "${ECHO_T}no" >&6; }
13232
13233
13234 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13235 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13236 if test "$cross_compiling" = yes; then
13237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13238 See \`config.log' for more details." >&5
13239 echo "$as_me: error: cannot run test program while cross compiling
13240 See \`config.log' for more details." >&2;}
13241 { (exit 1); exit 1; }; }
13242 else
13243 cat >conftest.$ac_ext <<_ACEOF
13244
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250
13251 # ifdef HAVE_INTTYPES_H
13252 #include <inttypes.h>
13253 # endif
13254 # ifdef HAVE_SYS_BITYPES_H
13255 #include <sys/bitypes.h>
13256 # endif
13257 #include <stdio.h>
13258 #include <sys/types.h>
13259
13260 main()
13261 {
13262 u_int64_t t = 1;
13263 char strbuf[16+1];
13264 sprintf(strbuf, "%016qx", t << 32);
13265 if (strcmp(strbuf, "0000000100000000") == 0)
13266 exit(0);
13267 else
13268 exit(1);
13269 }
13270
13271
13272 _ACEOF
13273 rm -f conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13284 { (case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_try") 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293
13294 cat >>confdefs.h <<\_ACEOF
13295 #define PRId64 "qd"
13296 _ACEOF
13297
13298 cat >>confdefs.h <<\_ACEOF
13299 #define PRIo64 "qo"
13300 _ACEOF
13301
13302 cat >>confdefs.h <<\_ACEOF
13303 #define PRIx64 "qx"
13304 _ACEOF
13305
13306 cat >>confdefs.h <<\_ACEOF
13307 #define PRIu64 "qu"
13308 _ACEOF
13309
13310 { echo "$as_me:$LINENO: result: yes" >&5
13311 echo "${ECHO_T}yes" >&6; }
13312
13313 else
13314 echo "$as_me: program exited with status $ac_status" >&5
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318 ( exit $ac_status )
13319
13320 { echo "$as_me:$LINENO: result: no" >&5
13321 echo "${ECHO_T}no" >&6; }
13322
13323 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
13324 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
13325 { (exit 1); exit 1; }; }
13326
13327
13328 fi
13329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13330 fi
13331
13332
13333
13334
13335
13336 fi
13337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13338 fi
13339
13340
13341
13342
13343
13344 fi
13345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13346 fi
13347
13348
13349
13350
13351
13352 fi
13353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13354 fi
13355
13356
13357
13358 fi
13359
13360 if test -n "$ac_tool_prefix"; then
13361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13365 if test "${ac_cv_prog_RANLIB+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368 if test -n "$RANLIB"; then
13369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 RANLIB=$ac_cv_prog_RANLIB
13389 if test -n "$RANLIB"; then
13390 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13391 echo "${ECHO_T}$RANLIB" >&6; }
13392 else
13393 { echo "$as_me:$LINENO: result: no" >&5
13394 echo "${ECHO_T}no" >&6; }
13395 fi
13396
13397
13398 fi
13399 if test -z "$ac_cv_prog_RANLIB"; then
13400 ac_ct_RANLIB=$RANLIB
13401 # Extract the first word of "ranlib", so it can be a program name with args.
13402 set dummy ranlib; ac_word=$2
13403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408 if test -n "$ac_ct_RANLIB"; then
13409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13410 else
13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13413 do
13414 IFS=$as_save_IFS
13415 test -z "$as_dir" && as_dir=.
13416 for ac_exec_ext in '' $ac_executable_extensions; do
13417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13418 ac_cv_prog_ac_ct_RANLIB="ranlib"
13419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13420 break 2
13421 fi
13422 done
13423 done
13424 IFS=$as_save_IFS
13425
13426 fi
13427 fi
13428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13429 if test -n "$ac_ct_RANLIB"; then
13430 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13431 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13432 else
13433 { echo "$as_me:$LINENO: result: no" >&5
13434 echo "${ECHO_T}no" >&6; }
13435 fi
13436
13437 if test "x$ac_ct_RANLIB" = x; then
13438 RANLIB=":"
13439 else
13440 case $cross_compiling:$ac_tool_warned in
13441 yes:)
13442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13443 whose name does not start with the host triplet. If you think this
13444 configuration is useful to you, please write to autoconf@gnu.org." >&5
13445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13446 whose name does not start with the host triplet. If you think this
13447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13448 ac_tool_warned=yes ;;
13449 esac
13450 RANLIB=$ac_ct_RANLIB
13451 fi
13452 else
13453 RANLIB="$ac_cv_prog_RANLIB"
13454 fi
13455
13456
13457 rm -f os-proto.h
13458 if test "${LBL_CFLAGS+set}" = set; then
13459 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13460 fi
13461 if test -f .devel ; then
13462 if test "$GCC" = yes ; then
13463 if test "${LBL_CFLAGS+set}" != set; then
13464 if test "$ac_cv_prog_cc_g" = yes ; then
13465 V_CCOPT="-g $V_CCOPT"
13466 fi
13467 V_CCOPT="$V_CCOPT -Wall"
13468 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13469 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13470 fi
13471 fi
13472 else
13473 case "$host_os" in
13474
13475 irix6*)
13476 V_CCOPT="$V_CCOPT -n32"
13477 ;;
13478
13479 *)
13480 ;;
13481 esac
13482 fi
13483 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13484 name="lbl/os-$os.h"
13485 if test -f $name ; then
13486 ln -s $name os-proto.h
13487
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_OS_PROTO_H 1
13490 _ACEOF
13491
13492 else
13493 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13494 echo "$as_me: WARNING: can't find $name" >&2;}
13495 fi
13496 fi
13497
13498 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
13499 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
13500 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509
13510 # include <sys/types.h>
13511 # include <sys/socket.h>
13512 int
13513 main ()
13514 {
13515 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13516 ;
13517 return 0;
13518 }
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_compile") 2>conftest.er1
13528 ac_status=$?
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && {
13534 test -z "$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13536 } && test -s conftest.$ac_objext; then
13537 ac_cv_lbl_sockaddr_has_sa_len=yes
13538 else
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 ac_cv_lbl_sockaddr_has_sa_len=no
13543 fi
13544
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 fi
13547
13548 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13549 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13550 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13551
13552 cat >>confdefs.h <<\_ACEOF
13553 #define HAVE_SOCKADDR_SA_LEN 1
13554 _ACEOF
13555
13556 fi
13557
13558 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13559 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13560 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563 case "$host_cpu" in
13564
13565 #
13566 # These are CPU types where:
13567 #
13568 # the CPU faults on an unaligned access, but at least some
13569 # OSes that support that CPU catch the fault and simulate
13570 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13571 # the simulation is slow, so we don't want to use it;
13572 #
13573 # the CPU, I infer (from the old
13574 #
13575 # XXX: should also check that they don't do weird things (like on arm)
13576 #
13577 # comment) doesn't fault on unaligned accesses, but doesn't
13578 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13579 #
13580 # for whatever reason, the test program doesn't work
13581 # (this has been claimed to be the case for several of those
13582 # CPUs - I don't know what the problem is; the problem
13583 # was reported as "the test program dumps core" for SuperH,
13584 # but that's what the test program is *supposed* to do -
13585 # it dumps core before it writes anything, so the test
13586 # for an empty output file should find an empty output
13587 # file and conclude that unaligned accesses don't work).
13588 #
13589 # This run-time test won't work if you're cross-compiling, so
13590 # in order to support cross-compiling for a particular CPU,
13591 # we have to wire in the list of CPU types anyway, as far as
13592 # I know, so perhaps we should just have a set of CPUs on
13593 # which we know it doesn't work, a set of CPUs on which we
13594 # know it does work, and have the script just fail on other
13595 # cpu types and update it when such a failure occurs.
13596 #
13597 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13598 ac_cv_lbl_unaligned_fail=yes
13599 ;;
13600
13601 *)
13602 cat >conftest.c <<EOF
13603 # include <sys/types.h>
13604 # include <sys/wait.h>
13605 # include <stdio.h>
13606 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13607 main() {
13608 unsigned int i;
13609 pid_t pid;
13610 int status;
13611 /* avoid "core dumped" message */
13612 pid = fork();
13613 if (pid < 0)
13614 exit(2);
13615 if (pid > 0) {
13616 /* parent */
13617 pid = waitpid(pid, &status, 0);
13618 if (pid < 0)
13619 exit(3);
13620 exit(!WIFEXITED(status));
13621 }
13622 /* child */
13623 i = *(unsigned int *)&a[1];
13624 printf("%d\n", i);
13625 exit(0);
13626 }
13627 EOF
13628 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13629 conftest.c $LIBS >/dev/null 2>&1
13630 if test ! -x conftest ; then
13631 ac_cv_lbl_unaligned_fail=yes
13632 else
13633 ./conftest >conftest.out
13634 if test ! -s conftest.out ; then
13635 ac_cv_lbl_unaligned_fail=yes
13636 else
13637 ac_cv_lbl_unaligned_fail=no
13638 fi
13639 fi
13640 rm -f conftest* core core.conftest
13641 ;;
13642 esac
13643 fi
13644
13645 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13646 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13647 if test $ac_cv_lbl_unaligned_fail = yes ; then
13648
13649 cat >>confdefs.h <<\_ACEOF
13650 #define LBL_ALIGN 1
13651 _ACEOF
13652
13653 fi
13654
13655
13656 { echo "$as_me:$LINENO: checking for h_errno" >&5
13657 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13658 if test "${ac_cv_var_h_errno+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h. */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667
13668 # include <sys/types.h>
13669 # include <netdb.h>
13670 int
13671 main ()
13672 {
13673 int foo = h_errno;
13674 ;
13675 return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (ac_try="$ac_compile"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest.$ac_objext; then
13695 ac_cv_var_h_errno=yes
13696 else
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 ac_cv_var_h_errno=no
13701 fi
13702
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13704 fi
13705
13706 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13707 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13708 if test "$ac_cv_var_h_errno" = "yes"; then
13709 cat >>confdefs.h <<\_ACEOF
13710 #define HAVE_H_ERRNO 1
13711 _ACEOF
13712
13713 fi
13714
13715
13716 # Check for SSLeay
13717 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13718 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13719 # Specify location for both includes and libraries.
13720 want_libcrypto=youmama
13721
13722 # Check whether --with-crypto was given.
13723 if test "${with_crypto+set}" = set; then
13724 withval=$with_crypto;
13725 if test $withval = no
13726 then
13727 want_libcrypto=no
13728 { echo "$as_me:$LINENO: result: no" >&5
13729 echo "${ECHO_T}no" >&6; }
13730 elif test $withval = yes
13731 then
13732 want_libcrypto=yes
13733 { echo "$as_me:$LINENO: result: yes" >&5
13734 echo "${ECHO_T}yes" >&6; }
13735 else
13736 want_libcrypto=yes
13737 { echo "$as_me:$LINENO: result: yes" >&5
13738 echo "${ECHO_T}yes" >&6; }
13739 crypto_dir=$withval
13740 fi
13741
13742 else
13743
13744 #
13745 # Use libcrypto if it's present, otherwise don't.
13746 #
13747 want_libcrypto=ifavailable
13748 { echo "$as_me:$LINENO: result: yes, if available" >&5
13749 echo "${ECHO_T}yes, if available" >&6; }
13750
13751 fi
13752
13753 if test "$want_libcrypto" != "no"; then
13754 ac_cv_ssleay_path=no
13755 incdir=no
13756 if test "x$crypto_dir" = x; then
13757 #
13758 # Location not specified; check the default locations.
13759 #
13760 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13761 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13762 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13763 if test "x${host_alias}" != x; then
13764 dirs="/usr/${host_alias} $dirs"
13765 fi
13766 for dir in $dirs; do
13767
13768 #
13769 # Find the last component of $libdir; it's not necessarily
13770 # "lib" - it might be "lib64" on, for example, x86-64
13771 # Linux systems.
13772 #
13773 # We assume the directory in which we're looking for
13774 # libcrypto has a subdirectory with that as its name.
13775 #
13776 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13777
13778 #
13779 # XXX - is there a better way to check if a given library is
13780 # in a given directory than checking each of the possible
13781 # shared library suffixes?
13782 #
13783 # Are there any other suffixes we need to look for? Do we
13784 # have to worry about ".so.{version}"?
13785 #
13786 # Or should we just look for "libcrypto.*"?
13787 #
13788 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
13789 -f "$dir/$tmplib/libcrypto.so" -o \
13790 -f "$dir/$tmplib/libcrypto.sl" -o \
13791 -f "$dir/$tmplib/libcrypto.dylib" \); then
13792 ac_cv_ssleay_path="$dir"
13793 fi
13794
13795 #
13796 # Make sure we have the headers as well.
13797 #
13798 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13799 incdir="-I$dir/include"
13800 fi
13801
13802
13803 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13804 break;
13805 else
13806 ac_cv_ssleay_path=no
13807 incdir=no
13808 fi
13809 done
13810 if test "$ac_cv_ssleay_path" != no; then
13811 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13812 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13813 fi
13814 else
13815 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13816 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13817
13818 #
13819 # Find the last component of $libdir; it's not necessarily
13820 # "lib" - it might be "lib64" on, for example, x86-64
13821 # Linux systems.
13822 #
13823 # We assume the directory in which we're looking for
13824 # libcrypto has a subdirectory with that as its name.
13825 #
13826 tmplib=`echo "$libdir" | sed 's,.*/,,'`
13827
13828 #
13829 # XXX - is there a better way to check if a given library is
13830 # in a given directory than checking each of the possible
13831 # shared library suffixes?
13832 #
13833 # Are there any other suffixes we need to look for? Do we
13834 # have to worry about ".so.{version}"?
13835 #
13836 # Or should we just look for "libcrypto.*"?
13837 #
13838 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
13839 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
13840 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
13841 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
13842 ac_cv_ssleay_path="$crypto_dir"
13843 fi
13844
13845 #
13846 # Make sure we have the headers as well.
13847 #
13848 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13849 incdir="-I$crypto_dir/include"
13850 fi
13851
13852 if test "$ac_cv_ssleay_path" != no; then
13853 { echo "$as_me:$LINENO: result: found" >&5
13854 echo "${ECHO_T}found" >&6; }
13855 fi
13856 fi
13857 if test "$ac_cv_ssleay_path" != no; then
13858 V_INCLS="$V_INCLS $incdir"
13859 if test "$dir" != "/usr"; then
13860 LDFLAGS="-L$dir/lib $LDFLAGS"
13861 fi
13862 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13863 LIBS="$LIBS -lRSAglue"
13864 fi
13865 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13866 LIBS="$LIBS -lrsaref"
13867 fi
13868
13869 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13870 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13871 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-lcrypto $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char DES_cbc_encrypt ();
13890 int
13891 main ()
13892 {
13893 return DES_cbc_encrypt ();
13894 ;
13895 return 0;
13896 }
13897 _ACEOF
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (ac_try="$ac_link"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13917 else
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13920
13921 ac_cv_lib_crypto_DES_cbc_encrypt=no
13922 fi
13923
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13929 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13930 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_LIBCRYPTO 1
13933 _ACEOF
13934
13935 LIBS="-lcrypto $LIBS"
13936
13937 fi
13938
13939
13940 CPPFLAGS="$CPPFLAGS $V_INCLS"
13941
13942 for ac_header in openssl/evp.h
13943 do
13944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 fi
13951 ac_res=`eval echo '${'$as_ac_Header'}'`
13952 { echo "$as_me:$LINENO: result: $ac_res" >&5
13953 echo "${ECHO_T}$ac_res" >&6; }
13954 else
13955 # Is the header compilable?
13956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13958 cat >conftest.$ac_ext <<_ACEOF
13959 /* confdefs.h. */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 $ac_includes_default
13965 #include <$ac_header>
13966 _ACEOF
13967 rm -f conftest.$ac_objext
13968 if { (ac_try="$ac_compile"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_compile") 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } && {
13981 test -z "$ac_c_werror_flag" ||
13982 test ! -s conftest.err
13983 } && test -s conftest.$ac_objext; then
13984 ac_header_compiler=yes
13985 else
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_header_compiler=no
13990 fi
13991
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13994 echo "${ECHO_T}$ac_header_compiler" >&6; }
13995
13996 # Is the header present?
13997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h. */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 #include <$ac_header>
14006 _ACEOF
14007 if { (ac_try="$ac_cpp conftest.$ac_ext"
14008 case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } >/dev/null && {
14020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14021 test ! -s conftest.err
14022 }; then
14023 ac_header_preproc=yes
14024 else
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14027
14028 ac_header_preproc=no
14029 fi
14030
14031 rm -f conftest.err conftest.$ac_ext
14032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14033 echo "${ECHO_T}$ac_header_preproc" >&6; }
14034
14035 # So? What about this header?
14036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037 yes:no: )
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14042 ac_header_preproc=yes
14043 ;;
14044 no:yes:* )
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14057
14058 ;;
14059 esac
14060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065 eval "$as_ac_Header=\$ac_header_preproc"
14066 fi
14067 ac_res=`eval echo '${'$as_ac_Header'}'`
14068 { echo "$as_me:$LINENO: result: $ac_res" >&5
14069 echo "${ECHO_T}$ac_res" >&6; }
14070
14071 fi
14072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14073 cat >>confdefs.h <<_ACEOF
14074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14075 _ACEOF
14076
14077 fi
14078
14079 done
14080
14081 else
14082 #
14083 # Not found. Did the user explicitly ask for it?
14084 #
14085 { echo "$as_me:$LINENO: result: not found" >&5
14086 echo "${ECHO_T}not found" >&6; }
14087 if test "$want_libcrypto" = yes; then
14088 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
14089 echo "$as_me: error: SSLeay not found" >&2;}
14090 { (exit 1); exit 1; }; }
14091 fi
14092 fi
14093 fi
14094
14095 if test "$missing_includes" = "yes"; then
14096 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
14097 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
14098 fi
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109 # Find a good install program. We prefer a C program (faster),
14110 # so one script is as good as another. But avoid the broken or
14111 # incompatible versions:
14112 # SysV /etc/install, /usr/sbin/install
14113 # SunOS /usr/etc/install
14114 # IRIX /sbin/install
14115 # AIX /bin/install
14116 # AmigaOS /C/install, which installs bootblocks on floppy discs
14117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14120 # OS/2's system install, which has a completely different semantic
14121 # ./install, which can be erroneously created by make from ./install.sh.
14122 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14123 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14124 if test -z "$INSTALL"; then
14125 if test "${ac_cv_path_install+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14130 do
14131 IFS=$as_save_IFS
14132 test -z "$as_dir" && as_dir=.
14133 # Account for people who put trailing slashes in PATH elements.
14134 case $as_dir/ in
14135 ./ | .// | /cC/* | \
14136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14137 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14138 /usr/ucb/* ) ;;
14139 *)
14140 # OSF1 and SCO ODT 3.0 have their own names for install.
14141 # Don't use installbsd from OSF since it installs stuff as root
14142 # by default.
14143 for ac_prog in ginstall scoinst install; do
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14146 if test $ac_prog = install &&
14147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14148 # AIX install. It has an incompatible calling convention.
14149 :
14150 elif test $ac_prog = install &&
14151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14152 # program-specific install script used by HP pwplus--don't use.
14153 :
14154 else
14155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14156 break 3
14157 fi
14158 fi
14159 done
14160 done
14161 ;;
14162 esac
14163 done
14164 IFS=$as_save_IFS
14165
14166
14167 fi
14168 if test "${ac_cv_path_install+set}" = set; then
14169 INSTALL=$ac_cv_path_install
14170 else
14171 # As a last resort, use the slow shell script. Don't cache a
14172 # value for INSTALL within a source directory, because that will
14173 # break other packages using the cache if that directory is
14174 # removed, or if the value is a relative name.
14175 INSTALL=$ac_install_sh
14176 fi
14177 fi
14178 { echo "$as_me:$LINENO: result: $INSTALL" >&5
14179 echo "${ECHO_T}$INSTALL" >&6; }
14180
14181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14182 # It thinks the first close brace ends the variable substitution.
14183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14184
14185 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14186
14187 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14188
14189
14190 ac_config_headers="$ac_config_headers config.h"
14191
14192
14193 ac_config_commands="$ac_config_commands default-1"
14194
14195 ac_config_files="$ac_config_files Makefile tcpdump.1"
14196
14197 cat >confcache <<\_ACEOF
14198 # This file is a shell script that caches the results of configure
14199 # tests run on this system so they can be shared between configure
14200 # scripts and configure runs, see configure's option --config-cache.
14201 # It is not useful on other systems. If it contains results you don't
14202 # want to keep, you may remove or edit it.
14203 #
14204 # config.status only pays attention to the cache file if you give it
14205 # the --recheck option to rerun configure.
14206 #
14207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14209 # following values.
14210
14211 _ACEOF
14212
14213 # The following way of writing the cache mishandles newlines in values,
14214 # but we know of no workaround that is simple, portable, and efficient.
14215 # So, we kill variables containing newlines.
14216 # Ultrix sh set writes to stderr and can't be redirected directly,
14217 # and sets the high bit in the cache file unless we assign to the vars.
14218 (
14219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14220 eval ac_val=\$$ac_var
14221 case $ac_val in #(
14222 *${as_nl}*)
14223 case $ac_var in #(
14224 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14225 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14226 esac
14227 case $ac_var in #(
14228 _ | IFS | as_nl) ;; #(
14229 *) $as_unset $ac_var ;;
14230 esac ;;
14231 esac
14232 done
14233
14234 (set) 2>&1 |
14235 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14236 *${as_nl}ac_space=\ *)
14237 # `set' does not quote correctly, so add quotes (double-quote
14238 # substitution turns \\\\ into \\, and sed turns \\ into \).
14239 sed -n \
14240 "s/'/'\\\\''/g;
14241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14242 ;; #(
14243 *)
14244 # `set' quotes correctly as required by POSIX, so do not add quotes.
14245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14246 ;;
14247 esac |
14248 sort
14249 ) |
14250 sed '
14251 /^ac_cv_env_/b end
14252 t clear
14253 :clear
14254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14255 t end
14256 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14257 :end' >>confcache
14258 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14259 if test -w "$cache_file"; then
14260 test "x$cache_file" != "x/dev/null" &&
14261 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14262 echo "$as_me: updating cache $cache_file" >&6;}
14263 cat confcache >$cache_file
14264 else
14265 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14266 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14267 fi
14268 fi
14269 rm -f confcache
14270
14271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14272 # Let make expand exec_prefix.
14273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14274
14275 DEFS=-DHAVE_CONFIG_H
14276
14277 ac_libobjs=
14278 ac_ltlibobjs=
14279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14280 # 1. Remove the extension, and $U if already installed.
14281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14282 ac_i=`echo "$ac_i" | sed "$ac_script"`
14283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14284 # will be set to the directory where LIBOBJS objects are built.
14285 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14286 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14287 done
14288 LIBOBJS=$ac_libobjs
14289
14290 LTLIBOBJS=$ac_ltlibobjs
14291
14292
14293
14294 : ${CONFIG_STATUS=./config.status}
14295 ac_clean_files_save=$ac_clean_files
14296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14297 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14298 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14299 cat >$CONFIG_STATUS <<_ACEOF
14300 #! $SHELL
14301 # Generated by $as_me.
14302 # Run this file to recreate the current configuration.
14303 # Compiler output produced by configure, useful for debugging
14304 # configure, is in config.log if it exists.
14305
14306 debug=false
14307 ac_cs_recheck=false
14308 ac_cs_silent=false
14309 SHELL=\${CONFIG_SHELL-$SHELL}
14310 _ACEOF
14311
14312 cat >>$CONFIG_STATUS <<\_ACEOF
14313 ## --------------------- ##
14314 ## M4sh Initialization. ##
14315 ## --------------------- ##
14316
14317 # Be more Bourne compatible
14318 DUALCASE=1; export DUALCASE # for MKS sh
14319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14320 emulate sh
14321 NULLCMD=:
14322 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14323 # is contrary to our usage. Disable this feature.
14324 alias -g '${1+"$@"}'='"$@"'
14325 setopt NO_GLOB_SUBST
14326 else
14327 case `(set -o) 2>/dev/null` in
14328 *posix*) set -o posix ;;
14329 esac
14330
14331 fi
14332
14333
14334
14335
14336 # PATH needs CR
14337 # Avoid depending upon Character Ranges.
14338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14341 as_cr_digits='0123456789'
14342 as_cr_alnum=$as_cr_Letters$as_cr_digits
14343
14344 # The user is always right.
14345 if test "${PATH_SEPARATOR+set}" != set; then
14346 echo "#! /bin/sh" >conf$$.sh
14347 echo "exit 0" >>conf$$.sh
14348 chmod +x conf$$.sh
14349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14350 PATH_SEPARATOR=';'
14351 else
14352 PATH_SEPARATOR=:
14353 fi
14354 rm -f conf$$.sh
14355 fi
14356
14357 # Support unset when possible.
14358 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14359 as_unset=unset
14360 else
14361 as_unset=false
14362 fi
14363
14364
14365 # IFS
14366 # We need space, tab and new line, in precisely that order. Quoting is
14367 # there to prevent editors from complaining about space-tab.
14368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14369 # splitting by setting IFS to empty value.)
14370 as_nl='
14371 '
14372 IFS=" "" $as_nl"
14373
14374 # Find who we are. Look in the path if we contain no directory separator.
14375 case $0 in
14376 *[\\/]* ) as_myself=$0 ;;
14377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14379 do
14380 IFS=$as_save_IFS
14381 test -z "$as_dir" && as_dir=.
14382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14383 done
14384 IFS=$as_save_IFS
14385
14386 ;;
14387 esac
14388 # We did not find ourselves, most probably we were run as `sh COMMAND'
14389 # in which case we are not to be found in the path.
14390 if test "x$as_myself" = x; then
14391 as_myself=$0
14392 fi
14393 if test ! -f "$as_myself"; then
14394 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14395 { (exit 1); exit 1; }
14396 fi
14397
14398 # Work around bugs in pre-3.0 UWIN ksh.
14399 for as_var in ENV MAIL MAILPATH
14400 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14401 done
14402 PS1='$ '
14403 PS2='> '
14404 PS4='+ '
14405
14406 # NLS nuisances.
14407 for as_var in \
14408 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14409 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14410 LC_TELEPHONE LC_TIME
14411 do
14412 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14413 eval $as_var=C; export $as_var
14414 else
14415 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14416 fi
14417 done
14418
14419 # Required to use basename.
14420 if expr a : '\(a\)' >/dev/null 2>&1 &&
14421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14422 as_expr=expr
14423 else
14424 as_expr=false
14425 fi
14426
14427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14428 as_basename=basename
14429 else
14430 as_basename=false
14431 fi
14432
14433
14434 # Name of the executable.
14435 as_me=`$as_basename -- "$0" ||
14436 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14437 X"$0" : 'X\(//\)$' \| \
14438 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14439 echo X/"$0" |
14440 sed '/^.*\/\([^/][^/]*\)\/*$/{
14441 s//\1/
14442 q
14443 }
14444 /^X\/\(\/\/\)$/{
14445 s//\1/
14446 q
14447 }
14448 /^X\/\(\/\).*/{
14449 s//\1/
14450 q
14451 }
14452 s/.*/./; q'`
14453
14454 # CDPATH.
14455 $as_unset CDPATH
14456
14457
14458
14459 as_lineno_1=$LINENO
14460 as_lineno_2=$LINENO
14461 test "x$as_lineno_1" != "x$as_lineno_2" &&
14462 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14463
14464 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14465 # uniformly replaced by the line number. The first 'sed' inserts a
14466 # line-number line after each line using $LINENO; the second 'sed'
14467 # does the real work. The second script uses 'N' to pair each
14468 # line-number line with the line containing $LINENO, and appends
14469 # trailing '-' during substitution so that $LINENO is not a special
14470 # case at line end.
14471 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14472 # scripts with optimization help from Paolo Bonzini. Blame Lee
14473 # E. McMahon (1931-1989) for sed's syntax. :-)
14474 sed -n '
14475 p
14476 /[$]LINENO/=
14477 ' <$as_myself |
14478 sed '
14479 s/[$]LINENO.*/&-/
14480 t lineno
14481 b
14482 :lineno
14483 N
14484 :loop
14485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14486 t loop
14487 s/-\n.*//
14488 ' >$as_me.lineno &&
14489 chmod +x "$as_me.lineno" ||
14490 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14491 { (exit 1); exit 1; }; }
14492
14493 # Don't try to exec as it changes $[0], causing all sort of problems
14494 # (the dirname of $[0] is not the place where we might find the
14495 # original and so on. Autoconf is especially sensitive to this).
14496 . "./$as_me.lineno"
14497 # Exit status is that of the last command.
14498 exit
14499 }
14500
14501
14502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14503 as_dirname=dirname
14504 else
14505 as_dirname=false
14506 fi
14507
14508 ECHO_C= ECHO_N= ECHO_T=
14509 case `echo -n x` in
14510 -n*)
14511 case `echo 'x\c'` in
14512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14513 *) ECHO_C='\c';;
14514 esac;;
14515 *)
14516 ECHO_N='-n';;
14517 esac
14518
14519 if expr a : '\(a\)' >/dev/null 2>&1 &&
14520 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14521 as_expr=expr
14522 else
14523 as_expr=false
14524 fi
14525
14526 rm -f conf$$ conf$$.exe conf$$.file
14527 if test -d conf$$.dir; then
14528 rm -f conf$$.dir/conf$$.file
14529 else
14530 rm -f conf$$.dir
14531 mkdir conf$$.dir
14532 fi
14533 echo >conf$$.file
14534 if ln -s conf$$.file conf$$ 2>/dev/null; then
14535 as_ln_s='ln -s'
14536 # ... but there are two gotchas:
14537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14539 # In both cases, we have to default to `cp -p'.
14540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14541 as_ln_s='cp -p'
14542 elif ln conf$$.file conf$$ 2>/dev/null; then
14543 as_ln_s=ln
14544 else
14545 as_ln_s='cp -p'
14546 fi
14547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14548 rmdir conf$$.dir 2>/dev/null
14549
14550 if mkdir -p . 2>/dev/null; then
14551 as_mkdir_p=:
14552 else
14553 test -d ./-p && rmdir ./-p
14554 as_mkdir_p=false
14555 fi
14556
14557 if test -x / >/dev/null 2>&1; then
14558 as_test_x='test -x'
14559 else
14560 if ls -dL / >/dev/null 2>&1; then
14561 as_ls_L_option=L
14562 else
14563 as_ls_L_option=
14564 fi
14565 as_test_x='
14566 eval sh -c '\''
14567 if test -d "$1"; then
14568 test -d "$1/.";
14569 else
14570 case $1 in
14571 -*)set "./$1";;
14572 esac;
14573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14574 ???[sx]*):;;*)false;;esac;fi
14575 '\'' sh
14576 '
14577 fi
14578 as_executable_p=$as_test_x
14579
14580 # Sed expression to map a string onto a valid CPP name.
14581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14582
14583 # Sed expression to map a string onto a valid variable name.
14584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14585
14586
14587 exec 6>&1
14588
14589 # Save the log message, to keep $[0] and so on meaningful, and to
14590 # report actual input values of CONFIG_FILES etc. instead of their
14591 # values after options handling.
14592 ac_log="
14593 This file was extended by $as_me, which was
14594 generated by GNU Autoconf 2.61. Invocation command line was
14595
14596 CONFIG_FILES = $CONFIG_FILES
14597 CONFIG_HEADERS = $CONFIG_HEADERS
14598 CONFIG_LINKS = $CONFIG_LINKS
14599 CONFIG_COMMANDS = $CONFIG_COMMANDS
14600 $ $0 $@
14601
14602 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14603 "
14604
14605 _ACEOF
14606
14607 cat >>$CONFIG_STATUS <<_ACEOF
14608 # Files that config.status was made for.
14609 config_files="$ac_config_files"
14610 config_headers="$ac_config_headers"
14611 config_commands="$ac_config_commands"
14612
14613 _ACEOF
14614
14615 cat >>$CONFIG_STATUS <<\_ACEOF
14616 ac_cs_usage="\
14617 \`$as_me' instantiates files from templates according to the
14618 current configuration.
14619
14620 Usage: $0 [OPTIONS] [FILE]...
14621
14622 -h, --help print this help, then exit
14623 -V, --version print version number and configuration settings, then exit
14624 -q, --quiet do not print progress messages
14625 -d, --debug don't remove temporary files
14626 --recheck update $as_me by reconfiguring in the same conditions
14627 --file=FILE[:TEMPLATE]
14628 instantiate the configuration file FILE
14629 --header=FILE[:TEMPLATE]
14630 instantiate the configuration header FILE
14631
14632 Configuration files:
14633 $config_files
14634
14635 Configuration headers:
14636 $config_headers
14637
14638 Configuration commands:
14639 $config_commands
14640
14641 Report bugs to <bug-autoconf@gnu.org>."
14642
14643 _ACEOF
14644 cat >>$CONFIG_STATUS <<_ACEOF
14645 ac_cs_version="\\
14646 config.status
14647 configured by $0, generated by GNU Autoconf 2.61,
14648 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14649
14650 Copyright (C) 2006 Free Software Foundation, Inc.
14651 This config.status script is free software; the Free Software Foundation
14652 gives unlimited permission to copy, distribute and modify it."
14653
14654 ac_pwd='$ac_pwd'
14655 srcdir='$srcdir'
14656 INSTALL='$INSTALL'
14657 _ACEOF
14658
14659 cat >>$CONFIG_STATUS <<\_ACEOF
14660 # If no file are specified by the user, then we need to provide default
14661 # value. By we need to know if files were specified by the user.
14662 ac_need_defaults=:
14663 while test $# != 0
14664 do
14665 case $1 in
14666 --*=*)
14667 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14668 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14669 ac_shift=:
14670 ;;
14671 *)
14672 ac_option=$1
14673 ac_optarg=$2
14674 ac_shift=shift
14675 ;;
14676 esac
14677
14678 case $ac_option in
14679 # Handling of the options.
14680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14681 ac_cs_recheck=: ;;
14682 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14683 echo "$ac_cs_version"; exit ;;
14684 --debug | --debu | --deb | --de | --d | -d )
14685 debug=: ;;
14686 --file | --fil | --fi | --f )
14687 $ac_shift
14688 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14689 ac_need_defaults=false;;
14690 --header | --heade | --head | --hea )
14691 $ac_shift
14692 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14693 ac_need_defaults=false;;
14694 --he | --h)
14695 # Conflict between --help and --header
14696 { echo "$as_me: error: ambiguous option: $1
14697 Try \`$0 --help' for more information." >&2
14698 { (exit 1); exit 1; }; };;
14699 --help | --hel | -h )
14700 echo "$ac_cs_usage"; exit ;;
14701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14703 ac_cs_silent=: ;;
14704
14705 # This is an error.
14706 -*) { echo "$as_me: error: unrecognized option: $1
14707 Try \`$0 --help' for more information." >&2
14708 { (exit 1); exit 1; }; } ;;
14709
14710 *) ac_config_targets="$ac_config_targets $1"
14711 ac_need_defaults=false ;;
14712
14713 esac
14714 shift
14715 done
14716
14717 ac_configure_extra_args=
14718
14719 if $ac_cs_silent; then
14720 exec 6>/dev/null
14721 ac_configure_extra_args="$ac_configure_extra_args --silent"
14722 fi
14723
14724 _ACEOF
14725 cat >>$CONFIG_STATUS <<_ACEOF
14726 if \$ac_cs_recheck; then
14727 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14728 CONFIG_SHELL=$SHELL
14729 export CONFIG_SHELL
14730 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14731 fi
14732
14733 _ACEOF
14734 cat >>$CONFIG_STATUS <<\_ACEOF
14735 exec 5>>config.log
14736 {
14737 echo
14738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14739 ## Running $as_me. ##
14740 _ASBOX
14741 echo "$ac_log"
14742 } >&5
14743
14744 _ACEOF
14745 cat >>$CONFIG_STATUS <<_ACEOF
14746 #
14747 # INIT-COMMANDS
14748 #
14749
14750
14751 _ACEOF
14752
14753 cat >>$CONFIG_STATUS <<\_ACEOF
14754
14755 # Handling of arguments.
14756 for ac_config_target in $ac_config_targets
14757 do
14758 case $ac_config_target in
14759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14760 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14761 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14762 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
14763
14764 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14765 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14766 { (exit 1); exit 1; }; };;
14767 esac
14768 done
14769
14770
14771 # If the user did not use the arguments to specify the items to instantiate,
14772 # then the envvar interface is used. Set only those that are not.
14773 # We use the long form for the default assignment because of an extremely
14774 # bizarre bug on SunOS 4.1.3.
14775 if $ac_need_defaults; then
14776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14779 fi
14780
14781 # Have a temporary directory for convenience. Make it in the build tree
14782 # simply because there is no reason against having it here, and in addition,
14783 # creating and moving files from /tmp can sometimes cause problems.
14784 # Hook for its removal unless debugging.
14785 # Note that there is a small window in which the directory will not be cleaned:
14786 # after its creation but before its name has been assigned to `$tmp'.
14787 $debug ||
14788 {
14789 tmp=
14790 trap 'exit_status=$?
14791 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14792 ' 0
14793 trap '{ (exit 1); exit 1; }' 1 2 13 15
14794 }
14795 # Create a (secure) tmp directory for tmp files.
14796
14797 {
14798 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14799 test -n "$tmp" && test -d "$tmp"
14800 } ||
14801 {
14802 tmp=./conf$$-$RANDOM
14803 (umask 077 && mkdir "$tmp")
14804 } ||
14805 {
14806 echo "$me: cannot create a temporary directory in ." >&2
14807 { (exit 1); exit 1; }
14808 }
14809
14810 #
14811 # Set up the sed scripts for CONFIG_FILES section.
14812 #
14813
14814 # No need to generate the scripts if there are no CONFIG_FILES.
14815 # This happens for instance when ./config.status config.h
14816 if test -n "$CONFIG_FILES"; then
14817
14818 _ACEOF
14819
14820
14821
14822 ac_delim='%!_!# '
14823 for ac_last_try in false false false false false :; do
14824 cat >conf$$subs.sed <<_ACEOF
14825 SHELL!$SHELL$ac_delim
14826 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14827 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14828 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14829 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14830 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14831 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14832 exec_prefix!$exec_prefix$ac_delim
14833 prefix!$prefix$ac_delim
14834 program_transform_name!$program_transform_name$ac_delim
14835 bindir!$bindir$ac_delim
14836 sbindir!$sbindir$ac_delim
14837 libexecdir!$libexecdir$ac_delim
14838 datarootdir!$datarootdir$ac_delim
14839 datadir!$datadir$ac_delim
14840 sysconfdir!$sysconfdir$ac_delim
14841 sharedstatedir!$sharedstatedir$ac_delim
14842 localstatedir!$localstatedir$ac_delim
14843 includedir!$includedir$ac_delim
14844 oldincludedir!$oldincludedir$ac_delim
14845 docdir!$docdir$ac_delim
14846 infodir!$infodir$ac_delim
14847 htmldir!$htmldir$ac_delim
14848 dvidir!$dvidir$ac_delim
14849 pdfdir!$pdfdir$ac_delim
14850 psdir!$psdir$ac_delim
14851 libdir!$libdir$ac_delim
14852 localedir!$localedir$ac_delim
14853 mandir!$mandir$ac_delim
14854 DEFS!$DEFS$ac_delim
14855 ECHO_C!$ECHO_C$ac_delim
14856 ECHO_N!$ECHO_N$ac_delim
14857 ECHO_T!$ECHO_T$ac_delim
14858 LIBS!$LIBS$ac_delim
14859 build_alias!$build_alias$ac_delim
14860 host_alias!$host_alias$ac_delim
14861 target_alias!$target_alias$ac_delim
14862 build!$build$ac_delim
14863 build_cpu!$build_cpu$ac_delim
14864 build_vendor!$build_vendor$ac_delim
14865 build_os!$build_os$ac_delim
14866 host!$host$ac_delim
14867 host_cpu!$host_cpu$ac_delim
14868 host_vendor!$host_vendor$ac_delim
14869 host_os!$host_os$ac_delim
14870 SHLICC2!$SHLICC2$ac_delim
14871 CC!$CC$ac_delim
14872 CFLAGS!$CFLAGS$ac_delim
14873 LDFLAGS!$LDFLAGS$ac_delim
14874 CPPFLAGS!$CPPFLAGS$ac_delim
14875 ac_ct_CC!$ac_ct_CC$ac_delim
14876 EXEEXT!$EXEEXT$ac_delim
14877 OBJEXT!$OBJEXT$ac_delim
14878 CPP!$CPP$ac_delim
14879 GREP!$GREP$ac_delim
14880 EGREP!$EGREP$ac_delim
14881 LIBOBJS!$LIBOBJS$ac_delim
14882 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
14883 RANLIB!$RANLIB$ac_delim
14884 V_CCOPT!$V_CCOPT$ac_delim
14885 V_DEFS!$V_DEFS$ac_delim
14886 V_GROUP!$V_GROUP$ac_delim
14887 V_INCLS!$V_INCLS$ac_delim
14888 V_PCAPDEP!$V_PCAPDEP$ac_delim
14889 LOCALSRC!$LOCALSRC$ac_delim
14890 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
14891 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
14892 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14893 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14894 INSTALL_DATA!$INSTALL_DATA$ac_delim
14895 LTLIBOBJS!$LTLIBOBJS$ac_delim
14896 _ACEOF
14897
14898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
14899 break
14900 elif $ac_last_try; then
14901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14903 { (exit 1); exit 1; }; }
14904 else
14905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14906 fi
14907 done
14908
14909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14910 if test -n "$ac_eof"; then
14911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14912 ac_eof=`expr $ac_eof + 1`
14913 fi
14914
14915 cat >>$CONFIG_STATUS <<_ACEOF
14916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14918 _ACEOF
14919 sed '
14920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14921 s/^/s,@/; s/!/@,|#_!!_#|/
14922 :n
14923 t n
14924 s/'"$ac_delim"'$/,g/; t
14925 s/$/\\/; p
14926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14927 ' >>$CONFIG_STATUS <conf$$subs.sed
14928 rm -f conf$$subs.sed
14929 cat >>$CONFIG_STATUS <<_ACEOF
14930 :end
14931 s/|#_!!_#|//g
14932 CEOF$ac_eof
14933 _ACEOF
14934
14935
14936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14938 # trailing colons and then remove the whole line if VPATH becomes empty
14939 # (actually we leave an empty line to preserve line numbers).
14940 if test "x$srcdir" = x.; then
14941 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14942 s/:*\$(srcdir):*/:/
14943 s/:*\${srcdir}:*/:/
14944 s/:*@srcdir@:*/:/
14945 s/^\([^=]*=[ ]*\):*/\1/
14946 s/:*$//
14947 s/^[^=]*=[ ]*$//
14948 }'
14949 fi
14950
14951 cat >>$CONFIG_STATUS <<\_ACEOF
14952 fi # test -n "$CONFIG_FILES"
14953
14954
14955 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14956 do
14957 case $ac_tag in
14958 :[FHLC]) ac_mode=$ac_tag; continue;;
14959 esac
14960 case $ac_mode$ac_tag in
14961 :[FHL]*:*);;
14962 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14963 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14964 { (exit 1); exit 1; }; };;
14965 :[FH]-) ac_tag=-:-;;
14966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14967 esac
14968 ac_save_IFS=$IFS
14969 IFS=:
14970 set x $ac_tag
14971 IFS=$ac_save_IFS
14972 shift
14973 ac_file=$1
14974 shift
14975
14976 case $ac_mode in
14977 :L) ac_source=$1;;
14978 :[FH])
14979 ac_file_inputs=
14980 for ac_f
14981 do
14982 case $ac_f in
14983 -) ac_f="$tmp/stdin";;
14984 *) # Look for the file first in the build tree, then in the source tree
14985 # (if the path is not absolute). The absolute path cannot be DOS-style,
14986 # because $ac_f cannot contain `:'.
14987 test -f "$ac_f" ||
14988 case $ac_f in
14989 [\\/$]*) false;;
14990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14991 esac ||
14992 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14993 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14994 { (exit 1); exit 1; }; };;
14995 esac
14996 ac_file_inputs="$ac_file_inputs $ac_f"
14997 done
14998
14999 # Let's still pretend it is `configure' which instantiates (i.e., don't
15000 # use $as_me), people would be surprised to read:
15001 # /* config.h. Generated by config.status. */
15002 configure_input="Generated from "`IFS=:
15003 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15004 if test x"$ac_file" != x-; then
15005 configure_input="$ac_file. $configure_input"
15006 { echo "$as_me:$LINENO: creating $ac_file" >&5
15007 echo "$as_me: creating $ac_file" >&6;}
15008 fi
15009
15010 case $ac_tag in
15011 *:-:* | *:-) cat >"$tmp/stdin";;
15012 esac
15013 ;;
15014 esac
15015
15016 ac_dir=`$as_dirname -- "$ac_file" ||
15017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15018 X"$ac_file" : 'X\(//\)[^/]' \| \
15019 X"$ac_file" : 'X\(//\)$' \| \
15020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15021 echo X"$ac_file" |
15022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15023 s//\1/
15024 q
15025 }
15026 /^X\(\/\/\)[^/].*/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\/\)$/{
15031 s//\1/
15032 q
15033 }
15034 /^X\(\/\).*/{
15035 s//\1/
15036 q
15037 }
15038 s/.*/./; q'`
15039 { as_dir="$ac_dir"
15040 case $as_dir in #(
15041 -*) as_dir=./$as_dir;;
15042 esac
15043 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15044 as_dirs=
15045 while :; do
15046 case $as_dir in #(
15047 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15048 *) as_qdir=$as_dir;;
15049 esac
15050 as_dirs="'$as_qdir' $as_dirs"
15051 as_dir=`$as_dirname -- "$as_dir" ||
15052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15053 X"$as_dir" : 'X\(//\)[^/]' \| \
15054 X"$as_dir" : 'X\(//\)$' \| \
15055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15056 echo X"$as_dir" |
15057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\/\)[^/].*/{
15062 s//\1/
15063 q
15064 }
15065 /^X\(\/\/\)$/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\).*/{
15070 s//\1/
15071 q
15072 }
15073 s/.*/./; q'`
15074 test -d "$as_dir" && break
15075 done
15076 test -z "$as_dirs" || eval "mkdir $as_dirs"
15077 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15078 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15079 { (exit 1); exit 1; }; }; }
15080 ac_builddir=.
15081
15082 case "$ac_dir" in
15083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15084 *)
15085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15086 # A ".." for each directory in $ac_dir_suffix.
15087 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15088 case $ac_top_builddir_sub in
15089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15091 esac ;;
15092 esac
15093 ac_abs_top_builddir=$ac_pwd
15094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15095 # for backward compatibility:
15096 ac_top_builddir=$ac_top_build_prefix
15097
15098 case $srcdir in
15099 .) # We are building in place.
15100 ac_srcdir=.
15101 ac_top_srcdir=$ac_top_builddir_sub
15102 ac_abs_top_srcdir=$ac_pwd ;;
15103 [\\/]* | ?:[\\/]* ) # Absolute name.
15104 ac_srcdir=$srcdir$ac_dir_suffix;
15105 ac_top_srcdir=$srcdir
15106 ac_abs_top_srcdir=$srcdir ;;
15107 *) # Relative name.
15108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15109 ac_top_srcdir=$ac_top_build_prefix$srcdir
15110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15111 esac
15112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15113
15114
15115 case $ac_mode in
15116 :F)
15117 #
15118 # CONFIG_FILE
15119 #
15120
15121 case $INSTALL in
15122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15124 esac
15125 _ACEOF
15126
15127 cat >>$CONFIG_STATUS <<\_ACEOF
15128 # If the template does not know about datarootdir, expand it.
15129 # FIXME: This hack should be removed a few years after 2.60.
15130 ac_datarootdir_hack=; ac_datarootdir_seen=
15131
15132 case `sed -n '/datarootdir/ {
15133 p
15134 q
15135 }
15136 /@datadir@/p
15137 /@docdir@/p
15138 /@infodir@/p
15139 /@localedir@/p
15140 /@mandir@/p
15141 ' $ac_file_inputs` in
15142 *datarootdir*) ac_datarootdir_seen=yes;;
15143 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15144 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15145 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15146 _ACEOF
15147 cat >>$CONFIG_STATUS <<_ACEOF
15148 ac_datarootdir_hack='
15149 s&@datadir@&$datadir&g
15150 s&@docdir@&$docdir&g
15151 s&@infodir@&$infodir&g
15152 s&@localedir@&$localedir&g
15153 s&@mandir@&$mandir&g
15154 s&\\\${datarootdir}&$datarootdir&g' ;;
15155 esac
15156 _ACEOF
15157
15158 # Neutralize VPATH when `$srcdir' = `.'.
15159 # Shell code in configure.ac might set extrasub.
15160 # FIXME: do we really want to maintain this feature?
15161 cat >>$CONFIG_STATUS <<_ACEOF
15162 sed "$ac_vpsub
15163 $extrasub
15164 _ACEOF
15165 cat >>$CONFIG_STATUS <<\_ACEOF
15166 :t
15167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15168 s&@configure_input@&$configure_input&;t t
15169 s&@top_builddir@&$ac_top_builddir_sub&;t t
15170 s&@srcdir@&$ac_srcdir&;t t
15171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172 s&@top_srcdir@&$ac_top_srcdir&;t t
15173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174 s&@builddir@&$ac_builddir&;t t
15175 s&@abs_builddir@&$ac_abs_builddir&;t t
15176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177 s&@INSTALL@&$ac_INSTALL&;t t
15178 $ac_datarootdir_hack
15179 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15180
15181 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15182 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15183 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15184 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15185 which seems to be undefined. Please make sure it is defined." >&5
15186 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15187 which seems to be undefined. Please make sure it is defined." >&2;}
15188
15189 rm -f "$tmp/stdin"
15190 case $ac_file in
15191 -) cat "$tmp/out"; rm -f "$tmp/out";;
15192 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15193 esac
15194 ;;
15195 :H)
15196 #
15197 # CONFIG_HEADER
15198 #
15199 _ACEOF
15200
15201 # Transform confdefs.h into a sed script `conftest.defines', that
15202 # substitutes the proper values into config.h.in to produce config.h.
15203 rm -f conftest.defines conftest.tail
15204 # First, append a space to every undef/define line, to ease matching.
15205 echo 's/$/ /' >conftest.defines
15206 # Then, protect against being on the right side of a sed subst, or in
15207 # an unquoted here document, in config.status. If some macros were
15208 # called several times there might be several #defines for the same
15209 # symbol, which is useless. But do not sort them, since the last
15210 # AC_DEFINE must be honored.
15211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15212 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15213 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15214 # PARAMS is the parameter list in the macro definition--in most cases, it's
15215 # just an empty string.
15216 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15217 ac_dB='\\)[ (].*,\\1define\\2'
15218 ac_dC=' '
15219 ac_dD=' ,'
15220
15221 uniq confdefs.h |
15222 sed -n '
15223 t rset
15224 :rset
15225 s/^[ ]*#[ ]*define[ ][ ]*//
15226 t ok
15227 d
15228 :ok
15229 s/[\\&,]/\\&/g
15230 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15231 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15232 ' >>conftest.defines
15233
15234 # Remove the space that was appended to ease matching.
15235 # Then replace #undef with comments. This is necessary, for
15236 # example, in the case of _POSIX_SOURCE, which is predefined and required
15237 # on some systems where configure will not decide to define it.
15238 # (The regexp can be short, since the line contains either #define or #undef.)
15239 echo 's/ $//
15240 s,^[ #]*u.*,/* & */,' >>conftest.defines
15241
15242 # Break up conftest.defines:
15243 ac_max_sed_lines=50
15244
15245 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15246 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15247 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15248 # et cetera.
15249 ac_in='$ac_file_inputs'
15250 ac_out='"$tmp/out1"'
15251 ac_nxt='"$tmp/out2"'
15252
15253 while :
15254 do
15255 # Write a here document:
15256 cat >>$CONFIG_STATUS <<_ACEOF
15257 # First, check the format of the line:
15258 cat >"\$tmp/defines.sed" <<\\CEOF
15259 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15260 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15261 b
15262 :def
15263 _ACEOF
15264 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15265 echo 'CEOF
15266 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15267 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15268 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15269 grep . conftest.tail >/dev/null || break
15270 rm -f conftest.defines
15271 mv conftest.tail conftest.defines
15272 done
15273 rm -f conftest.defines conftest.tail
15274
15275 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15276 cat >>$CONFIG_STATUS <<\_ACEOF
15277 if test x"$ac_file" != x-; then
15278 echo "/* $configure_input */" >"$tmp/config.h"
15279 cat "$ac_result" >>"$tmp/config.h"
15280 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15281 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15282 echo "$as_me: $ac_file is unchanged" >&6;}
15283 else
15284 rm -f $ac_file
15285 mv "$tmp/config.h" $ac_file
15286 fi
15287 else
15288 echo "/* $configure_input */"
15289 cat "$ac_result"
15290 fi
15291 rm -f "$tmp/out12"
15292 ;;
15293
15294 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15295 echo "$as_me: executing $ac_file commands" >&6;}
15296 ;;
15297 esac
15298
15299
15300 case $ac_file$ac_mode in
15301 "default-1":C) if test -f .devel; then
15302 echo timestamp > stamp-h
15303 cat Makefile-devel-adds >> Makefile
15304 make depend
15305 fi ;;
15306
15307 esac
15308 done # for ac_tag
15309
15310
15311 { (exit 0); exit 0; }
15312 _ACEOF
15313 chmod +x $CONFIG_STATUS
15314 ac_clean_files=$ac_clean_files_save
15315
15316
15317 # configure is writing to config.log, and then calls config.status.
15318 # config.status does its own redirection, appending to config.log.
15319 # Unfortunately, on DOS this fails, as config.log is still kept open
15320 # by configure, so config.status won't be able to write to it; its
15321 # output is simply discarded. So we exec the FD to /dev/null,
15322 # effectively closing config.log, so it can be properly (re)opened and
15323 # appended to by config.status. When coming back to configure, we
15324 # need to make the FD available again.
15325 if test "$no_create" != yes; then
15326 ac_cs_success=:
15327 ac_config_status_args=
15328 test "$silent" = yes &&
15329 ac_config_status_args="$ac_config_status_args --quiet"
15330 exec 5>/dev/null
15331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15332 exec 5>>config.log
15333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15334 # would make configure fail if this is the last instruction.
15335 $ac_cs_success || { (exit 1); exit 1; }
15336 fi
15337
15338 exit 0