]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Add support for nommu systems.
[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
1840 # Check whether --with-gcc was given.
1841 if test "${with_gcc+set}" = set; then
1842 withval=$with_gcc;
1843 fi
1844
1845 V_CCOPT="-O"
1846 V_INCLS=""
1847 if test "${srcdir}" != "." ; then
1848 V_INCLS="-I\$(srcdir)"
1849 fi
1850 if test "${CFLAGS+set}" = set; then
1851 LBL_CFLAGS="$CFLAGS"
1852 fi
1853 if test -z "$CC" ; then
1854 case "$host_os" in
1855
1856 bsdi*)
1857 # Extract the first word of "shlicc2", so it can be a program name with args.
1858 set dummy shlicc2; ac_word=$2
1859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1861 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$SHLICC2"; then
1865 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1874 ac_cv_prog_SHLICC2="yes"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878 done
1879 done
1880 IFS=$as_save_IFS
1881
1882 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1883 fi
1884 fi
1885 SHLICC2=$ac_cv_prog_SHLICC2
1886 if test -n "$SHLICC2"; then
1887 { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1888 echo "${ECHO_T}$SHLICC2" >&6; }
1889 else
1890 { echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6; }
1892 fi
1893
1894
1895 if test $SHLICC2 = yes ; then
1896 CC=shlicc2
1897 export CC
1898 fi
1899 ;;
1900 esac
1901 fi
1902 if test -z "$CC" -a "$with_gcc" = no ; then
1903 CC=cc
1904 export CC
1905 fi
1906
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1933 fi
1934 done
1935 done
1936 IFS=$as_save_IFS
1937
1938 fi
1939 fi
1940 CC=$ac_cv_prog_CC
1941 if test -n "$CC"; then
1942 { echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6; }
1944 else
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1947 fi
1948
1949
1950 fi
1951 if test -z "$ac_cv_prog_CC"; then
1952 ac_ct_CC=$CC
1953 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 if test -n "$ac_ct_CC"; then
1961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_ac_ct_CC="gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 break 2
1973 fi
1974 done
1975 done
1976 IFS=$as_save_IFS
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6; }
1984 else
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1987 fi
1988
1989 if test "x$ac_ct_CC" = x; then
1990 CC=""
1991 else
1992 case $cross_compiling:$ac_tool_warned in
1993 yes:)
1994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1995 whose name does not start with the host triplet. If you think this
1996 configuration is useful to you, please write to autoconf@gnu.org." >&5
1997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1998 whose name does not start with the host triplet. If you think this
1999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2000 ac_tool_warned=yes ;;
2001 esac
2002 CC=$ac_ct_CC
2003 fi
2004 else
2005 CC="$ac_cv_prog_CC"
2006 fi
2007
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}cc"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 break 2
2030 fi
2031 done
2032 done
2033 IFS=$as_save_IFS
2034
2035 fi
2036 fi
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2041 else
2042 { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2044 fi
2045
2046
2047 fi
2048 fi
2049 if test -z "$CC"; then
2050 # Extract the first word of "cc", so it can be a program name with args.
2051 set dummy cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 ac_prog_rejected=no
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2069 ac_prog_rejected=yes
2070 continue
2071 fi
2072 ac_cv_prog_CC="cc"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2075 fi
2076 done
2077 done
2078 IFS=$as_save_IFS
2079
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2083 shift
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2088 shift
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090 fi
2091 fi
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104 fi
2105 if test -z "$CC"; then
2106 if test -n "$ac_tool_prefix"; then
2107 for ac_prog in cl.exe
2108 do
2109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2129 fi
2130 done
2131 done
2132 IFS=$as_save_IFS
2133
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 test -n "$CC" && break
2147 done
2148 fi
2149 if test -z "$CC"; then
2150 ac_ct_CC=$CC
2151 for ac_prog in cl.exe
2152 do
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 fi
2179 fi
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 echo "${ECHO_T}$ac_ct_CC" >&6; }
2184 else
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187 fi
2188
2189
2190 test -n "$ac_ct_CC" && break
2191 done
2192
2193 if test "x$ac_ct_CC" = x; then
2194 CC=""
2195 else
2196 case $cross_compiling:$ac_tool_warned in
2197 yes:)
2198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&5
2201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2202 whose name does not start with the host triplet. If you think this
2203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2204 ac_tool_warned=yes ;;
2205 esac
2206 CC=$ac_ct_CC
2207 fi
2208 fi
2209
2210 fi
2211
2212
2213 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2218
2219 # Provide some information about the compiler.
2220 echo "$as_me:$LINENO: checking for C compiler version" >&5
2221 ac_compiler=`set X $ac_compile; echo $2`
2222 { (ac_try="$ac_compiler --version >&5"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_compiler --version >&5") 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (ac_try="$ac_compiler -v >&5"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler -v >&5") 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try="$ac_compiler -V >&5"
2243 case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -V >&5") 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2259
2260 int
2261 main ()
2262 {
2263
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 ac_clean_files_save=$ac_clean_files
2269 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2270 # Try to create an executable without -o first, disregard a.out.
2271 # It will help us diagnose broken compilers, and finding out an intuition
2272 # of exeext.
2273 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2274 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2275 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2276 #
2277 # List of possible output files, starting from the most likely.
2278 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2279 # only as a last resort. b.out is created by i960 compilers.
2280 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2281 #
2282 # The IRIX 6 linker writes into existing files which may not be
2283 # executable, retaining their permissions. Remove them first so a
2284 # subsequent execution test works.
2285 ac_rmfiles=
2286 for ac_file in $ac_files
2287 do
2288 case $ac_file in
2289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2290 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2291 esac
2292 done
2293 rm -f $ac_rmfiles
2294
2295 if { (ac_try="$ac_link_default"
2296 case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_link_default") 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; then
2305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2308 # so that the user can short-circuit this test for compilers unknown to
2309 # Autoconf.
2310 for ac_file in $ac_files ''
2311 do
2312 test -f "$ac_file" || continue
2313 case $ac_file in
2314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2315 ;;
2316 [ab].out )
2317 # We found the default executable, but exeext='' is most
2318 # certainly right.
2319 break;;
2320 *.* )
2321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2322 then :; else
2323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 fi
2325 # We set ac_cv_exeext here because the later test for it is not
2326 # safe: cross compilers may not add the suffix if given an `-o'
2327 # argument, so we may need to know it at that point already.
2328 # Even if this section looks crufty: it has the advantage of
2329 # actually working.
2330 break;;
2331 * )
2332 break;;
2333 esac
2334 done
2335 test "$ac_cv_exeext" = no && ac_cv_exeext=
2336
2337 else
2338 ac_file=''
2339 fi
2340
2341 { echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6; }
2343 if test -z "$ac_file"; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: C compiler cannot create executables
2350 See \`config.log' for more details." >&2;}
2351 { (exit 77); exit 77; }; }
2352 fi
2353
2354 ac_exeext=$ac_cv_exeext
2355
2356 # Check that the compiler produces executables we can run. If not, either
2357 # the compiler is broken, or we cross compile.
2358 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2359 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2360 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2361 # If not cross compiling, check that we can run a simple program.
2362 if test "$cross_compiling" != yes; then
2363 if { ac_try='./$ac_file'
2364 { (case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 cross_compiling=no
2374 else
2375 if test "$cross_compiling" = maybe; then
2376 cross_compiling=yes
2377 else
2378 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot run C compiled programs.
2382 If you meant to cross compile, use \`--host'.
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2385 fi
2386 fi
2387 fi
2388 { echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2390
2391 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2392 ac_clean_files=$ac_clean_files_save
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2396 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2397 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2398 echo "${ECHO_T}$cross_compiling" >&6; }
2399
2400 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2401 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2402 if { (ac_try="$ac_link"
2403 case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_link") 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; then
2412 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2413 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2414 # work properly (i.e., refer to `conftest.exe'), while it won't with
2415 # `rm'.
2416 for ac_file in conftest.exe conftest conftest.*; do
2417 test -f "$ac_file" || continue
2418 case $ac_file in
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2420 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 break;;
2422 * ) break;;
2423 esac
2424 done
2425 else
2426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2431 fi
2432
2433 rm -f conftest$ac_cv_exeext
2434 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2436
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2439 ac_exeext=$EXEEXT
2440 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2442 if test "${ac_cv_objext+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h. */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2451
2452 int
2453 main ()
2454 {
2455
2456 ;
2457 return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { (ac_try="$ac_compile"
2462 case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; then
2471 for ac_file in conftest.o conftest.obj conftest.*; do
2472 test -f "$ac_file" || continue;
2473 case $ac_file in
2474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476 break;;
2477 esac
2478 done
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2488 fi
2489
2490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491 fi
2492 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493 echo "${ECHO_T}$ac_cv_objext" >&6; }
2494 OBJEXT=$ac_cv_objext
2495 ac_objext=$OBJEXT
2496 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2498 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501 cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h. */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2507
2508 int
2509 main ()
2510 {
2511 #ifndef __GNUC__
2512 choke me
2513 #endif
2514
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (ac_try="$ac_compile"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_compile") 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.$ac_objext; then
2536 ac_compiler_gnu=yes
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_compiler_gnu=no
2542 fi
2543
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2546
2547 fi
2548 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2550 GCC=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS=${CFLAGS+set}
2552 ac_save_CFLAGS=$CFLAGS
2553 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2554 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_cc_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 ac_save_c_werror_flag=$ac_c_werror_flag
2559 ac_c_werror_flag=yes
2560 ac_cv_prog_cc_g=no
2561 CFLAGS="-g"
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568
2569 int
2570 main ()
2571 {
2572
2573 ;
2574 return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2594 ac_cv_prog_cc_g=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 CFLAGS=""
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606
2607 int
2608 main ()
2609 {
2610
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_compile") 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && {
2629 test -z "$ac_c_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest.$ac_objext; then
2632 :
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_c_werror_flag=$ac_save_c_werror_flag
2638 CFLAGS="-g"
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645
2646 int
2647 main ()
2648 {
2649
2650 ;
2651 return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } && {
2668 test -z "$ac_c_werror_flag" ||
2669 test ! -s conftest.err
2670 } && test -s conftest.$ac_objext; then
2671 ac_cv_prog_cc_g=yes
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676
2677 fi
2678
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 fi
2681
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 fi
2684
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 ac_c_werror_flag=$ac_save_c_werror_flag
2687 fi
2688 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2690 if test "$ac_test_CFLAGS" = set; then
2691 CFLAGS=$ac_save_CFLAGS
2692 elif test $ac_cv_prog_cc_g = yes; then
2693 if test "$GCC" = yes; then
2694 CFLAGS="-g -O2"
2695 else
2696 CFLAGS="-g"
2697 fi
2698 else
2699 if test "$GCC" = yes; then
2700 CFLAGS="-O2"
2701 else
2702 CFLAGS=
2703 fi
2704 fi
2705 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2706 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_cc_c89+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 ac_cv_prog_cc_c89=no
2711 ac_save_CC=$CC
2712 cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2718 #include <stdarg.h>
2719 #include <stdio.h>
2720 #include <sys/types.h>
2721 #include <sys/stat.h>
2722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2723 struct buf { int x; };
2724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2726 char **p;
2727 int i;
2728 {
2729 return p[i];
2730 }
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2732 {
2733 char *s;
2734 va_list v;
2735 va_start (v,p);
2736 s = g (p, va_arg (v,int));
2737 va_end (v);
2738 return s;
2739 }
2740
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not '\xHH' hex character constants.
2743 These don't provoke an error unfortunately, instead are silently treated
2744 as 'x'. The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2746 array size at least. It's necessary to write '\x00'==0 to get something
2747 that's true only with -std. */
2748 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2749
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2752 #define FOO(x) 'x'
2753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2754
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 int argc;
2760 char **argv;
2761 int
2762 main ()
2763 {
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2765 ;
2766 return 0;
2767 }
2768 _ACEOF
2769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 do
2772 CC="$ac_save_CC $ac_arg"
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2790 ac_cv_prog_cc_c89=$ac_arg
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795
2796 fi
2797
2798 rm -f core conftest.err conftest.$ac_objext
2799 test "x$ac_cv_prog_cc_c89" != "xno" && break
2800 done
2801 rm -f conftest.$ac_ext
2802 CC=$ac_save_CC
2803
2804 fi
2805 # AC_CACHE_VAL
2806 case "x$ac_cv_prog_cc_c89" in
2807 x)
2808 { echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6; } ;;
2810 xno)
2811 { echo "$as_me:$LINENO: result: unsupported" >&5
2812 echo "${ECHO_T}unsupported" >&6; } ;;
2813 *)
2814 CC="$CC $ac_cv_prog_cc_c89"
2815 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2816 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2817 esac
2818
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826
2827
2828
2829
2830 if test "$GCC" = yes ; then
2831 if test "$SHLICC2" = yes ; then
2832 ac_cv_lbl_gcc_vers=2
2833 V_CCOPT="-O2"
2834 else
2835 { echo "$as_me:$LINENO: checking gcc version" >&5
2836 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2837 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2841 sed -e '/^gcc version /!d' \
2842 -e 's/^gcc version //' \
2843 -e 's/ .*//' -e 's/^[^0-9]*//' \
2844 -e 's/\..*//'`
2845 fi
2846
2847 { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2848 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2849 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2850 V_CCOPT="-O2"
2851 fi
2852 fi
2853 else
2854 { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2855 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2856 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <sys/types.h>
2867 int
2868 main ()
2869 {
2870 int frob(int, char *)
2871 ;
2872 return 0;
2873 }
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (ac_try="$ac_compile"
2877 case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compile") 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } && {
2889 test -z "$ac_c_werror_flag" ||
2890 test ! -s conftest.err
2891 } && test -s conftest.$ac_objext; then
2892 ac_cv_lbl_cc_ansi_prototypes=yes
2893 else
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ac_cv_lbl_cc_ansi_prototypes=no
2898 fi
2899
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 fi
2902
2903 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2904 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2905 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2906 case "$host_os" in
2907
2908 hpux*)
2909 { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2910 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2911 savedcflags="$CFLAGS"
2912 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2913 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <sys/types.h>
2923 int
2924 main ()
2925 {
2926 int frob(int, char *)
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2948 ac_cv_lbl_cc_hpux_cc_aa=yes
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 ac_cv_lbl_cc_hpux_cc_aa=no
2954 fi
2955
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 fi
2958
2959 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2960 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2961 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2962 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2963 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966 CFLAGS="$savedcflags"
2967 V_CCOPT="-Aa $V_CCOPT"
2968
2969 cat >>confdefs.h <<\_ACEOF
2970 #define _HPUX_SOURCE 1
2971 _ACEOF
2972
2973 ;;
2974
2975 osf*)
2976 { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2977 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2978 savedcflags="$CFLAGS"
2979 CFLAGS="-std1"
2980 if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983 cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h. */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <sys/types.h>
2990 int
2991 main ()
2992 {
2993 int frob(int, char *)
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_lbl_cc_osf1_cc_std1=yes
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 ac_cv_lbl_cc_osf1_cc_std1=no
3021 fi
3022
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 fi
3025
3026 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3027 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3028 if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3029 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3030 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033 CFLAGS="$savedcflags"
3034 V_CCOPT="-std1 $V_CCOPT"
3035 ;;
3036
3037 *)
3038 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3039 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3040 { (exit 1); exit 1; }; }
3041 ;;
3042 esac
3043 fi
3044 V_INCLS="$V_INCLS -I/usr/local/include"
3045 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3046
3047 case "$host_os" in
3048
3049 irix*)
3050 V_CCOPT="$V_CCOPT -xansi -signed -O"
3051 ;;
3052
3053 osf*)
3054 #
3055 # Presumed to be DEC OSF/1, Digital UNIX, or
3056 # Tru64 UNIX.
3057 #
3058 V_CCOPT="$V_CCOPT -O"
3059 ;;
3060
3061 ultrix*)
3062 { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3063 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3064 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <sys/types.h>
3074 int
3075 main ()
3076 {
3077 struct a { int b; };
3078 void c(const struct a *)
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (ac_try="$ac_compile"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
3100 ac_cv_lbl_cc_const_proto=yes
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cv_lbl_cc_const_proto=no
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 fi
3110
3111 { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3112 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3113 if test $ac_cv_lbl_cc_const_proto = no ; then
3114
3115 cat >>confdefs.h <<\_ACEOF
3116 #define const
3117 _ACEOF
3118
3119 fi
3120 ;;
3121 esac
3122 fi
3123
3124 { echo "$as_me:$LINENO: checking for inline" >&5
3125 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3126 save_CFLAGS="$CFLAGS"
3127 CFLAGS="$V_CCOPT"
3128 if test "${ac_cv_lbl_inline+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131
3132 ac_cv_lbl_inline=""
3133 ac_lbl_cc_inline=no
3134 for ac_lbl_inline in inline __inline__ __inline
3135 do
3136 cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h. */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3142 #define inline $ac_lbl_inline
3143 static inline struct iltest *foo(void);
3144 struct iltest {
3145 int iltest1;
3146 int iltest2;
3147 };
3148
3149 static inline struct iltest *
3150 foo()
3151 {
3152 static struct iltest xxx;
3153
3154 return &xxx;
3155 }
3156 int
3157 main ()
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_lbl_cc_inline=yes
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 if test "$ac_lbl_cc_inline" = yes ; then
3191 break;
3192 fi
3193 done
3194 if test "$ac_lbl_cc_inline" = yes ; then
3195 ac_cv_lbl_inline=$ac_lbl_inline
3196 fi
3197 fi
3198
3199 CFLAGS="$save_CFLAGS"
3200 if test ! -z "$ac_cv_lbl_inline" ; then
3201 { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3202 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3203 else
3204 { echo "$as_me:$LINENO: result: no" >&5
3205 echo "${ECHO_T}no" >&6; }
3206 fi
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define inline $ac_cv_lbl_inline
3210 _ACEOF
3211
3212
3213 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3214 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3215 if test "${ac_cv___attribute__+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h. */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225
3226 #include <stdlib.h>
3227
3228 static void foo(void) __attribute__ ((noreturn));
3229
3230 static void
3231 foo(void)
3232 {
3233 exit(1);
3234 }
3235
3236 int
3237 main(int argc, char **argv)
3238 {
3239 foo();
3240 }
3241
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (ac_try="$ac_compile"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_compile") 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } && {
3257 test -z "$ac_c_werror_flag" ||
3258 test ! -s conftest.err
3259 } && test -s conftest.$ac_objext; then
3260 ac_cv___attribute__=yes
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 ac_cv___attribute__=no
3266 fi
3267
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 fi
3270
3271 if test "$ac_cv___attribute__" = "yes"; then
3272
3273 cat >>confdefs.h <<\_ACEOF
3274 #define HAVE___ATTRIBUTE__ 1
3275 _ACEOF
3276
3277 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3278 else
3279 V_DEFS="$V_DEFS -D_U_=\"\""
3280 fi
3281 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3282 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3283
3284 if test "$ac_cv___attribute__" = "yes"; then
3285
3286 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3287 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3288 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291
3292 cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298
3299 #include <stdlib.h>
3300
3301 extern int (*foo)(const char *fmt, ...)
3302 __attribute__ ((format (printf, 1, 2)));
3303
3304 int
3305 main(int argc, char **argv)
3306 {
3307 (*foo)("%s", "test");
3308 }
3309
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3328 ac_cv___attribute___format_function_pointer=yes
3329 else
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 ac_cv___attribute___format_function_pointer=no
3334 fi
3335
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338
3339 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3340
3341 cat >>confdefs.h <<\_ACEOF
3342 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3343 _ACEOF
3344
3345 fi
3346 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3347 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3348
3349 fi
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3356 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3357 # On Suns, sometimes $CPP names a directory.
3358 if test -n "$CPP" && test -d "$CPP"; then
3359 CPP=
3360 fi
3361 if test -z "$CPP"; then
3362 if test "${ac_cv_prog_CPP+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 # Double quotes because CPP needs to be expanded
3366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367 do
3368 ac_preproc_ok=false
3369 for ac_c_preproc_warn_flag in '' yes
3370 do
3371 # Use a header file that comes with gcc, so configuring glibc
3372 # with a fresh cross-compiler works.
3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 # <limits.h> exists even on freestanding compilers.
3375 # On the NeXT, cc -E runs the code through the compiler's parser,
3376 # not just through cpp. "Syntax error" is here to catch this case.
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #ifdef __STDC__
3384 # include <limits.h>
3385 #else
3386 # include <assert.h>
3387 #endif
3388 Syntax error
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null && {
3403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 }; then
3406 :
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 # Broken: fails on valid input.
3412 continue
3413 fi
3414
3415 rm -f conftest.err conftest.$ac_ext
3416
3417 # OK, works on sane cases. Now check whether nonexistent headers
3418 # can be detected and how.
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <ac_nonexistent.h>
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null && {
3440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 }; then
3443 # Broken: success on invalid input.
3444 continue
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 # Passes both tests.
3450 ac_preproc_ok=:
3451 break
3452 fi
3453
3454 rm -f conftest.err conftest.$ac_ext
3455
3456 done
3457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458 rm -f conftest.err conftest.$ac_ext
3459 if $ac_preproc_ok; then
3460 break
3461 fi
3462
3463 done
3464 ac_cv_prog_CPP=$CPP
3465
3466 fi
3467 CPP=$ac_cv_prog_CPP
3468 else
3469 ac_cv_prog_CPP=$CPP
3470 fi
3471 { echo "$as_me:$LINENO: result: $CPP" >&5
3472 echo "${ECHO_T}$CPP" >&6; }
3473 ac_preproc_ok=false
3474 for ac_c_preproc_warn_flag in '' yes
3475 do
3476 # Use a header file that comes with gcc, so configuring glibc
3477 # with a fresh cross-compiler works.
3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479 # <limits.h> exists even on freestanding compilers.
3480 # On the NeXT, cc -E runs the code through the compiler's parser,
3481 # not just through cpp. "Syntax error" is here to catch this case.
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #ifdef __STDC__
3489 # include <limits.h>
3490 #else
3491 # include <assert.h>
3492 #endif
3493 Syntax error
3494 _ACEOF
3495 if { (ac_try="$ac_cpp conftest.$ac_ext"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } >/dev/null && {
3508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 }; then
3511 :
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 # Broken: fails on valid input.
3517 continue
3518 fi
3519
3520 rm -f conftest.err conftest.$ac_ext
3521
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null && {
3545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3546 test ! -s conftest.err
3547 }; then
3548 # Broken: success on invalid input.
3549 continue
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 # Passes both tests.
3555 ac_preproc_ok=:
3556 break
3557 fi
3558
3559 rm -f conftest.err conftest.$ac_ext
3560
3561 done
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.err conftest.$ac_ext
3564 if $ac_preproc_ok; then
3565 :
3566 else
3567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&5
3569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&2;}
3571 { (exit 1); exit 1; }; }
3572 fi
3573
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580
3581 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3582 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586 # Extract the first word of "grep ggrep" to use in msg output
3587 if test -z "$GREP"; then
3588 set dummy grep ggrep; ac_prog_name=$2
3589 if test "${ac_cv_path_GREP+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 ac_path_GREP_found=false
3593 # Loop through the user's path and test for each of PROGNAME-LIST
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_prog in grep ggrep; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3602 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3603 # Check for GNU ac_path_GREP and select it if it is found.
3604 # Check for GNU $ac_path_GREP
3605 case `"$ac_path_GREP" --version 2>&1` in
3606 *GNU*)
3607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3608 *)
3609 ac_count=0
3610 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3611 while :
3612 do
3613 cat "conftest.in" "conftest.in" >"conftest.tmp"
3614 mv "conftest.tmp" "conftest.in"
3615 cp "conftest.in" "conftest.nl"
3616 echo 'GREP' >> "conftest.nl"
3617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3619 ac_count=`expr $ac_count + 1`
3620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3621 # Best one so far, save it but keep looking for a better one
3622 ac_cv_path_GREP="$ac_path_GREP"
3623 ac_path_GREP_max=$ac_count
3624 fi
3625 # 10*(2^10) chars as input seems more than enough
3626 test $ac_count -gt 10 && break
3627 done
3628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3629 esac
3630
3631
3632 $ac_path_GREP_found && break 3
3633 done
3634 done
3635
3636 done
3637 IFS=$as_save_IFS
3638
3639
3640 fi
3641
3642 GREP="$ac_cv_path_GREP"
3643 if test -z "$GREP"; then
3644 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3645 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3646 { (exit 1); exit 1; }; }
3647 fi
3648
3649 else
3650 ac_cv_path_GREP=$GREP
3651 fi
3652
3653
3654 fi
3655 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3656 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3657 GREP="$ac_cv_path_GREP"
3658
3659
3660 { echo "$as_me:$LINENO: checking for egrep" >&5
3661 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3662 if test "${ac_cv_path_EGREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3666 then ac_cv_path_EGREP="$GREP -E"
3667 else
3668 # Extract the first word of "egrep" to use in msg output
3669 if test -z "$EGREP"; then
3670 set dummy egrep; ac_prog_name=$2
3671 if test "${ac_cv_path_EGREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 ac_path_EGREP_found=false
3675 # Loop through the user's path and test for each of PROGNAME-LIST
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678 do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_prog in egrep; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3684 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3685 # Check for GNU ac_path_EGREP and select it if it is found.
3686 # Check for GNU $ac_path_EGREP
3687 case `"$ac_path_EGREP" --version 2>&1` in
3688 *GNU*)
3689 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3690 *)
3691 ac_count=0
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693 while :
3694 do
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'EGREP' >> "conftest.nl"
3699 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_EGREP="$ac_path_EGREP"
3705 ac_path_EGREP_max=$ac_count
3706 fi
3707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3709 done
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711 esac
3712
3713
3714 $ac_path_EGREP_found && break 3
3715 done
3716 done
3717
3718 done
3719 IFS=$as_save_IFS
3720
3721
3722 fi
3723
3724 EGREP="$ac_cv_path_EGREP"
3725 if test -z "$EGREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3729 fi
3730
3731 else
3732 ac_cv_path_EGREP=$EGREP
3733 fi
3734
3735
3736 fi
3737 fi
3738 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3739 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3740 EGREP="$ac_cv_path_EGREP"
3741
3742
3743 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3744 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3745 if test "${ac_cv_header_stdc+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 #include <stdlib.h>
3755 #include <stdarg.h>
3756 #include <string.h>
3757 #include <float.h>
3758
3759 int
3760 main ()
3761 {
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (ac_try="$ac_compile"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_compile") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
3784 ac_cv_header_stdc=yes
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 ac_cv_header_stdc=no
3790 fi
3791
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793
3794 if test $ac_cv_header_stdc = yes; then
3795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <string.h>
3803
3804 _ACEOF
3805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3806 $EGREP "memchr" >/dev/null 2>&1; then
3807 :
3808 else
3809 ac_cv_header_stdc=no
3810 fi
3811 rm -f -r conftest*
3812
3813 fi
3814
3815 if test $ac_cv_header_stdc = yes; then
3816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <stdlib.h>
3824
3825 _ACEOF
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "free" >/dev/null 2>&1; then
3828 :
3829 else
3830 ac_cv_header_stdc=no
3831 fi
3832 rm -f -r conftest*
3833
3834 fi
3835
3836 if test $ac_cv_header_stdc = yes; then
3837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3838 if test "$cross_compiling" = yes; then
3839 :
3840 else
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <ctype.h>
3848 #include <stdlib.h>
3849 #if ((' ' & 0x0FF) == 0x020)
3850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3852 #else
3853 # define ISLOWER(c) \
3854 (('a' <= (c) && (c) <= 'i') \
3855 || ('j' <= (c) && (c) <= 'r') \
3856 || ('s' <= (c) && (c) <= 'z'))
3857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3858 #endif
3859
3860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3861 int
3862 main ()
3863 {
3864 int i;
3865 for (i = 0; i < 256; i++)
3866 if (XOR (islower (i), ISLOWER (i))
3867 || toupper (i) != TOUPPER (i))
3868 return 2;
3869 return 0;
3870 }
3871 _ACEOF
3872 rm -f conftest$ac_exeext
3873 if { (ac_try="$ac_link"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_link") 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3883 { (case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_try") 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3892 :
3893 else
3894 echo "$as_me: program exited with status $ac_status" >&5
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 ( exit $ac_status )
3899 ac_cv_header_stdc=no
3900 fi
3901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3902 fi
3903
3904
3905 fi
3906 fi
3907 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3908 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3909 if test $ac_cv_header_stdc = yes; then
3910
3911 cat >>confdefs.h <<\_ACEOF
3912 #define STDC_HEADERS 1
3913 _ACEOF
3914
3915 fi
3916
3917 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3928 inttypes.h stdint.h unistd.h
3929 do
3930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 $ac_includes_default
3943
3944 #include <$ac_header>
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3963 eval "$as_ac_Header=yes"
3964 else
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 eval "$as_ac_Header=no"
3969 fi
3970
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 fi
3973 ac_res=`eval echo '${'$as_ac_Header'}'`
3974 { echo "$as_me:$LINENO: result: $ac_res" >&5
3975 echo "${ECHO_T}$ac_res" >&6; }
3976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3977 cat >>confdefs.h <<_ACEOF
3978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979 _ACEOF
3980
3981 fi
3982
3983 done
3984
3985
3986
3987
3988
3989 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3990 do
3991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 fi
3998 ac_res=`eval echo '${'$as_ac_Header'}'`
3999 { echo "$as_me:$LINENO: result: $ac_res" >&5
4000 echo "${ECHO_T}$ac_res" >&6; }
4001 else
4002 # Is the header compilable?
4003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 $ac_includes_default
4012 #include <$ac_header>
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4031 ac_header_compiler=yes
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 ac_header_compiler=no
4037 fi
4038
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4041 echo "${ECHO_T}$ac_header_compiler" >&6; }
4042
4043 # Is the header present?
4044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #include <$ac_header>
4053 _ACEOF
4054 if { (ac_try="$ac_cpp conftest.$ac_ext"
4055 case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null && {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 }; then
4070 ac_header_preproc=yes
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 ac_header_preproc=no
4076 fi
4077
4078 rm -f conftest.err conftest.$ac_ext
4079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4080 echo "${ECHO_T}$ac_header_preproc" >&6; }
4081
4082 # So? What about this header?
4083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4084 yes:no: )
4085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4089 ac_header_preproc=yes
4090 ;;
4091 no:yes:* )
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4104
4105 ;;
4106 esac
4107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 eval "$as_ac_Header=\$ac_header_preproc"
4113 fi
4114 ac_res=`eval echo '${'$as_ac_Header'}'`
4115 { echo "$as_me:$LINENO: result: $ac_res" >&5
4116 echo "${ECHO_T}$ac_res" >&6; }
4117
4118 fi
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4123
4124 fi
4125
4126 done
4127
4128
4129 for ac_header in net/pfvar.h
4130 do
4131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <sys/types.h>
4144 #include <sys/socket.h>
4145 #include <net/if.h>
4146
4147 #include <$ac_header>
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (ac_try="$ac_compile"
4151 case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_compile") 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && {
4163 test -z "$ac_c_werror_flag" ||
4164 test ! -s conftest.err
4165 } && test -s conftest.$ac_objext; then
4166 eval "$as_ac_Header=yes"
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 eval "$as_ac_Header=no"
4172 fi
4173
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 fi
4176 ac_res=`eval echo '${'$as_ac_Header'}'`
4177 { echo "$as_me:$LINENO: result: $ac_res" >&5
4178 echo "${ECHO_T}$ac_res" >&6; }
4179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 cat >>confdefs.h <<_ACEOF
4181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182 _ACEOF
4183
4184 fi
4185
4186 done
4187
4188 if test "$ac_cv_header_net_pfvar_h" = yes; then
4189 LOCALSRC="print-pflog.c $LOCALSRC"
4190 fi
4191
4192 for ac_header in netinet/if_ether.h
4193 do
4194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <sys/types.h>
4207 #include <sys/socket.h>
4208
4209 #include <$ac_header>
4210 _ACEOF
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216 esac
4217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest.$ac_objext; then
4228 eval "$as_ac_Header=yes"
4229 else
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 eval "$as_ac_Header=no"
4234 fi
4235
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 fi
4238 ac_res=`eval echo '${'$as_ac_Header'}'`
4239 { echo "$as_me:$LINENO: result: $ac_res" >&5
4240 echo "${ECHO_T}$ac_res" >&6; }
4241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242 cat >>confdefs.h <<_ACEOF
4243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244 _ACEOF
4245
4246 fi
4247
4248 done
4249
4250 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4251 #
4252 # The simple test didn't work.
4253 # Do we need to include <net/if.h> first?
4254 # Unset ac_cv_header_netinet_if_ether_h so we don't
4255 # treat the previous failure as a cached value and
4256 # suppress the next test.
4257 #
4258 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4259 echo "$as_me: Rechecking with some additional includes" >&6;}
4260 unset ac_cv_header_netinet_if_ether_h
4261
4262 for ac_header in netinet/if_ether.h
4263 do
4264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <sys/types.h>
4277 #include <sys/socket.h>
4278 #include <netinet/in.h>
4279 struct mbuf;
4280 struct rtentry;
4281 #include <net/if.h>
4282
4283 #include <$ac_header>
4284 _ACEOF
4285 rm -f conftest.$ac_objext
4286 if { (ac_try="$ac_compile"
4287 case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_compile") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && {
4299 test -z "$ac_c_werror_flag" ||
4300 test ! -s conftest.err
4301 } && test -s conftest.$ac_objext; then
4302 eval "$as_ac_Header=yes"
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 eval "$as_ac_Header=no"
4308 fi
4309
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 ac_res=`eval echo '${'$as_ac_Header'}'`
4313 { echo "$as_me:$LINENO: result: $ac_res" >&5
4314 echo "${ECHO_T}$ac_res" >&6; }
4315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 _ACEOF
4319
4320 fi
4321
4322 done
4323
4324 fi
4325
4326 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4327 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4328 if test "${ac_cv_header_time+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <sys/types.h>
4338 #include <sys/time.h>
4339 #include <time.h>
4340
4341 int
4342 main ()
4343 {
4344 if ((struct tm *) 0)
4345 return 0;
4346 ;
4347 return 0;
4348 }
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4352 case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355 esac
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_compile") 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest.$ac_objext; then
4367 ac_cv_header_time=yes
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 ac_cv_header_time=no
4373 fi
4374
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 fi
4377 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4378 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4379 if test $ac_cv_header_time = yes; then
4380
4381 cat >>confdefs.h <<\_ACEOF
4382 #define TIME_WITH_SYS_TIME 1
4383 _ACEOF
4384
4385 fi
4386
4387
4388 case "$host_os" in
4389
4390 linux*)
4391 { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4392 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4393 if test "$cross_compiling" = yes; then
4394 if test "${ac_cv_linux_vers+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 ac_cv_linux_vers=unknown
4398 fi
4399
4400 else
4401 if test "${ac_cv_linux_vers+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 ac_cv_linux_vers=`uname -r 2>&1 | \
4405 sed -n -e '$s/.* //' -e '$s/\..*//p'`
4406 fi
4407
4408 fi
4409 { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4410 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4411 if test $ac_cv_linux_vers = unknown ; then
4412 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4413 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4414 { (exit 1); exit 1; }; }
4415 fi
4416 if test $ac_cv_linux_vers -lt 2 ; then
4417 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4418 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4419 { (exit 1); exit 1; }; }
4420 fi
4421 ;;
4422
4423 *)
4424 ;;
4425 esac
4426
4427
4428
4429 # Check whether --with-smi was given.
4430 if test "${with_smi+set}" = set; then
4431 withval=$with_smi;
4432 else
4433 with_smi=yes
4434 fi
4435
4436
4437 if test "x$with_smi" != "xno" ; then
4438
4439 for ac_header in smi.h
4440 do
4441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 fi
4448 ac_res=`eval echo '${'$as_ac_Header'}'`
4449 { echo "$as_me:$LINENO: result: $ac_res" >&5
4450 echo "${ECHO_T}$ac_res" >&6; }
4451 else
4452 # Is the header compilable?
4453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4462 #include <$ac_header>
4463 _ACEOF
4464 rm -f conftest.$ac_objext
4465 if { (ac_try="$ac_compile"
4466 case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469 esac
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_compile") 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } && {
4478 test -z "$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4480 } && test -s conftest.$ac_objext; then
4481 ac_header_compiler=yes
4482 else
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486 ac_header_compiler=no
4487 fi
4488
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4491 echo "${ECHO_T}$ac_header_compiler" >&6; }
4492
4493 # Is the header present?
4494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4496 cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h. */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <$ac_header>
4503 _ACEOF
4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } >/dev/null && {
4517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4518 test ! -s conftest.err
4519 }; then
4520 ac_header_preproc=yes
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525 ac_header_preproc=no
4526 fi
4527
4528 rm -f conftest.err conftest.$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4530 echo "${ECHO_T}$ac_header_preproc" >&6; }
4531
4532 # So? What about this header?
4533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4534 yes:no: )
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4539 ac_header_preproc=yes
4540 ;;
4541 no:yes:* )
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4554
4555 ;;
4556 esac
4557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 eval "$as_ac_Header=\$ac_header_preproc"
4563 fi
4564 ac_res=`eval echo '${'$as_ac_Header'}'`
4565 { echo "$as_me:$LINENO: result: $ac_res" >&5
4566 echo "${ECHO_T}$ac_res" >&6; }
4567
4568 fi
4569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4570 cat >>confdefs.h <<_ACEOF
4571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4572 _ACEOF
4573
4574 fi
4575
4576 done
4577
4578
4579 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4580 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4581 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 ac_check_lib_save_LIBS=$LIBS
4585 LIBS="-lsmi $LIBS"
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592
4593 /* Override any GCC internal prototype to avoid an error.
4594 Use char because int might match the return type of a GCC
4595 builtin and then its argument prototype would still apply. */
4596 #ifdef __cplusplus
4597 extern "C"
4598 #endif
4599 char smiInit ();
4600 int
4601 main ()
4602 {
4603 return smiInit ();
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext conftest$ac_exeext
4609 if { (ac_try="$ac_link"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_link") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest$ac_exeext &&
4625 $as_test_x conftest$ac_exeext; then
4626 ac_cv_lib_smi_smiInit=yes
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ac_cv_lib_smi_smiInit=no
4632 fi
4633
4634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4635 conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4637 fi
4638 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4639 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4640 if test $ac_cv_lib_smi_smiInit = yes; then
4641 cat >>confdefs.h <<_ACEOF
4642 #define HAVE_LIBSMI 1
4643 _ACEOF
4644
4645 LIBS="-lsmi $LIBS"
4646
4647 fi
4648
4649 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4650 then
4651 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4652 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4653 if test "$cross_compiling" = yes; then
4654 { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4655 echo "${ECHO_T}not when cross-compiling" >&6; }
4656 libsmi=no
4657
4658 else
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 /* libsmi available check */
4666 #include <smi.h>
4667 main()
4668 {
4669 int current, revision, age, n;
4670 const int required = 2;
4671 if (smiInit(""))
4672 exit(1);
4673 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4674 exit(2);
4675 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4676 if (n != 3)
4677 exit(3);
4678 if (required < current - age || required > current)
4679 exit(4);
4680 exit(0);
4681 }
4682
4683 _ACEOF
4684 rm -f conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4686 case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_link") 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4695 { (case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_try") 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 { echo "$as_me:$LINENO: result: yes" >&5
4705 echo "${ECHO_T}yes" >&6; }
4706 cat >>confdefs.h <<\_ACEOF
4707 #define LIBSMI 1
4708 _ACEOF
4709
4710 libsmi=yes
4711 else
4712 echo "$as_me: program exited with status $ac_status" >&5
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 ( exit $ac_status )
4717 case $? in
4718 1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4719 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4720 2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4721 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4722 3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4723 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4724 4) { echo "$as_me:$LINENO: result: no - too old" >&5
4725 echo "${ECHO_T}no - too old" >&6; } ;;
4726 *) { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; } ;;
4728 esac
4729 libsmi=no
4730 fi
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 fi
4733
4734
4735 fi
4736 fi
4737
4738 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4739 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4740 # Check whether --enable-smb was given.
4741 if test "${enable_smb+set}" = set; then
4742 enableval=$enable_smb;
4743 else
4744 enableval=yes
4745 fi
4746
4747 case "$enableval" in
4748 yes) { echo "$as_me:$LINENO: result: yes" >&5
4749 echo "${ECHO_T}yes" >&6; }
4750 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4751 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4752 cat >>confdefs.h <<\_ACEOF
4753 #define TCPDUMP_DO_SMB 1
4754 _ACEOF
4755
4756 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4757 ;;
4758 *) { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4760 ;;
4761 esac
4762
4763
4764 # Check whether --with-user was given.
4765 if test "${with_user+set}" = set; then
4766 withval=$with_user;
4767 fi
4768
4769 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4770 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4771 if test ! -z "$with_user" ; then
4772 cat >>confdefs.h <<_ACEOF
4773 #define WITH_USER "$withval"
4774 _ACEOF
4775
4776 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4777 echo "${ECHO_T}to \"$withval\"" >&6; }
4778 else
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4781 fi
4782
4783
4784 # Check whether --with-chroot was given.
4785 if test "${with_chroot+set}" = set; then
4786 withval=$with_chroot;
4787 fi
4788
4789 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4790 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4791 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define WITH_CHROOT "$withval"
4794 _ACEOF
4795
4796 { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4797 echo "${ECHO_T}to \"$withval\"" >&6; }
4798 else
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 fi
4802
4803 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4804 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4805 # Check whether --enable-ipv6 was given.
4806 if test "${enable_ipv6+set}" = set; then
4807 enableval=$enable_ipv6; case "$enableval" in
4808 yes) { echo "$as_me:$LINENO: result: yes" >&5
4809 echo "${ECHO_T}yes" >&6; }
4810 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"
4811 cat >>confdefs.h <<\_ACEOF
4812 #define INET6 1
4813 _ACEOF
4814
4815 ipv6=yes
4816 ;;
4817 *)
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4820 ipv6=no
4821 ;;
4822 esac
4823 else
4824 if test "$cross_compiling" = yes; then
4825 { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4827 ipv6=no
4828
4829 else
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 /* AF_INET6 available check */
4837 #include <sys/types.h>
4838 #include <sys/socket.h>
4839 main()
4840 {
4841 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4842 exit(1);
4843 else
4844 exit(0);
4845 }
4846
4847 _ACEOF
4848 rm -f conftest$ac_exeext
4849 if { (ac_try="$ac_link"
4850 case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_link") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4859 { (case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862 esac
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_try") 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 { echo "$as_me:$LINENO: result: yes" >&5
4869 echo "${ECHO_T}yes" >&6; }
4870 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"
4871 cat >>confdefs.h <<\_ACEOF
4872 #define INET6 1
4873 _ACEOF
4874
4875 ipv6=yes
4876 else
4877 echo "$as_me: program exited with status $ac_status" >&5
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ( exit $ac_status )
4882 { echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6; }
4884 ipv6=no
4885 fi
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 fi
4888
4889
4890 fi
4891
4892
4893 ipv6type=unknown
4894 ipv6lib=none
4895 ipv6trylibc=no
4896
4897 if test "$ipv6" = "yes"; then
4898 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4899 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4900 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4901 case $i in
4902 inria)
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 #include <netinet/in.h>
4910 #ifdef IPV6_INRIA_VERSION
4911 yes
4912 #endif
4913 _ACEOF
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 $EGREP "yes" >/dev/null 2>&1; then
4916 ipv6type=$i;
4917 CFLAGS="-DINET6 $CFLAGS"
4918 fi
4919 rm -f -r conftest*
4920
4921 ;;
4922 kame)
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 #include <netinet/in.h>
4930 #ifdef __KAME__
4931 yes
4932 #endif
4933 _ACEOF
4934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935 $EGREP "yes" >/dev/null 2>&1; then
4936 ipv6type=$i;
4937 ipv6lib=inet6;
4938 ipv6libdir=/usr/local/v6/lib;
4939 ipv6trylibc=yes;
4940 CFLAGS="-DINET6 $CFLAGS"
4941 fi
4942 rm -f -r conftest*
4943
4944 ;;
4945 linux-glibc)
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <features.h>
4953 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4954 yes
4955 #endif
4956 _ACEOF
4957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958 $EGREP "yes" >/dev/null 2>&1; then
4959 ipv6type=$i;
4960 CFLAGS="-DINET6 $CFLAGS"
4961 fi
4962 rm -f -r conftest*
4963
4964 ;;
4965 linux-libinet6)
4966 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4967 ipv6type=$i
4968 ipv6lib=inet6
4969 ipv6libdir=/usr/inet6/lib
4970 ipv6trylibc=yes;
4971 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4972 fi
4973 ;;
4974 toshiba)
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <sys/param.h>
4982 #ifdef _TOSHIBA_INET6
4983 yes
4984 #endif
4985 _ACEOF
4986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987 $EGREP "yes" >/dev/null 2>&1; then
4988 ipv6type=$i;
4989 ipv6lib=inet6;
4990 ipv6libdir=/usr/local/v6/lib;
4991 CFLAGS="-DINET6 $CFLAGS"
4992 fi
4993 rm -f -r conftest*
4994
4995 ;;
4996 v6d)
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #include </usr/local/v6/include/sys/v6config.h>
5004 #ifdef __V6D__
5005 yes
5006 #endif
5007 _ACEOF
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009 $EGREP "yes" >/dev/null 2>&1; then
5010 ipv6type=$i;
5011 ipv6lib=v6;
5012 ipv6libdir=/usr/local/v6/lib;
5013 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5014 fi
5015 rm -f -r conftest*
5016
5017 ;;
5018 zeta)
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #include <sys/param.h>
5026 #ifdef _ZETA_MINAMI_INET6
5027 yes
5028 #endif
5029 _ACEOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "yes" >/dev/null 2>&1; then
5032 ipv6type=$i;
5033 ipv6lib=inet6;
5034 ipv6libdir=/usr/local/v6/lib;
5035 CFLAGS="-DINET6 $CFLAGS"
5036 fi
5037 rm -f -r conftest*
5038
5039 ;;
5040 esac
5041 if test "$ipv6type" != "unknown"; then
5042 break
5043 fi
5044 done
5045 { echo "$as_me:$LINENO: result: $ipv6type" >&5
5046 echo "${ECHO_T}$ipv6type" >&6; }
5047 fi
5048
5049 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5050 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5051 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5052 echo "You have $ipv6lib library, using it"
5053 else
5054 if test "$ipv6trylibc" = "yes"; then
5055 echo "You do not have $ipv6lib library, using libc"
5056 else
5057 echo 'Fatal: no $ipv6lib library found. cannot continue.'
5058 echo "You need to fetch lib$ipv6lib.a from appropriate"
5059 echo 'ipv6 kit and compile beforehand.'
5060 exit 1
5061 fi
5062 fi
5063 fi
5064
5065
5066 if test "$ipv6" = "yes"; then
5067 #
5068 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5069 # function in libc; there are "ngetaddrinfo()" and
5070 # "ogetaddrinfo()" functions, and <netdb.h> #defines
5071 # "getaddrinfo" to be either "ngetaddrinfo" or
5072 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5073 # or _XOPEN_SOURCE_EXTENDED are defined or not.
5074 #
5075 # So this test doesn't work on Tru64 5.1, and possibly
5076 # on other 5.x releases. This causes the configure
5077 # script to become confused, and results in libpcap
5078 # being unbuildable.
5079 #
5080 { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5081 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5082 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 ac_func_search_save_LIBS=$LIBS
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092
5093 /* Override any GCC internal prototype to avoid an error.
5094 Use char because int might match the return type of a GCC
5095 builtin and then its argument prototype would still apply. */
5096 #ifdef __cplusplus
5097 extern "C"
5098 #endif
5099 char getaddrinfo ();
5100 int
5101 main ()
5102 {
5103 return getaddrinfo ();
5104 ;
5105 return 0;
5106 }
5107 _ACEOF
5108 for ac_lib in '' socket; do
5109 if test -z "$ac_lib"; then
5110 ac_res="none required"
5111 else
5112 ac_res=-l$ac_lib
5113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5114 fi
5115 rm -f conftest.$ac_objext conftest$ac_exeext
5116 if { (ac_try="$ac_link"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_link") 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest$ac_exeext &&
5132 $as_test_x conftest$ac_exeext; then
5133 ac_cv_search_getaddrinfo=$ac_res
5134 else
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138
5139 fi
5140
5141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5142 conftest$ac_exeext
5143 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5144 break
5145 fi
5146 done
5147 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5148 :
5149 else
5150 ac_cv_search_getaddrinfo=no
5151 fi
5152 rm conftest.$ac_ext
5153 LIBS=$ac_func_search_save_LIBS
5154 fi
5155 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5156 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5157 ac_res=$ac_cv_search_getaddrinfo
5158 if test "$ac_res" != no; then
5159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5160 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5161 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5162 if test "${td_cv_buggygetaddrinfo+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test "$cross_compiling" = yes; then
5166 td_cv_buggygetaddrinfo=yes
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174
5175 #include <sys/types.h>
5176 #include <netdb.h>
5177 #include <string.h>
5178 #include <sys/socket.h>
5179 #include <netinet/in.h>
5180
5181 main()
5182 {
5183 int passive, gaierr, inet4 = 0, inet6 = 0;
5184 struct addrinfo hints, *ai, *aitop;
5185 char straddr[INET6_ADDRSTRLEN], strport[16];
5186
5187 for (passive = 0; passive <= 1; passive++) {
5188 memset(&hints, 0, sizeof(hints));
5189 hints.ai_family = AF_UNSPEC;
5190 hints.ai_flags = passive ? AI_PASSIVE : 0;
5191 hints.ai_socktype = SOCK_STREAM;
5192 hints.ai_protocol = IPPROTO_TCP;
5193 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5194 (void)gai_strerror(gaierr);
5195 goto bad;
5196 }
5197 for (ai = aitop; ai; ai = ai->ai_next) {
5198 if (ai->ai_addr == NULL ||
5199 ai->ai_addrlen == 0 ||
5200 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5201 straddr, sizeof(straddr), strport, sizeof(strport),
5202 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5203 goto bad;
5204 }
5205 switch (ai->ai_family) {
5206 case AF_INET:
5207 if (strcmp(strport, "54321") != 0) {
5208 goto bad;
5209 }
5210 if (passive) {
5211 if (strcmp(straddr, "0.0.0.0") != 0) {
5212 goto bad;
5213 }
5214 } else {
5215 if (strcmp(straddr, "127.0.0.1") != 0) {
5216 goto bad;
5217 }
5218 }
5219 inet4++;
5220 break;
5221 case AF_INET6:
5222 if (strcmp(strport, "54321") != 0) {
5223 goto bad;
5224 }
5225 if (passive) {
5226 if (strcmp(straddr, "::") != 0) {
5227 goto bad;
5228 }
5229 } else {
5230 if (strcmp(straddr, "::1") != 0) {
5231 goto bad;
5232 }
5233 }
5234 inet6++;
5235 break;
5236 case AF_UNSPEC:
5237 goto bad;
5238 break;
5239 #ifdef AF_UNIX
5240 case AF_UNIX:
5241 #else
5242 #ifdef AF_LOCAL
5243 case AF_LOCAL:
5244 #endif
5245 #endif
5246 default:
5247 /* another family support? */
5248 break;
5249 }
5250 }
5251 }
5252
5253 /* supported family should be 2, unsupported family should be 0 */
5254 if (!(inet4 == 0 || inet4 == 2))
5255 goto bad;
5256 if (!(inet6 == 0 || inet6 == 2))
5257 goto bad;
5258
5259 if (aitop)
5260 freeaddrinfo(aitop);
5261 exit(0);
5262
5263 bad:
5264 if (aitop)
5265 freeaddrinfo(aitop);
5266 exit(1);
5267 }
5268
5269 _ACEOF
5270 rm -f conftest$ac_exeext
5271 if { (ac_try="$ac_link"
5272 case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_link") 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5281 { (case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284 esac
5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_try") 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 td_cv_buggygetaddrinfo=no
5291 else
5292 echo "$as_me: program exited with status $ac_status" >&5
5293 echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296 ( exit $ac_status )
5297 td_cv_buggygetaddrinfo=yes
5298 fi
5299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5300 fi
5301
5302
5303 fi
5304
5305 if test "$td_cv_buggygetaddrinfo" = no; then
5306 { echo "$as_me:$LINENO: result: good" >&5
5307 echo "${ECHO_T}good" >&6; }
5308 else
5309 { echo "$as_me:$LINENO: result: buggy" >&5
5310 echo "${ECHO_T}buggy" >&6; }
5311 fi
5312
5313 if test "$td_cv_buggygetaddrinfo" = "yes"; then
5314 #
5315 # XXX - it doesn't appear that "ipv6type" can ever be
5316 # set to "linux". Should this be testing for
5317 # "linux-glibc", or for that *or* "linux-libinet6"?
5318 # If the latter, note that "linux-libinet6" is also
5319 # the type given to some non-Linux OSes.
5320 #
5321 if test "$ipv6type" != "linux"; then
5322 echo 'Fatal: You must get working getaddrinfo() function.'
5323 echo ' or you can specify "--disable-ipv6"'.
5324 exit 1
5325 else
5326 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5327 echo ' Better upgrade your system library to newest version'
5328 echo ' of GNU C library (aka glibc).'
5329 fi
5330 fi
5331
5332 fi
5333
5334
5335 for ac_func in getnameinfo
5336 do
5337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5351 #define $ac_func innocuous_$ac_func
5352
5353 /* System header to define __stub macros and hopefully few prototypes,
5354 which can conflict with char $ac_func (); below.
5355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5356 <limits.h> exists even on freestanding compilers. */
5357
5358 #ifdef __STDC__
5359 # include <limits.h>
5360 #else
5361 # include <assert.h>
5362 #endif
5363
5364 #undef $ac_func
5365
5366 /* Override any GCC internal prototype to avoid an error.
5367 Use char because int might match the return type of a GCC
5368 builtin and then its argument prototype would still apply. */
5369 #ifdef __cplusplus
5370 extern "C"
5371 #endif
5372 char $ac_func ();
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined __stub_$ac_func || defined __stub___$ac_func
5377 choke me
5378 #endif
5379
5380 int
5381 main ()
5382 {
5383 return $ac_func ();
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext conftest$ac_exeext
5389 if { (ac_try="$ac_link"
5390 case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393 esac
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_link") 2>conftest.er1
5396 ac_status=$?
5397 grep -v '^ *+' conftest.er1 >conftest.err
5398 rm -f conftest.er1
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest$ac_exeext &&
5405 $as_test_x conftest$ac_exeext; then
5406 eval "$as_ac_var=yes"
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 eval "$as_ac_var=no"
5412 fi
5413
5414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5415 conftest$ac_exeext conftest.$ac_ext
5416 fi
5417 ac_res=`eval echo '${'$as_ac_var'}'`
5418 { echo "$as_me:$LINENO: result: $ac_res" >&5
5419 echo "${ECHO_T}$ac_res" >&6; }
5420 if test `eval echo '${'$as_ac_var'}'` = yes; then
5421 cat >>confdefs.h <<_ACEOF
5422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423 _ACEOF
5424
5425 else
5426 case " $LIBOBJS " in
5427 *" $ac_func.$ac_objext "* ) ;;
5428 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5429 ;;
5430 esac
5431
5432 fi
5433 done
5434
5435
5436 fi
5437
5438 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5439 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5440 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include <netdnet/dnetdb.h>
5450
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "dnet_htoa" >/dev/null 2>&1; then
5454 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5455 else
5456 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5457 fi
5458 rm -f -r conftest*
5459
5460 fi
5461 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5462 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5463 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5464 cat >>confdefs.h <<\_ACEOF
5465 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5466 _ACEOF
5467
5468 fi
5469
5470 { echo "$as_me:$LINENO: checking for char" >&5
5471 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5472 if test "${ac_cv_type_char+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 typedef char ac__type_new_;
5483 int
5484 main ()
5485 {
5486 if ((ac__type_new_ *) 0)
5487 return 0;
5488 if (sizeof (ac__type_new_))
5489 return 0;
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_c_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.$ac_objext; then
5511 ac_cv_type_char=yes
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_cv_type_char=no
5517 fi
5518
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 fi
5521 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5522 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5523
5524 # The cast to long int works around a bug in the HP C Compiler
5525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5527 # This bug is HP SR number 8606223364.
5528 { echo "$as_me:$LINENO: checking size of char" >&5
5529 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5530 if test "${ac_cv_sizeof_char+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 if test "$cross_compiling" = yes; then
5534 # Depending upon the size, compute the lo and hi bounds.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 $ac_includes_default
5542 typedef char ac__type_sizeof_;
5543 int
5544 main ()
5545 {
5546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5547 test_array [0] = 0
5548
5549 ;
5550 return 0;
5551 }
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5555 case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5570 ac_lo=0 ac_mid=0
5571 while :; do
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5579 typedef char ac__type_sizeof_;
5580 int
5581 main ()
5582 {
5583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5584 test_array [0] = 0
5585
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5592 case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5598 ac_status=$?
5599 grep -v '^ *+' conftest.er1 >conftest.err
5600 rm -f conftest.er1
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && {
5604 test -z "$ac_c_werror_flag" ||
5605 test ! -s conftest.err
5606 } && test -s conftest.$ac_objext; then
5607 ac_hi=$ac_mid; break
5608 else
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612 ac_lo=`expr $ac_mid + 1`
5613 if test $ac_lo -le $ac_mid; then
5614 ac_lo= ac_hi=
5615 break
5616 fi
5617 ac_mid=`expr 2 '*' $ac_mid + 1`
5618 fi
5619
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 done
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 $ac_includes_default
5633 typedef char ac__type_sizeof_;
5634 int
5635 main ()
5636 {
5637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5638 test_array [0] = 0
5639
5640 ;
5641 return 0;
5642 }
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (ac_try="$ac_compile"
5646 case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } && {
5658 test -z "$ac_c_werror_flag" ||
5659 test ! -s conftest.err
5660 } && test -s conftest.$ac_objext; then
5661 ac_hi=-1 ac_mid=-1
5662 while :; do
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 $ac_includes_default
5670 typedef char ac__type_sizeof_;
5671 int
5672 main ()
5673 {
5674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5675 test_array [0] = 0
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.$ac_objext; then
5698 ac_lo=$ac_mid; break
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703 ac_hi=`expr '(' $ac_mid ')' - 1`
5704 if test $ac_mid -le $ac_hi; then
5705 ac_lo= ac_hi=
5706 break
5707 fi
5708 ac_mid=`expr 2 '*' $ac_mid`
5709 fi
5710
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 done
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717 ac_lo= ac_hi=
5718 fi
5719
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 fi
5722
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 # Binary search between lo and hi bounds.
5725 while test "x$ac_lo" != "x$ac_hi"; do
5726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 $ac_includes_default
5734 typedef char ac__type_sizeof_;
5735 int
5736 main ()
5737 {
5738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5739 test_array [0] = 0
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5747 case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5762 ac_hi=$ac_mid
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767 ac_lo=`expr '(' $ac_mid ')' + 1`
5768 fi
5769
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 done
5772 case $ac_lo in
5773 ?*) ac_cv_sizeof_char=$ac_lo;;
5774 '') if test "$ac_cv_type_char" = yes; then
5775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5776 See \`config.log' for more details." >&5
5777 echo "$as_me: error: cannot compute sizeof (char)
5778 See \`config.log' for more details." >&2;}
5779 { (exit 77); exit 77; }; }
5780 else
5781 ac_cv_sizeof_char=0
5782 fi ;;
5783 esac
5784 else
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5792 typedef char ac__type_sizeof_;
5793 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5794 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5795 #include <stdio.h>
5796 #include <stdlib.h>
5797 int
5798 main ()
5799 {
5800
5801 FILE *f = fopen ("conftest.val", "w");
5802 if (! f)
5803 return 1;
5804 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5805 {
5806 long int i = longval ();
5807 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5808 return 1;
5809 fprintf (f, "%ld\n", i);
5810 }
5811 else
5812 {
5813 unsigned long int i = ulongval ();
5814 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5815 return 1;
5816 fprintf (f, "%lu\n", i);
5817 }
5818 return ferror (f) || fclose (f) != 0;
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest$ac_exeext
5825 if { (ac_try="$ac_link"
5826 case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_link") 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5835 { (case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_try") 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_sizeof_char=`cat conftest.val`
5845 else
5846 echo "$as_me: program exited with status $ac_status" >&5
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 ( exit $ac_status )
5851 if test "$ac_cv_type_char" = yes; then
5852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5853 See \`config.log' for more details." >&5
5854 echo "$as_me: error: cannot compute sizeof (char)
5855 See \`config.log' for more details." >&2;}
5856 { (exit 77); exit 77; }; }
5857 else
5858 ac_cv_sizeof_char=0
5859 fi
5860 fi
5861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5862 fi
5863 rm -f conftest.val
5864 fi
5865 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5866 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5867
5868
5869
5870 cat >>confdefs.h <<_ACEOF
5871 #define SIZEOF_CHAR $ac_cv_sizeof_char
5872 _ACEOF
5873
5874
5875 { echo "$as_me:$LINENO: checking for short" >&5
5876 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5877 if test "${ac_cv_type_short+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5887 typedef short ac__type_new_;
5888 int
5889 main ()
5890 {
5891 if ((ac__type_new_ *) 0)
5892 return 0;
5893 if (sizeof (ac__type_new_))
5894 return 0;
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (ac_try="$ac_compile"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } && {
5913 test -z "$ac_c_werror_flag" ||
5914 test ! -s conftest.err
5915 } && test -s conftest.$ac_objext; then
5916 ac_cv_type_short=yes
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 ac_cv_type_short=no
5922 fi
5923
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925 fi
5926 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5927 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5928
5929 # The cast to long int works around a bug in the HP C Compiler
5930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 # This bug is HP SR number 8606223364.
5933 { echo "$as_me:$LINENO: checking size of short" >&5
5934 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5935 if test "${ac_cv_sizeof_short+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 if test "$cross_compiling" = yes; then
5939 # Depending upon the size, compute the lo and hi bounds.
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 $ac_includes_default
5947 typedef short ac__type_sizeof_;
5948 int
5949 main ()
5950 {
5951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5952 test_array [0] = 0
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 rm -f conftest.$ac_objext
5959 if { (ac_try="$ac_compile"
5960 case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5975 ac_lo=0 ac_mid=0
5976 while :; do
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5984 typedef short ac__type_sizeof_;
5985 int
5986 main ()
5987 {
5988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5989 test_array [0] = 0
5990
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (ac_try="$ac_compile"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_hi=$ac_mid; break
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ac_lo=`expr $ac_mid + 1`
6018 if test $ac_lo -le $ac_mid; then
6019 ac_lo= ac_hi=
6020 break
6021 fi
6022 ac_mid=`expr 2 '*' $ac_mid + 1`
6023 fi
6024
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 done
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 $ac_includes_default
6038 typedef short ac__type_sizeof_;
6039 int
6040 main ()
6041 {
6042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6043 test_array [0] = 0
6044
6045 ;
6046 return 0;
6047 }
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (ac_try="$ac_compile"
6051 case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6066 ac_hi=-1 ac_mid=-1
6067 while :; do
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 $ac_includes_default
6075 typedef short ac__type_sizeof_;
6076 int
6077 main ()
6078 {
6079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6080 test_array [0] = 0
6081
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6103 ac_lo=$ac_mid; break
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108 ac_hi=`expr '(' $ac_mid ')' - 1`
6109 if test $ac_mid -le $ac_hi; then
6110 ac_lo= ac_hi=
6111 break
6112 fi
6113 ac_mid=`expr 2 '*' $ac_mid`
6114 fi
6115
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 done
6118 else
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122 ac_lo= ac_hi=
6123 fi
6124
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 # Binary search between lo and hi bounds.
6130 while test "x$ac_lo" != "x$ac_hi"; do
6131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 $ac_includes_default
6139 typedef short ac__type_sizeof_;
6140 int
6141 main ()
6142 {
6143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6144 test_array [0] = 0
6145
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (ac_try="$ac_compile"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_compile") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest.$ac_objext; then
6167 ac_hi=$ac_mid
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_lo=`expr '(' $ac_mid ')' + 1`
6173 fi
6174
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 done
6177 case $ac_lo in
6178 ?*) ac_cv_sizeof_short=$ac_lo;;
6179 '') if test "$ac_cv_type_short" = yes; then
6180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6181 See \`config.log' for more details." >&5
6182 echo "$as_me: error: cannot compute sizeof (short)
6183 See \`config.log' for more details." >&2;}
6184 { (exit 77); exit 77; }; }
6185 else
6186 ac_cv_sizeof_short=0
6187 fi ;;
6188 esac
6189 else
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 typedef short ac__type_sizeof_;
6198 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6199 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6200 #include <stdio.h>
6201 #include <stdlib.h>
6202 int
6203 main ()
6204 {
6205
6206 FILE *f = fopen ("conftest.val", "w");
6207 if (! f)
6208 return 1;
6209 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6210 {
6211 long int i = longval ();
6212 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6213 return 1;
6214 fprintf (f, "%ld\n", i);
6215 }
6216 else
6217 {
6218 unsigned long int i = ulongval ();
6219 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6220 return 1;
6221 fprintf (f, "%lu\n", i);
6222 }
6223 return ferror (f) || fclose (f) != 0;
6224
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest$ac_exeext
6230 if { (ac_try="$ac_link"
6231 case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_link") 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6240 { (case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_try") 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_sizeof_short=`cat conftest.val`
6250 else
6251 echo "$as_me: program exited with status $ac_status" >&5
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 ( exit $ac_status )
6256 if test "$ac_cv_type_short" = yes; then
6257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6258 See \`config.log' for more details." >&5
6259 echo "$as_me: error: cannot compute sizeof (short)
6260 See \`config.log' for more details." >&2;}
6261 { (exit 77); exit 77; }; }
6262 else
6263 ac_cv_sizeof_short=0
6264 fi
6265 fi
6266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6267 fi
6268 rm -f conftest.val
6269 fi
6270 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6271 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6272
6273
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define SIZEOF_SHORT $ac_cv_sizeof_short
6277 _ACEOF
6278
6279
6280 { echo "$as_me:$LINENO: checking for int" >&5
6281 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6282 if test "${ac_cv_type_int+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 $ac_includes_default
6292 typedef int ac__type_new_;
6293 int
6294 main ()
6295 {
6296 if ((ac__type_new_ *) 0)
6297 return 0;
6298 if (sizeof (ac__type_new_))
6299 return 0;
6300 ;
6301 return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6321 ac_cv_type_int=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 ac_cv_type_int=no
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 fi
6331 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6332 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6333
6334 # The cast to long int works around a bug in the HP C Compiler
6335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6337 # This bug is HP SR number 8606223364.
6338 { echo "$as_me:$LINENO: checking size of int" >&5
6339 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6340 if test "${ac_cv_sizeof_int+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343 if test "$cross_compiling" = yes; then
6344 # Depending upon the size, compute the lo and hi bounds.
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6352 typedef int ac__type_sizeof_;
6353 int
6354 main ()
6355 {
6356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6357 test_array [0] = 0
6358
6359 ;
6360 return 0;
6361 }
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (ac_try="$ac_compile"
6365 case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368 esac
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_compile") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } && {
6377 test -z "$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 } && test -s conftest.$ac_objext; then
6380 ac_lo=0 ac_mid=0
6381 while :; do
6382 cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h. */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 $ac_includes_default
6389 typedef int ac__type_sizeof_;
6390 int
6391 main ()
6392 {
6393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6394 test_array [0] = 0
6395
6396 ;
6397 return 0;
6398 }
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (ac_try="$ac_compile"
6402 case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
6417 ac_hi=$ac_mid; break
6418 else
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 ac_lo=`expr $ac_mid + 1`
6423 if test $ac_lo -le $ac_mid; then
6424 ac_lo= ac_hi=
6425 break
6426 fi
6427 ac_mid=`expr 2 '*' $ac_mid + 1`
6428 fi
6429
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 done
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436 cat >conftest.$ac_ext <<_ACEOF
6437 /* confdefs.h. */
6438 _ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 $ac_includes_default
6443 typedef int ac__type_sizeof_;
6444 int
6445 main ()
6446 {
6447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6448 test_array [0] = 0
6449
6450 ;
6451 return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6456 case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest.$ac_objext; then
6471 ac_hi=-1 ac_mid=-1
6472 while :; do
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 $ac_includes_default
6480 typedef int ac__type_sizeof_;
6481 int
6482 main ()
6483 {
6484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6485 test_array [0] = 0
6486
6487 ;
6488 return 0;
6489 }
6490 _ACEOF
6491 rm -f conftest.$ac_objext
6492 if { (ac_try="$ac_compile"
6493 case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest.$ac_objext; then
6508 ac_lo=$ac_mid; break
6509 else
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ac_hi=`expr '(' $ac_mid ')' - 1`
6514 if test $ac_mid -le $ac_hi; then
6515 ac_lo= ac_hi=
6516 break
6517 fi
6518 ac_mid=`expr 2 '*' $ac_mid`
6519 fi
6520
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 done
6523 else
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 ac_lo= ac_hi=
6528 fi
6529
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 # Binary search between lo and hi bounds.
6535 while test "x$ac_lo" != "x$ac_hi"; do
6536 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 $ac_includes_default
6544 typedef int ac__type_sizeof_;
6545 int
6546 main ()
6547 {
6548 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6549 test_array [0] = 0
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6557 case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560 esac
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest.$ac_objext; then
6572 ac_hi=$ac_mid
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 ac_lo=`expr '(' $ac_mid ')' + 1`
6578 fi
6579
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 done
6582 case $ac_lo in
6583 ?*) ac_cv_sizeof_int=$ac_lo;;
6584 '') if test "$ac_cv_type_int" = yes; then
6585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6586 See \`config.log' for more details." >&5
6587 echo "$as_me: error: cannot compute sizeof (int)
6588 See \`config.log' for more details." >&2;}
6589 { (exit 77); exit 77; }; }
6590 else
6591 ac_cv_sizeof_int=0
6592 fi ;;
6593 esac
6594 else
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 $ac_includes_default
6602 typedef int ac__type_sizeof_;
6603 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6604 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6605 #include <stdio.h>
6606 #include <stdlib.h>
6607 int
6608 main ()
6609 {
6610
6611 FILE *f = fopen ("conftest.val", "w");
6612 if (! f)
6613 return 1;
6614 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6615 {
6616 long int i = longval ();
6617 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6618 return 1;
6619 fprintf (f, "%ld\n", i);
6620 }
6621 else
6622 {
6623 unsigned long int i = ulongval ();
6624 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6625 return 1;
6626 fprintf (f, "%lu\n", i);
6627 }
6628 return ferror (f) || fclose (f) != 0;
6629
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest$ac_exeext
6635 if { (ac_try="$ac_link"
6636 case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639 esac
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_link") 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6645 { (case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_try") 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_sizeof_int=`cat conftest.val`
6655 else
6656 echo "$as_me: program exited with status $ac_status" >&5
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ( exit $ac_status )
6661 if test "$ac_cv_type_int" = yes; then
6662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6663 See \`config.log' for more details." >&5
6664 echo "$as_me: error: cannot compute sizeof (int)
6665 See \`config.log' for more details." >&2;}
6666 { (exit 77); exit 77; }; }
6667 else
6668 ac_cv_sizeof_int=0
6669 fi
6670 fi
6671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 rm -f conftest.val
6674 fi
6675 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6676 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6677
6678
6679
6680 cat >>confdefs.h <<_ACEOF
6681 #define SIZEOF_INT $ac_cv_sizeof_int
6682 _ACEOF
6683
6684
6685 { echo "$as_me:$LINENO: checking for long" >&5
6686 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6687 if test "${ac_cv_type_long+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 $ac_includes_default
6697 typedef long ac__type_new_;
6698 int
6699 main ()
6700 {
6701 if ((ac__type_new_ *) 0)
6702 return 0;
6703 if (sizeof (ac__type_new_))
6704 return 0;
6705 ;
6706 return 0;
6707 }
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (ac_try="$ac_compile"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_compile") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest.$ac_objext; then
6726 ac_cv_type_long=yes
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_cv_type_long=no
6732 fi
6733
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 fi
6736 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6737 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6738
6739 # The cast to long int works around a bug in the HP C Compiler
6740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6742 # This bug is HP SR number 8606223364.
6743 { echo "$as_me:$LINENO: checking size of long" >&5
6744 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6745 if test "${ac_cv_sizeof_long+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 if test "$cross_compiling" = yes; then
6749 # Depending upon the size, compute the lo and hi bounds.
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6757 typedef long ac__type_sizeof_;
6758 int
6759 main ()
6760 {
6761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6762 test_array [0] = 0
6763
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest.$ac_objext
6769 if { (ac_try="$ac_compile"
6770 case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773 esac
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_compile") 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } && {
6782 test -z "$ac_c_werror_flag" ||
6783 test ! -s conftest.err
6784 } && test -s conftest.$ac_objext; then
6785 ac_lo=0 ac_mid=0
6786 while :; do
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h. */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 $ac_includes_default
6794 typedef long ac__type_sizeof_;
6795 int
6796 main ()
6797 {
6798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6799 test_array [0] = 0
6800
6801 ;
6802 return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext
6806 if { (ac_try="$ac_compile"
6807 case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_compile") 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } && {
6819 test -z "$ac_c_werror_flag" ||
6820 test ! -s conftest.err
6821 } && test -s conftest.$ac_objext; then
6822 ac_hi=$ac_mid; break
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_lo=`expr $ac_mid + 1`
6828 if test $ac_lo -le $ac_mid; then
6829 ac_lo= ac_hi=
6830 break
6831 fi
6832 ac_mid=`expr 2 '*' $ac_mid + 1`
6833 fi
6834
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 done
6837 else
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 typedef long ac__type_sizeof_;
6849 int
6850 main ()
6851 {
6852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6853 test_array [0] = 0
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (ac_try="$ac_compile"
6861 case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864 esac
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.$ac_objext; then
6876 ac_hi=-1 ac_mid=-1
6877 while :; do
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 typedef long ac__type_sizeof_;
6886 int
6887 main ()
6888 {
6889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6890 test_array [0] = 0
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 ac_lo=$ac_mid; break
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_hi=`expr '(' $ac_mid ')' - 1`
6919 if test $ac_mid -le $ac_hi; then
6920 ac_lo= ac_hi=
6921 break
6922 fi
6923 ac_mid=`expr 2 '*' $ac_mid`
6924 fi
6925
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 done
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 ac_lo= ac_hi=
6933 fi
6934
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 fi
6937
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 # Binary search between lo and hi bounds.
6940 while test "x$ac_lo" != "x$ac_hi"; do
6941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6949 typedef long ac__type_sizeof_;
6950 int
6951 main ()
6952 {
6953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6954 test_array [0] = 0
6955
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (ac_try="$ac_compile"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
6977 ac_hi=$ac_mid
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 ac_lo=`expr '(' $ac_mid ')' + 1`
6983 fi
6984
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 done
6987 case $ac_lo in
6988 ?*) ac_cv_sizeof_long=$ac_lo;;
6989 '') if test "$ac_cv_type_long" = yes; then
6990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6991 See \`config.log' for more details." >&5
6992 echo "$as_me: error: cannot compute sizeof (long)
6993 See \`config.log' for more details." >&2;}
6994 { (exit 77); exit 77; }; }
6995 else
6996 ac_cv_sizeof_long=0
6997 fi ;;
6998 esac
6999 else
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 $ac_includes_default
7007 typedef long ac__type_sizeof_;
7008 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7009 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7010 #include <stdio.h>
7011 #include <stdlib.h>
7012 int
7013 main ()
7014 {
7015
7016 FILE *f = fopen ("conftest.val", "w");
7017 if (! f)
7018 return 1;
7019 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7020 {
7021 long int i = longval ();
7022 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7023 return 1;
7024 fprintf (f, "%ld\n", i);
7025 }
7026 else
7027 {
7028 unsigned long int i = ulongval ();
7029 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7030 return 1;
7031 fprintf (f, "%lu\n", i);
7032 }
7033 return ferror (f) || fclose (f) != 0;
7034
7035 ;
7036 return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest$ac_exeext
7040 if { (ac_try="$ac_link"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_link") 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7050 { (case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053 esac
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_try") 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7059 ac_cv_sizeof_long=`cat conftest.val`
7060 else
7061 echo "$as_me: program exited with status $ac_status" >&5
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 ( exit $ac_status )
7066 if test "$ac_cv_type_long" = yes; then
7067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7068 See \`config.log' for more details." >&5
7069 echo "$as_me: error: cannot compute sizeof (long)
7070 See \`config.log' for more details." >&2;}
7071 { (exit 77); exit 77; }; }
7072 else
7073 ac_cv_sizeof_long=0
7074 fi
7075 fi
7076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7077 fi
7078 rm -f conftest.val
7079 fi
7080 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7081 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7082
7083
7084
7085 cat >>confdefs.h <<_ACEOF
7086 #define SIZEOF_LONG $ac_cv_sizeof_long
7087 _ACEOF
7088
7089
7090 { echo "$as_me:$LINENO: checking for long long" >&5
7091 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7092 if test "${ac_cv_type_long_long+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7102 typedef long long ac__type_new_;
7103 int
7104 main ()
7105 {
7106 if ((ac__type_new_ *) 0)
7107 return 0;
7108 if (sizeof (ac__type_new_))
7109 return 0;
7110 ;
7111 return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_type_long_long=yes
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 ac_cv_type_long_long=no
7137 fi
7138
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 fi
7141 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7142 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7143
7144 # The cast to long int works around a bug in the HP C Compiler
7145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7147 # This bug is HP SR number 8606223364.
7148 { echo "$as_me:$LINENO: checking size of long long" >&5
7149 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7150 if test "${ac_cv_sizeof_long_long+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 if test "$cross_compiling" = yes; then
7154 # Depending upon the size, compute the lo and hi bounds.
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7162 typedef long long ac__type_sizeof_;
7163 int
7164 main ()
7165 {
7166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7167 test_array [0] = 0
7168
7169 ;
7170 return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7175 case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_lo=0 ac_mid=0
7191 while :; do
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 $ac_includes_default
7199 typedef long long ac__type_sizeof_;
7200 int
7201 main ()
7202 {
7203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7204 test_array [0] = 0
7205
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 ac_hi=$ac_mid; break
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 ac_lo=`expr $ac_mid + 1`
7233 if test $ac_lo -le $ac_mid; then
7234 ac_lo= ac_hi=
7235 break
7236 fi
7237 ac_mid=`expr 2 '*' $ac_mid + 1`
7238 fi
7239
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 done
7242 else
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7253 typedef long long ac__type_sizeof_;
7254 int
7255 main ()
7256 {
7257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7258 test_array [0] = 0
7259
7260 ;
7261 return 0;
7262 }
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7266 case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 (eval "$ac_compile") 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest.$ac_objext; then
7281 ac_hi=-1 ac_mid=-1
7282 while :; do
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 typedef long long ac__type_sizeof_;
7291 int
7292 main ()
7293 {
7294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7295 test_array [0] = 0
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7303 case "(($ac_try" in
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7306 esac
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_compile") 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.$ac_objext; then
7318 ac_lo=$ac_mid; break
7319 else
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323 ac_hi=`expr '(' $ac_mid ')' - 1`
7324 if test $ac_mid -le $ac_hi; then
7325 ac_lo= ac_hi=
7326 break
7327 fi
7328 ac_mid=`expr 2 '*' $ac_mid`
7329 fi
7330
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 done
7333 else
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337 ac_lo= ac_hi=
7338 fi
7339
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 fi
7342
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 # Binary search between lo and hi bounds.
7345 while test "x$ac_lo" != "x$ac_hi"; do
7346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7347 cat >conftest.$ac_ext <<_ACEOF
7348 /* confdefs.h. */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 $ac_includes_default
7354 typedef long long ac__type_sizeof_;
7355 int
7356 main ()
7357 {
7358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7359 test_array [0] = 0
7360
7361 ;
7362 return 0;
7363 }
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7367 case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370 esac
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 ac_hi=$ac_mid
7383 else
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 ac_lo=`expr '(' $ac_mid ')' + 1`
7388 fi
7389
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 done
7392 case $ac_lo in
7393 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7394 '') if test "$ac_cv_type_long_long" = yes; then
7395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7396 See \`config.log' for more details." >&5
7397 echo "$as_me: error: cannot compute sizeof (long long)
7398 See \`config.log' for more details." >&2;}
7399 { (exit 77); exit 77; }; }
7400 else
7401 ac_cv_sizeof_long_long=0
7402 fi ;;
7403 esac
7404 else
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 typedef long long ac__type_sizeof_;
7413 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7414 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7415 #include <stdio.h>
7416 #include <stdlib.h>
7417 int
7418 main ()
7419 {
7420
7421 FILE *f = fopen ("conftest.val", "w");
7422 if (! f)
7423 return 1;
7424 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7425 {
7426 long int i = longval ();
7427 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7428 return 1;
7429 fprintf (f, "%ld\n", i);
7430 }
7431 else
7432 {
7433 unsigned long int i = ulongval ();
7434 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7435 return 1;
7436 fprintf (f, "%lu\n", i);
7437 }
7438 return ferror (f) || fclose (f) != 0;
7439
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_link") 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455 { (case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458 esac
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_try") 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_sizeof_long_long=`cat conftest.val`
7465 else
7466 echo "$as_me: program exited with status $ac_status" >&5
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 ( exit $ac_status )
7471 if test "$ac_cv_type_long_long" = yes; then
7472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7473 See \`config.log' for more details." >&5
7474 echo "$as_me: error: cannot compute sizeof (long long)
7475 See \`config.log' for more details." >&2;}
7476 { (exit 77); exit 77; }; }
7477 else
7478 ac_cv_sizeof_long_long=0
7479 fi
7480 fi
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 rm -f conftest.val
7484 fi
7485 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7486 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7487
7488
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7492 _ACEOF
7493
7494
7495
7496
7497 { echo "$as_me:$LINENO: checking for addrinfo" >&5
7498 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7499 if test "${ac_cv_addrinfo+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508
7509 # include <netdb.h>
7510 int
7511 main ()
7512 {
7513 struct addrinfo a
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7520 case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523 esac
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_compile") 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest.$ac_objext; then
7535 ac_cv_addrinfo=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540 ac_cv_addrinfo=no
7541 fi
7542
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545
7546 { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7547 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7548 if test $ac_cv_addrinfo = yes; then
7549 cat >>confdefs.h <<\_ACEOF
7550 #define HAVE_ADDRINFO 1
7551 _ACEOF
7552
7553 else
7554 cat >>confdefs.h <<\_ACEOF
7555 #define NEED_ADDRINFO_H 1
7556 _ACEOF
7557
7558 fi
7559
7560 if test "$ac_cv_addrinfo" = no; then
7561 missing_includes=yes
7562 fi
7563
7564
7565 { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7566 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7567 if test "${ac_cv_maxserv+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 #include <netdb.h>
7577 #ifdef NI_MAXSERV
7578 yes
7579 #endif
7580 _ACEOF
7581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7582 $EGREP "yes" >/dev/null 2>&1; then
7583 ac_cv_maxserv=yes
7584 else
7585 ac_cv_maxserv=no
7586 fi
7587 rm -f -r conftest*
7588
7589 fi
7590
7591 { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7592 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7593 if test $ac_cv_maxserv != yes; then
7594 cat >>confdefs.h <<\_ACEOF
7595 #define NEED_ADDRINFO_H 1
7596 _ACEOF
7597
7598 fi
7599
7600 if test "$ac_cv_maxserv" = no; then
7601 missing_includes=yes
7602 fi
7603
7604
7605 { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7606 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7607 if test "${ac_cv_namereqd+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <netdb.h>
7617 #ifdef NI_NOFQDN
7618 yes
7619 #endif
7620 _ACEOF
7621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622 $EGREP "yes" >/dev/null 2>&1; then
7623 ac_cv_namereqd=yes
7624 else
7625 ac_cv_namereqd=no
7626 fi
7627 rm -f -r conftest*
7628
7629 fi
7630
7631 { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7632 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7633 if test $ac_cv_namereqd != yes; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define NEED_ADDRINFO_H 1
7636 _ACEOF
7637
7638 fi
7639
7640 if test "$ac_cv_namereqd" = no; then
7641 missing_includes=yes
7642 fi
7643
7644
7645 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7646 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7647 if test "${ac_cv_sa_storage+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656
7657 # include <sys/types.h>
7658 # include <sys/socket.h>
7659 int
7660 main ()
7661 {
7662 struct sockaddr_storage s
7663 ;
7664 return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7669 case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_compile") 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } && {
7681 test -z "$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7683 } && test -s conftest.$ac_objext; then
7684 ac_cv_sa_storage=yes
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689 ac_cv_sa_storage=no
7690 fi
7691
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694
7695 { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7696 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7697 if test $ac_cv_sa_storage = yes; then
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_SOCKADDR_STORAGE 1
7700 _ACEOF
7701
7702 fi
7703
7704 if test "$ac_cv_sa_storage" = no; then
7705 missing_includes=yes
7706 fi
7707
7708
7709 ac_cv_addrsz=yes
7710 { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7711 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7712 if test "${ac_cv_inaddrsz+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721
7722 # include <arpa/nameser.h>
7723 int
7724 main ()
7725 {
7726 int a = INADDRSZ
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext
7732 if { (ac_try="$ac_compile"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_cv_inaddrsz=yes
7749 else
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753 ac_cv_inaddrsz=no
7754 fi
7755
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758
7759 { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7760 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7761 if test $ac_cv_inaddrsz = yes; then
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_INADDRSZ 1
7764 _ACEOF
7765
7766 else
7767 ac_cv_addrsz=no
7768 fi
7769 { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7770 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7771 if test "${ac_cv_in6addrsz+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780
7781 # include <arpa/nameser.h>
7782 int
7783 main ()
7784 {
7785 int a = IN6ADDRSZ
7786 ;
7787 return 0;
7788 }
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7792 case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_cv_in6addrsz=yes
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812 ac_cv_in6addrsz=no
7813 fi
7814
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 fi
7817
7818 { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7819 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7820 if test $ac_cv_in6addrsz = yes; then
7821 cat >>confdefs.h <<\_ACEOF
7822 #define HAVE_IN6ADDRSZ 1
7823 _ACEOF
7824
7825 else
7826 ac_cv_addrsz=no
7827 fi
7828
7829 if test "$ac_cv_addrsz" = no; then
7830 missing_includes=yes
7831 fi
7832
7833
7834 { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7835 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7836 if test "${ac_cv_res_inet6+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845
7846 # include <sys/types.h>
7847 # include <netinet/in.h>
7848 # include <resolv.h>
7849 int
7850 main ()
7851 {
7852 int a = RES_USE_INET6
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7859 case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.$ac_objext; then
7874 ac_cv_res_inet6=yes
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 ac_cv_res_inet6=no
7880 fi
7881
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 fi
7884
7885 { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7886 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7887 if test $ac_cv_res_inet6 = yes; then
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_RES_USE_INET6 1
7890 _ACEOF
7891
7892 fi
7893
7894 if test "$ac_cv_res_inet6" = no; then
7895 missing_includes=yes
7896 fi
7897
7898
7899 { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7900 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7901 if test "${ac_cv_res_state_ext+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910
7911 # include <sys/types.h>
7912 # include <netinet/in.h>
7913 # include <netinet6/in6.h>
7914 # include <resolv.h>
7915 int
7916 main ()
7917 {
7918 struct __res_state_ext e
7919 ;
7920 return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext
7924 if { (ac_try="$ac_compile"
7925 case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
7940 ac_cv_res_state_ext=yes
7941 else
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 ac_cv_res_state_ext=no
7946 fi
7947
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 fi
7950
7951 { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7952 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7953 if test $ac_cv_res_state_ext = yes; then
7954 cat >>confdefs.h <<\_ACEOF
7955 #define HAVE_RES_STATE_EXT 1
7956 _ACEOF
7957
7958 fi
7959
7960 if test "$ac_cv_res_state_ext" = no; then
7961 missing_includes=yes
7962 fi
7963
7964
7965 { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7966 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7967 if test "${ac_cv_res_state+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 else
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976
7977 # include <sys/types.h>
7978 # include <netinet/in.h>
7979 # include <netinet6/in6.h>
7980 # include <resolv.h>
7981 int
7982 main ()
7983 {
7984 struct __res_state e; e.nsort = 0
7985 ;
7986 return 0;
7987 }
7988 _ACEOF
7989 rm -f conftest.$ac_objext
7990 if { (ac_try="$ac_compile"
7991 case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994 esac
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_compile") 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } && {
8003 test -z "$ac_c_werror_flag" ||
8004 test ! -s conftest.err
8005 } && test -s conftest.$ac_objext; then
8006 ac_cv_res_state=yes
8007 else
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011 ac_cv_res_state=no
8012 fi
8013
8014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 fi
8016
8017 { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
8018 echo "${ECHO_T}$ac_cv_res_state" >&6; }
8019 if test $ac_cv_res_state = yes; then
8020 cat >>confdefs.h <<\_ACEOF
8021 #define HAVE_NEW_RES_STATE 1
8022 _ACEOF
8023
8024 fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
8035 do
8036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8050 #define $ac_func innocuous_$ac_func
8051
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func (); below.
8054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8055 <limits.h> exists even on freestanding compilers. */
8056
8057 #ifdef __STDC__
8058 # include <limits.h>
8059 #else
8060 # include <assert.h>
8061 #endif
8062
8063 #undef $ac_func
8064
8065 /* Override any GCC internal prototype to avoid an error.
8066 Use char because int might match the return type of a GCC
8067 builtin and then its argument prototype would still apply. */
8068 #ifdef __cplusplus
8069 extern "C"
8070 #endif
8071 char $ac_func ();
8072 /* The GNU C library defines this for functions which it implements
8073 to always fail with ENOSYS. Some functions are actually named
8074 something starting with __ and the normal name is an alias. */
8075 #if defined __stub_$ac_func || defined __stub___$ac_func
8076 choke me
8077 #endif
8078
8079 int
8080 main ()
8081 {
8082 return $ac_func ();
8083 ;
8084 return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest$ac_exeext &&
8104 $as_test_x conftest$ac_exeext; then
8105 eval "$as_ac_var=yes"
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 eval "$as_ac_var=no"
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8114 conftest$ac_exeext conftest.$ac_ext
8115 fi
8116 ac_res=`eval echo '${'$as_ac_var'}'`
8117 { echo "$as_me:$LINENO: result: $ac_res" >&5
8118 echo "${ECHO_T}$ac_res" >&6; }
8119 if test `eval echo '${'$as_ac_var'}'` = yes; then
8120 cat >>confdefs.h <<_ACEOF
8121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8122 _ACEOF
8123
8124 else
8125 case " $LIBOBJS " in
8126 *" $ac_func.$ac_objext "* ) ;;
8127 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8128 ;;
8129 esac
8130
8131 fi
8132 done
8133
8134
8135
8136
8137
8138 for ac_func in fork vfork strftime
8139 do
8140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8154 #define $ac_func innocuous_$ac_func
8155
8156 /* System header to define __stub macros and hopefully few prototypes,
8157 which can conflict with char $ac_func (); below.
8158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8159 <limits.h> exists even on freestanding compilers. */
8160
8161 #ifdef __STDC__
8162 # include <limits.h>
8163 #else
8164 # include <assert.h>
8165 #endif
8166
8167 #undef $ac_func
8168
8169 /* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
8172 #ifdef __cplusplus
8173 extern "C"
8174 #endif
8175 char $ac_func ();
8176 /* The GNU C library defines this for functions which it implements
8177 to always fail with ENOSYS. Some functions are actually named
8178 something starting with __ and the normal name is an alias. */
8179 #if defined __stub_$ac_func || defined __stub___$ac_func
8180 choke me
8181 #endif
8182
8183 int
8184 main ()
8185 {
8186 return $ac_func ();
8187 ;
8188 return 0;
8189 }
8190 _ACEOF
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_link") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest$ac_exeext &&
8208 $as_test_x conftest$ac_exeext; then
8209 eval "$as_ac_var=yes"
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 eval "$as_ac_var=no"
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8218 conftest$ac_exeext conftest.$ac_ext
8219 fi
8220 ac_res=`eval echo '${'$as_ac_var'}'`
8221 { echo "$as_me:$LINENO: result: $ac_res" >&5
8222 echo "${ECHO_T}$ac_res" >&6; }
8223 if test `eval echo '${'$as_ac_var'}'` = yes; then
8224 cat >>confdefs.h <<_ACEOF
8225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8226 _ACEOF
8227
8228 fi
8229 done
8230
8231
8232
8233 for ac_func in setlinebuf alarm
8234 do
8235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241 cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h. */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8249 #define $ac_func innocuous_$ac_func
8250
8251 /* System header to define __stub macros and hopefully few prototypes,
8252 which can conflict with char $ac_func (); below.
8253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8254 <limits.h> exists even on freestanding compilers. */
8255
8256 #ifdef __STDC__
8257 # include <limits.h>
8258 #else
8259 # include <assert.h>
8260 #endif
8261
8262 #undef $ac_func
8263
8264 /* Override any GCC internal prototype to avoid an error.
8265 Use char because int might match the return type of a GCC
8266 builtin and then its argument prototype would still apply. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 char $ac_func ();
8271 /* The GNU C library defines this for functions which it implements
8272 to always fail with ENOSYS. Some functions are actually named
8273 something starting with __ and the normal name is an alias. */
8274 #if defined __stub_$ac_func || defined __stub___$ac_func
8275 choke me
8276 #endif
8277
8278 int
8279 main ()
8280 {
8281 return $ac_func ();
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 rm -f conftest.$ac_objext conftest$ac_exeext
8287 if { (ac_try="$ac_link"
8288 case "(($ac_try" in
8289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_link") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest$ac_exeext &&
8303 $as_test_x conftest$ac_exeext; then
8304 eval "$as_ac_var=yes"
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 eval "$as_ac_var=no"
8310 fi
8311
8312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8313 conftest$ac_exeext conftest.$ac_ext
8314 fi
8315 ac_res=`eval echo '${'$as_ac_var'}'`
8316 { echo "$as_me:$LINENO: result: $ac_res" >&5
8317 echo "${ECHO_T}$ac_res" >&6; }
8318 if test `eval echo '${'$as_ac_var'}'` = yes; then
8319 cat >>confdefs.h <<_ACEOF
8320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8321 _ACEOF
8322
8323 fi
8324 done
8325
8326
8327 needsnprintf=no
8328
8329
8330 for ac_func in vsnprintf snprintf
8331 do
8332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8346 #define $ac_func innocuous_$ac_func
8347
8348 /* System header to define __stub macros and hopefully few prototypes,
8349 which can conflict with char $ac_func (); below.
8350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8351 <limits.h> exists even on freestanding compilers. */
8352
8353 #ifdef __STDC__
8354 # include <limits.h>
8355 #else
8356 # include <assert.h>
8357 #endif
8358
8359 #undef $ac_func
8360
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char $ac_func ();
8368 /* The GNU C library defines this for functions which it implements
8369 to always fail with ENOSYS. Some functions are actually named
8370 something starting with __ and the normal name is an alias. */
8371 #if defined __stub_$ac_func || defined __stub___$ac_func
8372 choke me
8373 #endif
8374
8375 int
8376 main ()
8377 {
8378 return $ac_func ();
8379 ;
8380 return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8385 case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_link") 2>conftest.er1
8391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest$ac_exeext &&
8400 $as_test_x conftest$ac_exeext; then
8401 eval "$as_ac_var=yes"
8402 else
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 eval "$as_ac_var=no"
8407 fi
8408
8409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8410 conftest$ac_exeext conftest.$ac_ext
8411 fi
8412 ac_res=`eval echo '${'$as_ac_var'}'`
8413 { echo "$as_me:$LINENO: result: $ac_res" >&5
8414 echo "${ECHO_T}$ac_res" >&6; }
8415 if test `eval echo '${'$as_ac_var'}'` = yes; then
8416 cat >>confdefs.h <<_ACEOF
8417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8418 _ACEOF
8419
8420 else
8421 needsnprintf=yes
8422 fi
8423 done
8424
8425 if test $needsnprintf = yes; then
8426 case " $LIBOBJS " in
8427 *" snprintf.$ac_objext "* ) ;;
8428 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8429 ;;
8430 esac
8431
8432 fi
8433
8434
8435 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8437 if test "${ac_cv_type_signal+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 #include <sys/types.h>
8447 #include <signal.h>
8448
8449 int
8450 main ()
8451 {
8452 return *(signal (0, 0)) (0) == 1;
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 ac_cv_type_signal=int
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 ac_cv_type_signal=void
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8485 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8486
8487 cat >>confdefs.h <<_ACEOF
8488 #define RETSIGTYPE $ac_cv_type_signal
8489 _ACEOF
8490
8491
8492 if test "$ac_cv_type_signal" = void ; then
8493
8494 cat >>confdefs.h <<\_ACEOF
8495 #define RETSIGVAL
8496 _ACEOF
8497
8498 else
8499
8500 cat >>confdefs.h <<\_ACEOF
8501 #define RETSIGVAL (0)
8502 _ACEOF
8503
8504 fi
8505 case "$host_os" in
8506
8507 irix*)
8508
8509 cat >>confdefs.h <<\_ACEOF
8510 #define _BSD_SIGNALS 1
8511 _ACEOF
8512
8513 ;;
8514
8515 *)
8516
8517 for ac_func in sigaction
8518 do
8519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8533 #define $ac_func innocuous_$ac_func
8534
8535 /* System header to define __stub macros and hopefully few prototypes,
8536 which can conflict with char $ac_func (); below.
8537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8538 <limits.h> exists even on freestanding compilers. */
8539
8540 #ifdef __STDC__
8541 # include <limits.h>
8542 #else
8543 # include <assert.h>
8544 #endif
8545
8546 #undef $ac_func
8547
8548 /* Override any GCC internal prototype to avoid an error.
8549 Use char because int might match the return type of a GCC
8550 builtin and then its argument prototype would still apply. */
8551 #ifdef __cplusplus
8552 extern "C"
8553 #endif
8554 char $ac_func ();
8555 /* The GNU C library defines this for functions which it implements
8556 to always fail with ENOSYS. Some functions are actually named
8557 something starting with __ and the normal name is an alias. */
8558 #if defined __stub_$ac_func || defined __stub___$ac_func
8559 choke me
8560 #endif
8561
8562 int
8563 main ()
8564 {
8565 return $ac_func ();
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (ac_try="$ac_link"
8572 case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575 esac
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_link") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest$ac_exeext &&
8587 $as_test_x conftest$ac_exeext; then
8588 eval "$as_ac_var=yes"
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 eval "$as_ac_var=no"
8594 fi
8595
8596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8597 conftest$ac_exeext conftest.$ac_ext
8598 fi
8599 ac_res=`eval echo '${'$as_ac_var'}'`
8600 { echo "$as_me:$LINENO: result: $ac_res" >&5
8601 echo "${ECHO_T}$ac_res" >&6; }
8602 if test `eval echo '${'$as_ac_var'}'` = yes; then
8603 cat >>confdefs.h <<_ACEOF
8604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8605 _ACEOF
8606
8607 fi
8608 done
8609
8610 if test $ac_cv_func_sigaction = no ; then
8611
8612 for ac_func in sigset
8613 do
8614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8628 #define $ac_func innocuous_$ac_func
8629
8630 /* System header to define __stub macros and hopefully few prototypes,
8631 which can conflict with char $ac_func (); below.
8632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8633 <limits.h> exists even on freestanding compilers. */
8634
8635 #ifdef __STDC__
8636 # include <limits.h>
8637 #else
8638 # include <assert.h>
8639 #endif
8640
8641 #undef $ac_func
8642
8643 /* Override any GCC internal prototype to avoid an error.
8644 Use char because int might match the return type of a GCC
8645 builtin and then its argument prototype would still apply. */
8646 #ifdef __cplusplus
8647 extern "C"
8648 #endif
8649 char $ac_func ();
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined __stub_$ac_func || defined __stub___$ac_func
8654 choke me
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660 return $ac_func ();
8661 ;
8662 return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (ac_try="$ac_link"
8667 case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670 esac
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_link") 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } && {
8679 test -z "$ac_c_werror_flag" ||
8680 test ! -s conftest.err
8681 } && test -s conftest$ac_exeext &&
8682 $as_test_x conftest$ac_exeext; then
8683 eval "$as_ac_var=yes"
8684 else
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 eval "$as_ac_var=no"
8689 fi
8690
8691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8692 conftest$ac_exeext conftest.$ac_ext
8693 fi
8694 ac_res=`eval echo '${'$as_ac_var'}'`
8695 { echo "$as_me:$LINENO: result: $ac_res" >&5
8696 echo "${ECHO_T}$ac_res" >&6; }
8697 if test `eval echo '${'$as_ac_var'}'` = yes; then
8698 cat >>confdefs.h <<_ACEOF
8699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8700 _ACEOF
8701
8702 fi
8703 done
8704
8705 fi
8706 ;;
8707 esac
8708
8709 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8710 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8711 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714 ac_func_search_save_LIBS=$LIBS
8715 cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h. */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721
8722 /* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
8725 #ifdef __cplusplus
8726 extern "C"
8727 #endif
8728 char dnet_htoa ();
8729 int
8730 main ()
8731 {
8732 return dnet_htoa ();
8733 ;
8734 return 0;
8735 }
8736 _ACEOF
8737 for ac_lib in '' dnet; do
8738 if test -z "$ac_lib"; then
8739 ac_res="none required"
8740 else
8741 ac_res=-l$ac_lib
8742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8743 fi
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8746 case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_link") 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } && {
8758 test -z "$ac_c_werror_flag" ||
8759 test ! -s conftest.err
8760 } && test -s conftest$ac_exeext &&
8761 $as_test_x conftest$ac_exeext; then
8762 ac_cv_search_dnet_htoa=$ac_res
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767
8768 fi
8769
8770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8771 conftest$ac_exeext
8772 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8773 break
8774 fi
8775 done
8776 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8777 :
8778 else
8779 ac_cv_search_dnet_htoa=no
8780 fi
8781 rm conftest.$ac_ext
8782 LIBS=$ac_func_search_save_LIBS
8783 fi
8784 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8785 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8786 ac_res=$ac_cv_search_dnet_htoa
8787 if test "$ac_res" != no; then
8788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8789 cat >>confdefs.h <<\_ACEOF
8790 #define HAVE_DNET_HTOA 1
8791 _ACEOF
8792
8793 fi
8794
8795
8796
8797 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8798 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8799 if test "${ac_cv_lib_rpc_main+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 ac_check_lib_save_LIBS=$LIBS
8803 LIBS="-lrpc $LIBS"
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h. */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810
8811
8812 int
8813 main ()
8814 {
8815 return main ();
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (ac_try="$ac_link"
8822 case "(($ac_try" in
8823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8825 esac
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_link") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest$ac_exeext &&
8837 $as_test_x conftest$ac_exeext; then
8838 ac_cv_lib_rpc_main=yes
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_cv_lib_rpc_main=no
8844 fi
8845
8846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8849 fi
8850 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8851 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8852 if test $ac_cv_lib_rpc_main = yes; then
8853 cat >>confdefs.h <<_ACEOF
8854 #define HAVE_LIBRPC 1
8855 _ACEOF
8856
8857 LIBS="-lrpc $LIBS"
8858
8859 fi
8860
8861 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8862 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8863 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 ac_func_search_save_LIBS=$LIBS
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h. */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8877 #ifdef __cplusplus
8878 extern "C"
8879 #endif
8880 char getrpcbynumber ();
8881 int
8882 main ()
8883 {
8884 return getrpcbynumber ();
8885 ;
8886 return 0;
8887 }
8888 _ACEOF
8889 for ac_lib in '' nsl; do
8890 if test -z "$ac_lib"; then
8891 ac_res="none required"
8892 else
8893 ac_res=-l$ac_lib
8894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8895 fi
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (ac_try="$ac_link"
8898 case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901 esac
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_link") 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_c_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest$ac_exeext &&
8913 $as_test_x conftest$ac_exeext; then
8914 ac_cv_search_getrpcbynumber=$ac_res
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919
8920 fi
8921
8922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8923 conftest$ac_exeext
8924 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8925 break
8926 fi
8927 done
8928 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8929 :
8930 else
8931 ac_cv_search_getrpcbynumber=no
8932 fi
8933 rm conftest.$ac_ext
8934 LIBS=$ac_func_search_save_LIBS
8935 fi
8936 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8937 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8938 ac_res=$ac_cv_search_getrpcbynumber
8939 if test "$ac_res" != no; then
8940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_GETRPCBYNUMBER 1
8943 _ACEOF
8944
8945 fi
8946
8947
8948
8949
8950 # Most operating systems have gethostbyname() in the default searched
8951 # libraries (i.e. libc):
8952 # Some OSes (eg. Solaris) place it in libnsl
8953 # Some strange OSes (SINIX) have it in libsocket:
8954 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8955 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8956 if test "${ac_cv_search_gethostbyname+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 ac_func_search_save_LIBS=$LIBS
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966
8967 /* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 char gethostbyname ();
8974 int
8975 main ()
8976 {
8977 return gethostbyname ();
8978 ;
8979 return 0;
8980 }
8981 _ACEOF
8982 for ac_lib in '' nsl socket resolv; do
8983 if test -z "$ac_lib"; then
8984 ac_res="none required"
8985 else
8986 ac_res=-l$ac_lib
8987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8988 fi
8989 rm -f conftest.$ac_objext conftest$ac_exeext
8990 if { (ac_try="$ac_link"
8991 case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994 esac
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_link") 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } && {
9003 test -z "$ac_c_werror_flag" ||
9004 test ! -s conftest.err
9005 } && test -s conftest$ac_exeext &&
9006 $as_test_x conftest$ac_exeext; then
9007 ac_cv_search_gethostbyname=$ac_res
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012
9013 fi
9014
9015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9016 conftest$ac_exeext
9017 if test "${ac_cv_search_gethostbyname+set}" = set; then
9018 break
9019 fi
9020 done
9021 if test "${ac_cv_search_gethostbyname+set}" = set; then
9022 :
9023 else
9024 ac_cv_search_gethostbyname=no
9025 fi
9026 rm conftest.$ac_ext
9027 LIBS=$ac_func_search_save_LIBS
9028 fi
9029 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9030 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9031 ac_res=$ac_cv_search_gethostbyname
9032 if test "$ac_res" != no; then
9033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9034
9035 fi
9036
9037 # Unfortunately libsocket sometimes depends on libnsl and
9038 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
9039 if test "$ac_cv_search_gethostbyname" = "no"
9040 then
9041 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
9042 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
9043 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 ac_check_lib_save_LIBS=$LIBS
9047 LIBS="-lsocket -lnsl $LIBS"
9048 cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h. */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054
9055 /* Override any GCC internal prototype to avoid an error.
9056 Use char because int might match the return type of a GCC
9057 builtin and then its argument prototype would still apply. */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 char gethostbyname ();
9062 int
9063 main ()
9064 {
9065 return gethostbyname ();
9066 ;
9067 return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9072 case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_link") 2>conftest.er1
9078 ac_status=$?
9079 grep -v '^ *+' conftest.er1 >conftest.err
9080 rm -f conftest.er1
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } && {
9084 test -z "$ac_c_werror_flag" ||
9085 test ! -s conftest.err
9086 } && test -s conftest$ac_exeext &&
9087 $as_test_x conftest$ac_exeext; then
9088 ac_cv_lib_socket_gethostbyname=yes
9089 else
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093 ac_cv_lib_socket_gethostbyname=no
9094 fi
9095
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097 conftest$ac_exeext conftest.$ac_ext
9098 LIBS=$ac_check_lib_save_LIBS
9099 fi
9100 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
9101 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
9102 if test $ac_cv_lib_socket_gethostbyname = yes; then
9103 LIBS="-lsocket -lnsl $LIBS"
9104 fi
9105
9106 fi
9107 { echo "$as_me:$LINENO: checking for library containing socket" >&5
9108 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
9109 if test "${ac_cv_search_socket+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 ac_func_search_save_LIBS=$LIBS
9113 cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h. */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9119
9120 /* Override any GCC internal prototype to avoid an error.
9121 Use char because int might match the return type of a GCC
9122 builtin and then its argument prototype would still apply. */
9123 #ifdef __cplusplus
9124 extern "C"
9125 #endif
9126 char socket ();
9127 int
9128 main ()
9129 {
9130 return socket ();
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 for ac_lib in '' socket; do
9136 if test -z "$ac_lib"; then
9137 ac_res="none required"
9138 else
9139 ac_res=-l$ac_lib
9140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9141 fi
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (ac_try="$ac_link"
9144 case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_link") 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } && {
9156 test -z "$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9158 } && test -s conftest$ac_exeext &&
9159 $as_test_x conftest$ac_exeext; then
9160 ac_cv_search_socket=$ac_res
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9164
9165
9166 fi
9167
9168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9169 conftest$ac_exeext
9170 if test "${ac_cv_search_socket+set}" = set; then
9171 break
9172 fi
9173 done
9174 if test "${ac_cv_search_socket+set}" = set; then
9175 :
9176 else
9177 ac_cv_search_socket=no
9178 fi
9179 rm conftest.$ac_ext
9180 LIBS=$ac_func_search_save_LIBS
9181 fi
9182 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9183 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9184 ac_res=$ac_cv_search_socket
9185 if test "$ac_res" != no; then
9186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9187
9188 else
9189 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9190 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9191 if test "${ac_cv_lib_socket_socket+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lsocket -lnsl $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char socket ();
9210 int
9211 main ()
9212 {
9213 return socket ();
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_link") 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest$ac_exeext &&
9235 $as_test_x conftest$ac_exeext; then
9236 ac_cv_lib_socket_socket=yes
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_cv_lib_socket_socket=no
9242 fi
9243
9244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9245 conftest$ac_exeext conftest.$ac_ext
9246 LIBS=$ac_check_lib_save_LIBS
9247 fi
9248 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9249 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9250 if test $ac_cv_lib_socket_socket = yes; then
9251 LIBS="-lsocket -lnsl $LIBS"
9252 fi
9253
9254 fi
9255
9256 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9257 { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9258 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9259 if test "${ac_cv_search_putmsg+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262 ac_func_search_save_LIBS=$LIBS
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269
9270 /* Override any GCC internal prototype to avoid an error.
9271 Use char because int might match the return type of a GCC
9272 builtin and then its argument prototype would still apply. */
9273 #ifdef __cplusplus
9274 extern "C"
9275 #endif
9276 char putmsg ();
9277 int
9278 main ()
9279 {
9280 return putmsg ();
9281 ;
9282 return 0;
9283 }
9284 _ACEOF
9285 for ac_lib in '' str; do
9286 if test -z "$ac_lib"; then
9287 ac_res="none required"
9288 else
9289 ac_res=-l$ac_lib
9290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9291 fi
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (ac_try="$ac_link"
9294 case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_link") 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_c_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest$ac_exeext &&
9309 $as_test_x conftest$ac_exeext; then
9310 ac_cv_search_putmsg=$ac_res
9311 else
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315
9316 fi
9317
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319 conftest$ac_exeext
9320 if test "${ac_cv_search_putmsg+set}" = set; then
9321 break
9322 fi
9323 done
9324 if test "${ac_cv_search_putmsg+set}" = set; then
9325 :
9326 else
9327 ac_cv_search_putmsg=no
9328 fi
9329 rm conftest.$ac_ext
9330 LIBS=$ac_func_search_save_LIBS
9331 fi
9332 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9333 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9334 ac_res=$ac_cv_search_putmsg
9335 if test "$ac_res" != no; then
9336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9337
9338 fi
9339
9340
9341
9342 LBL_LIBS="$LIBS"
9343 pfopen=/usr/examples/packetfilter/pfopen.c
9344 if test -f $pfopen ; then
9345
9346 for ac_func in pfopen
9347 do
9348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9362 #define $ac_func innocuous_$ac_func
9363
9364 /* System header to define __stub macros and hopefully few prototypes,
9365 which can conflict with char $ac_func (); below.
9366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9367 <limits.h> exists even on freestanding compilers. */
9368
9369 #ifdef __STDC__
9370 # include <limits.h>
9371 #else
9372 # include <assert.h>
9373 #endif
9374
9375 #undef $ac_func
9376
9377 /* Override any GCC internal prototype to avoid an error.
9378 Use char because int might match the return type of a GCC
9379 builtin and then its argument prototype would still apply. */
9380 #ifdef __cplusplus
9381 extern "C"
9382 #endif
9383 char $ac_func ();
9384 /* The GNU C library defines this for functions which it implements
9385 to always fail with ENOSYS. Some functions are actually named
9386 something starting with __ and the normal name is an alias. */
9387 #if defined __stub_$ac_func || defined __stub___$ac_func
9388 choke me
9389 #endif
9390
9391 int
9392 main ()
9393 {
9394 return $ac_func ();
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (ac_try="$ac_link"
9401 case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_link") 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest$ac_exeext &&
9416 $as_test_x conftest$ac_exeext; then
9417 eval "$as_ac_var=yes"
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422 eval "$as_ac_var=no"
9423 fi
9424
9425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9426 conftest$ac_exeext conftest.$ac_ext
9427 fi
9428 ac_res=`eval echo '${'$as_ac_var'}'`
9429 { echo "$as_me:$LINENO: result: $ac_res" >&5
9430 echo "${ECHO_T}$ac_res" >&6; }
9431 if test `eval echo '${'$as_ac_var'}'` = yes; then
9432 cat >>confdefs.h <<_ACEOF
9433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9434 _ACEOF
9435
9436 fi
9437 done
9438
9439 if test $ac_cv_func_pfopen = "no" ; then
9440 { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9441 echo "${ECHO_T}Using $pfopen" >&6; }
9442 LIBS="$LIBS $pfopen"
9443 fi
9444 fi
9445 { echo "$as_me:$LINENO: checking for local pcap library" >&5
9446 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9447 libpcap=FAIL
9448 lastdir=FAIL
9449 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9450 egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
9451 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9452 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
9453 sed -e 's/-PRE-GIT$//' `
9454 if test $lastdir = $basedir ; then
9455 continue;
9456 fi
9457 lastdir=$dir
9458 if test -r $dir/libpcap.a ; then
9459 libpcap=$dir/libpcap.a
9460 d=$dir
9461 fi
9462 done
9463 if test $libpcap = FAIL ; then
9464 { echo "$as_me:$LINENO: result: not found" >&5
9465 echo "${ECHO_T}not found" >&6; }
9466
9467 #
9468 # Look for pcap-config.
9469 #
9470 if test -n "$ac_tool_prefix"; then
9471 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
9472 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
9473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9475 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 case $PCAP_CONFIG in
9479 [\\/]* | ?:[\\/]*)
9480 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9481 ;;
9482 *)
9483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 for as_dir in $PATH
9485 do
9486 IFS=$as_save_IFS
9487 test -z "$as_dir" && as_dir=.
9488 for ac_exec_ext in '' $ac_executable_extensions; do
9489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9490 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 break 2
9493 fi
9494 done
9495 done
9496 IFS=$as_save_IFS
9497
9498 ;;
9499 esac
9500 fi
9501 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9502 if test -n "$PCAP_CONFIG"; then
9503 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9504 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9505 else
9506 { echo "$as_me:$LINENO: result: no" >&5
9507 echo "${ECHO_T}no" >&6; }
9508 fi
9509
9510
9511 fi
9512 if test -z "$ac_cv_path_PCAP_CONFIG"; then
9513 ac_pt_PCAP_CONFIG=$PCAP_CONFIG
9514 # Extract the first word of "pcap-config", so it can be a program name with args.
9515 set dummy pcap-config; ac_word=$2
9516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9518 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521 case $ac_pt_PCAP_CONFIG in
9522 [\\/]* | ?:[\\/]*)
9523 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
9524 ;;
9525 *)
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527 for as_dir in $PATH
9528 do
9529 IFS=$as_save_IFS
9530 test -z "$as_dir" && as_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9533 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9535 break 2
9536 fi
9537 done
9538 done
9539 IFS=$as_save_IFS
9540
9541 ;;
9542 esac
9543 fi
9544 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
9545 if test -n "$ac_pt_PCAP_CONFIG"; then
9546 { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
9547 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
9548 else
9549 { echo "$as_me:$LINENO: result: no" >&5
9550 echo "${ECHO_T}no" >&6; }
9551 fi
9552
9553 if test "x$ac_pt_PCAP_CONFIG" = x; then
9554 PCAP_CONFIG=""
9555 else
9556 case $cross_compiling:$ac_tool_warned in
9557 yes:)
9558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9559 whose name does not start with the host triplet. If you think this
9560 configuration is useful to you, please write to autoconf@gnu.org." >&5
9561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9562 whose name does not start with the host triplet. If you think this
9563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9564 ac_tool_warned=yes ;;
9565 esac
9566 PCAP_CONFIG=$ac_pt_PCAP_CONFIG
9567 fi
9568 else
9569 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
9570 fi
9571
9572 if test -n "$PCAP_CONFIG" ; then
9573 #
9574 # Found - use it to get the include flags for
9575 # libpcap and the flags to link with libpcap.
9576 #
9577 V_INCLS="`\"$PCAP_CONFIG\" --cflags` $V_INCLS"
9578 libpcap="`\"$PCAP_CONFIG\" --libs`"
9579 else
9580 #
9581 # Not found; look for pcap.
9582 #
9583 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9584 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9585 if test "${ac_cv_lib_pcap_main+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588 ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lpcap $LIBS"
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h. */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9596
9597
9598 int
9599 main ()
9600 {
9601 return main ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_lib_pcap_main=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_lib_pcap_main=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9637 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9638 if test $ac_cv_lib_pcap_main = yes; then
9639 libpcap="-lpcap"
9640 fi
9641
9642 if test $libpcap = FAIL ; then
9643 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9644 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9645 { (exit 1); exit 1; }; }
9646 fi
9647 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9648 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9649 if test \( ! -r /usr/local/include/pcap.h \) -a \
9650 \( ! -r /usr/include/pcap.h \); then
9651 if test -r /usr/local/include/pcap/pcap.h; then
9652 d="/usr/local/include/pcap"
9653 elif test -r /usr/include/pcap/pcap.h; then
9654 d="/usr/include/pcap"
9655 fi
9656 fi
9657 if test -z "$d" ; then
9658 { echo "$as_me:$LINENO: result: not found" >&5
9659 echo "${ECHO_T}not found" >&6; }
9660 else
9661 V_INCLS="-I$d $V_INCLS"
9662 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9663 echo "${ECHO_T}found -- -I$d added" >&6; }
9664 fi
9665 fi
9666 else
9667 V_PCAPDEP=$libpcap
9668 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9669 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9670 if test -r $d/pcap.h; then
9671 V_INCLS="-I$d $V_INCLS"
9672 elif test -r $places/pcap.h; then
9673 V_INCLS="-I$places $V_INCLS"
9674 else
9675 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9676 echo "$as_me: error: cannot find pcap.h" >&2;}
9677 { (exit see INSTALL); exit see INSTALL; }; }
9678 fi
9679 { echo "$as_me:$LINENO: result: $libpcap" >&5
9680 echo "${ECHO_T}$libpcap" >&6; }
9681 # Extract the first word of "pcap-config", so it can be a program name with args.
9682 set dummy pcap-config; ac_word=$2
9683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9685 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 case $PCAP_CONFIG in
9689 [\\/]* | ?:[\\/]*)
9690 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
9691 ;;
9692 *)
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694 for as_dir in $d
9695 do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9700 ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704 done
9705 done
9706 IFS=$as_save_IFS
9707
9708 ;;
9709 esac
9710 fi
9711 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
9712 if test -n "$PCAP_CONFIG"; then
9713 { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
9714 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
9715 else
9716 { echo "$as_me:$LINENO: result: no" >&5
9717 echo "${ECHO_T}no" >&6; }
9718 fi
9719
9720
9721 if test -n "$PCAP_CONFIG"; then
9722 #
9723 # The libpcap directory has a pcap-config script.
9724 # Use it to get any additioal libraries needed
9725 # to link with the libpcap archive library in
9726 # that directory
9727 #
9728 libpcap="$libpcap `\"$PCAP_CONFIG\" --additional-libs --static`"
9729 fi
9730 fi
9731 LIBS="$libpcap $LIBS"
9732 if ! test -n "$PCAP_CONFIG" ; then
9733 #
9734 # We don't have pcap-config; find out any additional link flags
9735 # we need. (If we have pcap-config, we assume it tells us what
9736 # we need.)
9737 #
9738 case "$host_os" in
9739
9740 aix*)
9741 #
9742 # If libpcap is DLPI-based, we have to use /lib/pse.exp if
9743 # present, as we use the STREAMS routines.
9744 #
9745 # (XXX - true only if we're linking with a static libpcap?)
9746 #
9747 pseexe="/lib/pse.exp"
9748 { echo "$as_me:$LINENO: checking for $pseexe" >&5
9749 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9750 if test -f $pseexe ; then
9751 { echo "$as_me:$LINENO: result: yes" >&5
9752 echo "${ECHO_T}yes" >&6; }
9753 LIBS="$LIBS -I:$pseexe"
9754 fi
9755
9756 #
9757 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
9758 # we use them to load the BPF module.
9759 #
9760 # (XXX - true only if we're linking with a static libpcap?)
9761 #
9762 LIBS="$LIBS -lodm -lcfg"
9763 ;;
9764 esac
9765 fi
9766
9767 { echo "$as_me:$LINENO: checking for pcap_loop" >&5
9768 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
9769 if test "${ac_cv_func_pcap_loop+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
9779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9780 #define pcap_loop innocuous_pcap_loop
9781
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char pcap_loop (); below.
9784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785 <limits.h> exists even on freestanding compilers. */
9786
9787 #ifdef __STDC__
9788 # include <limits.h>
9789 #else
9790 # include <assert.h>
9791 #endif
9792
9793 #undef pcap_loop
9794
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char pcap_loop ();
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined __stub_pcap_loop || defined __stub___pcap_loop
9806 choke me
9807 #endif
9808
9809 int
9810 main ()
9811 {
9812 return pcap_loop ();
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext &&
9834 $as_test_x conftest$ac_exeext; then
9835 ac_cv_func_pcap_loop=yes
9836 else
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9839
9840 ac_cv_func_pcap_loop=no
9841 fi
9842
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9845 fi
9846 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
9847 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
9848 if test $ac_cv_func_pcap_loop = yes; then
9849 :
9850 else
9851
9852 { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@tcpdump.org, and include the
9853 config.log file in your report" >&5
9854 echo "$as_me: error: Report this to tcpdump-workers@tcpdump.org, and include the
9855 config.log file in your report" >&2;}
9856 { (exit 1); exit 1; }; }
9857
9858 fi
9859
9860
9861 { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9862 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9863 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9874 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9875
9876 /* System header to define __stub macros and hopefully few prototypes,
9877 which can conflict with char pcap_list_datalinks (); below.
9878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879 <limits.h> exists even on freestanding compilers. */
9880
9881 #ifdef __STDC__
9882 # include <limits.h>
9883 #else
9884 # include <assert.h>
9885 #endif
9886
9887 #undef pcap_list_datalinks
9888
9889 /* Override any GCC internal prototype to avoid an error.
9890 Use char because int might match the return type of a GCC
9891 builtin and then its argument prototype would still apply. */
9892 #ifdef __cplusplus
9893 extern "C"
9894 #endif
9895 char pcap_list_datalinks ();
9896 /* The GNU C library defines this for functions which it implements
9897 to always fail with ENOSYS. Some functions are actually named
9898 something starting with __ and the normal name is an alias. */
9899 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9900 choke me
9901 #endif
9902
9903 int
9904 main ()
9905 {
9906 return pcap_list_datalinks ();
9907 ;
9908 return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (ac_try="$ac_link"
9913 case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_link") 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } && {
9925 test -z "$ac_c_werror_flag" ||
9926 test ! -s conftest.err
9927 } && test -s conftest$ac_exeext &&
9928 $as_test_x conftest$ac_exeext; then
9929 ac_cv_func_pcap_list_datalinks=yes
9930 else
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934 ac_cv_func_pcap_list_datalinks=no
9935 fi
9936
9937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9938 conftest$ac_exeext conftest.$ac_ext
9939 fi
9940 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9941 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9942 if test $ac_cv_func_pcap_list_datalinks = yes; then
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_PCAP_LIST_DATALINKS 1
9945 _ACEOF
9946
9947 else
9948
9949 case " $LIBOBJS " in
9950 *" datalinks.$ac_objext "* ) ;;
9951 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9952 ;;
9953 esac
9954
9955
9956 fi
9957
9958 { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9959 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9960 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9971 #define pcap_set_datalink innocuous_pcap_set_datalink
9972
9973 /* System header to define __stub macros and hopefully few prototypes,
9974 which can conflict with char pcap_set_datalink (); below.
9975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9976 <limits.h> exists even on freestanding compilers. */
9977
9978 #ifdef __STDC__
9979 # include <limits.h>
9980 #else
9981 # include <assert.h>
9982 #endif
9983
9984 #undef pcap_set_datalink
9985
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char pcap_set_datalink ();
9993 /* The GNU C library defines this for functions which it implements
9994 to always fail with ENOSYS. Some functions are actually named
9995 something starting with __ and the normal name is an alias. */
9996 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9997 choke me
9998 #endif
9999
10000 int
10001 main ()
10002 {
10003 return pcap_set_datalink ();
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013 esac
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_link") 2>conftest.er1
10016 ac_status=$?
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext &&
10025 $as_test_x conftest$ac_exeext; then
10026 ac_cv_func_pcap_set_datalink=yes
10027 else
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031 ac_cv_func_pcap_set_datalink=no
10032 fi
10033
10034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10035 conftest$ac_exeext conftest.$ac_ext
10036 fi
10037 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
10038 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
10039 if test $ac_cv_func_pcap_set_datalink = yes; then
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_PCAP_SET_DATALINK 1
10042 _ACEOF
10043
10044 fi
10045
10046 { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
10047 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
10048 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
10060
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char pcap_datalink_name_to_val (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10065
10066 #ifdef __STDC__
10067 # include <limits.h>
10068 #else
10069 # include <assert.h>
10070 #endif
10071
10072 #undef pcap_datalink_name_to_val
10073
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char pcap_datalink_name_to_val ();
10081 /* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
10084 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
10085 choke me
10086 #endif
10087
10088 int
10089 main ()
10090 {
10091 return pcap_datalink_name_to_val ();
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10114 ac_cv_func_pcap_datalink_name_to_val=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_cv_func_pcap_datalink_name_to_val=no
10120 fi
10121
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124 fi
10125 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
10126 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
10127 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
10128
10129 cat >>confdefs.h <<\_ACEOF
10130 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
10131 _ACEOF
10132
10133 { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
10134 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
10135 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 else
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
10145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10146 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
10147
10148 /* System header to define __stub macros and hopefully few prototypes,
10149 which can conflict with char pcap_datalink_val_to_description (); below.
10150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10151 <limits.h> exists even on freestanding compilers. */
10152
10153 #ifdef __STDC__
10154 # include <limits.h>
10155 #else
10156 # include <assert.h>
10157 #endif
10158
10159 #undef pcap_datalink_val_to_description
10160
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 char pcap_datalink_val_to_description ();
10168 /* The GNU C library defines this for functions which it implements
10169 to always fail with ENOSYS. Some functions are actually named
10170 something starting with __ and the normal name is an alias. */
10171 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
10172 choke me
10173 #endif
10174
10175 int
10176 main ()
10177 {
10178 return pcap_datalink_val_to_description ();
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_link") 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest$ac_exeext &&
10200 $as_test_x conftest$ac_exeext; then
10201 ac_cv_func_pcap_datalink_val_to_description=yes
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_cv_func_pcap_datalink_val_to_description=no
10207 fi
10208
10209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10210 conftest$ac_exeext conftest.$ac_ext
10211 fi
10212 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
10213 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
10214 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
10217 _ACEOF
10218
10219 else
10220
10221 case " $LIBOBJS " in
10222 *" dlnames.$ac_objext "* ) ;;
10223 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10224 ;;
10225 esac
10226
10227
10228 fi
10229
10230
10231 else
10232
10233 case " $LIBOBJS " in
10234 *" dlnames.$ac_objext "* ) ;;
10235 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
10236 ;;
10237 esac
10238
10239
10240 fi
10241
10242
10243
10244 for ac_func in pcap_breakloop
10245 do
10246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10260 #define $ac_func innocuous_$ac_func
10261
10262 /* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char $ac_func (); below.
10264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10265 <limits.h> exists even on freestanding compilers. */
10266
10267 #ifdef __STDC__
10268 # include <limits.h>
10269 #else
10270 # include <assert.h>
10271 #endif
10272
10273 #undef $ac_func
10274
10275 /* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 char $ac_func ();
10282 /* The GNU C library defines this for functions which it implements
10283 to always fail with ENOSYS. Some functions are actually named
10284 something starting with __ and the normal name is an alias. */
10285 #if defined __stub_$ac_func || defined __stub___$ac_func
10286 choke me
10287 #endif
10288
10289 int
10290 main ()
10291 {
10292 return $ac_func ();
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest$ac_exeext &&
10314 $as_test_x conftest$ac_exeext; then
10315 eval "$as_ac_var=yes"
10316 else
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 eval "$as_ac_var=no"
10321 fi
10322
10323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10324 conftest$ac_exeext conftest.$ac_ext
10325 fi
10326 ac_res=`eval echo '${'$as_ac_var'}'`
10327 { echo "$as_me:$LINENO: result: $ac_res" >&5
10328 echo "${ECHO_T}$ac_res" >&6; }
10329 if test `eval echo '${'$as_ac_var'}'` = yes; then
10330 cat >>confdefs.h <<_ACEOF
10331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10332 _ACEOF
10333
10334 fi
10335 done
10336
10337
10338 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
10339 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
10340 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
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 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
10350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10351 #define pcap_dump_ftell innocuous_pcap_dump_ftell
10352
10353 /* System header to define __stub macros and hopefully few prototypes,
10354 which can conflict with char pcap_dump_ftell (); below.
10355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10356 <limits.h> exists even on freestanding compilers. */
10357
10358 #ifdef __STDC__
10359 # include <limits.h>
10360 #else
10361 # include <assert.h>
10362 #endif
10363
10364 #undef pcap_dump_ftell
10365
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 char pcap_dump_ftell ();
10373 /* The GNU C library defines this for functions which it implements
10374 to always fail with ENOSYS. Some functions are actually named
10375 something starting with __ and the normal name is an alias. */
10376 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
10377 choke me
10378 #endif
10379
10380 int
10381 main ()
10382 {
10383 return pcap_dump_ftell ();
10384 ;
10385 return 0;
10386 }
10387 _ACEOF
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (ac_try="$ac_link"
10390 case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_link") 2>conftest.er1
10396 ac_status=$?
10397 grep -v '^ *+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest$ac_exeext &&
10405 $as_test_x conftest$ac_exeext; then
10406 ac_cv_func_pcap_dump_ftell=yes
10407 else
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411 ac_cv_func_pcap_dump_ftell=no
10412 fi
10413
10414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415 conftest$ac_exeext conftest.$ac_ext
10416 fi
10417 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
10418 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
10419 if test $ac_cv_func_pcap_dump_ftell = yes; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_PCAP_DUMP_FTELL 1
10422 _ACEOF
10423
10424 else
10425
10426 case " $LIBOBJS " in
10427 *" pcap_dump_ftell.$ac_objext "* ) ;;
10428 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
10429 ;;
10430 esac
10431
10432
10433 fi
10434
10435
10436
10437 #
10438 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10439 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10440 #
10441 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10442 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10443 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
10444 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10445 # it does not ship with a libc symbol "inet_ntop()", it ships with
10446 # "_inet_ntop()", and has a #define macro in one of the system headers
10447 # to rename it.
10448 #
10449 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10450 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10451 cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h. */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10457 #include <sys/types.h>
10458 #include <sys/socket.h>
10459 #include <netinet/in.h>
10460 #include <arpa/inet.h>
10461 int
10462 main ()
10463 {
10464 char src[4], dst[128];
10465 inet_ntop(AF_INET, src, dst, sizeof(dst));
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_link") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext &&
10487 $as_test_x conftest$ac_exeext; then
10488 { echo "$as_me:$LINENO: result: yes" >&5
10489 echo "${ECHO_T}yes" >&6; }
10490 else
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 { echo "$as_me:$LINENO: result: no" >&5
10495 echo "${ECHO_T}no" >&6; }
10496 case " $LIBOBJS " in
10497 *" inet_ntop.$ac_objext "* ) ;;
10498 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10499 ;;
10500 esac
10501
10502 fi
10503
10504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10505 conftest$ac_exeext conftest.$ac_ext
10506 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10507 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 #include <sys/types.h>
10515 #include <sys/socket.h>
10516 #include <netinet/in.h>
10517 #include <arpa/inet.h>
10518 int
10519 main ()
10520 {
10521 char src[128], dst[4];
10522 inet_pton(AF_INET, src, dst);
10523 ;
10524 return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_link") 2>conftest.er1
10535 ac_status=$?
10536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest$ac_exeext &&
10544 $as_test_x conftest$ac_exeext; then
10545 { echo "$as_me:$LINENO: result: yes" >&5
10546 echo "${ECHO_T}yes" >&6; }
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10550
10551 { echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6; }
10553 case " $LIBOBJS " in
10554 *" inet_pton.$ac_objext "* ) ;;
10555 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10556 ;;
10557 esac
10558
10559 fi
10560
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10563 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10564 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h. */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 #include <sys/types.h>
10572 #include <netinet/in.h>
10573 #include <arpa/inet.h>
10574 int
10575 main ()
10576 {
10577 char src[128];
10578 struct in_addr dst;
10579 inet_aton(src, &dst);
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 rm -f conftest.$ac_objext conftest$ac_exeext
10585 if { (ac_try="$ac_link"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589 esac
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest$ac_exeext &&
10601 $as_test_x conftest$ac_exeext; then
10602 { echo "$as_me:$LINENO: result: yes" >&5
10603 echo "${ECHO_T}yes" >&6; }
10604 else
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 { echo "$as_me:$LINENO: result: no" >&5
10609 echo "${ECHO_T}no" >&6; }
10610 case " $LIBOBJS " in
10611 *" inet_aton.$ac_objext "* ) ;;
10612 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10613 ;;
10614 esac
10615
10616 fi
10617
10618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10619 conftest$ac_exeext conftest.$ac_ext
10620
10621 #
10622 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10623 #
10624 # You are in a twisty little maze of UN*Xes, all different.
10625 # Some might not have ether_ntohost().
10626 # Some might have it, but not declare it in any header file.
10627 # Some might have it, but declare it in <netinet/if_ether.h>.
10628 # Some might have it, but declare it in <netinet/ether.h>
10629 # (And some might have it but document it as something declared in
10630 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10631 #
10632 # Before you is a C compiler.
10633 #
10634
10635 for ac_func in ether_ntohost
10636 do
10637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10651 #define $ac_func innocuous_$ac_func
10652
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char $ac_func (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10657
10658 #ifdef __STDC__
10659 # include <limits.h>
10660 #else
10661 # include <assert.h>
10662 #endif
10663
10664 #undef $ac_func
10665
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char $ac_func ();
10673 /* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676 #if defined __stub_$ac_func || defined __stub___$ac_func
10677 choke me
10678 #endif
10679
10680 int
10681 main ()
10682 {
10683 return $ac_func ();
10684 ;
10685 return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest$ac_exeext &&
10705 $as_test_x conftest$ac_exeext; then
10706 eval "$as_ac_var=yes"
10707 else
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 eval "$as_ac_var=no"
10712 fi
10713
10714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715 conftest$ac_exeext conftest.$ac_ext
10716 fi
10717 ac_res=`eval echo '${'$as_ac_var'}'`
10718 { echo "$as_me:$LINENO: result: $ac_res" >&5
10719 echo "${ECHO_T}$ac_res" >&6; }
10720 if test `eval echo '${'$as_ac_var'}'` = yes; then
10721 cat >>confdefs.h <<_ACEOF
10722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10723 _ACEOF
10724
10725 { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10726 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10727 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730
10731 if test "$cross_compiling" = yes; then
10732 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740
10741 #include <netdb.h>
10742 #include <sys/types.h>
10743 #include <sys/param.h>
10744 #include <sys/socket.h>
10745
10746 int
10747 main(int argc, char **argv)
10748 {
10749 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10750 char name[MAXHOSTNAMELEN];
10751
10752 ether_ntohost(name, (struct ether_addr *)ea);
10753 exit(0);
10754 }
10755
10756 _ACEOF
10757 rm -f conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_link") 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10768 { (case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10771 esac
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_try") 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_buggy_ether_ntohost=no
10778 else
10779 echo "$as_me: program exited with status $ac_status" >&5
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ( exit $ac_status )
10784 ac_cv_buggy_ether_ntohost=yes
10785 fi
10786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10787 fi
10788
10789
10790 fi
10791 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10792 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10793 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10794 cat >>confdefs.h <<\_ACEOF
10795 #define USE_ETHER_NTOHOST 1
10796 _ACEOF
10797
10798 fi
10799
10800 fi
10801 done
10802
10803 if test "$ac_cv_func_ether_ntohost" = yes -a \
10804 "$ac_cv_buggy_ether_ntohost" = "no"; then
10805 #
10806 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10807 #
10808 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10809 #
10810 # Yes. Does it declare ether_ntohost()?
10811 #
10812 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10813 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10814 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h. */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823
10824 #include <sys/types.h>
10825 #include <sys/socket.h>
10826 #include <netinet/in.h>
10827 #include <arpa/inet.h>
10828 struct mbuf;
10829 struct rtentry;
10830 #include <net/if.h>
10831 #include <netinet/if_ether.h>
10832
10833
10834 int
10835 main ()
10836 {
10837 #ifndef ether_ntohost
10838 (void) ether_ntohost;
10839 #endif
10840
10841 ;
10842 return 0;
10843 }
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest.$ac_objext; then
10862 ac_cv_have_decl_ether_ntohost=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867 ac_cv_have_decl_ether_ntohost=no
10868 fi
10869
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 fi
10872 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10873 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10874 if test $ac_cv_have_decl_ether_ntohost = yes; then
10875
10876
10877 cat >>confdefs.h <<\_ACEOF
10878 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10879 _ACEOF
10880
10881
10882 fi
10883
10884 fi
10885 #
10886 # Did that succeed?
10887 #
10888 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10889 #
10890 # No, how about <netinet/ether.h>, as on Linux?
10891 #
10892
10893 for ac_header in netinet/ether.h
10894 do
10895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 fi
10902 ac_res=`eval echo '${'$as_ac_Header'}'`
10903 { echo "$as_me:$LINENO: result: $ac_res" >&5
10904 echo "${ECHO_T}$ac_res" >&6; }
10905 else
10906 # Is the header compilable?
10907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 $ac_includes_default
10916 #include <$ac_header>
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest.$ac_objext; then
10935 ac_header_compiler=yes
10936 else
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 ac_header_compiler=no
10941 fi
10942
10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10945 echo "${ECHO_T}$ac_header_compiler" >&6; }
10946
10947 # Is the header present?
10948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <$ac_header>
10957 _ACEOF
10958 if { (ac_try="$ac_cpp conftest.$ac_ext"
10959 case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } >/dev/null && {
10971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 }; then
10974 ac_header_preproc=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979 ac_header_preproc=no
10980 fi
10981
10982 rm -f conftest.err conftest.$ac_ext
10983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10984 echo "${ECHO_T}$ac_header_preproc" >&6; }
10985
10986 # So? What about this header?
10987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10988 yes:no: )
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10993 ac_header_preproc=yes
10994 ;;
10995 no:yes:* )
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11008
11009 ;;
11010 esac
11011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 eval "$as_ac_Header=\$ac_header_preproc"
11017 fi
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11021
11022 fi
11023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11026 _ACEOF
11027
11028 fi
11029
11030 done
11031
11032 if test "$ac_cv_header_netinet_ether_h" = yes; then
11033 #
11034 # We have it - does it declare ether_ntohost()?
11035 # Unset ac_cv_have_decl_ether_ntohost so we don't
11036 # treat the previous failure as a cached value and
11037 # suppress the next test.
11038 #
11039 unset ac_cv_have_decl_ether_ntohost
11040 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
11041 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
11042 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051
11052 #include <netinet/ether.h>
11053
11054
11055 int
11056 main ()
11057 {
11058 #ifndef ether_ntohost
11059 (void) ether_ntohost;
11060 #endif
11061
11062 ;
11063 return 0;
11064 }
11065 _ACEOF
11066 rm -f conftest.$ac_objext
11067 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
11083 ac_cv_have_decl_ether_ntohost=yes
11084 else
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 ac_cv_have_decl_ether_ntohost=no
11089 fi
11090
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092 fi
11093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
11094 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
11095 if test $ac_cv_have_decl_ether_ntohost = yes; then
11096
11097
11098 cat >>confdefs.h <<\_ACEOF
11099 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
11100 _ACEOF
11101
11102
11103 fi
11104
11105 fi
11106 fi
11107 #
11108 # Is ether_ntohost() declared?
11109 #
11110 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
11111 #
11112 # No, we'll have to declare it ourselves.
11113 # Do we have "struct ether_addr"?
11114 #
11115 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
11116 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
11117 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126
11127 #include <sys/types.h>
11128 #include <sys/socket.h>
11129 #include <netinet/in.h>
11130 #include <arpa/inet.h>
11131 struct mbuf;
11132 struct rtentry;
11133 #include <net/if.h>
11134 #include <netinet/if_ether.h>
11135
11136
11137 typedef struct ether_addr ac__type_new_;
11138 int
11139 main ()
11140 {
11141 if ((ac__type_new_ *) 0)
11142 return 0;
11143 if (sizeof (ac__type_new_))
11144 return 0;
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_compile") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest.$ac_objext; then
11166 ac_cv_type_struct_ether_addr=yes
11167 else
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 ac_cv_type_struct_ether_addr=no
11172 fi
11173
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 fi
11176 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
11177 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
11178 if test $ac_cv_type_struct_ether_addr = yes; then
11179
11180 cat >>confdefs.h <<_ACEOF
11181 #define HAVE_STRUCT_ETHER_ADDR 1
11182 _ACEOF
11183
11184
11185 fi
11186
11187
11188 cat >>confdefs.h <<\_ACEOF
11189 #define HAVE_DECL_ETHER_NTOHOST 0
11190 _ACEOF
11191
11192 else
11193
11194 cat >>confdefs.h <<\_ACEOF
11195 #define HAVE_DECL_ETHER_NTOHOST 1
11196 _ACEOF
11197
11198 fi
11199 fi
11200
11201 # libdlpi is needed for Solaris 11 and later.
11202 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
11203 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
11204 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 ac_check_lib_save_LIBS=$LIBS
11208 LIBS="-ldlpi -L/lib $LIBS"
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215
11216 /* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 char dlpi_walk ();
11223 int
11224 main ()
11225 {
11226 return dlpi_walk ();
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest$ac_exeext &&
11248 $as_test_x conftest$ac_exeext; then
11249 ac_cv_lib_dlpi_dlpi_walk=yes
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_cv_lib_dlpi_dlpi_walk=no
11255 fi
11256
11257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11260 fi
11261 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
11262 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
11263 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
11264 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
11265 fi
11266
11267
11268
11269 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11270 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
11271 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11274 cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h. */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280
11281 # include <sys/types.h>
11282 # include <sys/socket.h>
11283 int
11284 main ()
11285 {
11286 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } && {
11305 test -z "$ac_c_werror_flag" ||
11306 test ! -s conftest.err
11307 } && test -s conftest.$ac_objext; then
11308 ac_cv_sockaddr_has_sa_len=yes
11309 else
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11312
11313 ac_cv_sockaddr_has_sa_len=no
11314 fi
11315
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 fi
11318
11319 { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
11320 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
11321 if test $ac_cv_sockaddr_has_sa_len = yes ; then
11322 cat >>confdefs.h <<\_ACEOF
11323 #define HAVE_SOCKADDR_SA_LEN 1
11324 _ACEOF
11325
11326 fi
11327
11328 if test "$ac_cv_sockaddr_has_sa_len" = no; then
11329 missing_includes=yes
11330 fi
11331
11332 #
11333 # Do we have the new open API? Check for pcap_create, and assume that,
11334 # if we do, we also have pcap_activate() and the other new routines
11335 # introduced in libpcap 1.0.0.
11336 #
11337
11338 for ac_func in pcap_create
11339 do
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11354 #define $ac_func innocuous_$ac_func
11355
11356 /* System header to define __stub macros and hopefully few prototypes,
11357 which can conflict with char $ac_func (); below.
11358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11359 <limits.h> exists even on freestanding compilers. */
11360
11361 #ifdef __STDC__
11362 # include <limits.h>
11363 #else
11364 # include <assert.h>
11365 #endif
11366
11367 #undef $ac_func
11368
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char $ac_func ();
11376 /* The GNU C library defines this for functions which it implements
11377 to always fail with ENOSYS. Some functions are actually named
11378 something starting with __ and the normal name is an alias. */
11379 #if defined __stub_$ac_func || defined __stub___$ac_func
11380 choke me
11381 #endif
11382
11383 int
11384 main ()
11385 {
11386 return $ac_func ();
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (ac_try="$ac_link"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_link") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest$ac_exeext &&
11408 $as_test_x conftest$ac_exeext; then
11409 eval "$as_ac_var=yes"
11410 else
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414 eval "$as_ac_var=no"
11415 fi
11416
11417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11418 conftest$ac_exeext conftest.$ac_ext
11419 fi
11420 ac_res=`eval echo '${'$as_ac_var'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11423 if test `eval echo '${'$as_ac_var'}'` = yes; then
11424 cat >>confdefs.h <<_ACEOF
11425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11426 _ACEOF
11427
11428 fi
11429 done
11430
11431 if test $ac_cv_func_pcap_create = "yes" ; then
11432 #
11433 # OK, do we have pcap_set_tstamp_type? If so, assume we have
11434 # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
11435 #
11436
11437 for ac_func in pcap_set_tstamp_type
11438 do
11439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11453 #define $ac_func innocuous_$ac_func
11454
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char $ac_func (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11459
11460 #ifdef __STDC__
11461 # include <limits.h>
11462 #else
11463 # include <assert.h>
11464 #endif
11465
11466 #undef $ac_func
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char $ac_func ();
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined __stub_$ac_func || defined __stub___$ac_func
11479 choke me
11480 #endif
11481
11482 int
11483 main ()
11484 {
11485 return $ac_func ();
11486 ;
11487 return 0;
11488 }
11489 _ACEOF
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && {
11504 test -z "$ac_c_werror_flag" ||
11505 test ! -s conftest.err
11506 } && test -s conftest$ac_exeext &&
11507 $as_test_x conftest$ac_exeext; then
11508 eval "$as_ac_var=yes"
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513 eval "$as_ac_var=no"
11514 fi
11515
11516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11517 conftest$ac_exeext conftest.$ac_ext
11518 fi
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 _ACEOF
11526
11527 fi
11528 done
11529
11530 fi
11531
11532
11533
11534
11535 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
11536 do
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11551 #define $ac_func innocuous_$ac_func
11552
11553 /* System header to define __stub macros and hopefully few prototypes,
11554 which can conflict with char $ac_func (); below.
11555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 <limits.h> exists even on freestanding compilers. */
11557
11558 #ifdef __STDC__
11559 # include <limits.h>
11560 #else
11561 # include <assert.h>
11562 #endif
11563
11564 #undef $ac_func
11565
11566 /* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char $ac_func ();
11573 /* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576 #if defined __stub_$ac_func || defined __stub___$ac_func
11577 choke me
11578 #endif
11579
11580 int
11581 main ()
11582 {
11583 return $ac_func ();
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest.$ac_objext conftest$ac_exeext
11589 if { (ac_try="$ac_link"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_link") 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } && {
11602 test -z "$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11604 } && test -s conftest$ac_exeext &&
11605 $as_test_x conftest$ac_exeext; then
11606 eval "$as_ac_var=yes"
11607 else
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11610
11611 eval "$as_ac_var=no"
11612 fi
11613
11614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11615 conftest$ac_exeext conftest.$ac_ext
11616 fi
11617 ac_res=`eval echo '${'$as_ac_var'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11620 if test `eval echo '${'$as_ac_var'}'` = yes; then
11621 cat >>confdefs.h <<_ACEOF
11622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11623 _ACEOF
11624
11625 fi
11626 done
11627
11628 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11629 savedppflags="$CPPLAGS"
11630 CPPFLAGS="$CPPFLAGS $V_INCLS"
11631 { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11632 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11633 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 #include <pcap.h>
11643
11644 typedef pcap_if_t ac__type_new_;
11645 int
11646 main ()
11647 {
11648 if ((ac__type_new_ *) 0)
11649 return 0;
11650 if (sizeof (ac__type_new_))
11651 return 0;
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext
11657 if { (ac_try="$ac_compile"
11658 case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_compile") 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } && {
11670 test -z "$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11672 } && test -s conftest.$ac_objext; then
11673 ac_cv_type_pcap_if_t=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_cv_type_pcap_if_t=no
11679 fi
11680
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 fi
11683 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11684 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11685 if test $ac_cv_type_pcap_if_t = yes; then
11686
11687 cat >>confdefs.h <<_ACEOF
11688 #define HAVE_PCAP_IF_T 1
11689 _ACEOF
11690
11691
11692 fi
11693
11694 CPPFLAGS="$savedcppflags"
11695 fi
11696
11697 if test $ac_cv_func_pcap_lib_version = "no" ; then
11698 { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11699 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h. */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706
11707 int
11708 main ()
11709 {
11710
11711 extern char pcap_version[];
11712
11713 return (int)pcap_version;
11714
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (ac_try="$ac_link"
11721 case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_link") 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } && {
11733 test -z "$ac_c_werror_flag" ||
11734 test ! -s conftest.err
11735 } && test -s conftest$ac_exeext &&
11736 $as_test_x conftest$ac_exeext; then
11737 ac_lbl_cv_pcap_version_defined=yes
11738 else
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 ac_lbl_cv_pcap_version_defined=no
11743 fi
11744
11745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746 conftest$ac_exeext conftest.$ac_ext
11747 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11748 { echo "$as_me:$LINENO: result: yes" >&5
11749 echo "${ECHO_T}yes" >&6; }
11750 cat >>confdefs.h <<\_ACEOF
11751 #define HAVE_PCAP_VERSION 1
11752 _ACEOF
11753
11754 else
11755 { echo "$as_me:$LINENO: result: no" >&5
11756 echo "${ECHO_T}no" >&6; }
11757 fi
11758 fi
11759 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11760 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767
11768 int
11769 main ()
11770 {
11771
11772 extern int pcap_debug;
11773
11774 return pcap_debug;
11775
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (ac_try="$ac_link"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_link") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext &&
11797 $as_test_x conftest$ac_exeext; then
11798 ac_lbl_cv_pcap_debug_defined=yes
11799 else
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803 ac_lbl_cv_pcap_debug_defined=no
11804 fi
11805
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807 conftest$ac_exeext conftest.$ac_ext
11808 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11809 { echo "$as_me:$LINENO: result: yes" >&5
11810 echo "${ECHO_T}yes" >&6; }
11811 cat >>confdefs.h <<\_ACEOF
11812 #define HAVE_PCAP_DEBUG 1
11813 _ACEOF
11814
11815 else
11816 { echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6; }
11818 #
11819 # OK, what about "yydebug"?
11820 #
11821 { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11822 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829
11830 int
11831 main ()
11832 {
11833
11834 extern int yydebug;
11835
11836 return yydebug;
11837
11838 ;
11839 return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_c_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest$ac_exeext &&
11859 $as_test_x conftest$ac_exeext; then
11860 ac_lbl_cv_yydebug_defined=yes
11861 else
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865 ac_lbl_cv_yydebug_defined=no
11866 fi
11867
11868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11869 conftest$ac_exeext conftest.$ac_ext
11870 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11871 { echo "$as_me:$LINENO: result: yes" >&5
11872 echo "${ECHO_T}yes" >&6; }
11873 cat >>confdefs.h <<\_ACEOF
11874 #define HAVE_YYDEBUG 1
11875 _ACEOF
11876
11877 else
11878 { echo "$as_me:$LINENO: result: no" >&5
11879 echo "${ECHO_T}no" >&6; }
11880 fi
11881 fi
11882
11883 for ac_func in bpf_dump
11884 do
11885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11899 #define $ac_func innocuous_$ac_func
11900
11901 /* System header to define __stub macros and hopefully few prototypes,
11902 which can conflict with char $ac_func (); below.
11903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11904 <limits.h> exists even on freestanding compilers. */
11905
11906 #ifdef __STDC__
11907 # include <limits.h>
11908 #else
11909 # include <assert.h>
11910 #endif
11911
11912 #undef $ac_func
11913
11914 /* Override any GCC internal prototype to avoid an error.
11915 Use char because int might match the return type of a GCC
11916 builtin and then its argument prototype would still apply. */
11917 #ifdef __cplusplus
11918 extern "C"
11919 #endif
11920 char $ac_func ();
11921 /* The GNU C library defines this for functions which it implements
11922 to always fail with ENOSYS. Some functions are actually named
11923 something starting with __ and the normal name is an alias. */
11924 #if defined __stub_$ac_func || defined __stub___$ac_func
11925 choke me
11926 #endif
11927
11928 int
11929 main ()
11930 {
11931 return $ac_func ();
11932 ;
11933 return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext conftest$ac_exeext
11937 if { (ac_try="$ac_link"
11938 case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11941 esac
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_link") 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && {
11950 test -z "$ac_c_werror_flag" ||
11951 test ! -s conftest.err
11952 } && test -s conftest$ac_exeext &&
11953 $as_test_x conftest$ac_exeext; then
11954 eval "$as_ac_var=yes"
11955 else
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 eval "$as_ac_var=no"
11960 fi
11961
11962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11963 conftest$ac_exeext conftest.$ac_ext
11964 fi
11965 ac_res=`eval echo '${'$as_ac_var'}'`
11966 { echo "$as_me:$LINENO: result: $ac_res" >&5
11967 echo "${ECHO_T}$ac_res" >&6; }
11968 if test `eval echo '${'$as_ac_var'}'` = yes; then
11969 cat >>confdefs.h <<_ACEOF
11970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11971 _ACEOF
11972
11973 else
11974 case " $LIBOBJS " in
11975 *" $ac_func.$ac_objext "* ) ;;
11976 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11977 ;;
11978 esac
11979
11980 fi
11981 done
11982
11983
11984 V_GROUP=0
11985 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11986 V_GROUP=wheel
11987 fi
11988 #
11989 # Assume V7/BSD convention for man pages (file formats in section 5,
11990 # miscellaneous info in section 7).
11991 #
11992 MAN_FILE_FORMATS=5
11993 MAN_MISC_INFO=7
11994 case "$host_os" in
11995
11996 aix*)
11997
11998 cat >>confdefs.h <<\_ACEOF
11999 #define _SUN 1
12000 _ACEOF
12001
12002 ;;
12003
12004 hpux*)
12005 #
12006 # Use System V conventions for man pages.
12007 #
12008 MAN_FILE_FORMATS=4
12009 MAN_MISC_INFO=5
12010 ;;
12011
12012 irix*)
12013 V_GROUP=sys
12014
12015 #
12016 # Use System V conventions for man pages.
12017 #
12018 MAN_FILE_FORMATS=4
12019 MAN_MISC_INFO=5
12020 ;;
12021
12022 osf*)
12023 V_GROUP=system
12024
12025 #
12026 # Use System V conventions for man pages.
12027 #
12028 MAN_FILE_FORMATS=4
12029 MAN_MISC_INFO=5
12030 ;;
12031
12032 solaris*)
12033 V_GROUP=sys
12034
12035 #
12036 # Use System V conventions for man pages.
12037 #
12038 MAN_FILE_FORMATS=4
12039 MAN_MISC_INFO=5
12040 ;;
12041 esac
12042
12043 if test -f /dev/bpf0 ; then
12044 V_GROUP=bpf
12045 fi
12046
12047 #
12048 # Check for some headers introduced in later versions of libpcap
12049 # and used by some printers.
12050 #
12051 savedcppflags="$CPPFLAGS"
12052 CPPFLAGS="$CPPFLAGS $V_INCLS"
12053
12054 for ac_header in pcap/bluetooth.h
12055 do
12056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 fi
12063 ac_res=`eval echo '${'$as_ac_Header'}'`
12064 { echo "$as_me:$LINENO: result: $ac_res" >&5
12065 echo "${ECHO_T}$ac_res" >&6; }
12066 else
12067 # Is the header compilable?
12068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12070 cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h. */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076 $ac_includes_default
12077 #include <$ac_header>
12078 _ACEOF
12079 rm -f conftest.$ac_objext
12080 if { (ac_try="$ac_compile"
12081 case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_compile") 2>conftest.er1
12087 ac_status=$?
12088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } && {
12093 test -z "$ac_c_werror_flag" ||
12094 test ! -s conftest.err
12095 } && test -s conftest.$ac_objext; then
12096 ac_header_compiler=yes
12097 else
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 ac_header_compiler=no
12102 fi
12103
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12106 echo "${ECHO_T}$ac_header_compiler" >&6; }
12107
12108 # Is the header present?
12109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 #include <$ac_header>
12118 _ACEOF
12119 if { (ac_try="$ac_cpp conftest.$ac_ext"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } >/dev/null && {
12132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 }; then
12135 ac_header_preproc=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 ac_header_preproc=no
12141 fi
12142
12143 rm -f conftest.err conftest.$ac_ext
12144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12145 echo "${ECHO_T}$ac_header_preproc" >&6; }
12146
12147 # So? What about this header?
12148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12149 yes:no: )
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12154 ac_header_preproc=yes
12155 ;;
12156 no:yes:* )
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12169
12170 ;;
12171 esac
12172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 eval "$as_ac_Header=\$ac_header_preproc"
12178 fi
12179 ac_res=`eval echo '${'$as_ac_Header'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12182
12183 fi
12184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12187 _ACEOF
12188
12189 fi
12190
12191 done
12192
12193
12194 for ac_header in pcap/usb.h
12195 do
12196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 fi
12203 ac_res=`eval echo '${'$as_ac_Header'}'`
12204 { echo "$as_me:$LINENO: result: $ac_res" >&5
12205 echo "${ECHO_T}$ac_res" >&6; }
12206 else
12207 # Is the header compilable?
12208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12217 #include <$ac_header>
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (ac_try="$ac_compile"
12221 case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
12236 ac_header_compiler=yes
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 ac_header_compiler=no
12242 fi
12243
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12246 echo "${ECHO_T}$ac_header_compiler" >&6; }
12247
12248 # Is the header present?
12249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 #include <$ac_header>
12258 _ACEOF
12259 if { (ac_try="$ac_cpp conftest.$ac_ext"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } >/dev/null && {
12272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 }; then
12275 ac_header_preproc=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280 ac_header_preproc=no
12281 fi
12282
12283 rm -f conftest.err conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12285 echo "${ECHO_T}$ac_header_preproc" >&6; }
12286
12287 # So? What about this header?
12288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12289 yes:no: )
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12294 ac_header_preproc=yes
12295 ;;
12296 no:yes:* )
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12309
12310 ;;
12311 esac
12312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 eval "$as_ac_Header=\$ac_header_preproc"
12318 fi
12319 ac_res=`eval echo '${'$as_ac_Header'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12322
12323 fi
12324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12327 _ACEOF
12328
12329 fi
12330
12331 done
12332
12333 CPPFLAGS="$savedcppflags"
12334
12335
12336 for ac_header in sys/bitypes.h
12337 do
12338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 fi
12345 ac_res=`eval echo '${'$as_ac_Header'}'`
12346 { echo "$as_me:$LINENO: result: $ac_res" >&5
12347 echo "${ECHO_T}$ac_res" >&6; }
12348 else
12349 # Is the header compilable?
12350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h. */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 $ac_includes_default
12359 #include <$ac_header>
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 ac_header_compiler=yes
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383 ac_header_compiler=no
12384 fi
12385
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12388 echo "${ECHO_T}$ac_header_compiler" >&6; }
12389
12390 # Is the header present?
12391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 #include <$ac_header>
12400 _ACEOF
12401 if { (ac_try="$ac_cpp conftest.$ac_ext"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } >/dev/null && {
12414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 }; then
12417 ac_header_preproc=yes
12418 else
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422 ac_header_preproc=no
12423 fi
12424
12425 rm -f conftest.err conftest.$ac_ext
12426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12427 echo "${ECHO_T}$ac_header_preproc" >&6; }
12428
12429 # So? What about this header?
12430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12431 yes:no: )
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12436 ac_header_preproc=yes
12437 ;;
12438 no:yes:* )
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12451
12452 ;;
12453 esac
12454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 eval "$as_ac_Header=\$ac_header_preproc"
12460 fi
12461 ac_res=`eval echo '${'$as_ac_Header'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463 echo "${ECHO_T}$ac_res" >&6; }
12464
12465 fi
12466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12469 _ACEOF
12470
12471 fi
12472
12473 done
12474
12475
12476 { echo "$as_me:$LINENO: checking for int8_t" >&5
12477 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
12478 if test "${ac_cv_type_int8_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 int8_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_int8_t=yes
12522 else
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 ac_cv_type_int8_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_int8_t" >&5
12532 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
12533 if test $ac_cv_type_int8_t = yes; then
12534 :
12535 else
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define int8_t signed char
12539 _ACEOF
12540
12541 fi
12542
12543 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
12544 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
12545 if test "${ac_cv_type_u_int8_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_int8_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_int8_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_int8_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_int8_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
12600 if test $ac_cv_type_u_int8_t = yes; then
12601 :
12602 else
12603
12604 cat >>confdefs.h <<\_ACEOF
12605 #define u_int8_t unsigned char
12606 _ACEOF
12607
12608 fi
12609
12610 { echo "$as_me:$LINENO: checking for int16_t" >&5
12611 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
12612 if test "${ac_cv_type_int16_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 typedef int16_t ac__type_new_;
12623 int
12624 main ()
12625 {
12626 if ((ac__type_new_ *) 0)
12627 return 0;
12628 if (sizeof (ac__type_new_))
12629 return 0;
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12651 ac_cv_type_int16_t=yes
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 ac_cv_type_int16_t=no
12657 fi
12658
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 fi
12661 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
12662 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
12663 if test $ac_cv_type_int16_t = yes; then
12664 :
12665 else
12666
12667 cat >>confdefs.h <<\_ACEOF
12668 #define int16_t short
12669 _ACEOF
12670
12671 $ac_includes_default
12672 #ifdef HAVE_SYS_BITYPES_H
12673 #include <sys/bitypes.h>
12674 #endif
12675 fi
12676
12677 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
12678 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
12679 if test "${ac_cv_type_u_int16_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_int16_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_int16_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_int16_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_int16_t" >&5
12733 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12734 if test $ac_cv_type_u_int16_t = yes; then
12735 :
12736 else
12737
12738 cat >>confdefs.h <<\_ACEOF
12739 #define u_int16_t unsigned short
12740 _ACEOF
12741
12742 fi
12743
12744 { echo "$as_me:$LINENO: checking for int32_t" >&5
12745 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12746 if test "${ac_cv_type_int32_t+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h. */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 $ac_includes_default
12756 #ifdef HAVE_SYS_BITYPES_H
12757 #include <sys/bitypes.h>
12758 #endif
12759
12760 typedef int32_t ac__type_new_;
12761 int
12762 main ()
12763 {
12764 if ((ac__type_new_ *) 0)
12765 return 0;
12766 if (sizeof (ac__type_new_))
12767 return 0;
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext
12773 if { (ac_try="$ac_compile"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_compile") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } && {
12786 test -z "$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 } && test -s conftest.$ac_objext; then
12789 ac_cv_type_int32_t=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 ac_cv_type_int32_t=no
12795 fi
12796
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 fi
12799 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12800 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12801 if test $ac_cv_type_int32_t = yes; then
12802 :
12803 else
12804
12805 cat >>confdefs.h <<\_ACEOF
12806 #define int32_t int
12807 _ACEOF
12808
12809 fi
12810
12811 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12812 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12813 if test "${ac_cv_type_u_int32_t+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 $ac_includes_default
12823 #ifdef HAVE_SYS_BITYPES_H
12824 #include <sys/bitypes.h>
12825 #endif
12826
12827 typedef u_int32_t ac__type_new_;
12828 int
12829 main ()
12830 {
12831 if ((ac__type_new_ *) 0)
12832 return 0;
12833 if (sizeof (ac__type_new_))
12834 return 0;
12835 ;
12836 return 0;
12837 }
12838 _ACEOF
12839 rm -f conftest.$ac_objext
12840 if { (ac_try="$ac_compile"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844 esac
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_compile") 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } && {
12853 test -z "$ac_c_werror_flag" ||
12854 test ! -s conftest.err
12855 } && test -s conftest.$ac_objext; then
12856 ac_cv_type_u_int32_t=yes
12857 else
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 ac_cv_type_u_int32_t=no
12862 fi
12863
12864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 fi
12866 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12867 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12868 if test $ac_cv_type_u_int32_t = yes; then
12869 :
12870 else
12871
12872 cat >>confdefs.h <<\_ACEOF
12873 #define u_int32_t unsigned int
12874 _ACEOF
12875
12876 fi
12877
12878 { echo "$as_me:$LINENO: checking for int64_t" >&5
12879 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12880 if test "${ac_cv_type_int64_t+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 $ac_includes_default
12890 #ifdef HAVE_SYS_BITYPES_H
12891 #include <sys/bitypes.h>
12892 #endif
12893
12894 typedef int64_t ac__type_new_;
12895 int
12896 main ()
12897 {
12898 if ((ac__type_new_ *) 0)
12899 return 0;
12900 if (sizeof (ac__type_new_))
12901 return 0;
12902 ;
12903 return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (ac_try="$ac_compile"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_compile") 2>conftest.er1
12914 ac_status=$?
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && {
12920 test -z "$ac_c_werror_flag" ||
12921 test ! -s conftest.err
12922 } && test -s conftest.$ac_objext; then
12923 ac_cv_type_int64_t=yes
12924 else
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_cv_type_int64_t=no
12929 fi
12930
12931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932 fi
12933 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12934 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12935 if test $ac_cv_type_int64_t = yes; then
12936 :
12937 else
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define int64_t long long
12941 _ACEOF
12942
12943 fi
12944
12945 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12946 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12947 if test "${ac_cv_type_u_int64_t+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950 cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h. */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h. */
12956 $ac_includes_default
12957 #ifdef HAVE_SYS_BITYPES_H
12958 #include <sys/bitypes.h>
12959 #endif
12960
12961 typedef u_int64_t ac__type_new_;
12962 int
12963 main ()
12964 {
12965 if ((ac__type_new_ *) 0)
12966 return 0;
12967 if (sizeof (ac__type_new_))
12968 return 0;
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 rm -f conftest.$ac_objext
12974 if { (ac_try="$ac_compile"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_compile") 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } && {
12987 test -z "$ac_c_werror_flag" ||
12988 test ! -s conftest.err
12989 } && test -s conftest.$ac_objext; then
12990 ac_cv_type_u_int64_t=yes
12991 else
12992 echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_cv_type_u_int64_t=no
12996 fi
12997
12998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999 fi
13000 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13001 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13002 if test $ac_cv_type_u_int64_t = yes; then
13003 :
13004 else
13005
13006 cat >>confdefs.h <<\_ACEOF
13007 #define u_int64_t unsigned long long
13008 _ACEOF
13009
13010 fi
13011
13012
13013 #
13014 # We can't just check for <inttypes.h> - some systems have one that
13015 # doesn't define all the PRI[doxu]64 macros.
13016 #
13017
13018 for ac_header in inttypes.h
13019 do
13020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 fi
13027 ac_res=`eval echo '${'$as_ac_Header'}'`
13028 { echo "$as_me:$LINENO: result: $ac_res" >&5
13029 echo "${ECHO_T}$ac_res" >&6; }
13030 else
13031 # Is the header compilable?
13032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 $ac_includes_default
13041 #include <$ac_header>
13042 _ACEOF
13043 rm -f conftest.$ac_objext
13044 if { (ac_try="$ac_compile"
13045 case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048 esac
13049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_compile") 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } && {
13057 test -z "$ac_c_werror_flag" ||
13058 test ! -s conftest.err
13059 } && test -s conftest.$ac_objext; then
13060 ac_header_compiler=yes
13061 else
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065 ac_header_compiler=no
13066 fi
13067
13068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13070 echo "${ECHO_T}$ac_header_compiler" >&6; }
13071
13072 # Is the header present?
13073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13075 cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h. */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13081 #include <$ac_header>
13082 _ACEOF
13083 if { (ac_try="$ac_cpp conftest.$ac_ext"
13084 case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13090 ac_status=$?
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } >/dev/null && {
13096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13097 test ! -s conftest.err
13098 }; then
13099 ac_header_preproc=yes
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13103
13104 ac_header_preproc=no
13105 fi
13106
13107 rm -f conftest.err conftest.$ac_ext
13108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13109 echo "${ECHO_T}$ac_header_preproc" >&6; }
13110
13111 # So? What about this header?
13112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13113 yes:no: )
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13118 ac_header_preproc=yes
13119 ;;
13120 no:yes:* )
13121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13133
13134 ;;
13135 esac
13136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 eval "$as_ac_Header=\$ac_header_preproc"
13142 fi
13143 ac_res=`eval echo '${'$as_ac_Header'}'`
13144 { echo "$as_me:$LINENO: result: $ac_res" >&5
13145 echo "${ECHO_T}$ac_res" >&6; }
13146
13147 fi
13148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13149 cat >>confdefs.h <<_ACEOF
13150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13151 _ACEOF
13152
13153 #
13154 # OK, we have inttypes.h, but does it define those macros?
13155 #
13156 { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
13157 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
13158 cat >conftest.$ac_ext <<_ACEOF
13159
13160 /* confdefs.h. */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165
13166 #include <inttypes.h>
13167 #include <stdio.h>
13168 #include <sys/types.h>
13169 #ifdef HAVE_SYS_BITYPES_H
13170 #include <sys/bitypes.h>
13171 #endif
13172
13173 main()
13174 {
13175 printf("%" PRId64 "\n", (u_int64_t)1);
13176 printf("%" PRIo64 "\n", (u_int64_t)1);
13177 printf("%" PRIx64 "\n", (u_int64_t)1);
13178 printf("%" PRIu64 "\n", (u_int64_t)1);
13179 }
13180
13181
13182 _ACEOF
13183 rm -f conftest.$ac_objext
13184 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13191 ac_status=$?
13192 grep -v '^ *+' conftest.er1 >conftest.err
13193 rm -f conftest.er1
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } && {
13197 test -z "$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 } && test -s conftest.$ac_objext; then
13200
13201 { echo "$as_me:$LINENO: result: yes" >&5
13202 echo "${ECHO_T}yes" >&6; }
13203 ac_lbl_inttypes_h_defines_formats=yes
13204
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13208
13209
13210 { echo "$as_me:$LINENO: result: no" >&5
13211 echo "${ECHO_T}no" >&6; }
13212 ac_lbl_inttypes_h_defines_formats=no
13213
13214 fi
13215
13216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217
13218 else
13219
13220 #
13221 # We don't have inttypes.h, so it obviously can't define those
13222 # macros.
13223 #
13224 ac_lbl_inttypes_h_defines_formats=no
13225
13226 fi
13227
13228 done
13229
13230 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
13231
13232 { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
13233 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13234 if test "$cross_compiling" = yes; then
13235 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13236 See \`config.log' for more details." >&5
13237 echo "$as_me: error: cannot run test program while cross compiling
13238 See \`config.log' for more details." >&2;}
13239 { (exit 1); exit 1; }; }
13240 else
13241 cat >conftest.$ac_ext <<_ACEOF
13242
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248
13249 # ifdef HAVE_INTTYPES_H
13250 #include <inttypes.h>
13251 # endif
13252 # ifdef HAVE_SYS_BITYPES_H
13253 #include <sys/bitypes.h>
13254 # endif
13255 #include <stdio.h>
13256 #include <sys/types.h>
13257
13258 main()
13259 {
13260 u_int64_t t = 1;
13261 char strbuf[16+1];
13262 sprintf(strbuf, "%016lx", t << 32);
13263 if (strcmp(strbuf, "0000000100000000") == 0)
13264 exit(0);
13265 else
13266 exit(1);
13267 }
13268
13269
13270 _ACEOF
13271 rm -f conftest$ac_exeext
13272 if { (ac_try="$ac_link"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_link") 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13282 { (case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_try") 2>&5
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291
13292 cat >>confdefs.h <<\_ACEOF
13293 #define PRId64 "ld"
13294 _ACEOF
13295
13296 cat >>confdefs.h <<\_ACEOF
13297 #define PRIo64 "lo"
13298 _ACEOF
13299
13300 cat >>confdefs.h <<\_ACEOF
13301 #define PRIx64 "lx"
13302 _ACEOF
13303
13304 cat >>confdefs.h <<\_ACEOF
13305 #define PRIu64 "lu"
13306 _ACEOF
13307
13308 { echo "$as_me:$LINENO: result: yes" >&5
13309 echo "${ECHO_T}yes" >&6; }
13310
13311 else
13312 echo "$as_me: program exited with status $ac_status" >&5
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ( exit $ac_status )
13317
13318 { echo "$as_me:$LINENO: result: no" >&5
13319 echo "${ECHO_T}no" >&6; }
13320
13321
13322 { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
13323 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
13324 if test "$cross_compiling" = yes; then
13325 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13326 See \`config.log' for more details." >&5
13327 echo "$as_me: error: cannot run test program while cross compiling
13328 See \`config.log' for more details." >&2;}
13329 { (exit 1); exit 1; }; }
13330 else
13331 cat >conftest.$ac_ext <<_ACEOF
13332
13333 /* confdefs.h. */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338
13339 # ifdef HAVE_INTTYPES_H
13340 #include <inttypes.h>
13341 # endif
13342 # ifdef HAVE_SYS_BITYPES_H
13343 #include <sys/bitypes.h>
13344 # endif
13345 #include <stdio.h>
13346 #include <sys/types.h>
13347
13348 main()
13349 {
13350 u_int64_t t = 1;
13351 char strbuf[16+1];
13352 sprintf(strbuf, "%016llx", t << 32);
13353 if (strcmp(strbuf, "0000000100000000") == 0)
13354 exit(0);
13355 else
13356 exit(1);
13357 }
13358
13359
13360 _ACEOF
13361 rm -f conftest$ac_exeext
13362 if { (ac_try="$ac_link"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_link") 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381
13382 cat >>confdefs.h <<\_ACEOF
13383 #define PRId64 "lld"
13384 _ACEOF
13385
13386 cat >>confdefs.h <<\_ACEOF
13387 #define PRIo64 "llo"
13388 _ACEOF
13389
13390 cat >>confdefs.h <<\_ACEOF
13391 #define PRIx64 "llx"
13392 _ACEOF
13393
13394 cat >>confdefs.h <<\_ACEOF
13395 #define PRIu64 "llu"
13396 _ACEOF
13397
13398 { echo "$as_me:$LINENO: result: yes" >&5
13399 echo "${ECHO_T}yes" >&6; }
13400
13401 else
13402 echo "$as_me: program exited with status $ac_status" >&5
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406 ( exit $ac_status )
13407
13408 { echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6; }
13410
13411
13412 { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
13413 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
13414 if test "$cross_compiling" = yes; then
13415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13416 See \`config.log' for more details." >&5
13417 echo "$as_me: error: cannot run test program while cross compiling
13418 See \`config.log' for more details." >&2;}
13419 { (exit 1); exit 1; }; }
13420 else
13421 cat >conftest.$ac_ext <<_ACEOF
13422
13423 /* confdefs.h. */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428
13429 # ifdef HAVE_INTTYPES_H
13430 #include <inttypes.h>
13431 # endif
13432 # ifdef HAVE_SYS_BITYPES_H
13433 #include <sys/bitypes.h>
13434 # endif
13435 #include <stdio.h>
13436 #include <sys/types.h>
13437
13438 main()
13439 {
13440 u_int64_t t = 1;
13441 char strbuf[16+1];
13442 sprintf(strbuf, "%016Lx", t << 32);
13443 if (strcmp(strbuf, "0000000100000000") == 0)
13444 exit(0);
13445 else
13446 exit(1);
13447 }
13448
13449
13450 _ACEOF
13451 rm -f conftest$ac_exeext
13452 if { (ac_try="$ac_link"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_link") 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471
13472 cat >>confdefs.h <<\_ACEOF
13473 #define PRId64 "Ld"
13474 _ACEOF
13475
13476 cat >>confdefs.h <<\_ACEOF
13477 #define PRIo64 "Lo"
13478 _ACEOF
13479
13480 cat >>confdefs.h <<\_ACEOF
13481 #define PRIx64 "Lx"
13482 _ACEOF
13483
13484 cat >>confdefs.h <<\_ACEOF
13485 #define PRIu64 "Lu"
13486 _ACEOF
13487
13488 { echo "$as_me:$LINENO: result: yes" >&5
13489 echo "${ECHO_T}yes" >&6; }
13490
13491 else
13492 echo "$as_me: program exited with status $ac_status" >&5
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ( exit $ac_status )
13497
13498 { echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6; }
13500
13501
13502 { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
13503 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
13504 if test "$cross_compiling" = yes; then
13505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13506 See \`config.log' for more details." >&5
13507 echo "$as_me: error: cannot run test program while cross compiling
13508 See \`config.log' for more details." >&2;}
13509 { (exit 1); exit 1; }; }
13510 else
13511 cat >conftest.$ac_ext <<_ACEOF
13512
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518
13519 # ifdef HAVE_INTTYPES_H
13520 #include <inttypes.h>
13521 # endif
13522 # ifdef HAVE_SYS_BITYPES_H
13523 #include <sys/bitypes.h>
13524 # endif
13525 #include <stdio.h>
13526 #include <sys/types.h>
13527
13528 main()
13529 {
13530 u_int64_t t = 1;
13531 char strbuf[16+1];
13532 sprintf(strbuf, "%016qx", t << 32);
13533 if (strcmp(strbuf, "0000000100000000") == 0)
13534 exit(0);
13535 else
13536 exit(1);
13537 }
13538
13539
13540 _ACEOF
13541 rm -f conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13546 esac
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561
13562 cat >>confdefs.h <<\_ACEOF
13563 #define PRId64 "qd"
13564 _ACEOF
13565
13566 cat >>confdefs.h <<\_ACEOF
13567 #define PRIo64 "qo"
13568 _ACEOF
13569
13570 cat >>confdefs.h <<\_ACEOF
13571 #define PRIx64 "qx"
13572 _ACEOF
13573
13574 cat >>confdefs.h <<\_ACEOF
13575 #define PRIu64 "qu"
13576 _ACEOF
13577
13578 { echo "$as_me:$LINENO: result: yes" >&5
13579 echo "${ECHO_T}yes" >&6; }
13580
13581 else
13582 echo "$as_me: program exited with status $ac_status" >&5
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 ( exit $ac_status )
13587
13588 { echo "$as_me:$LINENO: result: no" >&5
13589 echo "${ECHO_T}no" >&6; }
13590
13591 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
13592 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
13593 { (exit 1); exit 1; }; }
13594
13595
13596 fi
13597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13598 fi
13599
13600
13601
13602
13603
13604 fi
13605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13606 fi
13607
13608
13609
13610
13611
13612 fi
13613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13614 fi
13615
13616
13617
13618
13619
13620 fi
13621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13622 fi
13623
13624
13625
13626 fi
13627
13628 if test -n "$ac_tool_prefix"; then
13629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13633 if test "${ac_cv_prog_RANLIB+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636 if test -n "$RANLIB"; then
13637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13638 else
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13641 do
13642 IFS=$as_save_IFS
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 break 2
13649 fi
13650 done
13651 done
13652 IFS=$as_save_IFS
13653
13654 fi
13655 fi
13656 RANLIB=$ac_cv_prog_RANLIB
13657 if test -n "$RANLIB"; then
13658 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13659 echo "${ECHO_T}$RANLIB" >&6; }
13660 else
13661 { echo "$as_me:$LINENO: result: no" >&5
13662 echo "${ECHO_T}no" >&6; }
13663 fi
13664
13665
13666 fi
13667 if test -z "$ac_cv_prog_RANLIB"; then
13668 ac_ct_RANLIB=$RANLIB
13669 # Extract the first word of "ranlib", so it can be a program name with args.
13670 set dummy ranlib; ac_word=$2
13671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13673 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676 if test -n "$ac_ct_RANLIB"; then
13677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13678 else
13679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13681 do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
13685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13686 ac_cv_prog_ac_ct_RANLIB="ranlib"
13687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13689 fi
13690 done
13691 done
13692 IFS=$as_save_IFS
13693
13694 fi
13695 fi
13696 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13697 if test -n "$ac_ct_RANLIB"; then
13698 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13699 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13700 else
13701 { echo "$as_me:$LINENO: result: no" >&5
13702 echo "${ECHO_T}no" >&6; }
13703 fi
13704
13705 if test "x$ac_ct_RANLIB" = x; then
13706 RANLIB=":"
13707 else
13708 case $cross_compiling:$ac_tool_warned in
13709 yes:)
13710 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13711 whose name does not start with the host triplet. If you think this
13712 configuration is useful to you, please write to autoconf@gnu.org." >&5
13713 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13714 whose name does not start with the host triplet. If you think this
13715 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13716 ac_tool_warned=yes ;;
13717 esac
13718 RANLIB=$ac_ct_RANLIB
13719 fi
13720 else
13721 RANLIB="$ac_cv_prog_RANLIB"
13722 fi
13723
13724
13725 rm -f os-proto.h
13726 if test "${LBL_CFLAGS+set}" = set; then
13727 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
13728 fi
13729 if test -f .devel ; then
13730 if test "$GCC" = yes ; then
13731 if test "${LBL_CFLAGS+set}" != set; then
13732 if test "$ac_cv_prog_cc_g" = yes ; then
13733 V_CCOPT="-g $V_CCOPT"
13734 fi
13735 V_CCOPT="$V_CCOPT -Wall"
13736 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13737 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13738 fi
13739 fi
13740 else
13741 case "$host_os" in
13742
13743 irix6*)
13744 V_CCOPT="$V_CCOPT -n32"
13745 ;;
13746
13747 *)
13748 ;;
13749 esac
13750 fi
13751 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13752 name="lbl/os-$os.h"
13753 if test -f $name ; then
13754 ln -s $name os-proto.h
13755
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_OS_PROTO_H 1
13758 _ACEOF
13759
13760 else
13761 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13762 echo "$as_me: WARNING: can't find $name" >&2;}
13763 fi
13764 fi
13765
13766 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
13767 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
13768 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771 cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h. */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777
13778 # include <sys/types.h>
13779 # include <sys/socket.h>
13780 int
13781 main ()
13782 {
13783 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13784 ;
13785 return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_compile") 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } && {
13802 test -z "$ac_c_werror_flag" ||
13803 test ! -s conftest.err
13804 } && test -s conftest.$ac_objext; then
13805 ac_cv_lbl_sockaddr_has_sa_len=yes
13806 else
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 ac_cv_lbl_sockaddr_has_sa_len=no
13811 fi
13812
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13814 fi
13815
13816 { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13817 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13818 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13819
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_SOCKADDR_SA_LEN 1
13822 _ACEOF
13823
13824 fi
13825
13826 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13827 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13828 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 case "$host_cpu" in
13832
13833 #
13834 # These are CPU types where:
13835 #
13836 # the CPU faults on an unaligned access, but at least some
13837 # OSes that support that CPU catch the fault and simulate
13838 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13839 # the simulation is slow, so we don't want to use it;
13840 #
13841 # the CPU, I infer (from the old
13842 #
13843 # XXX: should also check that they don't do weird things (like on arm)
13844 #
13845 # comment) doesn't fault on unaligned accesses, but doesn't
13846 # do a normal unaligned fetch, either (e.g., presumably, ARM);
13847 #
13848 # for whatever reason, the test program doesn't work
13849 # (this has been claimed to be the case for several of those
13850 # CPUs - I don't know what the problem is; the problem
13851 # was reported as "the test program dumps core" for SuperH,
13852 # but that's what the test program is *supposed* to do -
13853 # it dumps core before it writes anything, so the test
13854 # for an empty output file should find an empty output
13855 # file and conclude that unaligned accesses don't work).
13856 #
13857 # This run-time test won't work if you're cross-compiling, so
13858 # in order to support cross-compiling for a particular CPU,
13859 # we have to wire in the list of CPU types anyway, as far as
13860 # I know, so perhaps we should just have a set of CPUs on
13861 # which we know it doesn't work, a set of CPUs on which we
13862 # know it does work, and have the script just fail on other
13863 # cpu types and update it when such a failure occurs.
13864 #
13865 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13866 ac_cv_lbl_unaligned_fail=yes
13867 ;;
13868
13869 *)
13870 cat >conftest.c <<EOF
13871 # include <sys/types.h>
13872 # include <sys/wait.h>
13873 # include <stdio.h>
13874 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13875 main() {
13876 unsigned int i;
13877 pid_t pid;
13878 int status;
13879 /* avoid "core dumped" message */
13880 pid = fork();
13881 if (pid < 0)
13882 exit(2);
13883 if (pid > 0) {
13884 /* parent */
13885 pid = waitpid(pid, &status, 0);
13886 if (pid < 0)
13887 exit(3);
13888 exit(!WIFEXITED(status));
13889 }
13890 /* child */
13891 i = *(unsigned int *)&a[1];
13892 printf("%d\n", i);
13893 exit(0);
13894 }
13895 EOF
13896 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13897 conftest.c $LIBS >/dev/null 2>&1
13898 if test ! -x conftest ; then
13899 ac_cv_lbl_unaligned_fail=yes
13900 else
13901 ./conftest >conftest.out
13902 if test ! -s conftest.out ; then
13903 ac_cv_lbl_unaligned_fail=yes
13904 else
13905 ac_cv_lbl_unaligned_fail=no
13906 fi
13907 fi
13908 rm -f -r conftest* core core.conftest
13909 ;;
13910 esac
13911 fi
13912
13913 { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13914 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13915 if test $ac_cv_lbl_unaligned_fail = yes ; then
13916
13917 cat >>confdefs.h <<\_ACEOF
13918 #define LBL_ALIGN 1
13919 _ACEOF
13920
13921 fi
13922
13923
13924 { echo "$as_me:$LINENO: checking for h_errno" >&5
13925 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13926 if test "${ac_cv_var_h_errno+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935
13936 # include <sys/types.h>
13937 # include <netdb.h>
13938 int
13939 main ()
13940 {
13941 int foo = h_errno;
13942 ;
13943 return 0;
13944 }
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_cv_var_h_errno=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_cv_var_h_errno=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 fi
13973
13974 { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13975 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13976 if test "$ac_cv_var_h_errno" = "yes"; then
13977 cat >>confdefs.h <<\_ACEOF
13978 #define HAVE_H_ERRNO 1
13979 _ACEOF
13980
13981 fi
13982
13983
13984 # Check for SSLeay
13985 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13986 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13987 # Specify location for both includes and libraries.
13988 want_libcrypto=youmama
13989
13990 # Check whether --with-crypto was given.
13991 if test "${with_crypto+set}" = set; then
13992 withval=$with_crypto;
13993 if test $withval = no
13994 then
13995 want_libcrypto=no
13996 { echo "$as_me:$LINENO: result: no" >&5
13997 echo "${ECHO_T}no" >&6; }
13998 elif test $withval = yes
13999 then
14000 want_libcrypto=yes
14001 { echo "$as_me:$LINENO: result: yes" >&5
14002 echo "${ECHO_T}yes" >&6; }
14003 else
14004 want_libcrypto=yes
14005 { echo "$as_me:$LINENO: result: yes" >&5
14006 echo "${ECHO_T}yes" >&6; }
14007 crypto_dir=$withval
14008 fi
14009
14010 else
14011
14012 #
14013 # Use libcrypto if it's present, otherwise don't.
14014 #
14015 want_libcrypto=ifavailable
14016 { echo "$as_me:$LINENO: result: yes, if available" >&5
14017 echo "${ECHO_T}yes, if available" >&6; }
14018
14019 fi
14020
14021 if test "$want_libcrypto" != "no"; then
14022 ac_cv_ssleay_path=no
14023 incdir=no
14024 if test "x$crypto_dir" = x; then
14025 #
14026 # Location not specified; check the default locations.
14027 #
14028 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
14029 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
14030 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
14031 if test "x${host_alias}" != x; then
14032 dirs="/usr/${host_alias} $dirs"
14033 fi
14034 for dir in $dirs; do
14035
14036 #
14037 # Find the last component of $libdir; it's not necessarily
14038 # "lib" - it might be "lib64" on, for example, x86-64
14039 # Linux systems.
14040 #
14041 # We assume the directory in which we're looking for
14042 # libcrypto has a subdirectory with that as its name.
14043 #
14044 tmplib=`echo "$libdir" | sed 's,.*/,,'`
14045
14046 #
14047 # XXX - is there a better way to check if a given library is
14048 # in a given directory than checking each of the possible
14049 # shared library suffixes?
14050 #
14051 # Are there any other suffixes we need to look for? Do we
14052 # have to worry about ".so.{version}"?
14053 #
14054 # Or should we just look for "libcrypto.*"?
14055 #
14056 if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
14057 -f "$dir/$tmplib/libcrypto.so" -o \
14058 -f "$dir/$tmplib/libcrypto.sl" -o \
14059 -f "$dir/$tmplib/libcrypto.dylib" \); then
14060 ac_cv_ssleay_path="$dir"
14061 fi
14062
14063 #
14064 # Make sure we have the headers as well.
14065 #
14066 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
14067 incdir="-I$dir/include"
14068 fi
14069
14070
14071 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
14072 break;
14073 else
14074 ac_cv_ssleay_path=no
14075 incdir=no
14076 fi
14077 done
14078 if test "$ac_cv_ssleay_path" != no; then
14079 { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
14080 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
14081 fi
14082 else
14083 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
14084 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
14085
14086 #
14087 # Find the last component of $libdir; it's not necessarily
14088 # "lib" - it might be "lib64" on, for example, x86-64
14089 # Linux systems.
14090 #
14091 # We assume the directory in which we're looking for
14092 # libcrypto has a subdirectory with that as its name.
14093 #
14094 tmplib=`echo "$libdir" | sed 's,.*/,,'`
14095
14096 #
14097 # XXX - is there a better way to check if a given library is
14098 # in a given directory than checking each of the possible
14099 # shared library suffixes?
14100 #
14101 # Are there any other suffixes we need to look for? Do we
14102 # have to worry about ".so.{version}"?
14103 #
14104 # Or should we just look for "libcrypto.*"?
14105 #
14106 if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
14107 -f "$crypto_dir/$tmplib/libcrypto.so" -o \
14108 -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
14109 -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
14110 ac_cv_ssleay_path="$crypto_dir"
14111 fi
14112
14113 #
14114 # Make sure we have the headers as well.
14115 #
14116 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
14117 incdir="-I$crypto_dir/include"
14118 fi
14119
14120 if test "$ac_cv_ssleay_path" != no; then
14121 { echo "$as_me:$LINENO: result: found" >&5
14122 echo "${ECHO_T}found" >&6; }
14123 fi
14124 fi
14125 if test "$ac_cv_ssleay_path" != no; then
14126 V_INCLS="$V_INCLS $incdir"
14127 if test "$dir" != "/usr"; then
14128 LDFLAGS="-L$dir/lib $LDFLAGS"
14129 fi
14130 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
14131 LIBS="$LIBS -lRSAglue"
14132 fi
14133 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
14134 LIBS="$LIBS -lrsaref"
14135 fi
14136
14137 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
14138 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
14139 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142 ac_check_lib_save_LIBS=$LIBS
14143 LIBS="-lcrypto $LIBS"
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150
14151 /* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
14154 #ifdef __cplusplus
14155 extern "C"
14156 #endif
14157 char DES_cbc_encrypt ();
14158 int
14159 main ()
14160 {
14161 return DES_cbc_encrypt ();
14162 ;
14163 return 0;
14164 }
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (ac_try="$ac_link"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_link") 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && {
14180 test -z "$ac_c_werror_flag" ||
14181 test ! -s conftest.err
14182 } && test -s conftest$ac_exeext &&
14183 $as_test_x conftest$ac_exeext; then
14184 ac_cv_lib_crypto_DES_cbc_encrypt=yes
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 ac_cv_lib_crypto_DES_cbc_encrypt=no
14190 fi
14191
14192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14195 fi
14196 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
14197 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
14198 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
14199 cat >>confdefs.h <<_ACEOF
14200 #define HAVE_LIBCRYPTO 1
14201 _ACEOF
14202
14203 LIBS="-lcrypto $LIBS"
14204
14205 fi
14206
14207
14208 CPPFLAGS="$CPPFLAGS $V_INCLS"
14209
14210 for ac_header in openssl/evp.h
14211 do
14212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 fi
14219 ac_res=`eval echo '${'$as_ac_Header'}'`
14220 { echo "$as_me:$LINENO: result: $ac_res" >&5
14221 echo "${ECHO_T}$ac_res" >&6; }
14222 else
14223 # Is the header compilable?
14224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h. */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14233 #include <$ac_header>
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
14243 ac_status=$?
14244 grep -v '^ *+' conftest.er1 >conftest.err
14245 rm -f conftest.er1
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } && {
14249 test -z "$ac_c_werror_flag" ||
14250 test ! -s conftest.err
14251 } && test -s conftest.$ac_objext; then
14252 ac_header_compiler=yes
14253 else
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257 ac_header_compiler=no
14258 fi
14259
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14262 echo "${ECHO_T}$ac_header_compiler" >&6; }
14263
14264 # Is the header present?
14265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 #include <$ac_header>
14274 _ACEOF
14275 if { (ac_try="$ac_cpp conftest.$ac_ext"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } >/dev/null && {
14288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 }; then
14291 ac_header_preproc=yes
14292 else
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 ac_header_preproc=no
14297 fi
14298
14299 rm -f conftest.err conftest.$ac_ext
14300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14301 echo "${ECHO_T}$ac_header_preproc" >&6; }
14302
14303 # So? What about this header?
14304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14305 yes:no: )
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14310 ac_header_preproc=yes
14311 ;;
14312 no:yes:* )
14313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14325
14326 ;;
14327 esac
14328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333 eval "$as_ac_Header=\$ac_header_preproc"
14334 fi
14335 ac_res=`eval echo '${'$as_ac_Header'}'`
14336 { echo "$as_me:$LINENO: result: $ac_res" >&5
14337 echo "${ECHO_T}$ac_res" >&6; }
14338
14339 fi
14340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14341 cat >>confdefs.h <<_ACEOF
14342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 _ACEOF
14344
14345 fi
14346
14347 done
14348
14349 else
14350 #
14351 # Not found. Did the user explicitly ask for it?
14352 #
14353 { echo "$as_me:$LINENO: result: not found" >&5
14354 echo "${ECHO_T}not found" >&6; }
14355 if test "$want_libcrypto" = yes; then
14356 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
14357 echo "$as_me: error: SSLeay not found" >&2;}
14358 { (exit 1); exit 1; }; }
14359 fi
14360 fi
14361 fi
14362
14363 if test "$missing_includes" = "yes"; then
14364 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
14365 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
14366 fi
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377 # Find a good install program. We prefer a C program (faster),
14378 # so one script is as good as another. But avoid the broken or
14379 # incompatible versions:
14380 # SysV /etc/install, /usr/sbin/install
14381 # SunOS /usr/etc/install
14382 # IRIX /sbin/install
14383 # AIX /bin/install
14384 # AmigaOS /C/install, which installs bootblocks on floppy discs
14385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14388 # OS/2's system install, which has a completely different semantic
14389 # ./install, which can be erroneously created by make from ./install.sh.
14390 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14391 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
14392 if test -z "$INSTALL"; then
14393 if test "${ac_cv_path_install+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14398 do
14399 IFS=$as_save_IFS
14400 test -z "$as_dir" && as_dir=.
14401 # Account for people who put trailing slashes in PATH elements.
14402 case $as_dir/ in
14403 ./ | .// | /cC/* | \
14404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14405 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
14406 /usr/ucb/* ) ;;
14407 *)
14408 # OSF1 and SCO ODT 3.0 have their own names for install.
14409 # Don't use installbsd from OSF since it installs stuff as root
14410 # by default.
14411 for ac_prog in ginstall scoinst install; do
14412 for ac_exec_ext in '' $ac_executable_extensions; do
14413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14414 if test $ac_prog = install &&
14415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14416 # AIX install. It has an incompatible calling convention.
14417 :
14418 elif test $ac_prog = install &&
14419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14420 # program-specific install script used by HP pwplus--don't use.
14421 :
14422 else
14423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14424 break 3
14425 fi
14426 fi
14427 done
14428 done
14429 ;;
14430 esac
14431 done
14432 IFS=$as_save_IFS
14433
14434
14435 fi
14436 if test "${ac_cv_path_install+set}" = set; then
14437 INSTALL=$ac_cv_path_install
14438 else
14439 # As a last resort, use the slow shell script. Don't cache a
14440 # value for INSTALL within a source directory, because that will
14441 # break other packages using the cache if that directory is
14442 # removed, or if the value is a relative name.
14443 INSTALL=$ac_install_sh
14444 fi
14445 fi
14446 { echo "$as_me:$LINENO: result: $INSTALL" >&5
14447 echo "${ECHO_T}$INSTALL" >&6; }
14448
14449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14450 # It thinks the first close brace ends the variable substitution.
14451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14452
14453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14454
14455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14456
14457
14458 ac_config_headers="$ac_config_headers config.h"
14459
14460
14461 ac_config_commands="$ac_config_commands default-1"
14462
14463 ac_config_files="$ac_config_files Makefile tcpdump.1"
14464
14465 cat >confcache <<\_ACEOF
14466 # This file is a shell script that caches the results of configure
14467 # tests run on this system so they can be shared between configure
14468 # scripts and configure runs, see configure's option --config-cache.
14469 # It is not useful on other systems. If it contains results you don't
14470 # want to keep, you may remove or edit it.
14471 #
14472 # config.status only pays attention to the cache file if you give it
14473 # the --recheck option to rerun configure.
14474 #
14475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14477 # following values.
14478
14479 _ACEOF
14480
14481 # The following way of writing the cache mishandles newlines in values,
14482 # but we know of no workaround that is simple, portable, and efficient.
14483 # So, we kill variables containing newlines.
14484 # Ultrix sh set writes to stderr and can't be redirected directly,
14485 # and sets the high bit in the cache file unless we assign to the vars.
14486 (
14487 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14488 eval ac_val=\$$ac_var
14489 case $ac_val in #(
14490 *${as_nl}*)
14491 case $ac_var in #(
14492 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14493 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14494 esac
14495 case $ac_var in #(
14496 _ | IFS | as_nl) ;; #(
14497 *) $as_unset $ac_var ;;
14498 esac ;;
14499 esac
14500 done
14501
14502 (set) 2>&1 |
14503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14504 *${as_nl}ac_space=\ *)
14505 # `set' does not quote correctly, so add quotes (double-quote
14506 # substitution turns \\\\ into \\, and sed turns \\ into \).
14507 sed -n \
14508 "s/'/'\\\\''/g;
14509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14510 ;; #(
14511 *)
14512 # `set' quotes correctly as required by POSIX, so do not add quotes.
14513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14514 ;;
14515 esac |
14516 sort
14517 ) |
14518 sed '
14519 /^ac_cv_env_/b end
14520 t clear
14521 :clear
14522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14523 t end
14524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14525 :end' >>confcache
14526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14527 if test -w "$cache_file"; then
14528 test "x$cache_file" != "x/dev/null" &&
14529 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14530 echo "$as_me: updating cache $cache_file" >&6;}
14531 cat confcache >$cache_file
14532 else
14533 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14534 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14535 fi
14536 fi
14537 rm -f confcache
14538
14539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14540 # Let make expand exec_prefix.
14541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14542
14543 DEFS=-DHAVE_CONFIG_H
14544
14545 ac_libobjs=
14546 ac_ltlibobjs=
14547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14548 # 1. Remove the extension, and $U if already installed.
14549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14550 ac_i=`echo "$ac_i" | sed "$ac_script"`
14551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14552 # will be set to the directory where LIBOBJS objects are built.
14553 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14554 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14555 done
14556 LIBOBJS=$ac_libobjs
14557
14558 LTLIBOBJS=$ac_ltlibobjs
14559
14560
14561
14562 : ${CONFIG_STATUS=./config.status}
14563 ac_clean_files_save=$ac_clean_files
14564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14565 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14566 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14567 cat >$CONFIG_STATUS <<_ACEOF
14568 #! $SHELL
14569 # Generated by $as_me.
14570 # Run this file to recreate the current configuration.
14571 # Compiler output produced by configure, useful for debugging
14572 # configure, is in config.log if it exists.
14573
14574 debug=false
14575 ac_cs_recheck=false
14576 ac_cs_silent=false
14577 SHELL=\${CONFIG_SHELL-$SHELL}
14578 _ACEOF
14579
14580 cat >>$CONFIG_STATUS <<\_ACEOF
14581 ## --------------------- ##
14582 ## M4sh Initialization. ##
14583 ## --------------------- ##
14584
14585 # Be more Bourne compatible
14586 DUALCASE=1; export DUALCASE # for MKS sh
14587 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14588 emulate sh
14589 NULLCMD=:
14590 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14591 # is contrary to our usage. Disable this feature.
14592 alias -g '${1+"$@"}'='"$@"'
14593 setopt NO_GLOB_SUBST
14594 else
14595 case `(set -o) 2>/dev/null` in
14596 *posix*) set -o posix ;;
14597 esac
14598
14599 fi
14600
14601
14602
14603
14604 # PATH needs CR
14605 # Avoid depending upon Character Ranges.
14606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14609 as_cr_digits='0123456789'
14610 as_cr_alnum=$as_cr_Letters$as_cr_digits
14611
14612 # The user is always right.
14613 if test "${PATH_SEPARATOR+set}" != set; then
14614 echo "#! /bin/sh" >conf$$.sh
14615 echo "exit 0" >>conf$$.sh
14616 chmod +x conf$$.sh
14617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14618 PATH_SEPARATOR=';'
14619 else
14620 PATH_SEPARATOR=:
14621 fi
14622 rm -f conf$$.sh
14623 fi
14624
14625 # Support unset when possible.
14626 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14627 as_unset=unset
14628 else
14629 as_unset=false
14630 fi
14631
14632
14633 # IFS
14634 # We need space, tab and new line, in precisely that order. Quoting is
14635 # there to prevent editors from complaining about space-tab.
14636 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14637 # splitting by setting IFS to empty value.)
14638 as_nl='
14639 '
14640 IFS=" "" $as_nl"
14641
14642 # Find who we are. Look in the path if we contain no directory separator.
14643 case $0 in
14644 *[\\/]* ) as_myself=$0 ;;
14645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14646 for as_dir in $PATH
14647 do
14648 IFS=$as_save_IFS
14649 test -z "$as_dir" && as_dir=.
14650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14651 done
14652 IFS=$as_save_IFS
14653
14654 ;;
14655 esac
14656 # We did not find ourselves, most probably we were run as `sh COMMAND'
14657 # in which case we are not to be found in the path.
14658 if test "x$as_myself" = x; then
14659 as_myself=$0
14660 fi
14661 if test ! -f "$as_myself"; then
14662 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14663 { (exit 1); exit 1; }
14664 fi
14665
14666 # Work around bugs in pre-3.0 UWIN ksh.
14667 for as_var in ENV MAIL MAILPATH
14668 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14669 done
14670 PS1='$ '
14671 PS2='> '
14672 PS4='+ '
14673
14674 # NLS nuisances.
14675 for as_var in \
14676 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14677 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14678 LC_TELEPHONE LC_TIME
14679 do
14680 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14681 eval $as_var=C; export $as_var
14682 else
14683 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14684 fi
14685 done
14686
14687 # Required to use basename.
14688 if expr a : '\(a\)' >/dev/null 2>&1 &&
14689 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14690 as_expr=expr
14691 else
14692 as_expr=false
14693 fi
14694
14695 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14696 as_basename=basename
14697 else
14698 as_basename=false
14699 fi
14700
14701
14702 # Name of the executable.
14703 as_me=`$as_basename -- "$0" ||
14704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14705 X"$0" : 'X\(//\)$' \| \
14706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14707 echo X/"$0" |
14708 sed '/^.*\/\([^/][^/]*\)\/*$/{
14709 s//\1/
14710 q
14711 }
14712 /^X\/\(\/\/\)$/{
14713 s//\1/
14714 q
14715 }
14716 /^X\/\(\/\).*/{
14717 s//\1/
14718 q
14719 }
14720 s/.*/./; q'`
14721
14722 # CDPATH.
14723 $as_unset CDPATH
14724
14725
14726
14727 as_lineno_1=$LINENO
14728 as_lineno_2=$LINENO
14729 test "x$as_lineno_1" != "x$as_lineno_2" &&
14730 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14731
14732 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14733 # uniformly replaced by the line number. The first 'sed' inserts a
14734 # line-number line after each line using $LINENO; the second 'sed'
14735 # does the real work. The second script uses 'N' to pair each
14736 # line-number line with the line containing $LINENO, and appends
14737 # trailing '-' during substitution so that $LINENO is not a special
14738 # case at line end.
14739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14740 # scripts with optimization help from Paolo Bonzini. Blame Lee
14741 # E. McMahon (1931-1989) for sed's syntax. :-)
14742 sed -n '
14743 p
14744 /[$]LINENO/=
14745 ' <$as_myself |
14746 sed '
14747 s/[$]LINENO.*/&-/
14748 t lineno
14749 b
14750 :lineno
14751 N
14752 :loop
14753 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14754 t loop
14755 s/-\n.*//
14756 ' >$as_me.lineno &&
14757 chmod +x "$as_me.lineno" ||
14758 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14759 { (exit 1); exit 1; }; }
14760
14761 # Don't try to exec as it changes $[0], causing all sort of problems
14762 # (the dirname of $[0] is not the place where we might find the
14763 # original and so on. Autoconf is especially sensitive to this).
14764 . "./$as_me.lineno"
14765 # Exit status is that of the last command.
14766 exit
14767 }
14768
14769
14770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14771 as_dirname=dirname
14772 else
14773 as_dirname=false
14774 fi
14775
14776 ECHO_C= ECHO_N= ECHO_T=
14777 case `echo -n x` in
14778 -n*)
14779 case `echo 'x\c'` in
14780 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14781 *) ECHO_C='\c';;
14782 esac;;
14783 *)
14784 ECHO_N='-n';;
14785 esac
14786
14787 if expr a : '\(a\)' >/dev/null 2>&1 &&
14788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14789 as_expr=expr
14790 else
14791 as_expr=false
14792 fi
14793
14794 rm -f conf$$ conf$$.exe conf$$.file
14795 if test -d conf$$.dir; then
14796 rm -f conf$$.dir/conf$$.file
14797 else
14798 rm -f conf$$.dir
14799 mkdir conf$$.dir
14800 fi
14801 echo >conf$$.file
14802 if ln -s conf$$.file conf$$ 2>/dev/null; then
14803 as_ln_s='ln -s'
14804 # ... but there are two gotchas:
14805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14807 # In both cases, we have to default to `cp -p'.
14808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14809 as_ln_s='cp -p'
14810 elif ln conf$$.file conf$$ 2>/dev/null; then
14811 as_ln_s=ln
14812 else
14813 as_ln_s='cp -p'
14814 fi
14815 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14816 rmdir conf$$.dir 2>/dev/null
14817
14818 if mkdir -p . 2>/dev/null; then
14819 as_mkdir_p=:
14820 else
14821 test -d ./-p && rmdir ./-p
14822 as_mkdir_p=false
14823 fi
14824
14825 if test -x / >/dev/null 2>&1; then
14826 as_test_x='test -x'
14827 else
14828 if ls -dL / >/dev/null 2>&1; then
14829 as_ls_L_option=L
14830 else
14831 as_ls_L_option=
14832 fi
14833 as_test_x='
14834 eval sh -c '\''
14835 if test -d "$1"; then
14836 test -d "$1/.";
14837 else
14838 case $1 in
14839 -*)set "./$1";;
14840 esac;
14841 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14842 ???[sx]*):;;*)false;;esac;fi
14843 '\'' sh
14844 '
14845 fi
14846 as_executable_p=$as_test_x
14847
14848 # Sed expression to map a string onto a valid CPP name.
14849 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14850
14851 # Sed expression to map a string onto a valid variable name.
14852 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14853
14854
14855 exec 6>&1
14856
14857 # Save the log message, to keep $[0] and so on meaningful, and to
14858 # report actual input values of CONFIG_FILES etc. instead of their
14859 # values after options handling.
14860 ac_log="
14861 This file was extended by $as_me, which was
14862 generated by GNU Autoconf 2.61. Invocation command line was
14863
14864 CONFIG_FILES = $CONFIG_FILES
14865 CONFIG_HEADERS = $CONFIG_HEADERS
14866 CONFIG_LINKS = $CONFIG_LINKS
14867 CONFIG_COMMANDS = $CONFIG_COMMANDS
14868 $ $0 $@
14869
14870 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14871 "
14872
14873 _ACEOF
14874
14875 cat >>$CONFIG_STATUS <<_ACEOF
14876 # Files that config.status was made for.
14877 config_files="$ac_config_files"
14878 config_headers="$ac_config_headers"
14879 config_commands="$ac_config_commands"
14880
14881 _ACEOF
14882
14883 cat >>$CONFIG_STATUS <<\_ACEOF
14884 ac_cs_usage="\
14885 \`$as_me' instantiates files from templates according to the
14886 current configuration.
14887
14888 Usage: $0 [OPTIONS] [FILE]...
14889
14890 -h, --help print this help, then exit
14891 -V, --version print version number and configuration settings, then exit
14892 -q, --quiet do not print progress messages
14893 -d, --debug don't remove temporary files
14894 --recheck update $as_me by reconfiguring in the same conditions
14895 --file=FILE[:TEMPLATE]
14896 instantiate the configuration file FILE
14897 --header=FILE[:TEMPLATE]
14898 instantiate the configuration header FILE
14899
14900 Configuration files:
14901 $config_files
14902
14903 Configuration headers:
14904 $config_headers
14905
14906 Configuration commands:
14907 $config_commands
14908
14909 Report bugs to <bug-autoconf@gnu.org>."
14910
14911 _ACEOF
14912 cat >>$CONFIG_STATUS <<_ACEOF
14913 ac_cs_version="\\
14914 config.status
14915 configured by $0, generated by GNU Autoconf 2.61,
14916 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14917
14918 Copyright (C) 2006 Free Software Foundation, Inc.
14919 This config.status script is free software; the Free Software Foundation
14920 gives unlimited permission to copy, distribute and modify it."
14921
14922 ac_pwd='$ac_pwd'
14923 srcdir='$srcdir'
14924 INSTALL='$INSTALL'
14925 _ACEOF
14926
14927 cat >>$CONFIG_STATUS <<\_ACEOF
14928 # If no file are specified by the user, then we need to provide default
14929 # value. By we need to know if files were specified by the user.
14930 ac_need_defaults=:
14931 while test $# != 0
14932 do
14933 case $1 in
14934 --*=*)
14935 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14936 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14937 ac_shift=:
14938 ;;
14939 *)
14940 ac_option=$1
14941 ac_optarg=$2
14942 ac_shift=shift
14943 ;;
14944 esac
14945
14946 case $ac_option in
14947 # Handling of the options.
14948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14949 ac_cs_recheck=: ;;
14950 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14951 echo "$ac_cs_version"; exit ;;
14952 --debug | --debu | --deb | --de | --d | -d )
14953 debug=: ;;
14954 --file | --fil | --fi | --f )
14955 $ac_shift
14956 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14957 ac_need_defaults=false;;
14958 --header | --heade | --head | --hea )
14959 $ac_shift
14960 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14961 ac_need_defaults=false;;
14962 --he | --h)
14963 # Conflict between --help and --header
14964 { echo "$as_me: error: ambiguous option: $1
14965 Try \`$0 --help' for more information." >&2
14966 { (exit 1); exit 1; }; };;
14967 --help | --hel | -h )
14968 echo "$ac_cs_usage"; exit ;;
14969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14970 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14971 ac_cs_silent=: ;;
14972
14973 # This is an error.
14974 -*) { echo "$as_me: error: unrecognized option: $1
14975 Try \`$0 --help' for more information." >&2
14976 { (exit 1); exit 1; }; } ;;
14977
14978 *) ac_config_targets="$ac_config_targets $1"
14979 ac_need_defaults=false ;;
14980
14981 esac
14982 shift
14983 done
14984
14985 ac_configure_extra_args=
14986
14987 if $ac_cs_silent; then
14988 exec 6>/dev/null
14989 ac_configure_extra_args="$ac_configure_extra_args --silent"
14990 fi
14991
14992 _ACEOF
14993 cat >>$CONFIG_STATUS <<_ACEOF
14994 if \$ac_cs_recheck; then
14995 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14996 CONFIG_SHELL=$SHELL
14997 export CONFIG_SHELL
14998 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14999 fi
15000
15001 _ACEOF
15002 cat >>$CONFIG_STATUS <<\_ACEOF
15003 exec 5>>config.log
15004 {
15005 echo
15006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15007 ## Running $as_me. ##
15008 _ASBOX
15009 echo "$ac_log"
15010 } >&5
15011
15012 _ACEOF
15013 cat >>$CONFIG_STATUS <<_ACEOF
15014 #
15015 # INIT-COMMANDS
15016 #
15017
15018
15019 _ACEOF
15020
15021 cat >>$CONFIG_STATUS <<\_ACEOF
15022
15023 # Handling of arguments.
15024 for ac_config_target in $ac_config_targets
15025 do
15026 case $ac_config_target in
15027 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15028 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15030 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
15031
15032 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15033 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15034 { (exit 1); exit 1; }; };;
15035 esac
15036 done
15037
15038
15039 # If the user did not use the arguments to specify the items to instantiate,
15040 # then the envvar interface is used. Set only those that are not.
15041 # We use the long form for the default assignment because of an extremely
15042 # bizarre bug on SunOS 4.1.3.
15043 if $ac_need_defaults; then
15044 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15045 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15046 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15047 fi
15048
15049 # Have a temporary directory for convenience. Make it in the build tree
15050 # simply because there is no reason against having it here, and in addition,
15051 # creating and moving files from /tmp can sometimes cause problems.
15052 # Hook for its removal unless debugging.
15053 # Note that there is a small window in which the directory will not be cleaned:
15054 # after its creation but before its name has been assigned to `$tmp'.
15055 $debug ||
15056 {
15057 tmp=
15058 trap 'exit_status=$?
15059 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15060 ' 0
15061 trap '{ (exit 1); exit 1; }' 1 2 13 15
15062 }
15063 # Create a (secure) tmp directory for tmp files.
15064
15065 {
15066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15067 test -n "$tmp" && test -d "$tmp"
15068 } ||
15069 {
15070 tmp=./conf$$-$RANDOM
15071 (umask 077 && mkdir "$tmp")
15072 } ||
15073 {
15074 echo "$me: cannot create a temporary directory in ." >&2
15075 { (exit 1); exit 1; }
15076 }
15077
15078 #
15079 # Set up the sed scripts for CONFIG_FILES section.
15080 #
15081
15082 # No need to generate the scripts if there are no CONFIG_FILES.
15083 # This happens for instance when ./config.status config.h
15084 if test -n "$CONFIG_FILES"; then
15085
15086 _ACEOF
15087
15088
15089
15090 ac_delim='%!_!# '
15091 for ac_last_try in false false false false false :; do
15092 cat >conf$$subs.sed <<_ACEOF
15093 SHELL!$SHELL$ac_delim
15094 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15095 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15096 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15097 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15098 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15099 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15100 exec_prefix!$exec_prefix$ac_delim
15101 prefix!$prefix$ac_delim
15102 program_transform_name!$program_transform_name$ac_delim
15103 bindir!$bindir$ac_delim
15104 sbindir!$sbindir$ac_delim
15105 libexecdir!$libexecdir$ac_delim
15106 datarootdir!$datarootdir$ac_delim
15107 datadir!$datadir$ac_delim
15108 sysconfdir!$sysconfdir$ac_delim
15109 sharedstatedir!$sharedstatedir$ac_delim
15110 localstatedir!$localstatedir$ac_delim
15111 includedir!$includedir$ac_delim
15112 oldincludedir!$oldincludedir$ac_delim
15113 docdir!$docdir$ac_delim
15114 infodir!$infodir$ac_delim
15115 htmldir!$htmldir$ac_delim
15116 dvidir!$dvidir$ac_delim
15117 pdfdir!$pdfdir$ac_delim
15118 psdir!$psdir$ac_delim
15119 libdir!$libdir$ac_delim
15120 localedir!$localedir$ac_delim
15121 mandir!$mandir$ac_delim
15122 DEFS!$DEFS$ac_delim
15123 ECHO_C!$ECHO_C$ac_delim
15124 ECHO_N!$ECHO_N$ac_delim
15125 ECHO_T!$ECHO_T$ac_delim
15126 LIBS!$LIBS$ac_delim
15127 build_alias!$build_alias$ac_delim
15128 host_alias!$host_alias$ac_delim
15129 target_alias!$target_alias$ac_delim
15130 build!$build$ac_delim
15131 build_cpu!$build_cpu$ac_delim
15132 build_vendor!$build_vendor$ac_delim
15133 build_os!$build_os$ac_delim
15134 host!$host$ac_delim
15135 host_cpu!$host_cpu$ac_delim
15136 host_vendor!$host_vendor$ac_delim
15137 host_os!$host_os$ac_delim
15138 SHLICC2!$SHLICC2$ac_delim
15139 CC!$CC$ac_delim
15140 CFLAGS!$CFLAGS$ac_delim
15141 LDFLAGS!$LDFLAGS$ac_delim
15142 CPPFLAGS!$CPPFLAGS$ac_delim
15143 ac_ct_CC!$ac_ct_CC$ac_delim
15144 EXEEXT!$EXEEXT$ac_delim
15145 OBJEXT!$OBJEXT$ac_delim
15146 CPP!$CPP$ac_delim
15147 GREP!$GREP$ac_delim
15148 EGREP!$EGREP$ac_delim
15149 LIBOBJS!$LIBOBJS$ac_delim
15150 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
15151 RANLIB!$RANLIB$ac_delim
15152 V_CCOPT!$V_CCOPT$ac_delim
15153 V_DEFS!$V_DEFS$ac_delim
15154 V_GROUP!$V_GROUP$ac_delim
15155 V_INCLS!$V_INCLS$ac_delim
15156 V_PCAPDEP!$V_PCAPDEP$ac_delim
15157 LOCALSRC!$LOCALSRC$ac_delim
15158 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
15159 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
15160 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15161 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15162 INSTALL_DATA!$INSTALL_DATA$ac_delim
15163 LTLIBOBJS!$LTLIBOBJS$ac_delim
15164 _ACEOF
15165
15166 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
15167 break
15168 elif $ac_last_try; then
15169 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15171 { (exit 1); exit 1; }; }
15172 else
15173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15174 fi
15175 done
15176
15177 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15178 if test -n "$ac_eof"; then
15179 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15180 ac_eof=`expr $ac_eof + 1`
15181 fi
15182
15183 cat >>$CONFIG_STATUS <<_ACEOF
15184 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15186 _ACEOF
15187 sed '
15188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15189 s/^/s,@/; s/!/@,|#_!!_#|/
15190 :n
15191 t n
15192 s/'"$ac_delim"'$/,g/; t
15193 s/$/\\/; p
15194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15195 ' >>$CONFIG_STATUS <conf$$subs.sed
15196 rm -f conf$$subs.sed
15197 cat >>$CONFIG_STATUS <<_ACEOF
15198 :end
15199 s/|#_!!_#|//g
15200 CEOF$ac_eof
15201 _ACEOF
15202
15203
15204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15206 # trailing colons and then remove the whole line if VPATH becomes empty
15207 # (actually we leave an empty line to preserve line numbers).
15208 if test "x$srcdir" = x.; then
15209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15210 s/:*\$(srcdir):*/:/
15211 s/:*\${srcdir}:*/:/
15212 s/:*@srcdir@:*/:/
15213 s/^\([^=]*=[ ]*\):*/\1/
15214 s/:*$//
15215 s/^[^=]*=[ ]*$//
15216 }'
15217 fi
15218
15219 cat >>$CONFIG_STATUS <<\_ACEOF
15220 fi # test -n "$CONFIG_FILES"
15221
15222
15223 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
15224 do
15225 case $ac_tag in
15226 :[FHLC]) ac_mode=$ac_tag; continue;;
15227 esac
15228 case $ac_mode$ac_tag in
15229 :[FHL]*:*);;
15230 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15232 { (exit 1); exit 1; }; };;
15233 :[FH]-) ac_tag=-:-;;
15234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15235 esac
15236 ac_save_IFS=$IFS
15237 IFS=:
15238 set x $ac_tag
15239 IFS=$ac_save_IFS
15240 shift
15241 ac_file=$1
15242 shift
15243
15244 case $ac_mode in
15245 :L) ac_source=$1;;
15246 :[FH])
15247 ac_file_inputs=
15248 for ac_f
15249 do
15250 case $ac_f in
15251 -) ac_f="$tmp/stdin";;
15252 *) # Look for the file first in the build tree, then in the source tree
15253 # (if the path is not absolute). The absolute path cannot be DOS-style,
15254 # because $ac_f cannot contain `:'.
15255 test -f "$ac_f" ||
15256 case $ac_f in
15257 [\\/$]*) false;;
15258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15259 esac ||
15260 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15262 { (exit 1); exit 1; }; };;
15263 esac
15264 ac_file_inputs="$ac_file_inputs $ac_f"
15265 done
15266
15267 # Let's still pretend it is `configure' which instantiates (i.e., don't
15268 # use $as_me), people would be surprised to read:
15269 # /* config.h. Generated by config.status. */
15270 configure_input="Generated from "`IFS=:
15271 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15272 if test x"$ac_file" != x-; then
15273 configure_input="$ac_file. $configure_input"
15274 { echo "$as_me:$LINENO: creating $ac_file" >&5
15275 echo "$as_me: creating $ac_file" >&6;}
15276 fi
15277
15278 case $ac_tag in
15279 *:-:* | *:-) cat >"$tmp/stdin";;
15280 esac
15281 ;;
15282 esac
15283
15284 ac_dir=`$as_dirname -- "$ac_file" ||
15285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15286 X"$ac_file" : 'X\(//\)[^/]' \| \
15287 X"$ac_file" : 'X\(//\)$' \| \
15288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15289 echo X"$ac_file" |
15290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15291 s//\1/
15292 q
15293 }
15294 /^X\(\/\/\)[^/].*/{
15295 s//\1/
15296 q
15297 }
15298 /^X\(\/\/\)$/{
15299 s//\1/
15300 q
15301 }
15302 /^X\(\/\).*/{
15303 s//\1/
15304 q
15305 }
15306 s/.*/./; q'`
15307 { as_dir="$ac_dir"
15308 case $as_dir in #(
15309 -*) as_dir=./$as_dir;;
15310 esac
15311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15312 as_dirs=
15313 while :; do
15314 case $as_dir in #(
15315 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15316 *) as_qdir=$as_dir;;
15317 esac
15318 as_dirs="'$as_qdir' $as_dirs"
15319 as_dir=`$as_dirname -- "$as_dir" ||
15320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15321 X"$as_dir" : 'X\(//\)[^/]' \| \
15322 X"$as_dir" : 'X\(//\)$' \| \
15323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15324 echo X"$as_dir" |
15325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15326 s//\1/
15327 q
15328 }
15329 /^X\(\/\/\)[^/].*/{
15330 s//\1/
15331 q
15332 }
15333 /^X\(\/\/\)$/{
15334 s//\1/
15335 q
15336 }
15337 /^X\(\/\).*/{
15338 s//\1/
15339 q
15340 }
15341 s/.*/./; q'`
15342 test -d "$as_dir" && break
15343 done
15344 test -z "$as_dirs" || eval "mkdir $as_dirs"
15345 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15347 { (exit 1); exit 1; }; }; }
15348 ac_builddir=.
15349
15350 case "$ac_dir" in
15351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15352 *)
15353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15354 # A ".." for each directory in $ac_dir_suffix.
15355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15356 case $ac_top_builddir_sub in
15357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15359 esac ;;
15360 esac
15361 ac_abs_top_builddir=$ac_pwd
15362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15363 # for backward compatibility:
15364 ac_top_builddir=$ac_top_build_prefix
15365
15366 case $srcdir in
15367 .) # We are building in place.
15368 ac_srcdir=.
15369 ac_top_srcdir=$ac_top_builddir_sub
15370 ac_abs_top_srcdir=$ac_pwd ;;
15371 [\\/]* | ?:[\\/]* ) # Absolute name.
15372 ac_srcdir=$srcdir$ac_dir_suffix;
15373 ac_top_srcdir=$srcdir
15374 ac_abs_top_srcdir=$srcdir ;;
15375 *) # Relative name.
15376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15377 ac_top_srcdir=$ac_top_build_prefix$srcdir
15378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15379 esac
15380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15381
15382
15383 case $ac_mode in
15384 :F)
15385 #
15386 # CONFIG_FILE
15387 #
15388
15389 case $INSTALL in
15390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15392 esac
15393 _ACEOF
15394
15395 cat >>$CONFIG_STATUS <<\_ACEOF
15396 # If the template does not know about datarootdir, expand it.
15397 # FIXME: This hack should be removed a few years after 2.60.
15398 ac_datarootdir_hack=; ac_datarootdir_seen=
15399
15400 case `sed -n '/datarootdir/ {
15401 p
15402 q
15403 }
15404 /@datadir@/p
15405 /@docdir@/p
15406 /@infodir@/p
15407 /@localedir@/p
15408 /@mandir@/p
15409 ' $ac_file_inputs` in
15410 *datarootdir*) ac_datarootdir_seen=yes;;
15411 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15412 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<_ACEOF
15416 ac_datarootdir_hack='
15417 s&@datadir@&$datadir&g
15418 s&@docdir@&$docdir&g
15419 s&@infodir@&$infodir&g
15420 s&@localedir@&$localedir&g
15421 s&@mandir@&$mandir&g
15422 s&\\\${datarootdir}&$datarootdir&g' ;;
15423 esac
15424 _ACEOF
15425
15426 # Neutralize VPATH when `$srcdir' = `.'.
15427 # Shell code in configure.ac might set extrasub.
15428 # FIXME: do we really want to maintain this feature?
15429 cat >>$CONFIG_STATUS <<_ACEOF
15430 sed "$ac_vpsub
15431 $extrasub
15432 _ACEOF
15433 cat >>$CONFIG_STATUS <<\_ACEOF
15434 :t
15435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15436 s&@configure_input@&$configure_input&;t t
15437 s&@top_builddir@&$ac_top_builddir_sub&;t t
15438 s&@srcdir@&$ac_srcdir&;t t
15439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15440 s&@top_srcdir@&$ac_top_srcdir&;t t
15441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15442 s&@builddir@&$ac_builddir&;t t
15443 s&@abs_builddir@&$ac_abs_builddir&;t t
15444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15445 s&@INSTALL@&$ac_INSTALL&;t t
15446 $ac_datarootdir_hack
15447 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15448
15449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15452 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15453 which seems to be undefined. Please make sure it is defined." >&5
15454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15455 which seems to be undefined. Please make sure it is defined." >&2;}
15456
15457 rm -f "$tmp/stdin"
15458 case $ac_file in
15459 -) cat "$tmp/out"; rm -f "$tmp/out";;
15460 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15461 esac
15462 ;;
15463 :H)
15464 #
15465 # CONFIG_HEADER
15466 #
15467 _ACEOF
15468
15469 # Transform confdefs.h into a sed script `conftest.defines', that
15470 # substitutes the proper values into config.h.in to produce config.h.
15471 rm -f conftest.defines conftest.tail
15472 # First, append a space to every undef/define line, to ease matching.
15473 echo 's/$/ /' >conftest.defines
15474 # Then, protect against being on the right side of a sed subst, or in
15475 # an unquoted here document, in config.status. If some macros were
15476 # called several times there might be several #defines for the same
15477 # symbol, which is useless. But do not sort them, since the last
15478 # AC_DEFINE must be honored.
15479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15480 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15481 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15482 # PARAMS is the parameter list in the macro definition--in most cases, it's
15483 # just an empty string.
15484 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15485 ac_dB='\\)[ (].*,\\1define\\2'
15486 ac_dC=' '
15487 ac_dD=' ,'
15488
15489 uniq confdefs.h |
15490 sed -n '
15491 t rset
15492 :rset
15493 s/^[ ]*#[ ]*define[ ][ ]*//
15494 t ok
15495 d
15496 :ok
15497 s/[\\&,]/\\&/g
15498 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15499 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15500 ' >>conftest.defines
15501
15502 # Remove the space that was appended to ease matching.
15503 # Then replace #undef with comments. This is necessary, for
15504 # example, in the case of _POSIX_SOURCE, which is predefined and required
15505 # on some systems where configure will not decide to define it.
15506 # (The regexp can be short, since the line contains either #define or #undef.)
15507 echo 's/ $//
15508 s,^[ #]*u.*,/* & */,' >>conftest.defines
15509
15510 # Break up conftest.defines:
15511 ac_max_sed_lines=50
15512
15513 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15514 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15515 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15516 # et cetera.
15517 ac_in='$ac_file_inputs'
15518 ac_out='"$tmp/out1"'
15519 ac_nxt='"$tmp/out2"'
15520
15521 while :
15522 do
15523 # Write a here document:
15524 cat >>$CONFIG_STATUS <<_ACEOF
15525 # First, check the format of the line:
15526 cat >"\$tmp/defines.sed" <<\\CEOF
15527 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15528 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15529 b
15530 :def
15531 _ACEOF
15532 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15533 echo 'CEOF
15534 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15535 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15536 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15537 grep . conftest.tail >/dev/null || break
15538 rm -f conftest.defines
15539 mv conftest.tail conftest.defines
15540 done
15541 rm -f conftest.defines conftest.tail
15542
15543 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15544 cat >>$CONFIG_STATUS <<\_ACEOF
15545 if test x"$ac_file" != x-; then
15546 echo "/* $configure_input */" >"$tmp/config.h"
15547 cat "$ac_result" >>"$tmp/config.h"
15548 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15550 echo "$as_me: $ac_file is unchanged" >&6;}
15551 else
15552 rm -f $ac_file
15553 mv "$tmp/config.h" $ac_file
15554 fi
15555 else
15556 echo "/* $configure_input */"
15557 cat "$ac_result"
15558 fi
15559 rm -f "$tmp/out12"
15560 ;;
15561
15562 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15563 echo "$as_me: executing $ac_file commands" >&6;}
15564 ;;
15565 esac
15566
15567
15568 case $ac_file$ac_mode in
15569 "default-1":C) if test -f .devel; then
15570 echo timestamp > stamp-h
15571 cat Makefile-devel-adds >> Makefile
15572 make depend
15573 fi ;;
15574
15575 esac
15576 done # for ac_tag
15577
15578
15579 { (exit 0); exit 0; }
15580 _ACEOF
15581 chmod +x $CONFIG_STATUS
15582 ac_clean_files=$ac_clean_files_save
15583
15584
15585 # configure is writing to config.log, and then calls config.status.
15586 # config.status does its own redirection, appending to config.log.
15587 # Unfortunately, on DOS this fails, as config.log is still kept open
15588 # by configure, so config.status won't be able to write to it; its
15589 # output is simply discarded. So we exec the FD to /dev/null,
15590 # effectively closing config.log, so it can be properly (re)opened and
15591 # appended to by config.status. When coming back to configure, we
15592 # need to make the FD available again.
15593 if test "$no_create" != yes; then
15594 ac_cs_success=:
15595 ac_config_status_args=
15596 test "$silent" = yes &&
15597 ac_config_status_args="$ac_config_status_args --quiet"
15598 exec 5>/dev/null
15599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15600 exec 5>>config.log
15601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15602 # would make configure fail if this is the last instruction.
15603 $ac_cs_success || { (exit 1); exit 1; }
15604 fi
15605
15606 exit 0