]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/tcpdump/configure
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / tcpdump / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.196.2.6 .
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 RANLIB
675 V_CCOPT
676 V_DEFS
677 V_GROUP
678 V_INCLS
679 V_PCAPDEP
680 LOCALSRC
681 INSTALL_PROGRAM
682 INSTALL_SCRIPT
683 INSTALL_DATA
684 LTLIBOBJS'
685 ac_subst_files=''
686       ac_precious_vars='build_alias
687 host_alias
688 target_alias
689 CC
690 CFLAGS
691 LDFLAGS
692 LIBS
693 CPPFLAGS
694 CPP'
695
696
697 # Initialize some variables set by options.
698 ac_init_help=
699 ac_init_version=false
700 # The variables have the same names as the options, with
701 # dashes changed to underlines.
702 cache_file=/dev/null
703 exec_prefix=NONE
704 no_create=
705 no_recursion=
706 prefix=NONE
707 program_prefix=NONE
708 program_suffix=NONE
709 program_transform_name=s,x,x,
710 silent=
711 site=
712 srcdir=
713 verbose=
714 x_includes=NONE
715 x_libraries=NONE
716
717 # Installation directory options.
718 # These are left unexpanded so users can "make install exec_prefix=/foo"
719 # and all the variables that are supposed to be based on exec_prefix
720 # by default will actually change.
721 # Use braces instead of parens because sh, perl, etc. also accept them.
722 # (The list follows the same order as the GNU Coding Standards.)
723 bindir='${exec_prefix}/bin'
724 sbindir='${exec_prefix}/sbin'
725 libexecdir='${exec_prefix}/libexec'
726 datarootdir='${prefix}/share'
727 datadir='${datarootdir}'
728 sysconfdir='${prefix}/etc'
729 sharedstatedir='${prefix}/com'
730 localstatedir='${prefix}/var'
731 includedir='${prefix}/include'
732 oldincludedir='/usr/include'
733 docdir='${datarootdir}/doc/${PACKAGE}'
734 infodir='${datarootdir}/info'
735 htmldir='${docdir}'
736 dvidir='${docdir}'
737 pdfdir='${docdir}'
738 psdir='${docdir}'
739 libdir='${exec_prefix}/lib'
740 localedir='${datarootdir}/locale'
741 mandir='${datarootdir}/man'
742
743 ac_prev=
744 ac_dashdash=
745 for ac_option
746 do
747   # If the previous option needs an argument, assign it.
748   if test -n "$ac_prev"; then
749     eval $ac_prev=\$ac_option
750     ac_prev=
751     continue
752   fi
753
754   case $ac_option in
755   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756   *)    ac_optarg=yes ;;
757   esac
758
759   # Accept the important Cygnus configure options, so we can diagnose typos.
760
761   case $ac_dashdash$ac_option in
762   --)
763     ac_dashdash=yes ;;
764
765   -bindir | --bindir | --bindi | --bind | --bin | --bi)
766     ac_prev=bindir ;;
767   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
768     bindir=$ac_optarg ;;
769
770   -build | --build | --buil | --bui | --bu)
771     ac_prev=build_alias ;;
772   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
773     build_alias=$ac_optarg ;;
774
775   -cache-file | --cache-file | --cache-fil | --cache-fi \
776   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
777     ac_prev=cache_file ;;
778   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
779   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
780     cache_file=$ac_optarg ;;
781
782   --config-cache | -C)
783     cache_file=config.cache ;;
784
785   -datadir | --datadir | --datadi | --datad)
786     ac_prev=datadir ;;
787   -datadir=* | --datadir=* | --datadi=* | --datad=*)
788     datadir=$ac_optarg ;;
789
790   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
791   | --dataroo | --dataro | --datar)
792     ac_prev=datarootdir ;;
793   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
794   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
795     datarootdir=$ac_optarg ;;
796
797   -disable-* | --disable-*)
798     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
799     # Reject names that are not valid shell variable names.
800     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
802    { (exit 1); exit 1; }; }
803     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
804     eval enable_$ac_feature=no ;;
805
806   -docdir | --docdir | --docdi | --doc | --do)
807     ac_prev=docdir ;;
808   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809     docdir=$ac_optarg ;;
810
811   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812     ac_prev=dvidir ;;
813   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814     dvidir=$ac_optarg ;;
815
816   -enable-* | --enable-*)
817     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818     # Reject names that are not valid shell variable names.
819     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821    { (exit 1); exit 1; }; }
822     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823     eval enable_$ac_feature=\$ac_optarg ;;
824
825   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
826   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
827   | --exec | --exe | --ex)
828     ac_prev=exec_prefix ;;
829   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
830   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
831   | --exec=* | --exe=* | --ex=*)
832     exec_prefix=$ac_optarg ;;
833
834   -gas | --gas | --ga | --g)
835     # Obsolete; use --with-gas.
836     with_gas=yes ;;
837
838   -help | --help | --hel | --he | -h)
839     ac_init_help=long ;;
840   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
841     ac_init_help=recursive ;;
842   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
843     ac_init_help=short ;;
844
845   -host | --host | --hos | --ho)
846     ac_prev=host_alias ;;
847   -host=* | --host=* | --hos=* | --ho=*)
848     host_alias=$ac_optarg ;;
849
850   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851     ac_prev=htmldir ;;
852   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853   | --ht=*)
854     htmldir=$ac_optarg ;;
855
856   -includedir | --includedir | --includedi | --included | --include \
857   | --includ | --inclu | --incl | --inc)
858     ac_prev=includedir ;;
859   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
860   | --includ=* | --inclu=* | --incl=* | --inc=*)
861     includedir=$ac_optarg ;;
862
863   -infodir | --infodir | --infodi | --infod | --info | --inf)
864     ac_prev=infodir ;;
865   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
866     infodir=$ac_optarg ;;
867
868   -libdir | --libdir | --libdi | --libd)
869     ac_prev=libdir ;;
870   -libdir=* | --libdir=* | --libdi=* | --libd=*)
871     libdir=$ac_optarg ;;
872
873   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
874   | --libexe | --libex | --libe)
875     ac_prev=libexecdir ;;
876   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
877   | --libexe=* | --libex=* | --libe=*)
878     libexecdir=$ac_optarg ;;
879
880   -localedir | --localedir | --localedi | --localed | --locale)
881     ac_prev=localedir ;;
882   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
883     localedir=$ac_optarg ;;
884
885   -localstatedir | --localstatedir | --localstatedi | --localstated \
886   | --localstate | --localstat | --localsta | --localst | --locals)
887     ac_prev=localstatedir ;;
888   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
889   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
890     localstatedir=$ac_optarg ;;
891
892   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893     ac_prev=mandir ;;
894   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
895     mandir=$ac_optarg ;;
896
897   -nfp | --nfp | --nf)
898     # Obsolete; use --without-fp.
899     with_fp=no ;;
900
901   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
902   | --no-cr | --no-c | -n)
903     no_create=yes ;;
904
905   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
906   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
907     no_recursion=yes ;;
908
909   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
910   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
911   | --oldin | --oldi | --old | --ol | --o)
912     ac_prev=oldincludedir ;;
913   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
914   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
915   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
916     oldincludedir=$ac_optarg ;;
917
918   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919     ac_prev=prefix ;;
920   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
921     prefix=$ac_optarg ;;
922
923   -program-prefix | --program-prefix | --program-prefi | --program-pref \
924   | --program-pre | --program-pr | --program-p)
925     ac_prev=program_prefix ;;
926   -program-prefix=* | --program-prefix=* | --program-prefi=* \
927   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
928     program_prefix=$ac_optarg ;;
929
930   -program-suffix | --program-suffix | --program-suffi | --program-suff \
931   | --program-suf | --program-su | --program-s)
932     ac_prev=program_suffix ;;
933   -program-suffix=* | --program-suffix=* | --program-suffi=* \
934   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
935     program_suffix=$ac_optarg ;;
936
937   -program-transform-name | --program-transform-name \
938   | --program-transform-nam | --program-transform-na \
939   | --program-transform-n | --program-transform- \
940   | --program-transform | --program-transfor \
941   | --program-transfo | --program-transf \
942   | --program-trans | --program-tran \
943   | --progr-tra | --program-tr | --program-t)
944     ac_prev=program_transform_name ;;
945   -program-transform-name=* | --program-transform-name=* \
946   | --program-transform-nam=* | --program-transform-na=* \
947   | --program-transform-n=* | --program-transform-=* \
948   | --program-transform=* | --program-transfor=* \
949   | --program-transfo=* | --program-transf=* \
950   | --program-trans=* | --program-tran=* \
951   | --progr-tra=* | --program-tr=* | --program-t=*)
952     program_transform_name=$ac_optarg ;;
953
954   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955     ac_prev=pdfdir ;;
956   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
957     pdfdir=$ac_optarg ;;
958
959   -psdir | --psdir | --psdi | --psd | --ps)
960     ac_prev=psdir ;;
961   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
962     psdir=$ac_optarg ;;
963
964   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
965   | -silent | --silent | --silen | --sile | --sil)
966     silent=yes ;;
967
968   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
969     ac_prev=sbindir ;;
970   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
971   | --sbi=* | --sb=*)
972     sbindir=$ac_optarg ;;
973
974   -sharedstatedir | --sharedstatedir | --sharedstatedi \
975   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
976   | --sharedst | --shareds | --shared | --share | --shar \
977   | --sha | --sh)
978     ac_prev=sharedstatedir ;;
979   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
980   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
981   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
982   | --sha=* | --sh=*)
983     sharedstatedir=$ac_optarg ;;
984
985   -site | --site | --sit)
986     ac_prev=site ;;
987   -site=* | --site=* | --sit=*)
988     site=$ac_optarg ;;
989
990   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
991     ac_prev=srcdir ;;
992   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
993     srcdir=$ac_optarg ;;
994
995   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
996   | --syscon | --sysco | --sysc | --sys | --sy)
997     ac_prev=sysconfdir ;;
998   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
999   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1000     sysconfdir=$ac_optarg ;;
1001
1002   -target | --target | --targe | --targ | --tar | --ta | --t)
1003     ac_prev=target_alias ;;
1004   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1005     target_alias=$ac_optarg ;;
1006
1007   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1008     verbose=yes ;;
1009
1010   -version | --version | --versio | --versi | --vers | -V)
1011     ac_init_version=: ;;
1012
1013   -with-* | --with-*)
1014     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid package name: $ac_package" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1020     eval with_$ac_package=\$ac_optarg ;;
1021
1022   -without-* | --without-*)
1023     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026       { echo "$as_me: error: invalid package name: $ac_package" >&2
1027    { (exit 1); exit 1; }; }
1028     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1029     eval with_$ac_package=no ;;
1030
1031   --x)
1032     # Obsolete; use --with-x.
1033     with_x=yes ;;
1034
1035   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1036   | --x-incl | --x-inc | --x-in | --x-i)
1037     ac_prev=x_includes ;;
1038   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1039   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1040     x_includes=$ac_optarg ;;
1041
1042   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1043   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1044     ac_prev=x_libraries ;;
1045   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1046   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1047     x_libraries=$ac_optarg ;;
1048
1049   -*) { echo "$as_me: error: unrecognized option: $ac_option
1050 Try \`$0 --help' for more information." >&2
1051    { (exit 1); exit 1; }; }
1052     ;;
1053
1054   *=*)
1055     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1058       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1059    { (exit 1); exit 1; }; }
1060     eval $ac_envvar=\$ac_optarg
1061     export $ac_envvar ;;
1062
1063   *)
1064     # FIXME: should be removed in autoconf 3.0.
1065     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1066     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1068     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1069     ;;
1070
1071   esac
1072 done
1073
1074 if test -n "$ac_prev"; then
1075   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1076   { echo "$as_me: error: missing argument to $ac_option" >&2
1077    { (exit 1); exit 1; }; }
1078 fi
1079
1080 # Be sure to have absolute directory names.
1081 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1082                 datadir sysconfdir sharedstatedir localstatedir includedir \
1083                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1084                 libdir localedir mandir
1085 do
1086   eval ac_val=\$$ac_var
1087   case $ac_val in
1088     [\\/$]* | ?:[\\/]* )  continue;;
1089     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1090   esac
1091   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1092    { (exit 1); exit 1; }; }
1093 done
1094
1095 # There might be people who depend on the old broken behavior: `$host'
1096 # used to hold the argument of --host etc.
1097 # FIXME: To remove some day.
1098 build=$build_alias
1099 host=$host_alias
1100 target=$target_alias
1101
1102 # FIXME: To remove some day.
1103 if test "x$host_alias" != x; then
1104   if test "x$build_alias" = x; then
1105     cross_compiling=maybe
1106     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1107     If a cross compiler is detected then cross compile mode will be used." >&2
1108   elif test "x$build_alias" != "x$host_alias"; then
1109     cross_compiling=yes
1110   fi
1111 fi
1112
1113 ac_tool_prefix=
1114 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1115
1116 test "$silent" = yes && exec 6>/dev/null
1117
1118
1119 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1120 ac_ls_di=`ls -di .` &&
1121 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1122   { echo "$as_me: error: Working directory cannot be determined" >&2
1123    { (exit 1); exit 1; }; }
1124 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1125   { echo "$as_me: error: pwd does not report name of working directory" >&2
1126    { (exit 1); exit 1; }; }
1127
1128
1129 # Find the source files, if location was not specified.
1130 if test -z "$srcdir"; then
1131   ac_srcdir_defaulted=yes
1132   # Try the directory containing this script, then the parent directory.
1133   ac_confdir=`$as_dirname -- "$0" ||
1134 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1135          X"$0" : 'X\(//\)[^/]' \| \
1136          X"$0" : 'X\(//\)$' \| \
1137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1138 echo X"$0" |
1139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1140             s//\1/
1141             q
1142           }
1143           /^X\(\/\/\)[^/].*/{
1144             s//\1/
1145             q
1146           }
1147           /^X\(\/\/\)$/{
1148             s//\1/
1149             q
1150           }
1151           /^X\(\/\).*/{
1152             s//\1/
1153             q
1154           }
1155           s/.*/./; q'`
1156   srcdir=$ac_confdir
1157   if test ! -r "$srcdir/$ac_unique_file"; then
1158     srcdir=..
1159   fi
1160 else
1161   ac_srcdir_defaulted=no
1162 fi
1163 if test ! -r "$srcdir/$ac_unique_file"; then
1164   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1165   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1166    { (exit 1); exit 1; }; }
1167 fi
1168 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 ac_abs_confdir=`(
1170         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1171    { (exit 1); exit 1; }; }
1172         pwd)`
1173 # When building in place, set srcdir=.
1174 if test "$ac_abs_confdir" = "$ac_pwd"; then
1175   srcdir=.
1176 fi
1177 # Remove unnecessary trailing slashes from srcdir.
1178 # Double slashes in file names in object file debugging info
1179 # mess up M-x gdb in Emacs.
1180 case $srcdir in
1181 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 esac
1183 for ac_var in $ac_precious_vars; do
1184   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1185   eval ac_env_${ac_var}_value=\$${ac_var}
1186   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1187   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1188 done
1189
1190 #
1191 # Report the --help message.
1192 #
1193 if test "$ac_init_help" = "long"; then
1194   # Omit some internal or obsolete options to make the list less imposing.
1195   # This message is too long to be a string in the A/UX 3.1 sh.
1196   cat <<_ACEOF
1197 \`configure' configures this package to adapt to many kinds of systems.
1198
1199 Usage: $0 [OPTION]... [VAR=VALUE]...
1200
1201 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1202 VAR=VALUE.  See below for descriptions of some of the useful variables.
1203
1204 Defaults for the options are specified in brackets.
1205
1206 Configuration:
1207   -h, --help              display this help and exit
1208       --help=short        display options specific to this package
1209       --help=recursive    display the short help of all the included packages
1210   -V, --version           display version information and exit
1211   -q, --quiet, --silent   do not print \`checking...' messages
1212       --cache-file=FILE   cache test results in FILE [disabled]
1213   -C, --config-cache      alias for \`--cache-file=config.cache'
1214   -n, --no-create         do not create output files
1215       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1216
1217 Installation directories:
1218   --prefix=PREFIX         install architecture-independent files in PREFIX
1219                           [$ac_default_prefix]
1220   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1221                           [PREFIX]
1222
1223 By default, \`make install' will install all the files in
1224 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1225 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1226 for instance \`--prefix=\$HOME'.
1227
1228 For better control, use the options below.
1229
1230 Fine tuning of the installation directories:
1231   --bindir=DIR           user executables [EPREFIX/bin]
1232   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1233   --libexecdir=DIR       program executables [EPREFIX/libexec]
1234   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1235   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1236   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1237   --libdir=DIR           object code libraries [EPREFIX/lib]
1238   --includedir=DIR       C header files [PREFIX/include]
1239   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1240   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1241   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1242   --infodir=DIR          info documentation [DATAROOTDIR/info]
1243   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1244   --mandir=DIR           man documentation [DATAROOTDIR/man]
1245   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1246   --htmldir=DIR          html documentation [DOCDIR]
1247   --dvidir=DIR           dvi documentation [DOCDIR]
1248   --pdfdir=DIR           pdf documentation [DOCDIR]
1249   --psdir=DIR            ps documentation [DOCDIR]
1250 _ACEOF
1251
1252   cat <<\_ACEOF
1253
1254 System types:
1255   --build=BUILD     configure for building on BUILD [guessed]
1256   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1257 _ACEOF
1258 fi
1259
1260 if test -n "$ac_init_help"; then
1261
1262   cat <<\_ACEOF
1263
1264 Optional Features:
1265   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1266   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1267   --enable-smb            enable possibly-buggy SMB printer default=yes
1268   --disable-smb           disable possibly-buggy SMB printer
1269   --enable-ipv6           enable ipv6 (with ipv4) support
1270   --disable-ipv6          disable ipv6 support
1271
1272 Optional Packages:
1273   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1274   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1275   --without-gcc           don't use gcc
1276   --with-user=USERNAME    drop privileges by default to USERNAME
1277   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1278   --with-crypto[=PATH]    use SSLeay libcrypto (located in directory PATH, if
1279                           supplied). [default=yes, if available]
1280
1281 Some influential environment variables:
1282   CC          C compiler command
1283   CFLAGS      C compiler flags
1284   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1285               nonstandard directory <lib dir>
1286   LIBS        libraries to pass to the linker, e.g. -l<library>
1287   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1288               you have headers in a nonstandard directory <include dir>
1289   CPP         C preprocessor
1290
1291 Use these variables to override the choices made by `configure' or to help
1292 it to find libraries and programs with nonstandard names/locations.
1293
1294 _ACEOF
1295 ac_status=$?
1296 fi
1297
1298 if test "$ac_init_help" = "recursive"; then
1299   # If there are subdirs, report their specific --help.
1300   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1301     test -d "$ac_dir" || continue
1302     ac_builddir=.
1303
1304 case "$ac_dir" in
1305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1306 *)
1307   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1308   # A ".." for each directory in $ac_dir_suffix.
1309   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1310   case $ac_top_builddir_sub in
1311   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1313   esac ;;
1314 esac
1315 ac_abs_top_builddir=$ac_pwd
1316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1317 # for backward compatibility:
1318 ac_top_builddir=$ac_top_build_prefix
1319
1320 case $srcdir in
1321   .)  # We are building in place.
1322     ac_srcdir=.
1323     ac_top_srcdir=$ac_top_builddir_sub
1324     ac_abs_top_srcdir=$ac_pwd ;;
1325   [\\/]* | ?:[\\/]* )  # Absolute name.
1326     ac_srcdir=$srcdir$ac_dir_suffix;
1327     ac_top_srcdir=$srcdir
1328     ac_abs_top_srcdir=$srcdir ;;
1329   *) # Relative name.
1330     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1331     ac_top_srcdir=$ac_top_build_prefix$srcdir
1332     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1333 esac
1334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1335
1336     cd "$ac_dir" || { ac_status=$?; continue; }
1337     # Check for guested configure.
1338     if test -f "$ac_srcdir/configure.gnu"; then
1339       echo &&
1340       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1341     elif test -f "$ac_srcdir/configure"; then
1342       echo &&
1343       $SHELL "$ac_srcdir/configure" --help=recursive
1344     else
1345       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1346     fi || ac_status=$?
1347     cd "$ac_pwd" || { ac_status=$?; break; }
1348   done
1349 fi
1350
1351 test -n "$ac_init_help" && exit $ac_status
1352 if $ac_init_version; then
1353   cat <<\_ACEOF
1354 configure
1355 generated by GNU Autoconf 2.61
1356
1357 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1358 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1359 This configure script is free software; the Free Software Foundation
1360 gives unlimited permission to copy, distribute and modify it.
1361 _ACEOF
1362   exit
1363 fi
1364 cat >config.log <<_ACEOF
1365 This file contains any messages produced by compilers while
1366 running configure, to aid debugging if configure makes a mistake.
1367
1368 It was created by $as_me, which was
1369 generated by GNU Autoconf 2.61.  Invocation command line was
1370
1371   $ $0 $@
1372
1373 _ACEOF
1374 exec 5>>config.log
1375 {
1376 cat <<_ASUNAME
1377 ## --------- ##
1378 ## Platform. ##
1379 ## --------- ##
1380
1381 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1382 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1383 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1384 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1385 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1386
1387 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1388 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1389
1390 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1391 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1392 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1393 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1394 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1395 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1396 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1397
1398 _ASUNAME
1399
1400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 for as_dir in $PATH
1402 do
1403   IFS=$as_save_IFS
1404   test -z "$as_dir" && as_dir=.
1405   echo "PATH: $as_dir"
1406 done
1407 IFS=$as_save_IFS
1408
1409 } >&5
1410
1411 cat >&5 <<_ACEOF
1412
1413
1414 ## ----------- ##
1415 ## Core tests. ##
1416 ## ----------- ##
1417
1418 _ACEOF
1419
1420
1421 # Keep a trace of the command line.
1422 # Strip out --no-create and --no-recursion so they do not pile up.
1423 # Strip out --silent because we don't want to record it for future runs.
1424 # Also quote any args containing shell meta-characters.
1425 # Make two passes to allow for proper duplicate-argument suppression.
1426 ac_configure_args=
1427 ac_configure_args0=
1428 ac_configure_args1=
1429 ac_must_keep_next=false
1430 for ac_pass in 1 2
1431 do
1432   for ac_arg
1433   do
1434     case $ac_arg in
1435     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1436     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1437     | -silent | --silent | --silen | --sile | --sil)
1438       continue ;;
1439     *\'*)
1440       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1441     esac
1442     case $ac_pass in
1443     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1444     2)
1445       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1446       if test $ac_must_keep_next = true; then
1447         ac_must_keep_next=false # Got value, back to normal.
1448       else
1449         case $ac_arg in
1450           *=* | --config-cache | -C | -disable-* | --disable-* \
1451           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1452           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1453           | -with-* | --with-* | -without-* | --without-* | --x)
1454             case "$ac_configure_args0 " in
1455               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1456             esac
1457             ;;
1458           -* ) ac_must_keep_next=true ;;
1459         esac
1460       fi
1461       ac_configure_args="$ac_configure_args '$ac_arg'"
1462       ;;
1463     esac
1464   done
1465 done
1466 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1467 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1468
1469 # When interrupted or exit'd, cleanup temporary files, and complete
1470 # config.log.  We remove comments because anyway the quotes in there
1471 # would cause problems or look ugly.
1472 # WARNING: Use '\'' to represent an apostrophe within the trap.
1473 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1474 trap 'exit_status=$?
1475   # Save into config.log some information that might help in debugging.
1476   {
1477     echo
1478
1479     cat <<\_ASBOX
1480 ## ---------------- ##
1481 ## Cache variables. ##
1482 ## ---------------- ##
1483 _ASBOX
1484     echo
1485     # The following way of writing the cache mishandles newlines in values,
1486 (
1487   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1488     eval ac_val=\$$ac_var
1489     case $ac_val in #(
1490     *${as_nl}*)
1491       case $ac_var in #(
1492       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1493 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1494       esac
1495       case $ac_var in #(
1496       _ | IFS | as_nl) ;; #(
1497       *) $as_unset $ac_var ;;
1498       esac ;;
1499     esac
1500   done
1501   (set) 2>&1 |
1502     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1503     *${as_nl}ac_space=\ *)
1504       sed -n \
1505         "s/'\''/'\''\\\\'\'''\''/g;
1506           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1507       ;; #(
1508     *)
1509       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1510       ;;
1511     esac |
1512     sort
1513 )
1514     echo
1515
1516     cat <<\_ASBOX
1517 ## ----------------- ##
1518 ## Output variables. ##
1519 ## ----------------- ##
1520 _ASBOX
1521     echo
1522     for ac_var in $ac_subst_vars
1523     do
1524       eval ac_val=\$$ac_var
1525       case $ac_val in
1526       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1527       esac
1528       echo "$ac_var='\''$ac_val'\''"
1529     done | sort
1530     echo
1531
1532     if test -n "$ac_subst_files"; then
1533       cat <<\_ASBOX
1534 ## ------------------- ##
1535 ## File substitutions. ##
1536 ## ------------------- ##
1537 _ASBOX
1538       echo
1539       for ac_var in $ac_subst_files
1540       do
1541         eval ac_val=\$$ac_var
1542         case $ac_val in
1543         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1544         esac
1545         echo "$ac_var='\''$ac_val'\''"
1546       done | sort
1547       echo
1548     fi
1549
1550     if test -s confdefs.h; then
1551       cat <<\_ASBOX
1552 ## ----------- ##
1553 ## confdefs.h. ##
1554 ## ----------- ##
1555 _ASBOX
1556       echo
1557       cat confdefs.h
1558       echo
1559     fi
1560     test "$ac_signal" != 0 &&
1561       echo "$as_me: caught signal $ac_signal"
1562     echo "$as_me: exit $exit_status"
1563   } >&5
1564   rm -f core *.core core.conftest.* &&
1565     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1566     exit $exit_status
1567 ' 0
1568 for ac_signal in 1 2 13 15; do
1569   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1570 done
1571 ac_signal=0
1572
1573 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1574 rm -f -r conftest* confdefs.h
1575
1576 # Predefined preprocessor variables.
1577
1578 cat >>confdefs.h <<_ACEOF
1579 #define PACKAGE_NAME "$PACKAGE_NAME"
1580 _ACEOF
1581
1582
1583 cat >>confdefs.h <<_ACEOF
1584 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1585 _ACEOF
1586
1587
1588 cat >>confdefs.h <<_ACEOF
1589 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1590 _ACEOF
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE_STRING "$PACKAGE_STRING"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1600 _ACEOF
1601
1602
1603 # Let the site file select an alternate cache file if it wants to.
1604 # Prefer explicitly selected file to automatically selected ones.
1605 if test -n "$CONFIG_SITE"; then
1606   set x "$CONFIG_SITE"
1607 elif test "x$prefix" != xNONE; then
1608   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1609 else
1610   set x "$ac_default_prefix/share/config.site" \
1611         "$ac_default_prefix/etc/config.site"
1612 fi
1613 shift
1614 for ac_site_file
1615 do
1616   if test -r "$ac_site_file"; then
1617     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1618 echo "$as_me: loading site script $ac_site_file" >&6;}
1619     sed 's/^/| /' "$ac_site_file" >&5
1620     . "$ac_site_file"
1621   fi
1622 done
1623
1624 if test -r "$cache_file"; then
1625   # Some versions of bash will fail to source /dev/null (special
1626   # files actually), so we avoid doing that.
1627   if test -f "$cache_file"; then
1628     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1629 echo "$as_me: loading cache $cache_file" >&6;}
1630     case $cache_file in
1631       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1632       *)                      . "./$cache_file";;
1633     esac
1634   fi
1635 else
1636   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1637 echo "$as_me: creating cache $cache_file" >&6;}
1638   >$cache_file
1639 fi
1640
1641 # Check that the precious variables saved in the cache have kept the same
1642 # value.
1643 ac_cache_corrupted=false
1644 for ac_var in $ac_precious_vars; do
1645   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1646   eval ac_new_set=\$ac_env_${ac_var}_set
1647   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1648   eval ac_new_val=\$ac_env_${ac_var}_value
1649   case $ac_old_set,$ac_new_set in
1650     set,)
1651       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1652 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1653       ac_cache_corrupted=: ;;
1654     ,set)
1655       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1656 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1657       ac_cache_corrupted=: ;;
1658     ,);;
1659     *)
1660       if test "x$ac_old_val" != "x$ac_new_val"; then
1661         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1662 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1663         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1664 echo "$as_me:   former value:  $ac_old_val" >&2;}
1665         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1666 echo "$as_me:   current value: $ac_new_val" >&2;}
1667         ac_cache_corrupted=:
1668       fi;;
1669   esac
1670   # Pass precious variables to config.status.
1671   if test "$ac_new_set" = set; then
1672     case $ac_new_val in
1673     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1674     *) ac_arg=$ac_var=$ac_new_val ;;
1675     esac
1676     case " $ac_configure_args " in
1677       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1678       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1679     esac
1680   fi
1681 done
1682 if $ac_cache_corrupted; then
1683   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1684 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1685   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1686 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1687    { (exit 1); exit 1; }; }
1688 fi
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706 ac_ext=c
1707 ac_cpp='$CPP $CPPFLAGS'
1708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1711
1712
1713
1714 ac_aux_dir=
1715 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1716   if test -f "$ac_dir/install-sh"; then
1717     ac_aux_dir=$ac_dir
1718     ac_install_sh="$ac_aux_dir/install-sh -c"
1719     break
1720   elif test -f "$ac_dir/install.sh"; then
1721     ac_aux_dir=$ac_dir
1722     ac_install_sh="$ac_aux_dir/install.sh -c"
1723     break
1724   elif test -f "$ac_dir/shtool"; then
1725     ac_aux_dir=$ac_dir
1726     ac_install_sh="$ac_aux_dir/shtool install -c"
1727     break
1728   fi
1729 done
1730 if test -z "$ac_aux_dir"; then
1731   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1732 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1733    { (exit 1); exit 1; }; }
1734 fi
1735
1736 # These three variables are undocumented and unsupported,
1737 # and are intended to be withdrawn in a future Autoconf release.
1738 # They can cause serious problems if a builder's source tree is in a directory
1739 # whose full name contains unusual characters.
1740 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1741 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1742 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1743
1744
1745 # Make sure we can run config.sub.
1746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1747   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1748 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1749    { (exit 1); exit 1; }; }
1750
1751 { echo "$as_me:$LINENO: checking build system type" >&5
1752 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1753 if test "${ac_cv_build+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   ac_build_alias=$build_alias
1757 test "x$ac_build_alias" = x &&
1758   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1759 test "x$ac_build_alias" = x &&
1760   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1761 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1762    { (exit 1); exit 1; }; }
1763 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1764   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1765 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1766    { (exit 1); exit 1; }; }
1767
1768 fi
1769 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1770 echo "${ECHO_T}$ac_cv_build" >&6; }
1771 case $ac_cv_build in
1772 *-*-*) ;;
1773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1774 echo "$as_me: error: invalid value of canonical build" >&2;}
1775    { (exit 1); exit 1; }; };;
1776 esac
1777 build=$ac_cv_build
1778 ac_save_IFS=$IFS; IFS='-'
1779 set x $ac_cv_build
1780 shift
1781 build_cpu=$1
1782 build_vendor=$2
1783 shift; shift
1784 # Remember, the first character of IFS is used to create $*,
1785 # except with old shells:
1786 build_os=$*
1787 IFS=$ac_save_IFS
1788 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1789
1790
1791 { echo "$as_me:$LINENO: checking host system type" >&5
1792 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1793 if test "${ac_cv_host+set}" = set; then
1794   echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796   if test "x$host_alias" = x; then
1797   ac_cv_host=$ac_cv_build
1798 else
1799   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1800     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1802    { (exit 1); exit 1; }; }
1803 fi
1804
1805 fi
1806 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1807 echo "${ECHO_T}$ac_cv_host" >&6; }
1808 case $ac_cv_host in
1809 *-*-*) ;;
1810 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1811 echo "$as_me: error: invalid value of canonical host" >&2;}
1812    { (exit 1); exit 1; }; };;
1813 esac
1814 host=$ac_cv_host
1815 ac_save_IFS=$IFS; IFS='-'
1816 set x $ac_cv_host
1817 shift
1818 host_cpu=$1
1819 host_vendor=$2
1820 shift; shift
1821 # Remember, the first character of IFS is used to create $*,
1822 # except with old shells:
1823 host_os=$*
1824 IFS=$ac_save_IFS
1825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1826
1827
1828
1829
1830
1831
1832
1833
1834 # Check whether --with-gcc was given.
1835 if test "${with_gcc+set}" = set; then
1836   withval=$with_gcc;
1837 fi
1838
1839     V_CCOPT="-O"
1840     V_INCLS=""
1841     if test "${srcdir}" != "." ; then
1842             V_INCLS="-I\$(srcdir)"
1843     fi
1844     if test "${CFLAGS+set}" = set; then
1845             LBL_CFLAGS="$CFLAGS"
1846     fi
1847     if test -z "$CC" ; then
1848             case "$host_os" in
1849
1850             bsdi*)
1851                     # Extract the first word of "shlicc2", so it can be a program name with args.
1852 set dummy shlicc2; ac_word=$2
1853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1855 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1856   echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858   if test -n "$SHLICC2"; then
1859   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864   IFS=$as_save_IFS
1865   test -z "$as_dir" && as_dir=.
1866   for ac_exec_ext in '' $ac_executable_extensions; do
1867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1868     ac_cv_prog_SHLICC2="yes"
1869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870     break 2
1871   fi
1872 done
1873 done
1874 IFS=$as_save_IFS
1875
1876   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1877 fi
1878 fi
1879 SHLICC2=$ac_cv_prog_SHLICC2
1880 if test -n "$SHLICC2"; then
1881   { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1882 echo "${ECHO_T}$SHLICC2" >&6; }
1883 else
1884   { echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6; }
1886 fi
1887
1888
1889                     if test $SHLICC2 = yes ; then
1890                             CC=shlicc2
1891                             export CC
1892                     fi
1893                     ;;
1894             esac
1895     fi
1896     if test -z "$CC" -a "$with_gcc" = no ; then
1897             CC=cc
1898             export CC
1899     fi
1900     ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 if test -n "$ac_tool_prefix"; then
1906   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$CC"; then
1914   ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1923     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929 IFS=$as_save_IFS
1930
1931 fi
1932 fi
1933 CC=$ac_cv_prog_CC
1934 if test -n "$CC"; then
1935   { echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6; }
1937 else
1938   { echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6; }
1940 fi
1941
1942
1943 fi
1944 if test -z "$ac_cv_prog_CC"; then
1945   ac_ct_CC=$CC
1946   # Extract the first word of "gcc", so it can be a program name with args.
1947 set dummy gcc; ac_word=$2
1948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951   echo $ECHO_N "(cached) $ECHO_C" >&6
1952 else
1953   if test -n "$ac_ct_CC"; then
1954   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1955 else
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959   IFS=$as_save_IFS
1960   test -z "$as_dir" && as_dir=.
1961   for ac_exec_ext in '' $ac_executable_extensions; do
1962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963     ac_cv_prog_ac_ct_CC="gcc"
1964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965     break 2
1966   fi
1967 done
1968 done
1969 IFS=$as_save_IFS
1970
1971 fi
1972 fi
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6; }
1977 else
1978   { echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6; }
1980 fi
1981
1982   if test "x$ac_ct_CC" = x; then
1983     CC=""
1984   else
1985     case $cross_compiling:$ac_tool_warned in
1986 yes:)
1987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1988 whose name does not start with the host triplet.  If you think this
1989 configuration is useful to you, please write to autoconf@gnu.org." >&5
1990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1991 whose name does not start with the host triplet.  If you think this
1992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1993 ac_tool_warned=yes ;;
1994 esac
1995     CC=$ac_ct_CC
1996   fi
1997 else
1998   CC="$ac_cv_prog_CC"
1999 fi
2000
2001 if test -z "$CC"; then
2002           if test -n "$ac_tool_prefix"; then
2003     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}cc; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$CC"; then
2011   ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2020     ac_cv_prog_CC="${ac_tool_prefix}cc"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026 IFS=$as_save_IFS
2027
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2034 else
2035   { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 fi
2038
2039
2040   fi
2041 fi
2042 if test -z "$CC"; then
2043   # Extract the first word of "cc", so it can be a program name with args.
2044 set dummy cc; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053   ac_prog_rejected=no
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2062        ac_prog_rejected=yes
2063        continue
2064      fi
2065     ac_cv_prog_CC="cc"
2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067     break 2
2068   fi
2069 done
2070 done
2071 IFS=$as_save_IFS
2072
2073 if test $ac_prog_rejected = yes; then
2074   # We found a bogon in the path, so make sure we never use it.
2075   set dummy $ac_cv_prog_CC
2076   shift
2077   if test $# != 0; then
2078     # We chose a different compiler from the bogus one.
2079     # However, it has the same basename, so the bogon will be chosen
2080     # first if we set CC to just the basename; use the full file name.
2081     shift
2082     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2083   fi
2084 fi
2085 fi
2086 fi
2087 CC=$ac_cv_prog_CC
2088 if test -n "$CC"; then
2089   { echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6; }
2091 else
2092   { echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6; }
2094 fi
2095
2096
2097 fi
2098 if test -z "$CC"; then
2099   if test -n "$ac_tool_prefix"; then
2100   for ac_prog in cl.exe
2101   do
2102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test -n "$CC"; then
2110   ac_cv_prog_CC="$CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115   IFS=$as_save_IFS
2116   test -z "$as_dir" && as_dir=.
2117   for ac_exec_ext in '' $ac_executable_extensions; do
2118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2119     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121     break 2
2122   fi
2123 done
2124 done
2125 IFS=$as_save_IFS
2126
2127 fi
2128 fi
2129 CC=$ac_cv_prog_CC
2130 if test -n "$CC"; then
2131   { echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6; }
2133 else
2134   { echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6; }
2136 fi
2137
2138
2139     test -n "$CC" && break
2140   done
2141 fi
2142 if test -z "$CC"; then
2143   ac_ct_CC=$CC
2144   for ac_prog in cl.exe
2145 do
2146   # Extract the first word of "$ac_prog", so it can be a program name with args.
2147 set dummy $ac_prog; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$ac_ct_CC"; then
2154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163     ac_cv_prog_ac_ct_CC="$ac_prog"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169 IFS=$as_save_IFS
2170
2171 fi
2172 fi
2173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2174 if test -n "$ac_ct_CC"; then
2175   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2176 echo "${ECHO_T}$ac_ct_CC" >&6; }
2177 else
2178   { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2180 fi
2181
2182
2183   test -n "$ac_ct_CC" && break
2184 done
2185
2186   if test "x$ac_ct_CC" = x; then
2187     CC=""
2188   else
2189     case $cross_compiling:$ac_tool_warned in
2190 yes:)
2191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet.  If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&5
2194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2195 whose name does not start with the host triplet.  If you think this
2196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2197 ac_tool_warned=yes ;;
2198 esac
2199     CC=$ac_ct_CC
2200   fi
2201 fi
2202
2203 fi
2204
2205
2206 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: no acceptable C compiler found in \$PATH
2209 See \`config.log' for more details." >&2;}
2210    { (exit 1); exit 1; }; }
2211
2212 # Provide some information about the compiler.
2213 echo "$as_me:$LINENO: checking for C compiler version" >&5
2214 ac_compiler=`set X $ac_compile; echo $2`
2215 { (ac_try="$ac_compiler --version >&5"
2216 case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221   (eval "$ac_compiler --version >&5") 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }
2225 { (ac_try="$ac_compiler -v >&5"
2226 case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231   (eval "$ac_compiler -v >&5") 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }
2235 { (ac_try="$ac_compiler -V >&5"
2236 case "(($ac_try" in
2237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238   *) ac_try_echo=$ac_try;;
2239 esac
2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241   (eval "$ac_compiler -V >&5") 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }
2245
2246 cat >conftest.$ac_ext <<_ACEOF
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252
2253 int
2254 main ()
2255 {
2256
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 ac_clean_files_save=$ac_clean_files
2262 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2263 # Try to create an executable without -o first, disregard a.out.
2264 # It will help us diagnose broken compilers, and finding out an intuition
2265 # of exeext.
2266 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2267 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2268 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2269 #
2270 # List of possible output files, starting from the most likely.
2271 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2272 # only as a last resort.  b.out is created by i960 compilers.
2273 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2274 #
2275 # The IRIX 6 linker writes into existing files which may not be
2276 # executable, retaining their permissions.  Remove them first so a
2277 # subsequent execution test works.
2278 ac_rmfiles=
2279 for ac_file in $ac_files
2280 do
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2284   esac
2285 done
2286 rm -f $ac_rmfiles
2287
2288 if { (ac_try="$ac_link_default"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294   (eval "$ac_link_default") 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2299 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2300 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2301 # so that the user can short-circuit this test for compilers unknown to
2302 # Autoconf.
2303 for ac_file in $ac_files ''
2304 do
2305   test -f "$ac_file" || continue
2306   case $ac_file in
2307     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2308         ;;
2309     [ab].out )
2310         # We found the default executable, but exeext='' is most
2311         # certainly right.
2312         break;;
2313     *.* )
2314         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2315         then :; else
2316            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317         fi
2318         # We set ac_cv_exeext here because the later test for it is not
2319         # safe: cross compilers may not add the suffix if given an `-o'
2320         # argument, so we may need to know it at that point already.
2321         # Even if this section looks crufty: it has the advantage of
2322         # actually working.
2323         break;;
2324     * )
2325         break;;
2326   esac
2327 done
2328 test "$ac_cv_exeext" = no && ac_cv_exeext=
2329
2330 else
2331   ac_file=''
2332 fi
2333
2334 { echo "$as_me:$LINENO: result: $ac_file" >&5
2335 echo "${ECHO_T}$ac_file" >&6; }
2336 if test -z "$ac_file"; then
2337   echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&2;}
2344    { (exit 77); exit 77; }; }
2345 fi
2346
2347 ac_exeext=$ac_cv_exeext
2348
2349 # Check that the compiler produces executables we can run.  If not, either
2350 # the compiler is broken, or we cross compile.
2351 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2352 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2353 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2354 # If not cross compiling, check that we can run a simple program.
2355 if test "$cross_compiling" != yes; then
2356   if { ac_try='./$ac_file'
2357   { (case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362   (eval "$ac_try") 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; }; then
2366     cross_compiling=no
2367   else
2368     if test "$cross_compiling" = maybe; then
2369         cross_compiling=yes
2370     else
2371         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2372 If you meant to cross compile, use \`--host'.
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot run C compiled programs.
2375 If you meant to cross compile, use \`--host'.
2376 See \`config.log' for more details." >&2;}
2377    { (exit 1); exit 1; }; }
2378     fi
2379   fi
2380 fi
2381 { echo "$as_me:$LINENO: result: yes" >&5
2382 echo "${ECHO_T}yes" >&6; }
2383
2384 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2385 ac_clean_files=$ac_clean_files_save
2386 # Check that the compiler produces executables we can run.  If not, either
2387 # the compiler is broken, or we cross compile.
2388 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2389 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2390 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2391 echo "${ECHO_T}$cross_compiling" >&6; }
2392
2393 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2394 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2395 if { (ac_try="$ac_link"
2396 case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_link") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; then
2405   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2406 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2407 # work properly (i.e., refer to `conftest.exe'), while it won't with
2408 # `rm'.
2409 for ac_file in conftest.exe conftest conftest.*; do
2410   test -f "$ac_file" || continue
2411   case $ac_file in
2412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414           break;;
2415     * ) break;;
2416   esac
2417 done
2418 else
2419   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422 See \`config.log' for more details." >&2;}
2423    { (exit 1); exit 1; }; }
2424 fi
2425
2426 rm -f conftest$ac_cv_exeext
2427 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2429
2430 rm -f conftest.$ac_ext
2431 EXEEXT=$ac_cv_exeext
2432 ac_exeext=$EXEEXT
2433 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2435 if test "${ac_cv_objext+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h.  */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h.  */
2444
2445 int
2446 main ()
2447 {
2448
2449   ;
2450   return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.o conftest.obj
2454 if { (ac_try="$ac_compile"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460   (eval "$ac_compile") 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; then
2464   for ac_file in conftest.o conftest.obj conftest.*; do
2465   test -f "$ac_file" || continue;
2466   case $ac_file in
2467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2468     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2469        break;;
2470   esac
2471 done
2472 else
2473   echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2479 See \`config.log' for more details." >&2;}
2480    { (exit 1); exit 1; }; }
2481 fi
2482
2483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2484 fi
2485 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2486 echo "${ECHO_T}$ac_cv_objext" >&6; }
2487 OBJEXT=$ac_cv_objext
2488 ac_objext=$OBJEXT
2489 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2490 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2491 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504 #ifndef __GNUC__
2505        choke me
2506 #endif
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_compile") 2>conftest.er1
2520   ac_status=$?
2521   grep -v '^ *+' conftest.er1 >conftest.err
2522   rm -f conftest.er1
2523   cat conftest.err >&5
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); } && {
2526          test -z "$ac_c_werror_flag" ||
2527          test ! -s conftest.err
2528        } && test -s conftest.$ac_objext; then
2529   ac_compiler_gnu=yes
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534         ac_compiler_gnu=no
2535 fi
2536
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2539
2540 fi
2541 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2542 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2543 GCC=`test $ac_compiler_gnu = yes && echo yes`
2544 ac_test_CFLAGS=${CFLAGS+set}
2545 ac_save_CFLAGS=$CFLAGS
2546 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2547 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_cc_g+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   ac_save_c_werror_flag=$ac_c_werror_flag
2552    ac_c_werror_flag=yes
2553    ac_cv_prog_cc_g=no
2554    CFLAGS="-g"
2555    cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h.  */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h.  */
2561
2562 int
2563 main ()
2564 {
2565
2566   ;
2567   return 0;
2568 }
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (ac_try="$ac_compile"
2572 case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_compile") 2>conftest.er1
2578   ac_status=$?
2579   grep -v '^ *+' conftest.er1 >conftest.err
2580   rm -f conftest.er1
2581   cat conftest.err >&5
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } && {
2584          test -z "$ac_c_werror_flag" ||
2585          test ! -s conftest.err
2586        } && test -s conftest.$ac_objext; then
2587   ac_cv_prog_cc_g=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592         CFLAGS=""
2593       cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599
2600 int
2601 main ()
2602 {
2603
2604   ;
2605   return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2610 case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615   (eval "$ac_compile") 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } && {
2622          test -z "$ac_c_werror_flag" ||
2623          test ! -s conftest.err
2624        } && test -s conftest.$ac_objext; then
2625   :
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630         ac_c_werror_flag=$ac_save_c_werror_flag
2631          CFLAGS="-g"
2632          cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638
2639 int
2640 main ()
2641 {
2642
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2649 case "(($ac_try" in
2650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651   *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654   (eval "$ac_compile") 2>conftest.er1
2655   ac_status=$?
2656   grep -v '^ *+' conftest.er1 >conftest.err
2657   rm -f conftest.er1
2658   cat conftest.err >&5
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); } && {
2661          test -z "$ac_c_werror_flag" ||
2662          test ! -s conftest.err
2663        } && test -s conftest.$ac_objext; then
2664   ac_cv_prog_cc_g=yes
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669
2670 fi
2671
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 fi
2674
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679    ac_c_werror_flag=$ac_save_c_werror_flag
2680 fi
2681 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2682 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2683 if test "$ac_test_CFLAGS" = set; then
2684   CFLAGS=$ac_save_CFLAGS
2685 elif test $ac_cv_prog_cc_g = yes; then
2686   if test "$GCC" = yes; then
2687     CFLAGS="-g -O2"
2688   else
2689     CFLAGS="-g"
2690   fi
2691 else
2692   if test "$GCC" = yes; then
2693     CFLAGS="-O2"
2694   else
2695     CFLAGS=
2696   fi
2697 fi
2698 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2699 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2700 if test "${ac_cv_prog_cc_c89+set}" = set; then
2701   echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703   ac_cv_prog_cc_c89=no
2704 ac_save_CC=$CC
2705 cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711 #include <stdarg.h>
2712 #include <stdio.h>
2713 #include <sys/types.h>
2714 #include <sys/stat.h>
2715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2716 struct buf { int x; };
2717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2718 static char *e (p, i)
2719      char **p;
2720      int i;
2721 {
2722   return p[i];
2723 }
2724 static char *f (char * (*g) (char **, int), char **p, ...)
2725 {
2726   char *s;
2727   va_list v;
2728   va_start (v,p);
2729   s = g (p, va_arg (v,int));
2730   va_end (v);
2731   return s;
2732 }
2733
2734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2735    function prototypes and stuff, but not '\xHH' hex character constants.
2736    These don't provoke an error unfortunately, instead are silently treated
2737    as 'x'.  The following induces an error, until -std is added to get
2738    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2739    array size at least.  It's necessary to write '\x00'==0 to get something
2740    that's true only with -std.  */
2741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2742
2743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2744    inside strings and character constants.  */
2745 #define FOO(x) 'x'
2746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2747
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2754 int
2755 main ()
2756 {
2757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2763         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2764 do
2765   CC="$ac_save_CC $ac_arg"
2766   rm -f conftest.$ac_objext
2767 if { (ac_try="$ac_compile"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_compile") 2>conftest.er1
2774   ac_status=$?
2775   grep -v '^ *+' conftest.er1 >conftest.err
2776   rm -f conftest.er1
2777   cat conftest.err >&5
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } && {
2780          test -z "$ac_c_werror_flag" ||
2781          test ! -s conftest.err
2782        } && test -s conftest.$ac_objext; then
2783   ac_cv_prog_cc_c89=$ac_arg
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788
2789 fi
2790
2791 rm -f core conftest.err conftest.$ac_objext
2792   test "x$ac_cv_prog_cc_c89" != "xno" && break
2793 done
2794 rm -f conftest.$ac_ext
2795 CC=$ac_save_CC
2796
2797 fi
2798 # AC_CACHE_VAL
2799 case "x$ac_cv_prog_cc_c89" in
2800   x)
2801     { echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6; } ;;
2803   xno)
2804     { echo "$as_me:$LINENO: result: unsupported" >&5
2805 echo "${ECHO_T}unsupported" >&6; } ;;
2806   *)
2807     CC="$CC $ac_cv_prog_cc_c89"
2808     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2810 esac
2811
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819     if test "$GCC" = yes ; then
2820             if test "$SHLICC2" = yes ; then
2821                     ac_cv_lbl_gcc_vers=2
2822                     V_CCOPT="-O2"
2823             else
2824                     { echo "$as_me:$LINENO: checking gcc version" >&5
2825 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2826                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2830                             sed -e '/^gcc version /!d' \
2831                                 -e 's/^gcc version //' \
2832                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2833                                 -e 's/\..*//'`
2834 fi
2835
2836                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2837 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2838                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2839                             V_CCOPT="-O2"
2840                     fi
2841             fi
2842     else
2843             { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2844 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2845             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2846   echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848
2849 cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h.  */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h.  */
2855 #include <sys/types.h>
2856 int
2857 main ()
2858 {
2859 int frob(int, char *)
2860   ;
2861   return 0;
2862 }
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2866 case "(($ac_try" in
2867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868   *) ac_try_echo=$ac_try;;
2869 esac
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871   (eval "$ac_compile") 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } && {
2878          test -z "$ac_c_werror_flag" ||
2879          test ! -s conftest.err
2880        } && test -s conftest.$ac_objext; then
2881   ac_cv_lbl_cc_ansi_prototypes=yes
2882 else
2883   echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886         ac_cv_lbl_cc_ansi_prototypes=no
2887 fi
2888
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 fi
2891
2892             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2893 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2894             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2895                     case "$host_os" in
2896
2897                     hpux*)
2898                             { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2899 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2900                             savedcflags="$CFLAGS"
2901                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2902                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h.  */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h.  */
2911 #include <sys/types.h>
2912 int
2913 main ()
2914 {
2915 int frob(int, char *)
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927   (eval "$ac_compile") 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } && {
2934          test -z "$ac_c_werror_flag" ||
2935          test ! -s conftest.err
2936        } && test -s conftest.$ac_objext; then
2937   ac_cv_lbl_cc_hpux_cc_aa=yes
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942         ac_cv_lbl_cc_hpux_cc_aa=no
2943 fi
2944
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 fi
2947
2948                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2949 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2950                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2951                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2952 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2953    { (exit 1); exit 1; }; }
2954                             fi
2955                             CFLAGS="$savedcflags"
2956                             V_CCOPT="-Aa $V_CCOPT"
2957                             cat >>confdefs.h <<\_ACEOF
2958 #define _HPUX_SOURCE 1
2959 _ACEOF
2960
2961                             ;;
2962
2963                     *)
2964                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2965 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2966    { (exit 1); exit 1; }; }
2967                             ;;
2968                     esac
2969             fi
2970             V_INCLS="$V_INCLS -I/usr/local/include"
2971             LDFLAGS="$LDFLAGS -L/usr/local/lib"
2972
2973             case "$host_os" in
2974
2975             irix*)
2976                     V_CCOPT="$V_CCOPT -xansi -signed -O"
2977                     ;;
2978
2979             osf*)
2980                     V_CCOPT="$V_CCOPT -std1 -O"
2981                     ;;
2982
2983             ultrix*)
2984                     { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2985 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
2986                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h.  */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h.  */
2995 #include <sys/types.h>
2996 int
2997 main ()
2998 {
2999 struct a { int b; };
3000                             void c(const struct a *)
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } && {
3019          test -z "$ac_c_werror_flag" ||
3020          test ! -s conftest.err
3021        } && test -s conftest.$ac_objext; then
3022   ac_cv_lbl_cc_const_proto=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027         ac_cv_lbl_cc_const_proto=no
3028 fi
3029
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 fi
3032
3033                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3034 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3035                     if test $ac_cv_lbl_cc_const_proto = no ; then
3036                             cat >>confdefs.h <<\_ACEOF
3037 #define const
3038 _ACEOF
3039
3040                     fi
3041                     ;;
3042             esac
3043     fi
3044
3045 { echo "$as_me:$LINENO: checking for inline" >&5
3046 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3047     if test "${ac_cv_lbl_inline+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050
3051         ac_cv_lbl_inline=""
3052         ac_lbl_cc_inline=no
3053         for ac_lbl_inline in inline __inline__ __inline
3054         do
3055             cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #define inline $ac_lbl_inline
3062                 static inline struct iltest *foo(void);
3063                 struct iltest {
3064                     int iltest1;
3065                     int iltest2;
3066                 };
3067
3068                 static inline struct iltest *
3069                 foo()
3070                 {
3071                     static struct iltest xxx;
3072
3073                     return &xxx;
3074                 }
3075 int
3076 main ()
3077 {
3078
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_lbl_cc_inline=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105
3106 fi
3107
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109             if test "$ac_lbl_cc_inline" = yes ; then
3110                 break;
3111             fi
3112         done
3113         if test "$ac_lbl_cc_inline" = yes ; then
3114             ac_cv_lbl_inline=$ac_lbl_inline
3115         fi
3116 fi
3117
3118     if test ! -z "$ac_cv_lbl_inline" ; then
3119         { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3120 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3121     else
3122         { echo "$as_me:$LINENO: result: no" >&5
3123 echo "${ECHO_T}no" >&6; }
3124     fi
3125
3126 cat >>confdefs.h <<_ACEOF
3127 #define inline $ac_cv_lbl_inline
3128 _ACEOF
3129
3130
3131 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3132 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3133 if test "${ac_cv___attribute__+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143
3144 #include <stdlib.h>
3145
3146 static void foo(void) __attribute__ ((noreturn));
3147
3148 static void
3149 foo(void)
3150 {
3151   exit(1);
3152 }
3153
3154 int
3155 main(int argc, char **argv)
3156 {
3157   foo();
3158 }
3159
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_compile") 2>conftest.er1
3169   ac_status=$?
3170   grep -v '^ *+' conftest.er1 >conftest.err
3171   rm -f conftest.er1
3172   cat conftest.err >&5
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); } && {
3175          test -z "$ac_c_werror_flag" ||
3176          test ! -s conftest.err
3177        } && test -s conftest.$ac_objext; then
3178   ac_cv___attribute__=yes
3179 else
3180   echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183         ac_cv___attribute__=no
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188
3189 if test "$ac_cv___attribute__" = "yes"; then
3190
3191 cat >>confdefs.h <<\_ACEOF
3192 #define HAVE___ATTRIBUTE__ 1
3193 _ACEOF
3194
3195   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3196 else
3197   V_DEFS="$V_DEFS -D_U_=\"\""
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3200 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3201
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209 # On Suns, sometimes $CPP names a directory.
3210 if test -n "$CPP" && test -d "$CPP"; then
3211   CPP=
3212 fi
3213 if test -z "$CPP"; then
3214   if test "${ac_cv_prog_CPP+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217       # Double quotes because CPP needs to be expanded
3218     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219     do
3220       ac_preproc_ok=false
3221 for ac_c_preproc_warn_flag in '' yes
3222 do
3223   # Use a header file that comes with gcc, so configuring glibc
3224   # with a fresh cross-compiler works.
3225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226   # <limits.h> exists even on freestanding compilers.
3227   # On the NeXT, cc -E runs the code through the compiler's parser,
3228   # not just through cpp. "Syntax error" is here to catch this case.
3229   cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #ifdef __STDC__
3236 # include <limits.h>
3237 #else
3238 # include <assert.h>
3239 #endif
3240                      Syntax error
3241 _ACEOF
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } >/dev/null && {
3255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3256          test ! -s conftest.err
3257        }; then
3258   :
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Broken: fails on valid input.
3264 continue
3265 fi
3266
3267 rm -f conftest.err conftest.$ac_ext
3268
3269   # OK, works on sane cases.  Now check whether nonexistent headers
3270   # can be detected and how.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include <ac_nonexistent.h>
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null && {
3292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3293          test ! -s conftest.err
3294        }; then
3295   # Broken: success on invalid input.
3296 continue
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Passes both tests.
3302 ac_preproc_ok=:
3303 break
3304 fi
3305
3306 rm -f conftest.err conftest.$ac_ext
3307
3308 done
3309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310 rm -f conftest.err conftest.$ac_ext
3311 if $ac_preproc_ok; then
3312   break
3313 fi
3314
3315     done
3316     ac_cv_prog_CPP=$CPP
3317
3318 fi
3319   CPP=$ac_cv_prog_CPP
3320 else
3321   ac_cv_prog_CPP=$CPP
3322 fi
3323 { echo "$as_me:$LINENO: result: $CPP" >&5
3324 echo "${ECHO_T}$CPP" >&6; }
3325 ac_preproc_ok=false
3326 for ac_c_preproc_warn_flag in '' yes
3327 do
3328   # Use a header file that comes with gcc, so configuring glibc
3329   # with a fresh cross-compiler works.
3330   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331   # <limits.h> exists even on freestanding compilers.
3332   # On the NeXT, cc -E runs the code through the compiler's parser,
3333   # not just through cpp. "Syntax error" is here to catch this case.
3334   cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340 #ifdef __STDC__
3341 # include <limits.h>
3342 #else
3343 # include <assert.h>
3344 #endif
3345                      Syntax error
3346 _ACEOF
3347 if { (ac_try="$ac_cpp conftest.$ac_ext"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } >/dev/null && {
3360          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3361          test ! -s conftest.err
3362        }; then
3363   :
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368   # Broken: fails on valid input.
3369 continue
3370 fi
3371
3372 rm -f conftest.err conftest.$ac_ext
3373
3374   # OK, works on sane cases.  Now check whether nonexistent headers
3375   # can be detected and how.
3376   cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 #include <ac_nonexistent.h>
3383 _ACEOF
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391   ac_status=$?
3392   grep -v '^ *+' conftest.er1 >conftest.err
3393   rm -f conftest.er1
3394   cat conftest.err >&5
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); } >/dev/null && {
3397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398          test ! -s conftest.err
3399        }; then
3400   # Broken: success on invalid input.
3401 continue
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406   # Passes both tests.
3407 ac_preproc_ok=:
3408 break
3409 fi
3410
3411 rm -f conftest.err conftest.$ac_ext
3412
3413 done
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then
3417   :
3418 else
3419   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3420 See \`config.log' for more details." >&5
3421 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3422 See \`config.log' for more details." >&2;}
3423    { (exit 1); exit 1; }; }
3424 fi
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431
3432
3433 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3434 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3435 if test "${ac_cv_path_GREP+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   # Extract the first word of "grep ggrep" to use in msg output
3439 if test -z "$GREP"; then
3440 set dummy grep ggrep; ac_prog_name=$2
3441 if test "${ac_cv_path_GREP+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   ac_path_GREP_found=false
3445 # Loop through the user's path and test for each of PROGNAME-LIST
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448 do
3449   IFS=$as_save_IFS
3450   test -z "$as_dir" && as_dir=.
3451   for ac_prog in grep ggrep; do
3452   for ac_exec_ext in '' $ac_executable_extensions; do
3453     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3454     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3455     # Check for GNU ac_path_GREP and select it if it is found.
3456   # Check for GNU $ac_path_GREP
3457 case `"$ac_path_GREP" --version 2>&1` in
3458 *GNU*)
3459   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3460 *)
3461   ac_count=0
3462   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3463   while :
3464   do
3465     cat "conftest.in" "conftest.in" >"conftest.tmp"
3466     mv "conftest.tmp" "conftest.in"
3467     cp "conftest.in" "conftest.nl"
3468     echo 'GREP' >> "conftest.nl"
3469     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3471     ac_count=`expr $ac_count + 1`
3472     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3473       # Best one so far, save it but keep looking for a better one
3474       ac_cv_path_GREP="$ac_path_GREP"
3475       ac_path_GREP_max=$ac_count
3476     fi
3477     # 10*(2^10) chars as input seems more than enough
3478     test $ac_count -gt 10 && break
3479   done
3480   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481 esac
3482
3483
3484     $ac_path_GREP_found && break 3
3485   done
3486 done
3487
3488 done
3489 IFS=$as_save_IFS
3490
3491
3492 fi
3493
3494 GREP="$ac_cv_path_GREP"
3495 if test -z "$GREP"; then
3496   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3497 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3498    { (exit 1); exit 1; }; }
3499 fi
3500
3501 else
3502   ac_cv_path_GREP=$GREP
3503 fi
3504
3505
3506 fi
3507 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3508 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3509  GREP="$ac_cv_path_GREP"
3510
3511
3512 { echo "$as_me:$LINENO: checking for egrep" >&5
3513 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3514 if test "${ac_cv_path_EGREP+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3518    then ac_cv_path_EGREP="$GREP -E"
3519    else
3520      # Extract the first word of "egrep" to use in msg output
3521 if test -z "$EGREP"; then
3522 set dummy egrep; ac_prog_name=$2
3523 if test "${ac_cv_path_EGREP+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   ac_path_EGREP_found=false
3527 # Loop through the user's path and test for each of PROGNAME-LIST
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3530 do
3531   IFS=$as_save_IFS
3532   test -z "$as_dir" && as_dir=.
3533   for ac_prog in egrep; do
3534   for ac_exec_ext in '' $ac_executable_extensions; do
3535     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3536     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3537     # Check for GNU ac_path_EGREP and select it if it is found.
3538   # Check for GNU $ac_path_EGREP
3539 case `"$ac_path_EGREP" --version 2>&1` in
3540 *GNU*)
3541   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3542 *)
3543   ac_count=0
3544   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3545   while :
3546   do
3547     cat "conftest.in" "conftest.in" >"conftest.tmp"
3548     mv "conftest.tmp" "conftest.in"
3549     cp "conftest.in" "conftest.nl"
3550     echo 'EGREP' >> "conftest.nl"
3551     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3552     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3553     ac_count=`expr $ac_count + 1`
3554     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3555       # Best one so far, save it but keep looking for a better one
3556       ac_cv_path_EGREP="$ac_path_EGREP"
3557       ac_path_EGREP_max=$ac_count
3558     fi
3559     # 10*(2^10) chars as input seems more than enough
3560     test $ac_count -gt 10 && break
3561   done
3562   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3563 esac
3564
3565
3566     $ac_path_EGREP_found && break 3
3567   done
3568 done
3569
3570 done
3571 IFS=$as_save_IFS
3572
3573
3574 fi
3575
3576 EGREP="$ac_cv_path_EGREP"
3577 if test -z "$EGREP"; then
3578   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3579 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3580    { (exit 1); exit 1; }; }
3581 fi
3582
3583 else
3584   ac_cv_path_EGREP=$EGREP
3585 fi
3586
3587
3588    fi
3589 fi
3590 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3591 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3592  EGREP="$ac_cv_path_EGREP"
3593
3594
3595 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3597 if test "${ac_cv_header_stdc+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h.  */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h.  */
3606 #include <stdlib.h>
3607 #include <stdarg.h>
3608 #include <string.h>
3609 #include <float.h>
3610
3611 int
3612 main ()
3613 {
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (ac_try="$ac_compile"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626   (eval "$ac_compile") 2>conftest.er1
3627   ac_status=$?
3628   grep -v '^ *+' conftest.er1 >conftest.err
3629   rm -f conftest.er1
3630   cat conftest.err >&5
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); } && {
3633          test -z "$ac_c_werror_flag" ||
3634          test ! -s conftest.err
3635        } && test -s conftest.$ac_objext; then
3636   ac_cv_header_stdc=yes
3637 else
3638   echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641         ac_cv_header_stdc=no
3642 fi
3643
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645
3646 if test $ac_cv_header_stdc = yes; then
3647   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3648   cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654 #include <string.h>
3655
3656 _ACEOF
3657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3658   $EGREP "memchr" >/dev/null 2>&1; then
3659   :
3660 else
3661   ac_cv_header_stdc=no
3662 fi
3663 rm -f conftest*
3664
3665 fi
3666
3667 if test $ac_cv_header_stdc = yes; then
3668   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3669   cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675 #include <stdlib.h>
3676
3677 _ACEOF
3678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3679   $EGREP "free" >/dev/null 2>&1; then
3680   :
3681 else
3682   ac_cv_header_stdc=no
3683 fi
3684 rm -f conftest*
3685
3686 fi
3687
3688 if test $ac_cv_header_stdc = yes; then
3689   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3690   if test "$cross_compiling" = yes; then
3691   :
3692 else
3693   cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699 #include <ctype.h>
3700 #include <stdlib.h>
3701 #if ((' ' & 0x0FF) == 0x020)
3702 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3703 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3704 #else
3705 # define ISLOWER(c) \
3706                    (('a' <= (c) && (c) <= 'i') \
3707                      || ('j' <= (c) && (c) <= 'r') \
3708                      || ('s' <= (c) && (c) <= 'z'))
3709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3710 #endif
3711
3712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3713 int
3714 main ()
3715 {
3716   int i;
3717   for (i = 0; i < 256; i++)
3718     if (XOR (islower (i), ISLOWER (i))
3719         || toupper (i) != TOUPPER (i))
3720       return 2;
3721   return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest$ac_exeext
3725 if { (ac_try="$ac_link"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_link") 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3735   { (case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740   (eval "$ac_try") 2>&5
3741   ac_status=$?
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); }; }; then
3744   :
3745 else
3746   echo "$as_me: program exited with status $ac_status" >&5
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ( exit $ac_status )
3751 ac_cv_header_stdc=no
3752 fi
3753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3754 fi
3755
3756
3757 fi
3758 fi
3759 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3760 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3761 if test $ac_cv_header_stdc = yes; then
3762
3763 cat >>confdefs.h <<\_ACEOF
3764 #define STDC_HEADERS 1
3765 _ACEOF
3766
3767 fi
3768
3769 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3780                   inttypes.h stdint.h unistd.h
3781 do
3782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3786   echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788   cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794 $ac_includes_default
3795
3796 #include <$ac_header>
3797 _ACEOF
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805   (eval "$ac_compile") 2>conftest.er1
3806   ac_status=$?
3807   grep -v '^ *+' conftest.er1 >conftest.err
3808   rm -f conftest.er1
3809   cat conftest.err >&5
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); } && {
3812          test -z "$ac_c_werror_flag" ||
3813          test ! -s conftest.err
3814        } && test -s conftest.$ac_objext; then
3815   eval "$as_ac_Header=yes"
3816 else
3817   echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820         eval "$as_ac_Header=no"
3821 fi
3822
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 ac_res=`eval echo '${'$as_ac_Header'}'`
3826                { echo "$as_me:$LINENO: result: $ac_res" >&5
3827 echo "${ECHO_T}$ac_res" >&6; }
3828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3829   cat >>confdefs.h <<_ACEOF
3830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3831 _ACEOF
3832
3833 fi
3834
3835 done
3836
3837
3838
3839
3840
3841 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3842 do
3843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
3846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 fi
3850 ac_res=`eval echo '${'$as_ac_Header'}'`
3851                { echo "$as_me:$LINENO: result: $ac_res" >&5
3852 echo "${ECHO_T}$ac_res" >&6; }
3853 else
3854   # Is the header compilable?
3855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863 $ac_includes_default
3864 #include <$ac_header>
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_compile") 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } && {
3880          test -z "$ac_c_werror_flag" ||
3881          test ! -s conftest.err
3882        } && test -s conftest.$ac_objext; then
3883   ac_header_compiler=yes
3884 else
3885   echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888         ac_header_compiler=no
3889 fi
3890
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3893 echo "${ECHO_T}$ac_header_compiler" >&6; }
3894
3895 # Is the header present?
3896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h.  */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h.  */
3904 #include <$ac_header>
3905 _ACEOF
3906 if { (ac_try="$ac_cpp conftest.$ac_ext"
3907 case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3913   ac_status=$?
3914   grep -v '^ *+' conftest.er1 >conftest.err
3915   rm -f conftest.er1
3916   cat conftest.err >&5
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); } >/dev/null && {
3919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920          test ! -s conftest.err
3921        }; then
3922   ac_header_preproc=yes
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927   ac_header_preproc=no
3928 fi
3929
3930 rm -f conftest.err conftest.$ac_ext
3931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3932 echo "${ECHO_T}$ac_header_preproc" >&6; }
3933
3934 # So?  What about this header?
3935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3936   yes:no: )
3937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3941     ac_header_preproc=yes
3942     ;;
3943   no:yes:* )
3944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3956
3957     ;;
3958 esac
3959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   eval "$as_ac_Header=\$ac_header_preproc"
3965 fi
3966 ac_res=`eval echo '${'$as_ac_Header'}'`
3967                { echo "$as_me:$LINENO: result: $ac_res" >&5
3968 echo "${ECHO_T}$ac_res" >&6; }
3969
3970 fi
3971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3972   cat >>confdefs.h <<_ACEOF
3973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3974 _ACEOF
3975
3976 fi
3977
3978 done
3979
3980
3981 for ac_header in net/pfvar.h
3982 do
3983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h.  */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h.  */
3995 #include <sys/types.h>
3996 #include <sys/socket.h>
3997 #include <net/if.h>
3998
3999 #include <$ac_header>
4000 _ACEOF
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4003 case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008   (eval "$ac_compile") 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } && {
4015          test -z "$ac_c_werror_flag" ||
4016          test ! -s conftest.err
4017        } && test -s conftest.$ac_objext; then
4018   eval "$as_ac_Header=yes"
4019 else
4020   echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023         eval "$as_ac_Header=no"
4024 fi
4025
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 fi
4028 ac_res=`eval echo '${'$as_ac_Header'}'`
4029                { echo "$as_me:$LINENO: result: $ac_res" >&5
4030 echo "${ECHO_T}$ac_res" >&6; }
4031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4032   cat >>confdefs.h <<_ACEOF
4033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4034 _ACEOF
4035
4036 fi
4037
4038 done
4039
4040 if test "$ac_cv_header_net_pfvar_h" = yes; then
4041         LOCALSRC="print-pflog.c $LOCALSRC"
4042 fi
4043
4044 for ac_header in netinet/if_ether.h
4045 do
4046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 #include <sys/types.h>
4059 #include <sys/socket.h>
4060
4061 #include <$ac_header>
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_compile") 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } && {
4077          test -z "$ac_c_werror_flag" ||
4078          test ! -s conftest.err
4079        } && test -s conftest.$ac_objext; then
4080   eval "$as_ac_Header=yes"
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085         eval "$as_ac_Header=no"
4086 fi
4087
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 fi
4090 ac_res=`eval echo '${'$as_ac_Header'}'`
4091                { echo "$as_me:$LINENO: result: $ac_res" >&5
4092 echo "${ECHO_T}$ac_res" >&6; }
4093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4094   cat >>confdefs.h <<_ACEOF
4095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096 _ACEOF
4097
4098 fi
4099
4100 done
4101
4102 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4103         #
4104         # The simple test didn't work.
4105         # Do we need to include <net/if.h> first?
4106         # Unset ac_cv_header_netinet_if_ether_h so we don't
4107         # treat the previous failure as a cached value and
4108         # suppress the next test.
4109         #
4110         { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4111 echo "$as_me: Rechecking with some additional includes" >&6;}
4112         unset ac_cv_header_netinet_if_ether_h
4113
4114 for ac_header in netinet/if_ether.h
4115 do
4116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   cat >conftest.$ac_ext <<_ACEOF
4123 /* confdefs.h.  */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h.  */
4128 #include <sys/types.h>
4129 #include <sys/socket.h>
4130 #include <netinet/in.h>
4131 struct mbuf;
4132 struct rtentry;
4133 #include <net/if.h>
4134
4135 #include <$ac_header>
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4139 case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_compile") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } && {
4151          test -z "$ac_c_werror_flag" ||
4152          test ! -s conftest.err
4153        } && test -s conftest.$ac_objext; then
4154   eval "$as_ac_Header=yes"
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159         eval "$as_ac_Header=no"
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4164 ac_res=`eval echo '${'$as_ac_Header'}'`
4165                { echo "$as_me:$LINENO: result: $ac_res" >&5
4166 echo "${ECHO_T}$ac_res" >&6; }
4167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4168   cat >>confdefs.h <<_ACEOF
4169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4170 _ACEOF
4171
4172 fi
4173
4174 done
4175
4176 fi
4177
4178 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4180 if test "${ac_cv_header_time+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 #include <sys/types.h>
4190 #include <sys/time.h>
4191 #include <time.h>
4192
4193 int
4194 main ()
4195 {
4196 if ((struct tm *) 0)
4197 return 0;
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_compile") 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } && {
4216          test -z "$ac_c_werror_flag" ||
4217          test ! -s conftest.err
4218        } && test -s conftest.$ac_objext; then
4219   ac_cv_header_time=yes
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         ac_cv_header_time=no
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 fi
4229 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4230 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4231 if test $ac_cv_header_time = yes; then
4232
4233 cat >>confdefs.h <<\_ACEOF
4234 #define TIME_WITH_SYS_TIME 1
4235 _ACEOF
4236
4237 fi
4238
4239
4240 case "$host_os" in
4241
4242 linux*)
4243         { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4244 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4245         if test "$cross_compiling" = yes; then
4246                 if test "${ac_cv_linux_vers+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   ac_cv_linux_vers=unknown
4250 fi
4251
4252         else
4253                 if test "${ac_cv_linux_vers+set}" = set; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   ac_cv_linux_vers=`uname -r 2>&1 | \
4257                         sed -n -e '$s/.* //' -e '$s/\..*//p'`
4258 fi
4259
4260         fi
4261         { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4262 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4263         if test $ac_cv_linux_vers = unknown ; then
4264                 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4265 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4266    { (exit 1); exit 1; }; }
4267         fi
4268         if test $ac_cv_linux_vers -lt 2 ; then
4269                 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4270 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4271    { (exit 1); exit 1; }; }
4272         fi
4273         ;;
4274
4275 *)
4276         ;;
4277 esac
4278
4279
4280
4281 for ac_header in smi.h
4282 do
4283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4285   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 fi
4290 ac_res=`eval echo '${'$as_ac_Header'}'`
4291                { echo "$as_me:$LINENO: result: $ac_res" >&5
4292 echo "${ECHO_T}$ac_res" >&6; }
4293 else
4294   # Is the header compilable?
4295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4297 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 $ac_includes_default
4304 #include <$ac_header>
4305 _ACEOF
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_compile") 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } && {
4320          test -z "$ac_c_werror_flag" ||
4321          test ! -s conftest.err
4322        } && test -s conftest.$ac_objext; then
4323   ac_header_compiler=yes
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         ac_header_compiler=no
4329 fi
4330
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4333 echo "${ECHO_T}$ac_header_compiler" >&6; }
4334
4335 # Is the header present?
4336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344 #include <$ac_header>
4345 _ACEOF
4346 if { (ac_try="$ac_cpp conftest.$ac_ext"
4347 case "(($ac_try" in
4348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349   *) ac_try_echo=$ac_try;;
4350 esac
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4353   ac_status=$?
4354   grep -v '^ *+' conftest.er1 >conftest.err
4355   rm -f conftest.er1
4356   cat conftest.err >&5
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); } >/dev/null && {
4359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4360          test ! -s conftest.err
4361        }; then
4362   ac_header_preproc=yes
4363 else
4364   echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367   ac_header_preproc=no
4368 fi
4369
4370 rm -f conftest.err conftest.$ac_ext
4371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4372 echo "${ECHO_T}$ac_header_preproc" >&6; }
4373
4374 # So?  What about this header?
4375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4376   yes:no: )
4377     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4378 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4380 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4381     ac_header_preproc=yes
4382     ;;
4383   no:yes:* )
4384     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4385 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4386     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4387 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4388     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4389 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4390     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4391 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4394     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4395 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4396
4397     ;;
4398 esac
4399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   eval "$as_ac_Header=\$ac_header_preproc"
4405 fi
4406 ac_res=`eval echo '${'$as_ac_Header'}'`
4407                { echo "$as_me:$LINENO: result: $ac_res" >&5
4408 echo "${ECHO_T}$ac_res" >&6; }
4409
4410 fi
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412   cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417
4418 done
4419
4420
4421 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4422 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4423 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   ac_check_lib_save_LIBS=$LIBS
4427 LIBS="-lsmi  $LIBS"
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h.  */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h.  */
4434
4435 /* Override any GCC internal prototype to avoid an error.
4436    Use char because int might match the return type of a GCC
4437    builtin and then its argument prototype would still apply.  */
4438 #ifdef __cplusplus
4439 extern "C"
4440 #endif
4441 char smiInit ();
4442 int
4443 main ()
4444 {
4445 return smiInit ();
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext conftest$ac_exeext
4451 if { (ac_try="$ac_link"
4452 case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457   (eval "$ac_link") 2>conftest.er1
4458   ac_status=$?
4459   grep -v '^ *+' conftest.er1 >conftest.err
4460   rm -f conftest.er1
4461   cat conftest.err >&5
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); } && {
4464          test -z "$ac_c_werror_flag" ||
4465          test ! -s conftest.err
4466        } && test -s conftest$ac_exeext &&
4467        $as_test_x conftest$ac_exeext; then
4468   ac_cv_lib_smi_smiInit=yes
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473         ac_cv_lib_smi_smiInit=no
4474 fi
4475
4476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4477       conftest$ac_exeext conftest.$ac_ext
4478 LIBS=$ac_check_lib_save_LIBS
4479 fi
4480 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4481 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4482 if test $ac_cv_lib_smi_smiInit = yes; then
4483   cat >>confdefs.h <<_ACEOF
4484 #define HAVE_LIBSMI 1
4485 _ACEOF
4486
4487   LIBS="-lsmi $LIBS"
4488
4489 fi
4490
4491 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4492 then
4493 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4494 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4495         if test "$cross_compiling" = yes; then
4496    { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4497 echo "${ECHO_T}not when cross-compiling" >&6; }
4498   libsmi=no
4499
4500 else
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507  /* libsmi available check */
4508 #include <smi.h>
4509 main()
4510 {
4511   int current, revision, age, n;
4512   const int required = 2;
4513   if (smiInit(""))
4514     exit(1);
4515   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4516     exit(2);
4517   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4518   if (n != 3)
4519     exit(3);
4520   if (required < current - age || required > current)
4521     exit(4);
4522   exit(0);
4523 }
4524
4525 _ACEOF
4526 rm -f conftest$ac_exeext
4527 if { (ac_try="$ac_link"
4528 case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533   (eval "$ac_link") 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4537   { (case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_try") 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546    { echo "$as_me:$LINENO: result: yes" >&5
4547 echo "${ECHO_T}yes" >&6; }
4548   cat >>confdefs.h <<\_ACEOF
4549 #define LIBSMI 1
4550 _ACEOF
4551
4552   libsmi=yes
4553 else
4554   echo "$as_me: program exited with status $ac_status" >&5
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ( exit $ac_status )
4559  case $? in
4560   1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4561 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4562   2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4563 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4564   3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4565 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4566   4) { echo "$as_me:$LINENO: result: no - too old" >&5
4567 echo "${ECHO_T}no - too old" >&6; } ;;
4568   *) { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; } ;;
4570   esac
4571   libsmi=no
4572 fi
4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4574 fi
4575
4576
4577 fi
4578
4579 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4580 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4581 # Check whether --enable-smb was given.
4582 if test "${enable_smb+set}" = set; then
4583   enableval=$enable_smb;
4584 else
4585   enableval=yes
4586 fi
4587
4588 case "$enableval" in
4589 yes)    { echo "$as_me:$LINENO: result: yes" >&5
4590 echo "${ECHO_T}yes" >&6; }
4591         { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4592 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4593         cat >>confdefs.h <<\_ACEOF
4594 #define TCPDUMP_DO_SMB 1
4595 _ACEOF
4596
4597         LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4598         ;;
4599 *)      { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4601         ;;
4602 esac
4603
4604
4605 # Check whether --with-user was given.
4606 if test "${with_user+set}" = set; then
4607   withval=$with_user;
4608 fi
4609
4610 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4611 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4612 if test ! -z "$with_user" ; then
4613         cat >>confdefs.h <<_ACEOF
4614 #define WITH_USER "$withval"
4615 _ACEOF
4616
4617        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4618 echo "${ECHO_T}to \"$withval\"" >&6; }
4619 else
4620        { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 fi
4623
4624
4625 # Check whether --with-chroot was given.
4626 if test "${with_chroot+set}" = set; then
4627   withval=$with_chroot;
4628 fi
4629
4630 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4631 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4632 if test ! -z "$with_chroot" ; then
4633         cat >>confdefs.h <<_ACEOF
4634 #define WITH_CHROOT "$withval"
4635 _ACEOF
4636
4637        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4638 echo "${ECHO_T}to \"$withval\"" >&6; }
4639 else
4640        { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4642 fi
4643
4644 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4645 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4646 # Check whether --enable-ipv6 was given.
4647 if test "${enable_ipv6+set}" = set; then
4648   enableval=$enable_ipv6;  case "$enableval" in
4649 yes)   { echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6; }
4651        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"
4652        cat >>confdefs.h <<\_ACEOF
4653 #define INET6 1
4654 _ACEOF
4655
4656        ipv6=yes
4657        ;;
4658 *)
4659        { echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6; }
4661        ipv6=no
4662        ;;
4663   esac
4664 else
4665   if test "$cross_compiling" = yes; then
4666    { echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6; }
4668   ipv6=no
4669
4670 else
4671   cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677  /* AF_INET6 available check */
4678 #include <sys/types.h>
4679 #include <sys/socket.h>
4680 main()
4681 {
4682  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4683    exit(1);
4684  else
4685    exit(0);
4686 }
4687
4688 _ACEOF
4689 rm -f conftest$ac_exeext
4690 if { (ac_try="$ac_link"
4691 case "(($ac_try" in
4692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693   *) ac_try_echo=$ac_try;;
4694 esac
4695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696   (eval "$ac_link") 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4700   { (case "(($ac_try" in
4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702   *) ac_try_echo=$ac_try;;
4703 esac
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705   (eval "$ac_try") 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709    { echo "$as_me:$LINENO: result: yes" >&5
4710 echo "${ECHO_T}yes" >&6; }
4711   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"
4712   cat >>confdefs.h <<\_ACEOF
4713 #define INET6 1
4714 _ACEOF
4715
4716   ipv6=yes
4717 else
4718   echo "$as_me: program exited with status $ac_status" >&5
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 ( exit $ac_status )
4723  { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4725   ipv6=no
4726 fi
4727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4728 fi
4729
4730
4731 fi
4732
4733
4734 ipv6type=unknown
4735 ipv6lib=none
4736 ipv6trylibc=no
4737
4738 if test "$ipv6" = "yes"; then
4739         { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4740 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4741         for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4742                 case $i in
4743                 inria)
4744                                                 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750 #include <netinet/in.h>
4751 #ifdef IPV6_INRIA_VERSION
4752 yes
4753 #endif
4754 _ACEOF
4755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756   $EGREP "yes" >/dev/null 2>&1; then
4757   ipv6type=$i;
4758                                 CFLAGS="-DINET6 $CFLAGS"
4759 fi
4760 rm -f conftest*
4761
4762                         ;;
4763                 kame)
4764                                                 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 #include <netinet/in.h>
4771 #ifdef __KAME__
4772 yes
4773 #endif
4774 _ACEOF
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776   $EGREP "yes" >/dev/null 2>&1; then
4777   ipv6type=$i;
4778                                 ipv6lib=inet6;
4779                                 ipv6libdir=/usr/local/v6/lib;
4780                                 ipv6trylibc=yes;
4781                                 CFLAGS="-DINET6 $CFLAGS"
4782 fi
4783 rm -f conftest*
4784
4785                         ;;
4786                 linux-glibc)
4787                                                 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 #include <features.h>
4794 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4795 yes
4796 #endif
4797 _ACEOF
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799   $EGREP "yes" >/dev/null 2>&1; then
4800   ipv6type=$i;
4801                                 CFLAGS="-DINET6 $CFLAGS"
4802 fi
4803 rm -f conftest*
4804
4805                         ;;
4806                 linux-libinet6)
4807                                                                                                                                                 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4808                                 ipv6type=$i
4809                                 ipv6lib=inet6
4810                                 ipv6libdir=/usr/inet6/lib
4811                                 ipv6trylibc=yes;
4812                                 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4813                         fi
4814                         ;;
4815                 toshiba)
4816                         cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822 #include <sys/param.h>
4823 #ifdef _TOSHIBA_INET6
4824 yes
4825 #endif
4826 _ACEOF
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828   $EGREP "yes" >/dev/null 2>&1; then
4829   ipv6type=$i;
4830                                 ipv6lib=inet6;
4831                                 ipv6libdir=/usr/local/v6/lib;
4832                                 CFLAGS="-DINET6 $CFLAGS"
4833 fi
4834 rm -f conftest*
4835
4836                         ;;
4837                 v6d)
4838                         cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844 #include </usr/local/v6/include/sys/v6config.h>
4845 #ifdef __V6D__
4846 yes
4847 #endif
4848 _ACEOF
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850   $EGREP "yes" >/dev/null 2>&1; then
4851   ipv6type=$i;
4852                                 ipv6lib=v6;
4853                                 ipv6libdir=/usr/local/v6/lib;
4854                                 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4855 fi
4856 rm -f conftest*
4857
4858                         ;;
4859                 zeta)
4860                         cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 #include <sys/param.h>
4867 #ifdef _ZETA_MINAMI_INET6
4868 yes
4869 #endif
4870 _ACEOF
4871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872   $EGREP "yes" >/dev/null 2>&1; then
4873   ipv6type=$i;
4874                                 ipv6lib=inet6;
4875                                 ipv6libdir=/usr/local/v6/lib;
4876                                 CFLAGS="-DINET6 $CFLAGS"
4877 fi
4878 rm -f conftest*
4879
4880                         ;;
4881                 esac
4882                 if test "$ipv6type" != "unknown"; then
4883                         break
4884                 fi
4885         done
4886         { echo "$as_me:$LINENO: result: $ipv6type" >&5
4887 echo "${ECHO_T}$ipv6type" >&6; }
4888 fi
4889
4890 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4891         if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4892                 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4893                 echo "You have $ipv6lib library, using it"
4894         else
4895                 if test "$ipv6trylibc" = "yes"; then
4896                         echo "You do not have $ipv6lib library, using libc"
4897                 else
4898                         echo 'Fatal: no $ipv6lib library found.  cannot continue.'
4899                         echo "You need to fetch lib$ipv6lib.a from appropriate"
4900                         echo 'ipv6 kit and compile beforehand.'
4901                         exit 1
4902                 fi
4903         fi
4904 fi
4905
4906
4907 if test "$ipv6" = "yes"; then
4908         #
4909         # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4910         # function in libc; there are "ngetaddrinfo()" and
4911         # "ogetaddrinfo()" functions, and <netdb.h> #defines
4912         # "getaddrinfo" to be either "ngetaddrinfo" or
4913         # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4914         # or _XOPEN_SOURCE_EXTENDED are defined or not.
4915         #
4916         # So this test doesn't work on Tru64 5.1, and possibly
4917         # on other 5.x releases.  This causes the configure
4918         # script to become confused, and results in libpcap
4919         # being unbuildable.
4920         #
4921         { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4922 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
4923 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   ac_func_search_save_LIBS=$LIBS
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 /* Override any GCC internal prototype to avoid an error.
4935    Use char because int might match the return type of a GCC
4936    builtin and then its argument prototype would still apply.  */
4937 #ifdef __cplusplus
4938 extern "C"
4939 #endif
4940 char getaddrinfo ();
4941 int
4942 main ()
4943 {
4944 return getaddrinfo ();
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 for ac_lib in '' socket; do
4950   if test -z "$ac_lib"; then
4951     ac_res="none required"
4952   else
4953     ac_res=-l$ac_lib
4954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4955   fi
4956   rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4958 case "(($ac_try" in
4959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960   *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963   (eval "$ac_link") 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } && {
4970          test -z "$ac_c_werror_flag" ||
4971          test ! -s conftest.err
4972        } && test -s conftest$ac_exeext &&
4973        $as_test_x conftest$ac_exeext; then
4974   ac_cv_search_getaddrinfo=$ac_res
4975 else
4976   echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979
4980 fi
4981
4982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4983       conftest$ac_exeext
4984   if test "${ac_cv_search_getaddrinfo+set}" = set; then
4985   break
4986 fi
4987 done
4988 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4989   :
4990 else
4991   ac_cv_search_getaddrinfo=no
4992 fi
4993 rm conftest.$ac_ext
4994 LIBS=$ac_func_search_save_LIBS
4995 fi
4996 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4997 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
4998 ac_res=$ac_cv_search_getaddrinfo
4999 if test "$ac_res" != no; then
5000   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5001         { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5002 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5003         if test "${td_cv_buggygetaddrinfo+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   if test "$cross_compiling" = yes; then
5007   td_cv_buggygetaddrinfo=yes
5008 else
5009   cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h.  */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h.  */
5015
5016 #include <sys/types.h>
5017 #include <netdb.h>
5018 #include <string.h>
5019 #include <sys/socket.h>
5020 #include <netinet/in.h>
5021
5022 main()
5023 {
5024   int passive, gaierr, inet4 = 0, inet6 = 0;
5025   struct addrinfo hints, *ai, *aitop;
5026   char straddr[INET6_ADDRSTRLEN], strport[16];
5027
5028   for (passive = 0; passive <= 1; passive++) {
5029     memset(&hints, 0, sizeof(hints));
5030     hints.ai_family = AF_UNSPEC;
5031     hints.ai_flags = passive ? AI_PASSIVE : 0;
5032     hints.ai_socktype = SOCK_STREAM;
5033     hints.ai_protocol = IPPROTO_TCP;
5034     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5035       (void)gai_strerror(gaierr);
5036       goto bad;
5037     }
5038     for (ai = aitop; ai; ai = ai->ai_next) {
5039       if (ai->ai_addr == NULL ||
5040           ai->ai_addrlen == 0 ||
5041           getnameinfo(ai->ai_addr, ai->ai_addrlen,
5042                       straddr, sizeof(straddr), strport, sizeof(strport),
5043                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5044         goto bad;
5045       }
5046       switch (ai->ai_family) {
5047       case AF_INET:
5048         if (strcmp(strport, "54321") != 0) {
5049           goto bad;
5050         }
5051         if (passive) {
5052           if (strcmp(straddr, "0.0.0.0") != 0) {
5053             goto bad;
5054           }
5055         } else {
5056           if (strcmp(straddr, "127.0.0.1") != 0) {
5057             goto bad;
5058           }
5059         }
5060         inet4++;
5061         break;
5062       case AF_INET6:
5063         if (strcmp(strport, "54321") != 0) {
5064           goto bad;
5065         }
5066         if (passive) {
5067           if (strcmp(straddr, "::") != 0) {
5068             goto bad;
5069           }
5070         } else {
5071           if (strcmp(straddr, "::1") != 0) {
5072             goto bad;
5073           }
5074         }
5075         inet6++;
5076         break;
5077       case AF_UNSPEC:
5078         goto bad;
5079         break;
5080 #ifdef AF_UNIX
5081       case AF_UNIX:
5082 #else
5083 #ifdef AF_LOCAL
5084       case AF_LOCAL:
5085 #endif
5086 #endif
5087       default:
5088         /* another family support? */
5089         break;
5090       }
5091     }
5092   }
5093
5094   /* supported family should be 2, unsupported family should be 0 */
5095   if (!(inet4 == 0 || inet4 == 2))
5096     goto bad;
5097   if (!(inet6 == 0 || inet6 == 2))
5098     goto bad;
5099
5100   if (aitop)
5101     freeaddrinfo(aitop);
5102   exit(0);
5103
5104  bad:
5105   if (aitop)
5106     freeaddrinfo(aitop);
5107   exit(1);
5108 }
5109
5110 _ACEOF
5111 rm -f conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5113 case "(($ac_try" in
5114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115   *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118   (eval "$ac_link") 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5122   { (case "(($ac_try" in
5123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124   *) ac_try_echo=$ac_try;;
5125 esac
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127   (eval "$ac_try") 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; }; then
5131   td_cv_buggygetaddrinfo=no
5132 else
5133   echo "$as_me: program exited with status $ac_status" >&5
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 ( exit $ac_status )
5138 td_cv_buggygetaddrinfo=yes
5139 fi
5140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5141 fi
5142
5143
5144 fi
5145
5146         if test "$td_cv_buggygetaddrinfo" = no; then
5147                 { echo "$as_me:$LINENO: result: good" >&5
5148 echo "${ECHO_T}good" >&6; }
5149         else
5150                 { echo "$as_me:$LINENO: result: buggy" >&5
5151 echo "${ECHO_T}buggy" >&6; }
5152         fi
5153
5154         if test "$td_cv_buggygetaddrinfo" = "yes"; then
5155                 #
5156                 # XXX - it doesn't appear that "ipv6type" can ever be
5157                 # set to "linux".  Should this be testing for
5158                 # "linux-glibc", or for that *or* "linux-libinet6"?
5159                 # If the latter, note that "linux-libinet6" is also
5160                 # the type given to some non-Linux OSes.
5161                 #
5162                 if test "$ipv6type" != "linux"; then
5163                         echo 'Fatal: You must get working getaddrinfo() function.'
5164                         echo '       or you can specify "--disable-ipv6"'.
5165                         exit 1
5166                 else
5167                         echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5168                         echo '         Better upgrade your system library to newest version'
5169                         echo '         of GNU C library (aka glibc).'
5170                 fi
5171         fi
5172
5173 fi
5174
5175
5176
5177 for ac_func in getaddrinfo getnameinfo
5178 do
5179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h.  */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h.  */
5191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5193 #define $ac_func innocuous_$ac_func
5194
5195 /* System header to define __stub macros and hopefully few prototypes,
5196     which can conflict with char $ac_func (); below.
5197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198     <limits.h> exists even on freestanding compilers.  */
5199
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205
5206 #undef $ac_func
5207
5208 /* Override any GCC internal prototype to avoid an error.
5209    Use char because int might match the return type of a GCC
5210    builtin and then its argument prototype would still apply.  */
5211 #ifdef __cplusplus
5212 extern "C"
5213 #endif
5214 char $ac_func ();
5215 /* The GNU C library defines this for functions which it implements
5216     to always fail with ENOSYS.  Some functions are actually named
5217     something starting with __ and the normal name is an alias.  */
5218 #if defined __stub_$ac_func || defined __stub___$ac_func
5219 choke me
5220 #endif
5221
5222 int
5223 main ()
5224 {
5225 return $ac_func ();
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (ac_try="$ac_link"
5232 case "(($ac_try" in
5233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234   *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237   (eval "$ac_link") 2>conftest.er1
5238   ac_status=$?
5239   grep -v '^ *+' conftest.er1 >conftest.err
5240   rm -f conftest.er1
5241   cat conftest.err >&5
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); } && {
5244          test -z "$ac_c_werror_flag" ||
5245          test ! -s conftest.err
5246        } && test -s conftest$ac_exeext &&
5247        $as_test_x conftest$ac_exeext; then
5248   eval "$as_ac_var=yes"
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253         eval "$as_ac_var=no"
5254 fi
5255
5256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5257       conftest$ac_exeext conftest.$ac_ext
5258 fi
5259 ac_res=`eval echo '${'$as_ac_var'}'`
5260                { echo "$as_me:$LINENO: result: $ac_res" >&5
5261 echo "${ECHO_T}$ac_res" >&6; }
5262 if test `eval echo '${'$as_ac_var'}'` = yes; then
5263   cat >>confdefs.h <<_ACEOF
5264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5265 _ACEOF
5266
5267 else
5268   case " $LIBOBJS " in
5269   *" $ac_func.$ac_objext "* ) ;;
5270   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5271  ;;
5272 esac
5273
5274 fi
5275 done
5276
5277
5278 fi
5279
5280 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5281 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5282 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291 #include <netdnet/dnetdb.h>
5292
5293 _ACEOF
5294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5295   $EGREP "dnet_htoa" >/dev/null 2>&1; then
5296   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5297 else
5298   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5299 fi
5300 rm -f conftest*
5301
5302 fi
5303 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5304 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5305 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5306         cat >>confdefs.h <<\_ACEOF
5307 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5308 _ACEOF
5309
5310 fi
5311
5312 { echo "$as_me:$LINENO: checking for char" >&5
5313 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
5314 if test "${ac_cv_type_char+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h.  */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h.  */
5323 $ac_includes_default
5324 typedef char ac__type_new_;
5325 int
5326 main ()
5327 {
5328 if ((ac__type_new_ *) 0)
5329   return 0;
5330 if (sizeof (ac__type_new_))
5331   return 0;
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5338 case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_compile") 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } && {
5350          test -z "$ac_c_werror_flag" ||
5351          test ! -s conftest.err
5352        } && test -s conftest.$ac_objext; then
5353   ac_cv_type_char=yes
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358         ac_cv_type_char=no
5359 fi
5360
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 fi
5363 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5364 echo "${ECHO_T}$ac_cv_type_char" >&6; }
5365
5366 # The cast to long int works around a bug in the HP C Compiler
5367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5369 # This bug is HP SR number 8606223364.
5370 { echo "$as_me:$LINENO: checking size of char" >&5
5371 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
5372 if test "${ac_cv_sizeof_char+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375   if test "$cross_compiling" = yes; then
5376   # Depending upon the size, compute the lo and hi bounds.
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h.  */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h.  */
5383 $ac_includes_default
5384    typedef char ac__type_sizeof_;
5385 int
5386 main ()
5387 {
5388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5389 test_array [0] = 0
5390
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (ac_try="$ac_compile"
5397 case "(($ac_try" in
5398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399   *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402   (eval "$ac_compile") 2>conftest.er1
5403   ac_status=$?
5404   grep -v '^ *+' conftest.er1 >conftest.err
5405   rm -f conftest.er1
5406   cat conftest.err >&5
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } && {
5409          test -z "$ac_c_werror_flag" ||
5410          test ! -s conftest.err
5411        } && test -s conftest.$ac_objext; then
5412   ac_lo=0 ac_mid=0
5413   while :; do
5414     cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 $ac_includes_default
5421    typedef char ac__type_sizeof_;
5422 int
5423 main ()
5424 {
5425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5426 test_array [0] = 0
5427
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5434 case "(($ac_try" in
5435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436   *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439   (eval "$ac_compile") 2>conftest.er1
5440   ac_status=$?
5441   grep -v '^ *+' conftest.er1 >conftest.err
5442   rm -f conftest.er1
5443   cat conftest.err >&5
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } && {
5446          test -z "$ac_c_werror_flag" ||
5447          test ! -s conftest.err
5448        } && test -s conftest.$ac_objext; then
5449   ac_hi=$ac_mid; break
5450 else
5451   echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454         ac_lo=`expr $ac_mid + 1`
5455                         if test $ac_lo -le $ac_mid; then
5456                           ac_lo= ac_hi=
5457                           break
5458                         fi
5459                         ac_mid=`expr 2 '*' $ac_mid + 1`
5460 fi
5461
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463   done
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468         cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 $ac_includes_default
5475    typedef char ac__type_sizeof_;
5476 int
5477 main ()
5478 {
5479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5480 test_array [0] = 0
5481
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490   *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493   (eval "$ac_compile") 2>conftest.er1
5494   ac_status=$?
5495   grep -v '^ *+' conftest.er1 >conftest.err
5496   rm -f conftest.er1
5497   cat conftest.err >&5
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); } && {
5500          test -z "$ac_c_werror_flag" ||
5501          test ! -s conftest.err
5502        } && test -s conftest.$ac_objext; then
5503   ac_hi=-1 ac_mid=-1
5504   while :; do
5505     cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 $ac_includes_default
5512    typedef char ac__type_sizeof_;
5513 int
5514 main ()
5515 {
5516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5517 test_array [0] = 0
5518
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5525 case "(($ac_try" in
5526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527   *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530   (eval "$ac_compile") 2>conftest.er1
5531   ac_status=$?
5532   grep -v '^ *+' conftest.er1 >conftest.err
5533   rm -f conftest.er1
5534   cat conftest.err >&5
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } && {
5537          test -z "$ac_c_werror_flag" ||
5538          test ! -s conftest.err
5539        } && test -s conftest.$ac_objext; then
5540   ac_lo=$ac_mid; break
5541 else
5542   echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545         ac_hi=`expr '(' $ac_mid ')' - 1`
5546                         if test $ac_mid -le $ac_hi; then
5547                           ac_lo= ac_hi=
5548                           break
5549                         fi
5550                         ac_mid=`expr 2 '*' $ac_mid`
5551 fi
5552
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554   done
5555 else
5556   echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5558
5559         ac_lo= ac_hi=
5560 fi
5561
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 fi
5564
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 # Binary search between lo and hi bounds.
5567 while test "x$ac_lo" != "x$ac_hi"; do
5568   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5569   cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h.  */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h.  */
5575 $ac_includes_default
5576    typedef char ac__type_sizeof_;
5577 int
5578 main ()
5579 {
5580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5581 test_array [0] = 0
5582
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591   *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594   (eval "$ac_compile") 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && {
5601          test -z "$ac_c_werror_flag" ||
5602          test ! -s conftest.err
5603        } && test -s conftest.$ac_objext; then
5604   ac_hi=$ac_mid
5605 else
5606   echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609         ac_lo=`expr '(' $ac_mid ')' + 1`
5610 fi
5611
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 done
5614 case $ac_lo in
5615 ?*) ac_cv_sizeof_char=$ac_lo;;
5616 '') if test "$ac_cv_type_char" = yes; then
5617      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: cannot compute sizeof (char)
5620 See \`config.log' for more details." >&2;}
5621    { (exit 77); exit 77; }; }
5622    else
5623      ac_cv_sizeof_char=0
5624    fi ;;
5625 esac
5626 else
5627   cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633 $ac_includes_default
5634    typedef char ac__type_sizeof_;
5635 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5636 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5637 #include <stdio.h>
5638 #include <stdlib.h>
5639 int
5640 main ()
5641 {
5642
5643   FILE *f = fopen ("conftest.val", "w");
5644   if (! f)
5645     return 1;
5646   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5647     {
5648       long int i = longval ();
5649       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5650         return 1;
5651       fprintf (f, "%ld\n", i);
5652     }
5653   else
5654     {
5655       unsigned long int i = ulongval ();
5656       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5657         return 1;
5658       fprintf (f, "%lu\n", i);
5659     }
5660   return ferror (f) || fclose (f) != 0;
5661
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest$ac_exeext
5667 if { (ac_try="$ac_link"
5668 case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673   (eval "$ac_link") 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5677   { (case "(($ac_try" in
5678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679   *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682   (eval "$ac_try") 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; }; then
5686   ac_cv_sizeof_char=`cat conftest.val`
5687 else
5688   echo "$as_me: program exited with status $ac_status" >&5
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 ( exit $ac_status )
5693 if test "$ac_cv_type_char" = yes; then
5694      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
5695 See \`config.log' for more details." >&5
5696 echo "$as_me: error: cannot compute sizeof (char)
5697 See \`config.log' for more details." >&2;}
5698    { (exit 77); exit 77; }; }
5699    else
5700      ac_cv_sizeof_char=0
5701    fi
5702 fi
5703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5704 fi
5705 rm -f conftest.val
5706 fi
5707 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5708 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
5709
5710
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define SIZEOF_CHAR $ac_cv_sizeof_char
5714 _ACEOF
5715
5716
5717 { echo "$as_me:$LINENO: checking for short" >&5
5718 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5719 if test "${ac_cv_type_short+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 $ac_includes_default
5729 typedef short ac__type_new_;
5730 int
5731 main ()
5732 {
5733 if ((ac__type_new_ *) 0)
5734   return 0;
5735 if (sizeof (ac__type_new_))
5736   return 0;
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 rm -f conftest.$ac_objext
5742 if { (ac_try="$ac_compile"
5743 case "(($ac_try" in
5744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745   *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748   (eval "$ac_compile") 2>conftest.er1
5749   ac_status=$?
5750   grep -v '^ *+' conftest.er1 >conftest.err
5751   rm -f conftest.er1
5752   cat conftest.err >&5
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); } && {
5755          test -z "$ac_c_werror_flag" ||
5756          test ! -s conftest.err
5757        } && test -s conftest.$ac_objext; then
5758   ac_cv_type_short=yes
5759 else
5760   echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763         ac_cv_type_short=no
5764 fi
5765
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 fi
5768 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5769 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5770
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { echo "$as_me:$LINENO: checking size of short" >&5
5776 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5777 if test "${ac_cv_sizeof_short+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   if test "$cross_compiling" = yes; then
5781   # Depending upon the size, compute the lo and hi bounds.
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789    typedef short ac__type_sizeof_;
5790 int
5791 main ()
5792 {
5793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5794 test_array [0] = 0
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5802 case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807   (eval "$ac_compile") 2>conftest.er1
5808   ac_status=$?
5809   grep -v '^ *+' conftest.er1 >conftest.err
5810   rm -f conftest.er1
5811   cat conftest.err >&5
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); } && {
5814          test -z "$ac_c_werror_flag" ||
5815          test ! -s conftest.err
5816        } && test -s conftest.$ac_objext; then
5817   ac_lo=0 ac_mid=0
5818   while :; do
5819     cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h.  */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h.  */
5825 $ac_includes_default
5826    typedef short ac__type_sizeof_;
5827 int
5828 main ()
5829 {
5830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5831 test_array [0] = 0
5832
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext
5838 if { (ac_try="$ac_compile"
5839 case "(($ac_try" in
5840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841   *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844   (eval "$ac_compile") 2>conftest.er1
5845   ac_status=$?
5846   grep -v '^ *+' conftest.er1 >conftest.err
5847   rm -f conftest.er1
5848   cat conftest.err >&5
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } && {
5851          test -z "$ac_c_werror_flag" ||
5852          test ! -s conftest.err
5853        } && test -s conftest.$ac_objext; then
5854   ac_hi=$ac_mid; break
5855 else
5856   echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859         ac_lo=`expr $ac_mid + 1`
5860                         if test $ac_lo -le $ac_mid; then
5861                           ac_lo= ac_hi=
5862                           break
5863                         fi
5864                         ac_mid=`expr 2 '*' $ac_mid + 1`
5865 fi
5866
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868   done
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873         cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h.  */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h.  */
5879 $ac_includes_default
5880    typedef short ac__type_sizeof_;
5881 int
5882 main ()
5883 {
5884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5885 test_array [0] = 0
5886
5887   ;
5888   return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5893 case "(($ac_try" in
5894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895   *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898   (eval "$ac_compile") 2>conftest.er1
5899   ac_status=$?
5900   grep -v '^ *+' conftest.er1 >conftest.err
5901   rm -f conftest.er1
5902   cat conftest.err >&5
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); } && {
5905          test -z "$ac_c_werror_flag" ||
5906          test ! -s conftest.err
5907        } && test -s conftest.$ac_objext; then
5908   ac_hi=-1 ac_mid=-1
5909   while :; do
5910     cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 $ac_includes_default
5917    typedef short ac__type_sizeof_;
5918 int
5919 main ()
5920 {
5921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5922 test_array [0] = 0
5923
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (ac_try="$ac_compile"
5930 case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935   (eval "$ac_compile") 2>conftest.er1
5936   ac_status=$?
5937   grep -v '^ *+' conftest.er1 >conftest.err
5938   rm -f conftest.er1
5939   cat conftest.err >&5
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } && {
5942          test -z "$ac_c_werror_flag" ||
5943          test ! -s conftest.err
5944        } && test -s conftest.$ac_objext; then
5945   ac_lo=$ac_mid; break
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950         ac_hi=`expr '(' $ac_mid ')' - 1`
5951                         if test $ac_mid -le $ac_hi; then
5952                           ac_lo= ac_hi=
5953                           break
5954                         fi
5955                         ac_mid=`expr 2 '*' $ac_mid`
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959   done
5960 else
5961   echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964         ac_lo= ac_hi=
5965 fi
5966
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968 fi
5969
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 # Binary search between lo and hi bounds.
5972 while test "x$ac_lo" != "x$ac_hi"; do
5973   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5974   cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 $ac_includes_default
5981    typedef short ac__type_sizeof_;
5982 int
5983 main ()
5984 {
5985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5986 test_array [0] = 0
5987
5988   ;
5989   return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext
5993 if { (ac_try="$ac_compile"
5994 case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_compile") 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } && {
6006          test -z "$ac_c_werror_flag" ||
6007          test ! -s conftest.err
6008        } && test -s conftest.$ac_objext; then
6009   ac_hi=$ac_mid
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014         ac_lo=`expr '(' $ac_mid ')' + 1`
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 done
6019 case $ac_lo in
6020 ?*) ac_cv_sizeof_short=$ac_lo;;
6021 '') if test "$ac_cv_type_short" = yes; then
6022      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot compute sizeof (short)
6025 See \`config.log' for more details." >&2;}
6026    { (exit 77); exit 77; }; }
6027    else
6028      ac_cv_sizeof_short=0
6029    fi ;;
6030 esac
6031 else
6032   cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h.  */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h.  */
6038 $ac_includes_default
6039    typedef short ac__type_sizeof_;
6040 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6041 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6042 #include <stdio.h>
6043 #include <stdlib.h>
6044 int
6045 main ()
6046 {
6047
6048   FILE *f = fopen ("conftest.val", "w");
6049   if (! f)
6050     return 1;
6051   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6052     {
6053       long int i = longval ();
6054       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6055         return 1;
6056       fprintf (f, "%ld\n", i);
6057     }
6058   else
6059     {
6060       unsigned long int i = ulongval ();
6061       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6062         return 1;
6063       fprintf (f, "%lu\n", i);
6064     }
6065   return ferror (f) || fclose (f) != 0;
6066
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6073 case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078   (eval "$ac_link") 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6082   { (case "(($ac_try" in
6083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084   *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087   (eval "$ac_try") 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   ac_cv_sizeof_short=`cat conftest.val`
6092 else
6093   echo "$as_me: program exited with status $ac_status" >&5
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6096
6097 ( exit $ac_status )
6098 if test "$ac_cv_type_short" = yes; then
6099      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6100 See \`config.log' for more details." >&5
6101 echo "$as_me: error: cannot compute sizeof (short)
6102 See \`config.log' for more details." >&2;}
6103    { (exit 77); exit 77; }; }
6104    else
6105      ac_cv_sizeof_short=0
6106    fi
6107 fi
6108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6109 fi
6110 rm -f conftest.val
6111 fi
6112 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6113 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
6114
6115
6116
6117 cat >>confdefs.h <<_ACEOF
6118 #define SIZEOF_SHORT $ac_cv_sizeof_short
6119 _ACEOF
6120
6121
6122 { echo "$as_me:$LINENO: checking for int" >&5
6123 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6124 if test "${ac_cv_type_int+set}" = set; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127   cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133 $ac_includes_default
6134 typedef int ac__type_new_;
6135 int
6136 main ()
6137 {
6138 if ((ac__type_new_ *) 0)
6139   return 0;
6140 if (sizeof (ac__type_new_))
6141   return 0;
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150   *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153   (eval "$ac_compile") 2>conftest.er1
6154   ac_status=$?
6155   grep -v '^ *+' conftest.er1 >conftest.err
6156   rm -f conftest.er1
6157   cat conftest.err >&5
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } && {
6160          test -z "$ac_c_werror_flag" ||
6161          test ! -s conftest.err
6162        } && test -s conftest.$ac_objext; then
6163   ac_cv_type_int=yes
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168         ac_cv_type_int=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6174 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6175
6176 # The cast to long int works around a bug in the HP C Compiler
6177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6179 # This bug is HP SR number 8606223364.
6180 { echo "$as_me:$LINENO: checking size of int" >&5
6181 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6182 if test "${ac_cv_sizeof_int+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   if test "$cross_compiling" = yes; then
6186   # Depending upon the size, compute the lo and hi bounds.
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193 $ac_includes_default
6194    typedef int ac__type_sizeof_;
6195 int
6196 main ()
6197 {
6198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6199 test_array [0] = 0
6200
6201   ;
6202   return 0;
6203 }
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (ac_try="$ac_compile"
6207 case "(($ac_try" in
6208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209   *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212   (eval "$ac_compile") 2>conftest.er1
6213   ac_status=$?
6214   grep -v '^ *+' conftest.er1 >conftest.err
6215   rm -f conftest.er1
6216   cat conftest.err >&5
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); } && {
6219          test -z "$ac_c_werror_flag" ||
6220          test ! -s conftest.err
6221        } && test -s conftest.$ac_objext; then
6222   ac_lo=0 ac_mid=0
6223   while :; do
6224     cat >conftest.$ac_ext <<_ACEOF
6225 /* confdefs.h.  */
6226 _ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h.  */
6230 $ac_includes_default
6231    typedef int ac__type_sizeof_;
6232 int
6233 main ()
6234 {
6235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6236 test_array [0] = 0
6237
6238   ;
6239   return 0;
6240 }
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (ac_try="$ac_compile"
6244 case "(($ac_try" in
6245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246   *) ac_try_echo=$ac_try;;
6247 esac
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249   (eval "$ac_compile") 2>conftest.er1
6250   ac_status=$?
6251   grep -v '^ *+' conftest.er1 >conftest.err
6252   rm -f conftest.er1
6253   cat conftest.err >&5
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); } && {
6256          test -z "$ac_c_werror_flag" ||
6257          test ! -s conftest.err
6258        } && test -s conftest.$ac_objext; then
6259   ac_hi=$ac_mid; break
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264         ac_lo=`expr $ac_mid + 1`
6265                         if test $ac_lo -le $ac_mid; then
6266                           ac_lo= ac_hi=
6267                           break
6268                         fi
6269                         ac_mid=`expr 2 '*' $ac_mid + 1`
6270 fi
6271
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273   done
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278         cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284 $ac_includes_default
6285    typedef int ac__type_sizeof_;
6286 int
6287 main ()
6288 {
6289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6290 test_array [0] = 0
6291
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303   (eval "$ac_compile") 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } && {
6310          test -z "$ac_c_werror_flag" ||
6311          test ! -s conftest.err
6312        } && test -s conftest.$ac_objext; then
6313   ac_hi=-1 ac_mid=-1
6314   while :; do
6315     cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 $ac_includes_default
6322    typedef int ac__type_sizeof_;
6323 int
6324 main ()
6325 {
6326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6327 test_array [0] = 0
6328
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (ac_try="$ac_compile"
6335 case "(($ac_try" in
6336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337   *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340   (eval "$ac_compile") 2>conftest.er1
6341   ac_status=$?
6342   grep -v '^ *+' conftest.er1 >conftest.err
6343   rm -f conftest.er1
6344   cat conftest.err >&5
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } && {
6347          test -z "$ac_c_werror_flag" ||
6348          test ! -s conftest.err
6349        } && test -s conftest.$ac_objext; then
6350   ac_lo=$ac_mid; break
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355         ac_hi=`expr '(' $ac_mid ')' - 1`
6356                         if test $ac_mid -le $ac_hi; then
6357                           ac_lo= ac_hi=
6358                           break
6359                         fi
6360                         ac_mid=`expr 2 '*' $ac_mid`
6361 fi
6362
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364   done
6365 else
6366   echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369         ac_lo= ac_hi=
6370 fi
6371
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 # Binary search between lo and hi bounds.
6377 while test "x$ac_lo" != "x$ac_hi"; do
6378   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6379   cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 $ac_includes_default
6386    typedef int ac__type_sizeof_;
6387 int
6388 main ()
6389 {
6390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6391 test_array [0] = 0
6392
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6399 case "(($ac_try" in
6400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401   *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404   (eval "$ac_compile") 2>conftest.er1
6405   ac_status=$?
6406   grep -v '^ *+' conftest.er1 >conftest.err
6407   rm -f conftest.er1
6408   cat conftest.err >&5
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); } && {
6411          test -z "$ac_c_werror_flag" ||
6412          test ! -s conftest.err
6413        } && test -s conftest.$ac_objext; then
6414   ac_hi=$ac_mid
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419         ac_lo=`expr '(' $ac_mid ')' + 1`
6420 fi
6421
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 done
6424 case $ac_lo in
6425 ?*) ac_cv_sizeof_int=$ac_lo;;
6426 '') if test "$ac_cv_type_int" = yes; then
6427      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6428 See \`config.log' for more details." >&5
6429 echo "$as_me: error: cannot compute sizeof (int)
6430 See \`config.log' for more details." >&2;}
6431    { (exit 77); exit 77; }; }
6432    else
6433      ac_cv_sizeof_int=0
6434    fi ;;
6435 esac
6436 else
6437   cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443 $ac_includes_default
6444    typedef int ac__type_sizeof_;
6445 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6446 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6447 #include <stdio.h>
6448 #include <stdlib.h>
6449 int
6450 main ()
6451 {
6452
6453   FILE *f = fopen ("conftest.val", "w");
6454   if (! f)
6455     return 1;
6456   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6457     {
6458       long int i = longval ();
6459       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6460         return 1;
6461       fprintf (f, "%ld\n", i);
6462     }
6463   else
6464     {
6465       unsigned long int i = ulongval ();
6466       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6467         return 1;
6468       fprintf (f, "%lu\n", i);
6469     }
6470   return ferror (f) || fclose (f) != 0;
6471
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6478 case "(($ac_try" in
6479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480   *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483   (eval "$ac_link") 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6487   { (case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492   (eval "$ac_try") 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   ac_cv_sizeof_int=`cat conftest.val`
6497 else
6498   echo "$as_me: program exited with status $ac_status" >&5
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 ( exit $ac_status )
6503 if test "$ac_cv_type_int" = yes; then
6504      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6505 See \`config.log' for more details." >&5
6506 echo "$as_me: error: cannot compute sizeof (int)
6507 See \`config.log' for more details." >&2;}
6508    { (exit 77); exit 77; }; }
6509    else
6510      ac_cv_sizeof_int=0
6511    fi
6512 fi
6513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6514 fi
6515 rm -f conftest.val
6516 fi
6517 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6518 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6519
6520
6521
6522 cat >>confdefs.h <<_ACEOF
6523 #define SIZEOF_INT $ac_cv_sizeof_int
6524 _ACEOF
6525
6526
6527 { echo "$as_me:$LINENO: checking for long" >&5
6528 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6529 if test "${ac_cv_type_long+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538 $ac_includes_default
6539 typedef long ac__type_new_;
6540 int
6541 main ()
6542 {
6543 if ((ac__type_new_ *) 0)
6544   return 0;
6545 if (sizeof (ac__type_new_))
6546   return 0;
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555   *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558   (eval "$ac_compile") 2>conftest.er1
6559   ac_status=$?
6560   grep -v '^ *+' conftest.er1 >conftest.err
6561   rm -f conftest.er1
6562   cat conftest.err >&5
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } && {
6565          test -z "$ac_c_werror_flag" ||
6566          test ! -s conftest.err
6567        } && test -s conftest.$ac_objext; then
6568   ac_cv_type_long=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         ac_cv_type_long=no
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6579 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6580
6581 # The cast to long int works around a bug in the HP C Compiler
6582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6584 # This bug is HP SR number 8606223364.
6585 { echo "$as_me:$LINENO: checking size of long" >&5
6586 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6587 if test "${ac_cv_sizeof_long+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   if test "$cross_compiling" = yes; then
6591   # Depending upon the size, compute the lo and hi bounds.
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 $ac_includes_default
6599    typedef long ac__type_sizeof_;
6600 int
6601 main ()
6602 {
6603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6604 test_array [0] = 0
6605
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (ac_try="$ac_compile"
6612 case "(($ac_try" in
6613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614   *) ac_try_echo=$ac_try;;
6615 esac
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617   (eval "$ac_compile") 2>conftest.er1
6618   ac_status=$?
6619   grep -v '^ *+' conftest.er1 >conftest.err
6620   rm -f conftest.er1
6621   cat conftest.err >&5
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); } && {
6624          test -z "$ac_c_werror_flag" ||
6625          test ! -s conftest.err
6626        } && test -s conftest.$ac_objext; then
6627   ac_lo=0 ac_mid=0
6628   while :; do
6629     cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635 $ac_includes_default
6636    typedef long ac__type_sizeof_;
6637 int
6638 main ()
6639 {
6640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6641 test_array [0] = 0
6642
6643   ;
6644   return 0;
6645 }
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (ac_try="$ac_compile"
6649 case "(($ac_try" in
6650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651   *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654   (eval "$ac_compile") 2>conftest.er1
6655   ac_status=$?
6656   grep -v '^ *+' conftest.er1 >conftest.err
6657   rm -f conftest.er1
6658   cat conftest.err >&5
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } && {
6661          test -z "$ac_c_werror_flag" ||
6662          test ! -s conftest.err
6663        } && test -s conftest.$ac_objext; then
6664   ac_hi=$ac_mid; break
6665 else
6666   echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669         ac_lo=`expr $ac_mid + 1`
6670                         if test $ac_lo -le $ac_mid; then
6671                           ac_lo= ac_hi=
6672                           break
6673                         fi
6674                         ac_mid=`expr 2 '*' $ac_mid + 1`
6675 fi
6676
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678   done
6679 else
6680   echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6682
6683         cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689 $ac_includes_default
6690    typedef long ac__type_sizeof_;
6691 int
6692 main ()
6693 {
6694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6695 test_array [0] = 0
6696
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext
6702 if { (ac_try="$ac_compile"
6703 case "(($ac_try" in
6704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705   *) ac_try_echo=$ac_try;;
6706 esac
6707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708   (eval "$ac_compile") 2>conftest.er1
6709   ac_status=$?
6710   grep -v '^ *+' conftest.er1 >conftest.err
6711   rm -f conftest.er1
6712   cat conftest.err >&5
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); } && {
6715          test -z "$ac_c_werror_flag" ||
6716          test ! -s conftest.err
6717        } && test -s conftest.$ac_objext; then
6718   ac_hi=-1 ac_mid=-1
6719   while :; do
6720     cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h.  */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h.  */
6726 $ac_includes_default
6727    typedef long ac__type_sizeof_;
6728 int
6729 main ()
6730 {
6731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6732 test_array [0] = 0
6733
6734   ;
6735   return 0;
6736 }
6737 _ACEOF
6738 rm -f conftest.$ac_objext
6739 if { (ac_try="$ac_compile"
6740 case "(($ac_try" in
6741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742   *) ac_try_echo=$ac_try;;
6743 esac
6744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745   (eval "$ac_compile") 2>conftest.er1
6746   ac_status=$?
6747   grep -v '^ *+' conftest.er1 >conftest.err
6748   rm -f conftest.er1
6749   cat conftest.err >&5
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); } && {
6752          test -z "$ac_c_werror_flag" ||
6753          test ! -s conftest.err
6754        } && test -s conftest.$ac_objext; then
6755   ac_lo=$ac_mid; break
6756 else
6757   echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6759
6760         ac_hi=`expr '(' $ac_mid ')' - 1`
6761                         if test $ac_mid -le $ac_hi; then
6762                           ac_lo= ac_hi=
6763                           break
6764                         fi
6765                         ac_mid=`expr 2 '*' $ac_mid`
6766 fi
6767
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769   done
6770 else
6771   echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774         ac_lo= ac_hi=
6775 fi
6776
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 fi
6779
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 # Binary search between lo and hi bounds.
6782 while test "x$ac_lo" != "x$ac_hi"; do
6783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6784   cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790 $ac_includes_default
6791    typedef long ac__type_sizeof_;
6792 int
6793 main ()
6794 {
6795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6796 test_array [0] = 0
6797
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (ac_try="$ac_compile"
6804 case "(($ac_try" in
6805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806   *) ac_try_echo=$ac_try;;
6807 esac
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809   (eval "$ac_compile") 2>conftest.er1
6810   ac_status=$?
6811   grep -v '^ *+' conftest.er1 >conftest.err
6812   rm -f conftest.er1
6813   cat conftest.err >&5
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } && {
6816          test -z "$ac_c_werror_flag" ||
6817          test ! -s conftest.err
6818        } && test -s conftest.$ac_objext; then
6819   ac_hi=$ac_mid
6820 else
6821   echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6823
6824         ac_lo=`expr '(' $ac_mid ')' + 1`
6825 fi
6826
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 done
6829 case $ac_lo in
6830 ?*) ac_cv_sizeof_long=$ac_lo;;
6831 '') if test "$ac_cv_type_long" = yes; then
6832      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6833 See \`config.log' for more details." >&5
6834 echo "$as_me: error: cannot compute sizeof (long)
6835 See \`config.log' for more details." >&2;}
6836    { (exit 77); exit 77; }; }
6837    else
6838      ac_cv_sizeof_long=0
6839    fi ;;
6840 esac
6841 else
6842   cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848 $ac_includes_default
6849    typedef long ac__type_sizeof_;
6850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6852 #include <stdio.h>
6853 #include <stdlib.h>
6854 int
6855 main ()
6856 {
6857
6858   FILE *f = fopen ("conftest.val", "w");
6859   if (! f)
6860     return 1;
6861   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6862     {
6863       long int i = longval ();
6864       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6865         return 1;
6866       fprintf (f, "%ld\n", i);
6867     }
6868   else
6869     {
6870       unsigned long int i = ulongval ();
6871       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6872         return 1;
6873       fprintf (f, "%lu\n", i);
6874     }
6875   return ferror (f) || fclose (f) != 0;
6876
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest$ac_exeext
6882 if { (ac_try="$ac_link"
6883 case "(($ac_try" in
6884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885   *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888   (eval "$ac_link") 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6892   { (case "(($ac_try" in
6893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894   *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897   (eval "$ac_try") 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_cv_sizeof_long=`cat conftest.val`
6902 else
6903   echo "$as_me: program exited with status $ac_status" >&5
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907 ( exit $ac_status )
6908 if test "$ac_cv_type_long" = yes; then
6909      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6910 See \`config.log' for more details." >&5
6911 echo "$as_me: error: cannot compute sizeof (long)
6912 See \`config.log' for more details." >&2;}
6913    { (exit 77); exit 77; }; }
6914    else
6915      ac_cv_sizeof_long=0
6916    fi
6917 fi
6918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6919 fi
6920 rm -f conftest.val
6921 fi
6922 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6923 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6924
6925
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define SIZEOF_LONG $ac_cv_sizeof_long
6929 _ACEOF
6930
6931
6932 { echo "$as_me:$LINENO: checking for long long" >&5
6933 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6934 if test "${ac_cv_type_long_long+set}" = set; then
6935   echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937   cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h.  */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h.  */
6943 $ac_includes_default
6944 typedef long long ac__type_new_;
6945 int
6946 main ()
6947 {
6948 if ((ac__type_new_ *) 0)
6949   return 0;
6950 if (sizeof (ac__type_new_))
6951   return 0;
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6958 case "(($ac_try" in
6959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960   *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963   (eval "$ac_compile") 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } && {
6970          test -z "$ac_c_werror_flag" ||
6971          test ! -s conftest.err
6972        } && test -s conftest.$ac_objext; then
6973   ac_cv_type_long_long=yes
6974 else
6975   echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978         ac_cv_type_long_long=no
6979 fi
6980
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6984 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6985
6986 # The cast to long int works around a bug in the HP C Compiler
6987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6989 # This bug is HP SR number 8606223364.
6990 { echo "$as_me:$LINENO: checking size of long long" >&5
6991 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6992 if test "${ac_cv_sizeof_long_long+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   if test "$cross_compiling" = yes; then
6996   # Depending upon the size, compute the lo and hi bounds.
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 $ac_includes_default
7004    typedef long long ac__type_sizeof_;
7005 int
7006 main ()
7007 {
7008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7009 test_array [0] = 0
7010
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7017 case "(($ac_try" in
7018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019   *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022   (eval "$ac_compile") 2>conftest.er1
7023   ac_status=$?
7024   grep -v '^ *+' conftest.er1 >conftest.err
7025   rm -f conftest.er1
7026   cat conftest.err >&5
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } && {
7029          test -z "$ac_c_werror_flag" ||
7030          test ! -s conftest.err
7031        } && test -s conftest.$ac_objext; then
7032   ac_lo=0 ac_mid=0
7033   while :; do
7034     cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h.  */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h.  */
7040 $ac_includes_default
7041    typedef long long ac__type_sizeof_;
7042 int
7043 main ()
7044 {
7045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7046 test_array [0] = 0
7047
7048   ;
7049   return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7054 case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059   (eval "$ac_compile") 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } && {
7066          test -z "$ac_c_werror_flag" ||
7067          test ! -s conftest.err
7068        } && test -s conftest.$ac_objext; then
7069   ac_hi=$ac_mid; break
7070 else
7071   echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074         ac_lo=`expr $ac_mid + 1`
7075                         if test $ac_lo -le $ac_mid; then
7076                           ac_lo= ac_hi=
7077                           break
7078                         fi
7079                         ac_mid=`expr 2 '*' $ac_mid + 1`
7080 fi
7081
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083   done
7084 else
7085   echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088         cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 $ac_includes_default
7095    typedef long long ac__type_sizeof_;
7096 int
7097 main ()
7098 {
7099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7100 test_array [0] = 0
7101
7102   ;
7103   return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7108 case "(($ac_try" in
7109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110   *) ac_try_echo=$ac_try;;
7111 esac
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113   (eval "$ac_compile") 2>conftest.er1
7114   ac_status=$?
7115   grep -v '^ *+' conftest.er1 >conftest.err
7116   rm -f conftest.er1
7117   cat conftest.err >&5
7118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119   (exit $ac_status); } && {
7120          test -z "$ac_c_werror_flag" ||
7121          test ! -s conftest.err
7122        } && test -s conftest.$ac_objext; then
7123   ac_hi=-1 ac_mid=-1
7124   while :; do
7125     cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h.  */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h.  */
7131 $ac_includes_default
7132    typedef long long ac__type_sizeof_;
7133 int
7134 main ()
7135 {
7136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7137 test_array [0] = 0
7138
7139   ;
7140   return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147   *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150   (eval "$ac_compile") 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } && {
7157          test -z "$ac_c_werror_flag" ||
7158          test ! -s conftest.err
7159        } && test -s conftest.$ac_objext; then
7160   ac_lo=$ac_mid; break
7161 else
7162   echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165         ac_hi=`expr '(' $ac_mid ')' - 1`
7166                         if test $ac_mid -le $ac_hi; then
7167                           ac_lo= ac_hi=
7168                           break
7169                         fi
7170                         ac_mid=`expr 2 '*' $ac_mid`
7171 fi
7172
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174   done
7175 else
7176   echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179         ac_lo= ac_hi=
7180 fi
7181
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 fi
7184
7185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 # Binary search between lo and hi bounds.
7187 while test "x$ac_lo" != "x$ac_hi"; do
7188   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7189   cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h.  */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h.  */
7195 $ac_includes_default
7196    typedef long long ac__type_sizeof_;
7197 int
7198 main ()
7199 {
7200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7201 test_array [0] = 0
7202
7203   ;
7204   return 0;
7205 }
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (ac_try="$ac_compile"
7209 case "(($ac_try" in
7210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211   *) ac_try_echo=$ac_try;;
7212 esac
7213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214   (eval "$ac_compile") 2>conftest.er1
7215   ac_status=$?
7216   grep -v '^ *+' conftest.er1 >conftest.err
7217   rm -f conftest.er1
7218   cat conftest.err >&5
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); } && {
7221          test -z "$ac_c_werror_flag" ||
7222          test ! -s conftest.err
7223        } && test -s conftest.$ac_objext; then
7224   ac_hi=$ac_mid
7225 else
7226   echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7228
7229         ac_lo=`expr '(' $ac_mid ')' + 1`
7230 fi
7231
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233 done
7234 case $ac_lo in
7235 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7236 '') if test "$ac_cv_type_long_long" = yes; then
7237      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7238 See \`config.log' for more details." >&5
7239 echo "$as_me: error: cannot compute sizeof (long long)
7240 See \`config.log' for more details." >&2;}
7241    { (exit 77); exit 77; }; }
7242    else
7243      ac_cv_sizeof_long_long=0
7244    fi ;;
7245 esac
7246 else
7247   cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h.  */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h.  */
7253 $ac_includes_default
7254    typedef long long ac__type_sizeof_;
7255 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7256 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7257 #include <stdio.h>
7258 #include <stdlib.h>
7259 int
7260 main ()
7261 {
7262
7263   FILE *f = fopen ("conftest.val", "w");
7264   if (! f)
7265     return 1;
7266   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7267     {
7268       long int i = longval ();
7269       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7270         return 1;
7271       fprintf (f, "%ld\n", i);
7272     }
7273   else
7274     {
7275       unsigned long int i = ulongval ();
7276       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7277         return 1;
7278       fprintf (f, "%lu\n", i);
7279     }
7280   return ferror (f) || fclose (f) != 0;
7281
7282   ;
7283   return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7288 case "(($ac_try" in
7289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290   *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293   (eval "$ac_link") 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7297   { (case "(($ac_try" in
7298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299   *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302   (eval "$ac_try") 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); }; }; then
7306   ac_cv_sizeof_long_long=`cat conftest.val`
7307 else
7308   echo "$as_me: program exited with status $ac_status" >&5
7309 echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7311
7312 ( exit $ac_status )
7313 if test "$ac_cv_type_long_long" = yes; then
7314      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7315 See \`config.log' for more details." >&5
7316 echo "$as_me: error: cannot compute sizeof (long long)
7317 See \`config.log' for more details." >&2;}
7318    { (exit 77); exit 77; }; }
7319    else
7320      ac_cv_sizeof_long_long=0
7321    fi
7322 fi
7323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7324 fi
7325 rm -f conftest.val
7326 fi
7327 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7328 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7329
7330
7331
7332 cat >>confdefs.h <<_ACEOF
7333 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7334 _ACEOF
7335
7336
7337
7338
7339
7340         { echo "$as_me:$LINENO: checking for addrinfo" >&5
7341 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
7342         if test "${ac_cv_addrinfo+set}" = set; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h.  */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h.  */
7351
7352 #               include <netdb.h>
7353 int
7354 main ()
7355 {
7356 struct addrinfo a
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7363 case "(($ac_try" in
7364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365   *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368   (eval "$ac_compile") 2>conftest.er1
7369   ac_status=$?
7370   grep -v '^ *+' conftest.er1 >conftest.err
7371   rm -f conftest.er1
7372   cat conftest.err >&5
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); } && {
7375          test -z "$ac_c_werror_flag" ||
7376          test ! -s conftest.err
7377        } && test -s conftest.$ac_objext; then
7378   ac_cv_addrinfo=yes
7379 else
7380   echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383         ac_cv_addrinfo=no
7384 fi
7385
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 fi
7388
7389         { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
7390 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
7391         if test $ac_cv_addrinfo = yes; then
7392                 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_ADDRINFO 1
7394 _ACEOF
7395
7396         else
7397                 cat >>confdefs.h <<\_ACEOF
7398 #define NEED_ADDRINFO_H 1
7399 _ACEOF
7400
7401         fi
7402
7403 if test "$ac_cv_addrinfo" = no; then
7404         missing_includes=yes
7405 fi
7406
7407
7408         { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
7409 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
7410         if test "${ac_cv_maxserv+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 #include <netdb.h>
7420 #ifdef NI_MAXSERV
7421 yes
7422 #endif
7423 _ACEOF
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425   $EGREP "yes" >/dev/null 2>&1; then
7426   ac_cv_maxserv=yes
7427 else
7428   ac_cv_maxserv=no
7429 fi
7430 rm -f conftest*
7431
7432 fi
7433
7434         { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
7435 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
7436         if test $ac_cv_maxserv != yes; then
7437                 cat >>confdefs.h <<\_ACEOF
7438 #define NEED_ADDRINFO_H 1
7439 _ACEOF
7440
7441         fi
7442
7443 if test "$ac_cv_maxserv" = no; then
7444         missing_includes=yes
7445 fi
7446
7447
7448         { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
7449 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
7450         if test "${ac_cv_namereqd+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459 #include <netdb.h>
7460 #ifdef NI_NOFQDN
7461 yes
7462 #endif
7463 _ACEOF
7464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465   $EGREP "yes" >/dev/null 2>&1; then
7466   ac_cv_namereqd=yes
7467 else
7468   ac_cv_namereqd=no
7469 fi
7470 rm -f conftest*
7471
7472 fi
7473
7474         { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7475 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
7476         if test $ac_cv_namereqd != yes; then
7477                 cat >>confdefs.h <<\_ACEOF
7478 #define NEED_ADDRINFO_H 1
7479 _ACEOF
7480
7481         fi
7482
7483 if test "$ac_cv_namereqd" = no; then
7484         missing_includes=yes
7485 fi
7486
7487
7488         { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7489 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
7490         if test "${ac_cv_sa_storage+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h.  */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h.  */
7499
7500 #               include <sys/types.h>
7501 #               include <sys/socket.h>
7502 int
7503 main ()
7504 {
7505 struct sockaddr_storage s
7506   ;
7507   return 0;
7508 }
7509 _ACEOF
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7512 case "(($ac_try" in
7513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514   *) ac_try_echo=$ac_try;;
7515 esac
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517   (eval "$ac_compile") 2>conftest.er1
7518   ac_status=$?
7519   grep -v '^ *+' conftest.er1 >conftest.err
7520   rm -f conftest.er1
7521   cat conftest.err >&5
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } && {
7524          test -z "$ac_c_werror_flag" ||
7525          test ! -s conftest.err
7526        } && test -s conftest.$ac_objext; then
7527   ac_cv_sa_storage=yes
7528 else
7529   echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7531
7532         ac_cv_sa_storage=no
7533 fi
7534
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 fi
7537
7538         { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7539 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
7540         if test $ac_cv_sa_storage = yes; then
7541                 cat >>confdefs.h <<\_ACEOF
7542 #define HAVE_SOCKADDR_STORAGE 1
7543 _ACEOF
7544
7545         fi
7546
7547 if test "$ac_cv_sa_storage" = no; then
7548         missing_includes=yes
7549 fi
7550
7551
7552         ac_cv_addrsz=yes
7553         { echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7554 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6; }
7555         if test "${ac_cv_inaddrsz+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564
7565 #               include <arpa/nameser.h>
7566 int
7567 main ()
7568 {
7569 int a = INADDRSZ
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578   *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581   (eval "$ac_compile") 2>conftest.er1
7582   ac_status=$?
7583   grep -v '^ *+' conftest.er1 >conftest.err
7584   rm -f conftest.er1
7585   cat conftest.err >&5
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } && {
7588          test -z "$ac_c_werror_flag" ||
7589          test ! -s conftest.err
7590        } && test -s conftest.$ac_objext; then
7591   ac_cv_inaddrsz=yes
7592 else
7593   echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596         ac_cv_inaddrsz=no
7597 fi
7598
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 fi
7601
7602         { echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7603 echo "${ECHO_T}$ac_cv_inaddrsz" >&6; }
7604         if test $ac_cv_inaddrsz = yes; then
7605                 cat >>confdefs.h <<\_ACEOF
7606 #define HAVE_INADDRSZ 1
7607 _ACEOF
7608
7609         else
7610                 ac_cv_addrsz=no
7611         fi
7612         { echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7613 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6; }
7614         if test "${ac_cv_in6addrsz+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h.  */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h.  */
7623
7624 #               include <arpa/nameser.h>
7625 int
7626 main ()
7627 {
7628 int a = IN6ADDRSZ
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7635 case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640   (eval "$ac_compile") 2>conftest.er1
7641   ac_status=$?
7642   grep -v '^ *+' conftest.er1 >conftest.err
7643   rm -f conftest.er1
7644   cat conftest.err >&5
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); } && {
7647          test -z "$ac_c_werror_flag" ||
7648          test ! -s conftest.err
7649        } && test -s conftest.$ac_objext; then
7650   ac_cv_in6addrsz=yes
7651 else
7652   echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7654
7655         ac_cv_in6addrsz=no
7656 fi
7657
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 fi
7660
7661         { echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7662 echo "${ECHO_T}$ac_cv_in6addrsz" >&6; }
7663         if test $ac_cv_in6addrsz = yes; then
7664                 cat >>confdefs.h <<\_ACEOF
7665 #define HAVE_IN6ADDRSZ 1
7666 _ACEOF
7667
7668         else
7669                 ac_cv_addrsz=no
7670         fi
7671
7672 if test "$ac_cv_addrsz" = no; then
7673         missing_includes=yes
7674 fi
7675
7676
7677         { echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7678 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6; }
7679         if test "${ac_cv_res_inet6+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h.  */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h.  */
7688
7689 #               include <sys/types.h>
7690 #               include <netinet/in.h>
7691 #               include <resolv.h>
7692 int
7693 main ()
7694 {
7695 int a = RES_USE_INET6
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7702 case "(($ac_try" in
7703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704   *) ac_try_echo=$ac_try;;
7705 esac
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707   (eval "$ac_compile") 2>conftest.er1
7708   ac_status=$?
7709   grep -v '^ *+' conftest.er1 >conftest.err
7710   rm -f conftest.er1
7711   cat conftest.err >&5
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); } && {
7714          test -z "$ac_c_werror_flag" ||
7715          test ! -s conftest.err
7716        } && test -s conftest.$ac_objext; then
7717   ac_cv_res_inet6=yes
7718 else
7719   echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722         ac_cv_res_inet6=no
7723 fi
7724
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727
7728         { echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7729 echo "${ECHO_T}$ac_cv_res_inet6" >&6; }
7730         if test $ac_cv_res_inet6 = yes; then
7731                 cat >>confdefs.h <<\_ACEOF
7732 #define HAVE_RES_USE_INET6 1
7733 _ACEOF
7734
7735         fi
7736
7737 if test "$ac_cv_res_inet6" = no; then
7738         missing_includes=yes
7739 fi
7740
7741
7742         { echo "$as_me:$LINENO: checking for res_state_ext" >&5
7743 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6; }
7744         if test "${ac_cv_res_state_ext+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h.  */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h.  */
7753
7754 #               include <sys/types.h>
7755 #               include <netinet/in.h>
7756 #               include <netinet6/in6.h>
7757 #               include <resolv.h>
7758 int
7759 main ()
7760 {
7761 struct __res_state_ext e
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770   *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773   (eval "$ac_compile") 2>conftest.er1
7774   ac_status=$?
7775   grep -v '^ *+' conftest.er1 >conftest.err
7776   rm -f conftest.er1
7777   cat conftest.err >&5
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } && {
7780          test -z "$ac_c_werror_flag" ||
7781          test ! -s conftest.err
7782        } && test -s conftest.$ac_objext; then
7783   ac_cv_res_state_ext=yes
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788         ac_cv_res_state_ext=no
7789 fi
7790
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 fi
7793
7794         { echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7795 echo "${ECHO_T}$ac_cv_res_state_ext" >&6; }
7796         if test $ac_cv_res_state_ext = yes; then
7797                 cat >>confdefs.h <<\_ACEOF
7798 #define HAVE_RES_STATE_EXT 1
7799 _ACEOF
7800
7801         fi
7802
7803 if test "$ac_cv_res_state_ext" = no; then
7804         missing_includes=yes
7805 fi
7806
7807
7808         { echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7809 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6; }
7810         if test "${ac_cv_res_state+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819
7820 #               include <sys/types.h>
7821 #               include <netinet/in.h>
7822 #               include <netinet6/in6.h>
7823 #               include <resolv.h>
7824 int
7825 main ()
7826 {
7827 struct __res_state e; e.nsort = 0
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext
7833 if { (ac_try="$ac_compile"
7834 case "(($ac_try" in
7835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836   *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839   (eval "$ac_compile") 2>conftest.er1
7840   ac_status=$?
7841   grep -v '^ *+' conftest.er1 >conftest.err
7842   rm -f conftest.er1
7843   cat conftest.err >&5
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } && {
7846          test -z "$ac_c_werror_flag" ||
7847          test ! -s conftest.err
7848        } && test -s conftest.$ac_objext; then
7849   ac_cv_res_state=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854         ac_cv_res_state=no
7855 fi
7856
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 fi
7859
7860         { echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7861 echo "${ECHO_T}$ac_cv_res_state" >&6; }
7862         if test $ac_cv_res_state = yes; then
7863                 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_NEW_RES_STATE 1
7865 _ACEOF
7866
7867         fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7878 do
7879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7893 #define $ac_func innocuous_$ac_func
7894
7895 /* System header to define __stub macros and hopefully few prototypes,
7896     which can conflict with char $ac_func (); below.
7897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898     <limits.h> exists even on freestanding compilers.  */
7899
7900 #ifdef __STDC__
7901 # include <limits.h>
7902 #else
7903 # include <assert.h>
7904 #endif
7905
7906 #undef $ac_func
7907
7908 /* Override any GCC internal prototype to avoid an error.
7909    Use char because int might match the return type of a GCC
7910    builtin and then its argument prototype would still apply.  */
7911 #ifdef __cplusplus
7912 extern "C"
7913 #endif
7914 char $ac_func ();
7915 /* The GNU C library defines this for functions which it implements
7916     to always fail with ENOSYS.  Some functions are actually named
7917     something starting with __ and the normal name is an alias.  */
7918 #if defined __stub_$ac_func || defined __stub___$ac_func
7919 choke me
7920 #endif
7921
7922 int
7923 main ()
7924 {
7925 return $ac_func ();
7926   ;
7927   return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (ac_try="$ac_link"
7932 case "(($ac_try" in
7933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934   *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937   (eval "$ac_link") 2>conftest.er1
7938   ac_status=$?
7939   grep -v '^ *+' conftest.er1 >conftest.err
7940   rm -f conftest.er1
7941   cat conftest.err >&5
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); } && {
7944          test -z "$ac_c_werror_flag" ||
7945          test ! -s conftest.err
7946        } && test -s conftest$ac_exeext &&
7947        $as_test_x conftest$ac_exeext; then
7948   eval "$as_ac_var=yes"
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953         eval "$as_ac_var=no"
7954 fi
7955
7956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7957       conftest$ac_exeext conftest.$ac_ext
7958 fi
7959 ac_res=`eval echo '${'$as_ac_var'}'`
7960                { echo "$as_me:$LINENO: result: $ac_res" >&5
7961 echo "${ECHO_T}$ac_res" >&6; }
7962 if test `eval echo '${'$as_ac_var'}'` = yes; then
7963   cat >>confdefs.h <<_ACEOF
7964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7965 _ACEOF
7966
7967 else
7968   case " $LIBOBJS " in
7969   *" $ac_func.$ac_objext "* ) ;;
7970   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7971  ;;
7972 esac
7973
7974 fi
7975 done
7976
7977
7978
7979 for ac_func in strftime
7980 do
7981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7982 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7995 #define $ac_func innocuous_$ac_func
7996
7997 /* System header to define __stub macros and hopefully few prototypes,
7998     which can conflict with char $ac_func (); below.
7999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8000     <limits.h> exists even on freestanding compilers.  */
8001
8002 #ifdef __STDC__
8003 # include <limits.h>
8004 #else
8005 # include <assert.h>
8006 #endif
8007
8008 #undef $ac_func
8009
8010 /* Override any GCC internal prototype to avoid an error.
8011    Use char because int might match the return type of a GCC
8012    builtin and then its argument prototype would still apply.  */
8013 #ifdef __cplusplus
8014 extern "C"
8015 #endif
8016 char $ac_func ();
8017 /* The GNU C library defines this for functions which it implements
8018     to always fail with ENOSYS.  Some functions are actually named
8019     something starting with __ and the normal name is an alias.  */
8020 #if defined __stub_$ac_func || defined __stub___$ac_func
8021 choke me
8022 #endif
8023
8024 int
8025 main ()
8026 {
8027 return $ac_func ();
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (ac_try="$ac_link"
8034 case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039   (eval "$ac_link") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } && {
8046          test -z "$ac_c_werror_flag" ||
8047          test ! -s conftest.err
8048        } && test -s conftest$ac_exeext &&
8049        $as_test_x conftest$ac_exeext; then
8050   eval "$as_ac_var=yes"
8051 else
8052   echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055         eval "$as_ac_var=no"
8056 fi
8057
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059       conftest$ac_exeext conftest.$ac_ext
8060 fi
8061 ac_res=`eval echo '${'$as_ac_var'}'`
8062                { echo "$as_me:$LINENO: result: $ac_res" >&5
8063 echo "${ECHO_T}$ac_res" >&6; }
8064 if test `eval echo '${'$as_ac_var'}'` = yes; then
8065   cat >>confdefs.h <<_ACEOF
8066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8067 _ACEOF
8068
8069 fi
8070 done
8071
8072
8073
8074 for ac_func in setlinebuf alarm
8075 do
8076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8090 #define $ac_func innocuous_$ac_func
8091
8092 /* System header to define __stub macros and hopefully few prototypes,
8093     which can conflict with char $ac_func (); below.
8094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8095     <limits.h> exists even on freestanding compilers.  */
8096
8097 #ifdef __STDC__
8098 # include <limits.h>
8099 #else
8100 # include <assert.h>
8101 #endif
8102
8103 #undef $ac_func
8104
8105 /* Override any GCC internal prototype to avoid an error.
8106    Use char because int might match the return type of a GCC
8107    builtin and then its argument prototype would still apply.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 char $ac_func ();
8112 /* The GNU C library defines this for functions which it implements
8113     to always fail with ENOSYS.  Some functions are actually named
8114     something starting with __ and the normal name is an alias.  */
8115 #if defined __stub_$ac_func || defined __stub___$ac_func
8116 choke me
8117 #endif
8118
8119 int
8120 main ()
8121 {
8122 return $ac_func ();
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (ac_try="$ac_link"
8129 case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_link") 2>conftest.er1
8135   ac_status=$?
8136   grep -v '^ *+' conftest.er1 >conftest.err
8137   rm -f conftest.er1
8138   cat conftest.err >&5
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } && {
8141          test -z "$ac_c_werror_flag" ||
8142          test ! -s conftest.err
8143        } && test -s conftest$ac_exeext &&
8144        $as_test_x conftest$ac_exeext; then
8145   eval "$as_ac_var=yes"
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150         eval "$as_ac_var=no"
8151 fi
8152
8153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8154       conftest$ac_exeext conftest.$ac_ext
8155 fi
8156 ac_res=`eval echo '${'$as_ac_var'}'`
8157                { echo "$as_me:$LINENO: result: $ac_res" >&5
8158 echo "${ECHO_T}$ac_res" >&6; }
8159 if test `eval echo '${'$as_ac_var'}'` = yes; then
8160   cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165 done
8166
8167
8168 needsnprintf=no
8169
8170
8171 for ac_func in vsnprintf snprintf
8172 do
8173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8187 #define $ac_func innocuous_$ac_func
8188
8189 /* System header to define __stub macros and hopefully few prototypes,
8190     which can conflict with char $ac_func (); below.
8191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192     <limits.h> exists even on freestanding compilers.  */
8193
8194 #ifdef __STDC__
8195 # include <limits.h>
8196 #else
8197 # include <assert.h>
8198 #endif
8199
8200 #undef $ac_func
8201
8202 /* Override any GCC internal prototype to avoid an error.
8203    Use char because int might match the return type of a GCC
8204    builtin and then its argument prototype would still apply.  */
8205 #ifdef __cplusplus
8206 extern "C"
8207 #endif
8208 char $ac_func ();
8209 /* The GNU C library defines this for functions which it implements
8210     to always fail with ENOSYS.  Some functions are actually named
8211     something starting with __ and the normal name is an alias.  */
8212 #if defined __stub_$ac_func || defined __stub___$ac_func
8213 choke me
8214 #endif
8215
8216 int
8217 main ()
8218 {
8219 return $ac_func ();
8220   ;
8221   return 0;
8222 }
8223 _ACEOF
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (ac_try="$ac_link"
8226 case "(($ac_try" in
8227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8228   *) ac_try_echo=$ac_try;;
8229 esac
8230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8231   (eval "$ac_link") 2>conftest.er1
8232   ac_status=$?
8233   grep -v '^ *+' conftest.er1 >conftest.err
8234   rm -f conftest.er1
8235   cat conftest.err >&5
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); } && {
8238          test -z "$ac_c_werror_flag" ||
8239          test ! -s conftest.err
8240        } && test -s conftest$ac_exeext &&
8241        $as_test_x conftest$ac_exeext; then
8242   eval "$as_ac_var=yes"
8243 else
8244   echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247         eval "$as_ac_var=no"
8248 fi
8249
8250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8251       conftest$ac_exeext conftest.$ac_ext
8252 fi
8253 ac_res=`eval echo '${'$as_ac_var'}'`
8254                { echo "$as_me:$LINENO: result: $ac_res" >&5
8255 echo "${ECHO_T}$ac_res" >&6; }
8256 if test `eval echo '${'$as_ac_var'}'` = yes; then
8257   cat >>confdefs.h <<_ACEOF
8258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8259 _ACEOF
8260
8261 else
8262   needsnprintf=yes
8263 fi
8264 done
8265
8266 if test $needsnprintf = yes; then
8267         case " $LIBOBJS " in
8268   *" snprintf.$ac_objext "* ) ;;
8269   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8270  ;;
8271 esac
8272
8273 fi
8274
8275
8276     { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8277 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8278 if test "${ac_cv_type_signal+set}" = set; then
8279   echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281   cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287 #include <sys/types.h>
8288 #include <signal.h>
8289
8290 int
8291 main ()
8292 {
8293 return *(signal (0, 0)) (0) == 1;
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (ac_try="$ac_compile"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_compile") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } && {
8312          test -z "$ac_c_werror_flag" ||
8313          test ! -s conftest.err
8314        } && test -s conftest.$ac_objext; then
8315   ac_cv_type_signal=int
8316 else
8317   echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8319
8320         ac_cv_type_signal=void
8321 fi
8322
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 fi
8325 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8326 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8327
8328 cat >>confdefs.h <<_ACEOF
8329 #define RETSIGTYPE $ac_cv_type_signal
8330 _ACEOF
8331
8332
8333     if test "$ac_cv_type_signal" = void ; then
8334             cat >>confdefs.h <<\_ACEOF
8335 #define RETSIGVAL
8336 _ACEOF
8337
8338     else
8339             cat >>confdefs.h <<\_ACEOF
8340 #define RETSIGVAL (0)
8341 _ACEOF
8342
8343     fi
8344     case "$host_os" in
8345
8346     irix*)
8347             cat >>confdefs.h <<\_ACEOF
8348 #define _BSD_SIGNALS 1
8349 _ACEOF
8350
8351             ;;
8352
8353     *)
8354
8355 for ac_func in sigaction
8356 do
8357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8371 #define $ac_func innocuous_$ac_func
8372
8373 /* System header to define __stub macros and hopefully few prototypes,
8374     which can conflict with char $ac_func (); below.
8375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8376     <limits.h> exists even on freestanding compilers.  */
8377
8378 #ifdef __STDC__
8379 # include <limits.h>
8380 #else
8381 # include <assert.h>
8382 #endif
8383
8384 #undef $ac_func
8385
8386 /* Override any GCC internal prototype to avoid an error.
8387    Use char because int might match the return type of a GCC
8388    builtin and then its argument prototype would still apply.  */
8389 #ifdef __cplusplus
8390 extern "C"
8391 #endif
8392 char $ac_func ();
8393 /* The GNU C library defines this for functions which it implements
8394     to always fail with ENOSYS.  Some functions are actually named
8395     something starting with __ and the normal name is an alias.  */
8396 #if defined __stub_$ac_func || defined __stub___$ac_func
8397 choke me
8398 #endif
8399
8400 int
8401 main ()
8402 {
8403 return $ac_func ();
8404   ;
8405   return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (ac_try="$ac_link"
8410 case "(($ac_try" in
8411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412   *) ac_try_echo=$ac_try;;
8413 esac
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415   (eval "$ac_link") 2>conftest.er1
8416   ac_status=$?
8417   grep -v '^ *+' conftest.er1 >conftest.err
8418   rm -f conftest.er1
8419   cat conftest.err >&5
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } && {
8422          test -z "$ac_c_werror_flag" ||
8423          test ! -s conftest.err
8424        } && test -s conftest$ac_exeext &&
8425        $as_test_x conftest$ac_exeext; then
8426   eval "$as_ac_var=yes"
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431         eval "$as_ac_var=no"
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8435       conftest$ac_exeext conftest.$ac_ext
8436 fi
8437 ac_res=`eval echo '${'$as_ac_var'}'`
8438                { echo "$as_me:$LINENO: result: $ac_res" >&5
8439 echo "${ECHO_T}$ac_res" >&6; }
8440 if test `eval echo '${'$as_ac_var'}'` = yes; then
8441   cat >>confdefs.h <<_ACEOF
8442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8443 _ACEOF
8444
8445 fi
8446 done
8447
8448             if test $ac_cv_func_sigaction = no ; then
8449
8450 for ac_func in sigset
8451 do
8452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8456   echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458   cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8466 #define $ac_func innocuous_$ac_func
8467
8468 /* System header to define __stub macros and hopefully few prototypes,
8469     which can conflict with char $ac_func (); below.
8470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8471     <limits.h> exists even on freestanding compilers.  */
8472
8473 #ifdef __STDC__
8474 # include <limits.h>
8475 #else
8476 # include <assert.h>
8477 #endif
8478
8479 #undef $ac_func
8480
8481 /* Override any GCC internal prototype to avoid an error.
8482    Use char because int might match the return type of a GCC
8483    builtin and then its argument prototype would still apply.  */
8484 #ifdef __cplusplus
8485 extern "C"
8486 #endif
8487 char $ac_func ();
8488 /* The GNU C library defines this for functions which it implements
8489     to always fail with ENOSYS.  Some functions are actually named
8490     something starting with __ and the normal name is an alias.  */
8491 #if defined __stub_$ac_func || defined __stub___$ac_func
8492 choke me
8493 #endif
8494
8495 int
8496 main ()
8497 {
8498 return $ac_func ();
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext conftest$ac_exeext
8504 if { (ac_try="$ac_link"
8505 case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510   (eval "$ac_link") 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } && {
8517          test -z "$ac_c_werror_flag" ||
8518          test ! -s conftest.err
8519        } && test -s conftest$ac_exeext &&
8520        $as_test_x conftest$ac_exeext; then
8521   eval "$as_ac_var=yes"
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526         eval "$as_ac_var=no"
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8530       conftest$ac_exeext conftest.$ac_ext
8531 fi
8532 ac_res=`eval echo '${'$as_ac_var'}'`
8533                { echo "$as_me:$LINENO: result: $ac_res" >&5
8534 echo "${ECHO_T}$ac_res" >&6; }
8535 if test `eval echo '${'$as_ac_var'}'` = yes; then
8536   cat >>confdefs.h <<_ACEOF
8537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8538 _ACEOF
8539
8540 fi
8541 done
8542
8543             fi
8544             ;;
8545     esac
8546
8547 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8548 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
8549 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552   ac_func_search_save_LIBS=$LIBS
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h.  */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h.  */
8559
8560 /* Override any GCC internal prototype to avoid an error.
8561    Use char because int might match the return type of a GCC
8562    builtin and then its argument prototype would still apply.  */
8563 #ifdef __cplusplus
8564 extern "C"
8565 #endif
8566 char dnet_htoa ();
8567 int
8568 main ()
8569 {
8570 return dnet_htoa ();
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 for ac_lib in '' dnet; do
8576   if test -z "$ac_lib"; then
8577     ac_res="none required"
8578   else
8579     ac_res=-l$ac_lib
8580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8581   fi
8582   rm -f conftest.$ac_objext conftest$ac_exeext
8583 if { (ac_try="$ac_link"
8584 case "(($ac_try" in
8585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586   *) ac_try_echo=$ac_try;;
8587 esac
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589   (eval "$ac_link") 2>conftest.er1
8590   ac_status=$?
8591   grep -v '^ *+' conftest.er1 >conftest.err
8592   rm -f conftest.er1
8593   cat conftest.err >&5
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } && {
8596          test -z "$ac_c_werror_flag" ||
8597          test ! -s conftest.err
8598        } && test -s conftest$ac_exeext &&
8599        $as_test_x conftest$ac_exeext; then
8600   ac_cv_search_dnet_htoa=$ac_res
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8604
8605
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609       conftest$ac_exeext
8610   if test "${ac_cv_search_dnet_htoa+set}" = set; then
8611   break
8612 fi
8613 done
8614 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8615   :
8616 else
8617   ac_cv_search_dnet_htoa=no
8618 fi
8619 rm conftest.$ac_ext
8620 LIBS=$ac_func_search_save_LIBS
8621 fi
8622 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8623 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
8624 ac_res=$ac_cv_search_dnet_htoa
8625 if test "$ac_res" != no; then
8626   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8627   cat >>confdefs.h <<\_ACEOF
8628 #define HAVE_DNET_HTOA 1
8629 _ACEOF
8630
8631 fi
8632
8633
8634
8635 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8636 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
8637 if test "${ac_cv_lib_rpc_main+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   ac_check_lib_save_LIBS=$LIBS
8641 LIBS="-lrpc  $LIBS"
8642 cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648
8649
8650 int
8651 main ()
8652 {
8653 return main ();
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (ac_try="$ac_link"
8660 case "(($ac_try" in
8661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662   *) ac_try_echo=$ac_try;;
8663 esac
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665   (eval "$ac_link") 2>conftest.er1
8666   ac_status=$?
8667   grep -v '^ *+' conftest.er1 >conftest.err
8668   rm -f conftest.er1
8669   cat conftest.err >&5
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); } && {
8672          test -z "$ac_c_werror_flag" ||
8673          test ! -s conftest.err
8674        } && test -s conftest$ac_exeext &&
8675        $as_test_x conftest$ac_exeext; then
8676   ac_cv_lib_rpc_main=yes
8677 else
8678   echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8680
8681         ac_cv_lib_rpc_main=no
8682 fi
8683
8684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8685       conftest$ac_exeext conftest.$ac_ext
8686 LIBS=$ac_check_lib_save_LIBS
8687 fi
8688 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8689 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
8690 if test $ac_cv_lib_rpc_main = yes; then
8691   cat >>confdefs.h <<_ACEOF
8692 #define HAVE_LIBRPC 1
8693 _ACEOF
8694
8695   LIBS="-lrpc $LIBS"
8696
8697 fi
8698
8699 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8700 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
8701 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   ac_func_search_save_LIBS=$LIBS
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711
8712 /* Override any GCC internal prototype to avoid an error.
8713    Use char because int might match the return type of a GCC
8714    builtin and then its argument prototype would still apply.  */
8715 #ifdef __cplusplus
8716 extern "C"
8717 #endif
8718 char getrpcbynumber ();
8719 int
8720 main ()
8721 {
8722 return getrpcbynumber ();
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 for ac_lib in '' nsl; do
8728   if test -z "$ac_lib"; then
8729     ac_res="none required"
8730   else
8731     ac_res=-l$ac_lib
8732     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8733   fi
8734   rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (ac_try="$ac_link"
8736 case "(($ac_try" in
8737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738   *) ac_try_echo=$ac_try;;
8739 esac
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741   (eval "$ac_link") 2>conftest.er1
8742   ac_status=$?
8743   grep -v '^ *+' conftest.er1 >conftest.err
8744   rm -f conftest.er1
8745   cat conftest.err >&5
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); } && {
8748          test -z "$ac_c_werror_flag" ||
8749          test ! -s conftest.err
8750        } && test -s conftest$ac_exeext &&
8751        $as_test_x conftest$ac_exeext; then
8752   ac_cv_search_getrpcbynumber=$ac_res
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757
8758 fi
8759
8760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8761       conftest$ac_exeext
8762   if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8763   break
8764 fi
8765 done
8766 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8767   :
8768 else
8769   ac_cv_search_getrpcbynumber=no
8770 fi
8771 rm conftest.$ac_ext
8772 LIBS=$ac_func_search_save_LIBS
8773 fi
8774 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8775 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
8776 ac_res=$ac_cv_search_getrpcbynumber
8777 if test "$ac_res" != no; then
8778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8779   cat >>confdefs.h <<\_ACEOF
8780 #define HAVE_GETRPCBYNUMBER 1
8781 _ACEOF
8782
8783 fi
8784
8785
8786
8787
8788     # Most operating systems have gethostbyname() in the default searched
8789     # libraries (i.e. libc):
8790     # Some OSes (eg. Solaris) place it in libnsl
8791     # Some strange OSes (SINIX) have it in libsocket:
8792     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8793 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
8794 if test "${ac_cv_search_gethostbyname+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   ac_func_search_save_LIBS=$LIBS
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804
8805 /* Override any GCC internal prototype to avoid an error.
8806    Use char because int might match the return type of a GCC
8807    builtin and then its argument prototype would still apply.  */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 char gethostbyname ();
8812 int
8813 main ()
8814 {
8815 return gethostbyname ();
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 for ac_lib in '' nsl socket resolv; do
8821   if test -z "$ac_lib"; then
8822     ac_res="none required"
8823   else
8824     ac_res=-l$ac_lib
8825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8826   fi
8827   rm -f conftest.$ac_objext conftest$ac_exeext
8828 if { (ac_try="$ac_link"
8829 case "(($ac_try" in
8830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831   *) ac_try_echo=$ac_try;;
8832 esac
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834   (eval "$ac_link") 2>conftest.er1
8835   ac_status=$?
8836   grep -v '^ *+' conftest.er1 >conftest.err
8837   rm -f conftest.er1
8838   cat conftest.err >&5
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); } && {
8841          test -z "$ac_c_werror_flag" ||
8842          test ! -s conftest.err
8843        } && test -s conftest$ac_exeext &&
8844        $as_test_x conftest$ac_exeext; then
8845   ac_cv_search_gethostbyname=$ac_res
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850
8851 fi
8852
8853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8854       conftest$ac_exeext
8855   if test "${ac_cv_search_gethostbyname+set}" = set; then
8856   break
8857 fi
8858 done
8859 if test "${ac_cv_search_gethostbyname+set}" = set; then
8860   :
8861 else
8862   ac_cv_search_gethostbyname=no
8863 fi
8864 rm conftest.$ac_ext
8865 LIBS=$ac_func_search_save_LIBS
8866 fi
8867 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8868 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
8869 ac_res=$ac_cv_search_gethostbyname
8870 if test "$ac_res" != no; then
8871   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8872
8873 fi
8874
8875     # Unfortunately libsocket sometimes depends on libnsl and
8876     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8877     if test "$ac_cv_search_gethostbyname" = "no"
8878     then
8879         { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8880 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
8881 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   ac_check_lib_save_LIBS=$LIBS
8885 LIBS="-lsocket -lnsl $LIBS"
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h.  */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h.  */
8892
8893 /* Override any GCC internal prototype to avoid an error.
8894    Use char because int might match the return type of a GCC
8895    builtin and then its argument prototype would still apply.  */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char gethostbyname ();
8900 int
8901 main ()
8902 {
8903 return gethostbyname ();
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8910 case "(($ac_try" in
8911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912   *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915   (eval "$ac_link") 2>conftest.er1
8916   ac_status=$?
8917   grep -v '^ *+' conftest.er1 >conftest.err
8918   rm -f conftest.er1
8919   cat conftest.err >&5
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } && {
8922          test -z "$ac_c_werror_flag" ||
8923          test ! -s conftest.err
8924        } && test -s conftest$ac_exeext &&
8925        $as_test_x conftest$ac_exeext; then
8926   ac_cv_lib_socket_gethostbyname=yes
8927 else
8928   echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931         ac_cv_lib_socket_gethostbyname=no
8932 fi
8933
8934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8935       conftest$ac_exeext conftest.$ac_ext
8936 LIBS=$ac_check_lib_save_LIBS
8937 fi
8938 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8939 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
8940 if test $ac_cv_lib_socket_gethostbyname = yes; then
8941   LIBS="-lsocket -lnsl $LIBS"
8942 fi
8943
8944     fi
8945     { echo "$as_me:$LINENO: checking for library containing socket" >&5
8946 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
8947 if test "${ac_cv_search_socket+set}" = set; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   ac_func_search_save_LIBS=$LIBS
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957
8958 /* Override any GCC internal prototype to avoid an error.
8959    Use char because int might match the return type of a GCC
8960    builtin and then its argument prototype would still apply.  */
8961 #ifdef __cplusplus
8962 extern "C"
8963 #endif
8964 char socket ();
8965 int
8966 main ()
8967 {
8968 return socket ();
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 for ac_lib in '' socket; do
8974   if test -z "$ac_lib"; then
8975     ac_res="none required"
8976   else
8977     ac_res=-l$ac_lib
8978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8979   fi
8980   rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (ac_try="$ac_link"
8982 case "(($ac_try" in
8983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984   *) ac_try_echo=$ac_try;;
8985 esac
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987   (eval "$ac_link") 2>conftest.er1
8988   ac_status=$?
8989   grep -v '^ *+' conftest.er1 >conftest.err
8990   rm -f conftest.er1
8991   cat conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); } && {
8994          test -z "$ac_c_werror_flag" ||
8995          test ! -s conftest.err
8996        } && test -s conftest$ac_exeext &&
8997        $as_test_x conftest$ac_exeext; then
8998   ac_cv_search_socket=$ac_res
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003
9004 fi
9005
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007       conftest$ac_exeext
9008   if test "${ac_cv_search_socket+set}" = set; then
9009   break
9010 fi
9011 done
9012 if test "${ac_cv_search_socket+set}" = set; then
9013   :
9014 else
9015   ac_cv_search_socket=no
9016 fi
9017 rm conftest.$ac_ext
9018 LIBS=$ac_func_search_save_LIBS
9019 fi
9020 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
9021 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
9022 ac_res=$ac_cv_search_socket
9023 if test "$ac_res" != no; then
9024   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9025
9026 else
9027   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9028 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9029 if test "${ac_cv_lib_socket_socket+set}" = set; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032   ac_check_lib_save_LIBS=$LIBS
9033 LIBS="-lsocket -lnsl $LIBS"
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h.  */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h.  */
9040
9041 /* Override any GCC internal prototype to avoid an error.
9042    Use char because int might match the return type of a GCC
9043    builtin and then its argument prototype would still apply.  */
9044 #ifdef __cplusplus
9045 extern "C"
9046 #endif
9047 char socket ();
9048 int
9049 main ()
9050 {
9051 return socket ();
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (ac_try="$ac_link"
9058 case "(($ac_try" in
9059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060   *) ac_try_echo=$ac_try;;
9061 esac
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063   (eval "$ac_link") 2>conftest.er1
9064   ac_status=$?
9065   grep -v '^ *+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } && {
9070          test -z "$ac_c_werror_flag" ||
9071          test ! -s conftest.err
9072        } && test -s conftest$ac_exeext &&
9073        $as_test_x conftest$ac_exeext; then
9074   ac_cv_lib_socket_socket=yes
9075 else
9076   echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079         ac_cv_lib_socket_socket=no
9080 fi
9081
9082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083       conftest$ac_exeext conftest.$ac_ext
9084 LIBS=$ac_check_lib_save_LIBS
9085 fi
9086 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9087 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9088 if test $ac_cv_lib_socket_socket = yes; then
9089   LIBS="-lsocket -lnsl $LIBS"
9090 fi
9091
9092 fi
9093
9094     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
9095     { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
9096 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
9097 if test "${ac_cv_search_putmsg+set}" = set; then
9098   echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100   ac_func_search_save_LIBS=$LIBS
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107
9108 /* Override any GCC internal prototype to avoid an error.
9109    Use char because int might match the return type of a GCC
9110    builtin and then its argument prototype would still apply.  */
9111 #ifdef __cplusplus
9112 extern "C"
9113 #endif
9114 char putmsg ();
9115 int
9116 main ()
9117 {
9118 return putmsg ();
9119   ;
9120   return 0;
9121 }
9122 _ACEOF
9123 for ac_lib in '' str; do
9124   if test -z "$ac_lib"; then
9125     ac_res="none required"
9126   else
9127     ac_res=-l$ac_lib
9128     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9129   fi
9130   rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (ac_try="$ac_link"
9132 case "(($ac_try" in
9133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134   *) ac_try_echo=$ac_try;;
9135 esac
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137   (eval "$ac_link") 2>conftest.er1
9138   ac_status=$?
9139   grep -v '^ *+' conftest.er1 >conftest.err
9140   rm -f conftest.er1
9141   cat conftest.err >&5
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); } && {
9144          test -z "$ac_c_werror_flag" ||
9145          test ! -s conftest.err
9146        } && test -s conftest$ac_exeext &&
9147        $as_test_x conftest$ac_exeext; then
9148   ac_cv_search_putmsg=$ac_res
9149 else
9150   echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9152
9153
9154 fi
9155
9156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9157       conftest$ac_exeext
9158   if test "${ac_cv_search_putmsg+set}" = set; then
9159   break
9160 fi
9161 done
9162 if test "${ac_cv_search_putmsg+set}" = set; then
9163   :
9164 else
9165   ac_cv_search_putmsg=no
9166 fi
9167 rm conftest.$ac_ext
9168 LIBS=$ac_func_search_save_LIBS
9169 fi
9170 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9171 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
9172 ac_res=$ac_cv_search_putmsg
9173 if test "$ac_res" != no; then
9174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9175
9176 fi
9177
9178
9179
9180                 LBL_LIBS="$LIBS"
9181     pfopen=/usr/examples/packetfilter/pfopen.c
9182     if test -f $pfopen ; then
9183
9184 for ac_func in pfopen
9185 do
9186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9200 #define $ac_func innocuous_$ac_func
9201
9202 /* System header to define __stub macros and hopefully few prototypes,
9203     which can conflict with char $ac_func (); below.
9204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9205     <limits.h> exists even on freestanding compilers.  */
9206
9207 #ifdef __STDC__
9208 # include <limits.h>
9209 #else
9210 # include <assert.h>
9211 #endif
9212
9213 #undef $ac_func
9214
9215 /* Override any GCC internal prototype to avoid an error.
9216    Use char because int might match the return type of a GCC
9217    builtin and then its argument prototype would still apply.  */
9218 #ifdef __cplusplus
9219 extern "C"
9220 #endif
9221 char $ac_func ();
9222 /* The GNU C library defines this for functions which it implements
9223     to always fail with ENOSYS.  Some functions are actually named
9224     something starting with __ and the normal name is an alias.  */
9225 #if defined __stub_$ac_func || defined __stub___$ac_func
9226 choke me
9227 #endif
9228
9229 int
9230 main ()
9231 {
9232 return $ac_func ();
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (ac_try="$ac_link"
9239 case "(($ac_try" in
9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241   *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244   (eval "$ac_link") 2>conftest.er1
9245   ac_status=$?
9246   grep -v '^ *+' conftest.er1 >conftest.err
9247   rm -f conftest.er1
9248   cat conftest.err >&5
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); } && {
9251          test -z "$ac_c_werror_flag" ||
9252          test ! -s conftest.err
9253        } && test -s conftest$ac_exeext &&
9254        $as_test_x conftest$ac_exeext; then
9255   eval "$as_ac_var=yes"
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260         eval "$as_ac_var=no"
9261 fi
9262
9263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9264       conftest$ac_exeext conftest.$ac_ext
9265 fi
9266 ac_res=`eval echo '${'$as_ac_var'}'`
9267                { echo "$as_me:$LINENO: result: $ac_res" >&5
9268 echo "${ECHO_T}$ac_res" >&6; }
9269 if test `eval echo '${'$as_ac_var'}'` = yes; then
9270   cat >>confdefs.h <<_ACEOF
9271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9272 _ACEOF
9273
9274 fi
9275 done
9276
9277             if test $ac_cv_func_pfopen = "no" ; then
9278                     { echo "$as_me:$LINENO: result: Using $pfopen" >&5
9279 echo "${ECHO_T}Using $pfopen" >&6; }
9280                     LIBS="$LIBS $pfopen"
9281             fi
9282     fi
9283     { echo "$as_me:$LINENO: checking for local pcap library" >&5
9284 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
9285     libpcap=FAIL
9286     lastdir=FAIL
9287     places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9288         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9289     for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9290             basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9291             if test $lastdir = $basedir ; then
9292                                     continue;
9293             fi
9294             lastdir=$dir
9295             if test -r $dir/libpcap.a ; then
9296                     libpcap=$dir/libpcap.a
9297                     d=$dir
9298                             fi
9299     done
9300     if test $libpcap = FAIL ; then
9301             { echo "$as_me:$LINENO: result: not found" >&5
9302 echo "${ECHO_T}not found" >&6; }
9303             { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9304 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
9305 if test "${ac_cv_lib_pcap_main+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   ac_check_lib_save_LIBS=$LIBS
9309 LIBS="-lpcap  $LIBS"
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316
9317
9318 int
9319 main ()
9320 {
9321 return main ();
9322   ;
9323   return 0;
9324 }
9325 _ACEOF
9326 rm -f conftest.$ac_objext conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9328 case "(($ac_try" in
9329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330   *) ac_try_echo=$ac_try;;
9331 esac
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333   (eval "$ac_link") 2>conftest.er1
9334   ac_status=$?
9335   grep -v '^ *+' conftest.er1 >conftest.err
9336   rm -f conftest.er1
9337   cat conftest.err >&5
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } && {
9340          test -z "$ac_c_werror_flag" ||
9341          test ! -s conftest.err
9342        } && test -s conftest$ac_exeext &&
9343        $as_test_x conftest$ac_exeext; then
9344   ac_cv_lib_pcap_main=yes
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349         ac_cv_lib_pcap_main=no
9350 fi
9351
9352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353       conftest$ac_exeext conftest.$ac_ext
9354 LIBS=$ac_check_lib_save_LIBS
9355 fi
9356 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9357 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
9358 if test $ac_cv_lib_pcap_main = yes; then
9359   libpcap="-lpcap"
9360 fi
9361
9362             if test $libpcap = FAIL ; then
9363                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9364 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9365    { (exit 1); exit 1; }; }
9366             fi
9367                                                                                                                                                                     { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9368 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
9369             if test \( ! -r /usr/local/include/pcap.h \) -a \
9370                         \( ! -r /usr/include/pcap.h \); then
9371                 if test -r /usr/local/include/pcap/pcap.h; then
9372                     d="/usr/local/include/pcap"
9373                 elif test -r /usr/include/pcap/pcap.h; then
9374                     d="/usr/include/pcap"
9375                 fi
9376             fi
9377             if test -z "$d" ; then
9378                 { echo "$as_me:$LINENO: result: not found" >&5
9379 echo "${ECHO_T}not found" >&6; }
9380             else
9381                 V_INCLS="-I$d $V_INCLS"
9382                 { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9383 echo "${ECHO_T}found -- -I$d added" >&6; }
9384             fi
9385     else
9386             V_PCAPDEP=$libpcap
9387             places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9388                         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9389             if test -r $d/pcap.h; then
9390                     V_INCLS="-I$d $V_INCLS"
9391             elif test -r $places/pcap.h; then
9392                     V_INCLS="-I$places $V_INCLS"
9393             else
9394                     { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9395 echo "$as_me: error: cannot find pcap.h" >&2;}
9396    { (exit see INSTALL); exit see INSTALL; }; }
9397             fi
9398             { echo "$as_me:$LINENO: result: $libpcap" >&5
9399 echo "${ECHO_T}$libpcap" >&6; }
9400     fi
9401     LIBS="$libpcap $LIBS"
9402     case "$host_os" in
9403
9404     aix*)
9405             pseexe="/lib/pse.exp"
9406             { echo "$as_me:$LINENO: checking for $pseexe" >&5
9407 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
9408             if test -f $pseexe ; then
9409                     { echo "$as_me:$LINENO: result: yes" >&5
9410 echo "${ECHO_T}yes" >&6; }
9411                     LIBS="$LIBS -I:$pseexe"
9412             fi
9413             #
9414             # We need "-lodm" and "-lcfg", as libpcap requires them on
9415             # AIX, and we just build a static libpcap.a and thus can't
9416             # arrange that when you link with libpcap you automatically
9417             # link with those libraries.
9418             #
9419             LIBS="$LIBS -lodm -lcfg"
9420             ;;
9421     esac
9422
9423                         { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9424 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
9425 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h.  */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h.  */
9434 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9436 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9437
9438 /* System header to define __stub macros and hopefully few prototypes,
9439     which can conflict with char pcap_list_datalinks (); below.
9440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9441     <limits.h> exists even on freestanding compilers.  */
9442
9443 #ifdef __STDC__
9444 # include <limits.h>
9445 #else
9446 # include <assert.h>
9447 #endif
9448
9449 #undef pcap_list_datalinks
9450
9451 /* Override any GCC internal prototype to avoid an error.
9452    Use char because int might match the return type of a GCC
9453    builtin and then its argument prototype would still apply.  */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 char pcap_list_datalinks ();
9458 /* The GNU C library defines this for functions which it implements
9459     to always fail with ENOSYS.  Some functions are actually named
9460     something starting with __ and the normal name is an alias.  */
9461 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
9462 choke me
9463 #endif
9464
9465 int
9466 main ()
9467 {
9468 return pcap_list_datalinks ();
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext conftest$ac_exeext
9474 if { (ac_try="$ac_link"
9475 case "(($ac_try" in
9476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477   *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480   (eval "$ac_link") 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } && {
9487          test -z "$ac_c_werror_flag" ||
9488          test ! -s conftest.err
9489        } && test -s conftest$ac_exeext &&
9490        $as_test_x conftest$ac_exeext; then
9491   ac_cv_func_pcap_list_datalinks=yes
9492 else
9493   echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9495
9496         ac_cv_func_pcap_list_datalinks=no
9497 fi
9498
9499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9500       conftest$ac_exeext conftest.$ac_ext
9501 fi
9502 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9503 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
9504 if test $ac_cv_func_pcap_list_datalinks = yes; then
9505   cat >>confdefs.h <<\_ACEOF
9506 #define HAVE_PCAP_LIST_DATALINKS 1
9507 _ACEOF
9508
9509 else
9510
9511             case " $LIBOBJS " in
9512   *" datalinks.$ac_objext "* ) ;;
9513   *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
9514  ;;
9515 esac
9516
9517
9518 fi
9519
9520     { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9521 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
9522 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525   cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h.  */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h.  */
9531 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9533 #define pcap_set_datalink innocuous_pcap_set_datalink
9534
9535 /* System header to define __stub macros and hopefully few prototypes,
9536     which can conflict with char pcap_set_datalink (); below.
9537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9538     <limits.h> exists even on freestanding compilers.  */
9539
9540 #ifdef __STDC__
9541 # include <limits.h>
9542 #else
9543 # include <assert.h>
9544 #endif
9545
9546 #undef pcap_set_datalink
9547
9548 /* Override any GCC internal prototype to avoid an error.
9549    Use char because int might match the return type of a GCC
9550    builtin and then its argument prototype would still apply.  */
9551 #ifdef __cplusplus
9552 extern "C"
9553 #endif
9554 char pcap_set_datalink ();
9555 /* The GNU C library defines this for functions which it implements
9556     to always fail with ENOSYS.  Some functions are actually named
9557     something starting with __ and the normal name is an alias.  */
9558 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
9559 choke me
9560 #endif
9561
9562 int
9563 main ()
9564 {
9565 return pcap_set_datalink ();
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9572 case "(($ac_try" in
9573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574   *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577   (eval "$ac_link") 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } && {
9584          test -z "$ac_c_werror_flag" ||
9585          test ! -s conftest.err
9586        } && test -s conftest$ac_exeext &&
9587        $as_test_x conftest$ac_exeext; then
9588   ac_cv_func_pcap_set_datalink=yes
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593         ac_cv_func_pcap_set_datalink=no
9594 fi
9595
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597       conftest$ac_exeext conftest.$ac_ext
9598 fi
9599 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9600 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
9601 if test $ac_cv_func_pcap_set_datalink = yes; then
9602   cat >>confdefs.h <<\_ACEOF
9603 #define HAVE_PCAP_SET_DATALINK 1
9604 _ACEOF
9605
9606 fi
9607
9608     { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9609 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
9610 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9621 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9622
9623 /* System header to define __stub macros and hopefully few prototypes,
9624     which can conflict with char pcap_datalink_name_to_val (); below.
9625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9626     <limits.h> exists even on freestanding compilers.  */
9627
9628 #ifdef __STDC__
9629 # include <limits.h>
9630 #else
9631 # include <assert.h>
9632 #endif
9633
9634 #undef pcap_datalink_name_to_val
9635
9636 /* Override any GCC internal prototype to avoid an error.
9637    Use char because int might match the return type of a GCC
9638    builtin and then its argument prototype would still apply.  */
9639 #ifdef __cplusplus
9640 extern "C"
9641 #endif
9642 char pcap_datalink_name_to_val ();
9643 /* The GNU C library defines this for functions which it implements
9644     to always fail with ENOSYS.  Some functions are actually named
9645     something starting with __ and the normal name is an alias.  */
9646 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
9647 choke me
9648 #endif
9649
9650 int
9651 main ()
9652 {
9653 return pcap_datalink_name_to_val ();
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_link") 2>conftest.er1
9666   ac_status=$?
9667   grep -v '^ *+' conftest.er1 >conftest.err
9668   rm -f conftest.er1
9669   cat conftest.err >&5
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); } && {
9672          test -z "$ac_c_werror_flag" ||
9673          test ! -s conftest.err
9674        } && test -s conftest$ac_exeext &&
9675        $as_test_x conftest$ac_exeext; then
9676   ac_cv_func_pcap_datalink_name_to_val=yes
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_cv_func_pcap_datalink_name_to_val=no
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685       conftest$ac_exeext conftest.$ac_ext
9686 fi
9687 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9688 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
9689 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9690
9691             cat >>confdefs.h <<\_ACEOF
9692 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9693 _ACEOF
9694
9695             { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9696 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
9697 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   cat >conftest.$ac_ext <<_ACEOF
9701 /* confdefs.h.  */
9702 _ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h.  */
9706 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9708 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9709
9710 /* System header to define __stub macros and hopefully few prototypes,
9711     which can conflict with char pcap_datalink_val_to_description (); below.
9712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713     <limits.h> exists even on freestanding compilers.  */
9714
9715 #ifdef __STDC__
9716 # include <limits.h>
9717 #else
9718 # include <assert.h>
9719 #endif
9720
9721 #undef pcap_datalink_val_to_description
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724    Use char because int might match the return type of a GCC
9725    builtin and then its argument prototype would still apply.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char pcap_datalink_val_to_description ();
9730 /* The GNU C library defines this for functions which it implements
9731     to always fail with ENOSYS.  Some functions are actually named
9732     something starting with __ and the normal name is an alias.  */
9733 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
9734 choke me
9735 #endif
9736
9737 int
9738 main ()
9739 {
9740 return pcap_datalink_val_to_description ();
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_link") 2>conftest.er1
9753   ac_status=$?
9754   grep -v '^ *+' conftest.er1 >conftest.err
9755   rm -f conftest.er1
9756   cat conftest.err >&5
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } && {
9759          test -z "$ac_c_werror_flag" ||
9760          test ! -s conftest.err
9761        } && test -s conftest$ac_exeext &&
9762        $as_test_x conftest$ac_exeext; then
9763   ac_cv_func_pcap_datalink_val_to_description=yes
9764 else
9765   echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768         ac_cv_func_pcap_datalink_val_to_description=no
9769 fi
9770
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772       conftest$ac_exeext conftest.$ac_ext
9773 fi
9774 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9775 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
9776 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9777   cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9779 _ACEOF
9780
9781 else
9782
9783                     case " $LIBOBJS " in
9784   *" dlnames.$ac_objext "* ) ;;
9785   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9786  ;;
9787 esac
9788
9789
9790 fi
9791
9792
9793 else
9794
9795             case " $LIBOBJS " in
9796   *" dlnames.$ac_objext "* ) ;;
9797   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9798  ;;
9799 esac
9800
9801
9802 fi
9803
9804
9805
9806 for ac_func in pcap_breakloop
9807 do
9808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9822 #define $ac_func innocuous_$ac_func
9823
9824 /* System header to define __stub macros and hopefully few prototypes,
9825     which can conflict with char $ac_func (); below.
9826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827     <limits.h> exists even on freestanding compilers.  */
9828
9829 #ifdef __STDC__
9830 # include <limits.h>
9831 #else
9832 # include <assert.h>
9833 #endif
9834
9835 #undef $ac_func
9836
9837 /* Override any GCC internal prototype to avoid an error.
9838    Use char because int might match the return type of a GCC
9839    builtin and then its argument prototype would still apply.  */
9840 #ifdef __cplusplus
9841 extern "C"
9842 #endif
9843 char $ac_func ();
9844 /* The GNU C library defines this for functions which it implements
9845     to always fail with ENOSYS.  Some functions are actually named
9846     something starting with __ and the normal name is an alias.  */
9847 #if defined __stub_$ac_func || defined __stub___$ac_func
9848 choke me
9849 #endif
9850
9851 int
9852 main ()
9853 {
9854 return $ac_func ();
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9861 case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_link") 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } && {
9873          test -z "$ac_c_werror_flag" ||
9874          test ! -s conftest.err
9875        } && test -s conftest$ac_exeext &&
9876        $as_test_x conftest$ac_exeext; then
9877   eval "$as_ac_var=yes"
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882         eval "$as_ac_var=no"
9883 fi
9884
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886       conftest$ac_exeext conftest.$ac_ext
9887 fi
9888 ac_res=`eval echo '${'$as_ac_var'}'`
9889                { echo "$as_me:$LINENO: result: $ac_res" >&5
9890 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892   cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9894 _ACEOF
9895
9896 fi
9897 done
9898
9899
9900                 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9901 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
9902 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9913 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9914
9915 /* System header to define __stub macros and hopefully few prototypes,
9916     which can conflict with char pcap_dump_ftell (); below.
9917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918     <limits.h> exists even on freestanding compilers.  */
9919
9920 #ifdef __STDC__
9921 # include <limits.h>
9922 #else
9923 # include <assert.h>
9924 #endif
9925
9926 #undef pcap_dump_ftell
9927
9928 /* Override any GCC internal prototype to avoid an error.
9929    Use char because int might match the return type of a GCC
9930    builtin and then its argument prototype would still apply.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 char pcap_dump_ftell ();
9935 /* The GNU C library defines this for functions which it implements
9936     to always fail with ENOSYS.  Some functions are actually named
9937     something starting with __ and the normal name is an alias.  */
9938 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
9939 choke me
9940 #endif
9941
9942 int
9943 main ()
9944 {
9945 return pcap_dump_ftell ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } && {
9964          test -z "$ac_c_werror_flag" ||
9965          test ! -s conftest.err
9966        } && test -s conftest$ac_exeext &&
9967        $as_test_x conftest$ac_exeext; then
9968   ac_cv_func_pcap_dump_ftell=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973         ac_cv_func_pcap_dump_ftell=no
9974 fi
9975
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977       conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9980 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
9981 if test $ac_cv_func_pcap_dump_ftell = yes; then
9982   cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_PCAP_DUMP_FTELL 1
9984 _ACEOF
9985
9986 else
9987
9988             case " $LIBOBJS " in
9989   *" pcap_dump_ftell.$ac_objext "* ) ;;
9990   *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
9991  ;;
9992 esac
9993
9994
9995 fi
9996
9997
9998
9999 #
10000 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
10001 # libraries (e.g., "-lsocket -lnsl" on Solaris).
10002 #
10003 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
10004 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
10005 # to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
10006 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
10007 # it does not ship with a libc symbol "inet_ntop()", it ships with
10008 # "_inet_ntop()", and has a #define macro in one of the system headers
10009 # to rename it.
10010 #
10011 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
10012 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
10013 cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019 #include <sys/types.h>
10020 #include <sys/socket.h>
10021 #include <netinet/in.h>
10022 #include <arpa/inet.h>
10023 int
10024 main ()
10025 {
10026 char src[4], dst[128];
10027 inet_ntop(AF_INET, src, dst, sizeof(dst));
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036   *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039   (eval "$ac_link") 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } && {
10046          test -z "$ac_c_werror_flag" ||
10047          test ! -s conftest.err
10048        } && test -s conftest$ac_exeext &&
10049        $as_test_x conftest$ac_exeext; then
10050   { echo "$as_me:$LINENO: result: yes" >&5
10051 echo "${ECHO_T}yes" >&6; }
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056         { echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6; }
10058         case " $LIBOBJS " in
10059   *" inet_ntop.$ac_objext "* ) ;;
10060   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10061  ;;
10062 esac
10063
10064 fi
10065
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067       conftest$ac_exeext conftest.$ac_ext
10068 { echo "$as_me:$LINENO: checking for inet_pton" >&5
10069 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076 #include <sys/types.h>
10077 #include <sys/socket.h>
10078 #include <netinet/in.h>
10079 #include <arpa/inet.h>
10080 int
10081 main ()
10082 {
10083 char src[128], dst[4];
10084 inet_pton(AF_INET, src, dst);
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_link") 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } && {
10103          test -z "$ac_c_werror_flag" ||
10104          test ! -s conftest.err
10105        } && test -s conftest$ac_exeext &&
10106        $as_test_x conftest$ac_exeext; then
10107   { echo "$as_me:$LINENO: result: yes" >&5
10108 echo "${ECHO_T}yes" >&6; }
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113         { echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6; }
10115         case " $LIBOBJS " in
10116   *" inet_pton.$ac_objext "* ) ;;
10117   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10118  ;;
10119 esac
10120
10121 fi
10122
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124       conftest$ac_exeext conftest.$ac_ext
10125 { echo "$as_me:$LINENO: checking for inet_aton" >&5
10126 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 #include <sys/types.h>
10134 #include <netinet/in.h>
10135 #include <arpa/inet.h>
10136 int
10137 main ()
10138 {
10139 char src[128];
10140 struct in_addr dst;
10141 inet_aton(src, &dst);
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (ac_try="$ac_link"
10148 case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_link") 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } && {
10160          test -z "$ac_c_werror_flag" ||
10161          test ! -s conftest.err
10162        } && test -s conftest$ac_exeext &&
10163        $as_test_x conftest$ac_exeext; then
10164   { echo "$as_me:$LINENO: result: yes" >&5
10165 echo "${ECHO_T}yes" >&6; }
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170         { echo "$as_me:$LINENO: result: no" >&5
10171 echo "${ECHO_T}no" >&6; }
10172         case " $LIBOBJS " in
10173   *" inet_aton.$ac_objext "* ) ;;
10174   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
10175  ;;
10176 esac
10177
10178 fi
10179
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181       conftest$ac_exeext conftest.$ac_ext
10182
10183 #
10184 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10185 #
10186 # You are in a twisty little maze of UN*Xes, all different.
10187 # Some might not have ether_ntohost().
10188 # Some might have it, but not declare it in any header file.
10189 # Some might have it, but declare it in <netinet/if_ether.h>.
10190 # Some might have it, but declare it in <netinet/ether.h>
10191 # (And some might have it but document it as something declared in
10192 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10193 #
10194 # Before you is a C compiler.
10195 #
10196
10197 for ac_func in ether_ntohost
10198 do
10199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h.  */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h.  */
10211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10213 #define $ac_func innocuous_$ac_func
10214
10215 /* System header to define __stub macros and hopefully few prototypes,
10216     which can conflict with char $ac_func (); below.
10217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10218     <limits.h> exists even on freestanding compilers.  */
10219
10220 #ifdef __STDC__
10221 # include <limits.h>
10222 #else
10223 # include <assert.h>
10224 #endif
10225
10226 #undef $ac_func
10227
10228 /* Override any GCC internal prototype to avoid an error.
10229    Use char because int might match the return type of a GCC
10230    builtin and then its argument prototype would still apply.  */
10231 #ifdef __cplusplus
10232 extern "C"
10233 #endif
10234 char $ac_func ();
10235 /* The GNU C library defines this for functions which it implements
10236     to always fail with ENOSYS.  Some functions are actually named
10237     something starting with __ and the normal name is an alias.  */
10238 #if defined __stub_$ac_func || defined __stub___$ac_func
10239 choke me
10240 #endif
10241
10242 int
10243 main ()
10244 {
10245 return $ac_func ();
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (ac_try="$ac_link"
10252 case "(($ac_try" in
10253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254   *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257   (eval "$ac_link") 2>conftest.er1
10258   ac_status=$?
10259   grep -v '^ *+' conftest.er1 >conftest.err
10260   rm -f conftest.er1
10261   cat conftest.err >&5
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); } && {
10264          test -z "$ac_c_werror_flag" ||
10265          test ! -s conftest.err
10266        } && test -s conftest$ac_exeext &&
10267        $as_test_x conftest$ac_exeext; then
10268   eval "$as_ac_var=yes"
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273         eval "$as_ac_var=no"
10274 fi
10275
10276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10277       conftest$ac_exeext conftest.$ac_ext
10278 fi
10279 ac_res=`eval echo '${'$as_ac_var'}'`
10280                { echo "$as_me:$LINENO: result: $ac_res" >&5
10281 echo "${ECHO_T}$ac_res" >&6; }
10282 if test `eval echo '${'$as_ac_var'}'` = yes; then
10283   cat >>confdefs.h <<_ACEOF
10284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10285 _ACEOF
10286
10287     { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10288 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
10289 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292
10293         if test "$cross_compiling" = yes; then
10294   ac_cv_buggy_ether_ntohost="not while cross-compiling"
10295 else
10296   cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h.  */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h.  */
10302
10303                 #include <netdb.h>
10304                 #include <sys/types.h>
10305                 #include <sys/param.h>
10306                 #include <sys/socket.h>
10307
10308                 int
10309                 main(int argc, char **argv)
10310                 {
10311                         u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10312                         char name[MAXHOSTNAMELEN];
10313
10314                         ether_ntohost(name, (struct ether_addr *)ea);
10315                         exit(0);
10316                 }
10317
10318 _ACEOF
10319 rm -f conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323   *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326   (eval "$ac_link") 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10330   { (case "(($ac_try" in
10331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332   *) ac_try_echo=$ac_try;;
10333 esac
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335   (eval "$ac_try") 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; }; then
10339   ac_cv_buggy_ether_ntohost=no
10340 else
10341   echo "$as_me: program exited with status $ac_status" >&5
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ( exit $ac_status )
10346 ac_cv_buggy_ether_ntohost=yes
10347 fi
10348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10349 fi
10350
10351
10352 fi
10353 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10354 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
10355     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10356         cat >>confdefs.h <<\_ACEOF
10357 #define USE_ETHER_NTOHOST 1
10358 _ACEOF
10359
10360     fi
10361
10362 fi
10363 done
10364
10365 if test "$ac_cv_func_ether_ntohost" = yes -a \
10366     "$ac_cv_buggy_ether_ntohost" = "no"; then
10367         #
10368         # OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
10369         #
10370         if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10371                 #
10372                 # Yes.  Does it declare ether_ntohost()?
10373                 #
10374                 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10375 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10376 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385
10386 #include <sys/types.h>
10387 #include <sys/socket.h>
10388 #include <netinet/in.h>
10389 #include <arpa/inet.h>
10390 struct mbuf;
10391 struct rtentry;
10392 #include <net/if.h>
10393 #include <netinet/if_ether.h>
10394
10395
10396 int
10397 main ()
10398 {
10399 #ifndef ether_ntohost
10400   (void) ether_ntohost;
10401 #endif
10402
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411   *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414   (eval "$ac_compile") 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } && {
10421          test -z "$ac_c_werror_flag" ||
10422          test ! -s conftest.err
10423        } && test -s conftest.$ac_objext; then
10424   ac_cv_have_decl_ether_ntohost=yes
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429         ac_cv_have_decl_ether_ntohost=no
10430 fi
10431
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 fi
10434 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10435 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10436 if test $ac_cv_have_decl_ether_ntohost = yes; then
10437
10438
10439 cat >>confdefs.h <<\_ACEOF
10440 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10441 _ACEOF
10442
10443
10444 fi
10445
10446         fi
10447         #
10448         # Did that succeed?
10449         #
10450         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10451                 #
10452                 # No, how about <netinet/ether.h>, as on Linux?
10453                 #
10454
10455 for ac_header in netinet/ether.h
10456 do
10457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10459   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10462   echo $ECHO_N "(cached) $ECHO_C" >&6
10463 fi
10464 ac_res=`eval echo '${'$as_ac_Header'}'`
10465                { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10467 else
10468   # Is the header compilable?
10469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477 $ac_includes_default
10478 #include <$ac_header>
10479 _ACEOF
10480 rm -f conftest.$ac_objext
10481 if { (ac_try="$ac_compile"
10482 case "(($ac_try" in
10483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484   *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487   (eval "$ac_compile") 2>conftest.er1
10488   ac_status=$?
10489   grep -v '^ *+' conftest.er1 >conftest.err
10490   rm -f conftest.er1
10491   cat conftest.err >&5
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } && {
10494          test -z "$ac_c_werror_flag" ||
10495          test ! -s conftest.err
10496        } && test -s conftest.$ac_objext; then
10497   ac_header_compiler=yes
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502         ac_header_compiler=no
10503 fi
10504
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10507 echo "${ECHO_T}$ac_header_compiler" >&6; }
10508
10509 # Is the header present?
10510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h.  */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h.  */
10518 #include <$ac_header>
10519 _ACEOF
10520 if { (ac_try="$ac_cpp conftest.$ac_ext"
10521 case "(($ac_try" in
10522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523   *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10527   ac_status=$?
10528   grep -v '^ *+' conftest.er1 >conftest.err
10529   rm -f conftest.er1
10530   cat conftest.err >&5
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } >/dev/null && {
10533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10534          test ! -s conftest.err
10535        }; then
10536   ac_header_preproc=yes
10537 else
10538   echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541   ac_header_preproc=no
10542 fi
10543
10544 rm -f conftest.err conftest.$ac_ext
10545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10546 echo "${ECHO_T}$ac_header_preproc" >&6; }
10547
10548 # So?  What about this header?
10549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10550   yes:no: )
10551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10555     ac_header_preproc=yes
10556     ;;
10557   no:yes:* )
10558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10570
10571     ;;
10572 esac
10573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   eval "$as_ac_Header=\$ac_header_preproc"
10579 fi
10580 ac_res=`eval echo '${'$as_ac_Header'}'`
10581                { echo "$as_me:$LINENO: result: $ac_res" >&5
10582 echo "${ECHO_T}$ac_res" >&6; }
10583
10584 fi
10585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10586   cat >>confdefs.h <<_ACEOF
10587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10588 _ACEOF
10589
10590 fi
10591
10592 done
10593
10594                 if test "$ac_cv_header_netinet_ether_h" = yes; then
10595                         #
10596                         # We have it - does it declare ether_ntohost()?
10597                         # Unset ac_cv_have_decl_ether_ntohost so we don't
10598                         # treat the previous failure as a cached value and
10599                         # suppress the next test.
10600                         #
10601                         unset ac_cv_have_decl_ether_ntohost
10602                         { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10603 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
10604 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613
10614 #include <netinet/ether.h>
10615
10616
10617 int
10618 main ()
10619 {
10620 #ifndef ether_ntohost
10621   (void) ether_ntohost;
10622 #endif
10623
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_compile") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } && {
10642          test -z "$ac_c_werror_flag" ||
10643          test ! -s conftest.err
10644        } && test -s conftest.$ac_objext; then
10645   ac_cv_have_decl_ether_ntohost=yes
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650         ac_cv_have_decl_ether_ntohost=no
10651 fi
10652
10653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 fi
10655 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10656 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
10657 if test $ac_cv_have_decl_ether_ntohost = yes; then
10658
10659
10660 cat >>confdefs.h <<\_ACEOF
10661 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10662 _ACEOF
10663
10664
10665 fi
10666
10667                 fi
10668         fi
10669         #
10670         # Is ether_ntohost() declared?
10671         #
10672         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10673                 #
10674                 # No, we'll have to declare it ourselves.
10675                 # Do we have "struct ether_addr"?
10676                 #
10677                 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10678 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
10679 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10680   echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682   cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688
10689 #include <sys/types.h>
10690 #include <sys/socket.h>
10691 #include <netinet/in.h>
10692 #include <arpa/inet.h>
10693 struct mbuf;
10694 struct rtentry;
10695 #include <net/if.h>
10696 #include <netinet/if_ether.h>
10697
10698
10699 typedef struct ether_addr ac__type_new_;
10700 int
10701 main ()
10702 {
10703 if ((ac__type_new_ *) 0)
10704   return 0;
10705 if (sizeof (ac__type_new_))
10706   return 0;
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext
10712 if { (ac_try="$ac_compile"
10713 case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_compile") 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } && {
10725          test -z "$ac_c_werror_flag" ||
10726          test ! -s conftest.err
10727        } && test -s conftest.$ac_objext; then
10728   ac_cv_type_struct_ether_addr=yes
10729 else
10730   echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733         ac_cv_type_struct_ether_addr=no
10734 fi
10735
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 fi
10738 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10739 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
10740 if test $ac_cv_type_struct_ether_addr = yes; then
10741
10742 cat >>confdefs.h <<_ACEOF
10743 #define HAVE_STRUCT_ETHER_ADDR 1
10744 _ACEOF
10745
10746
10747 fi
10748
10749
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_DECL_ETHER_NTOHOST 0
10752 _ACEOF
10753
10754         else
10755
10756 cat >>confdefs.h <<\_ACEOF
10757 #define HAVE_DECL_ETHER_NTOHOST 1
10758 _ACEOF
10759
10760         fi
10761 fi
10762
10763 # libdlpi is needed for Solaris 11 and later.
10764 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10765 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
10766 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10767   echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769   ac_check_lib_save_LIBS=$LIBS
10770 LIBS="-ldlpi -L/lib $LIBS"
10771 cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h.  */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h.  */
10777
10778 /* Override any GCC internal prototype to avoid an error.
10779    Use char because int might match the return type of a GCC
10780    builtin and then its argument prototype would still apply.  */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char dlpi_walk ();
10785 int
10786 main ()
10787 {
10788 return dlpi_walk ();
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797   *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800   (eval "$ac_link") 2>conftest.er1
10801   ac_status=$?
10802   grep -v '^ *+' conftest.er1 >conftest.err
10803   rm -f conftest.er1
10804   cat conftest.err >&5
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); } && {
10807          test -z "$ac_c_werror_flag" ||
10808          test ! -s conftest.err
10809        } && test -s conftest$ac_exeext &&
10810        $as_test_x conftest$ac_exeext; then
10811   ac_cv_lib_dlpi_dlpi_walk=yes
10812 else
10813   echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816         ac_cv_lib_dlpi_dlpi_walk=no
10817 fi
10818
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820       conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10822 fi
10823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10824 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
10825 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10826   LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
10827 fi
10828
10829
10830
10831         { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10832 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
10833         if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10834   echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836   cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842
10843 #               include <sys/types.h>
10844 #               include <sys/socket.h>
10845 int
10846 main ()
10847 {
10848 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_compile") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } && {
10867          test -z "$ac_c_werror_flag" ||
10868          test ! -s conftest.err
10869        } && test -s conftest.$ac_objext; then
10870   ac_cv_sockaddr_has_sa_len=yes
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875         ac_cv_sockaddr_has_sa_len=no
10876 fi
10877
10878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879 fi
10880
10881         { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10882 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
10883                 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10884                         cat >>confdefs.h <<\_ACEOF
10885 #define HAVE_SOCKADDR_SA_LEN 1
10886 _ACEOF
10887
10888         fi
10889
10890 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10891         missing_includes=yes
10892 fi
10893
10894 #
10895 # Do we have the new open API?  Check for pcap_create, and assume that,
10896 # if we do, we also have pcap_activate() and the other new routines.
10897
10898 for ac_func in pcap_create
10899 do
10900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h.  */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h.  */
10912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10914 #define $ac_func innocuous_$ac_func
10915
10916 /* System header to define __stub macros and hopefully few prototypes,
10917     which can conflict with char $ac_func (); below.
10918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919     <limits.h> exists even on freestanding compilers.  */
10920
10921 #ifdef __STDC__
10922 # include <limits.h>
10923 #else
10924 # include <assert.h>
10925 #endif
10926
10927 #undef $ac_func
10928
10929 /* Override any GCC internal prototype to avoid an error.
10930    Use char because int might match the return type of a GCC
10931    builtin and then its argument prototype would still apply.  */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char $ac_func ();
10936 /* The GNU C library defines this for functions which it implements
10937     to always fail with ENOSYS.  Some functions are actually named
10938     something starting with __ and the normal name is an alias.  */
10939 #if defined __stub_$ac_func || defined __stub___$ac_func
10940 choke me
10941 #endif
10942
10943 int
10944 main ()
10945 {
10946 return $ac_func ();
10947   ;
10948   return 0;
10949 }
10950 _ACEOF
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (ac_try="$ac_link"
10953 case "(($ac_try" in
10954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955   *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958   (eval "$ac_link") 2>conftest.er1
10959   ac_status=$?
10960   grep -v '^ *+' conftest.er1 >conftest.err
10961   rm -f conftest.er1
10962   cat conftest.err >&5
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); } && {
10965          test -z "$ac_c_werror_flag" ||
10966          test ! -s conftest.err
10967        } && test -s conftest$ac_exeext &&
10968        $as_test_x conftest$ac_exeext; then
10969   eval "$as_ac_var=yes"
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         eval "$as_ac_var=no"
10975 fi
10976
10977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10978       conftest$ac_exeext conftest.$ac_ext
10979 fi
10980 ac_res=`eval echo '${'$as_ac_var'}'`
10981                { echo "$as_me:$LINENO: result: $ac_res" >&5
10982 echo "${ECHO_T}$ac_res" >&6; }
10983 if test `eval echo '${'$as_ac_var'}'` = yes; then
10984   cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10986 _ACEOF
10987
10988 fi
10989 done
10990
10991
10992
10993
10994
10995 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10996 do
10997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11001   echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003   cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h.  */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h.  */
11009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11011 #define $ac_func innocuous_$ac_func
11012
11013 /* System header to define __stub macros and hopefully few prototypes,
11014     which can conflict with char $ac_func (); below.
11015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016     <limits.h> exists even on freestanding compilers.  */
11017
11018 #ifdef __STDC__
11019 # include <limits.h>
11020 #else
11021 # include <assert.h>
11022 #endif
11023
11024 #undef $ac_func
11025
11026 /* Override any GCC internal prototype to avoid an error.
11027    Use char because int might match the return type of a GCC
11028    builtin and then its argument prototype would still apply.  */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char $ac_func ();
11033 /* The GNU C library defines this for functions which it implements
11034     to always fail with ENOSYS.  Some functions are actually named
11035     something starting with __ and the normal name is an alias.  */
11036 #if defined __stub_$ac_func || defined __stub___$ac_func
11037 choke me
11038 #endif
11039
11040 int
11041 main ()
11042 {
11043 return $ac_func ();
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_link") 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } && {
11062          test -z "$ac_c_werror_flag" ||
11063          test ! -s conftest.err
11064        } && test -s conftest$ac_exeext &&
11065        $as_test_x conftest$ac_exeext; then
11066   eval "$as_ac_var=yes"
11067 else
11068   echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11070
11071         eval "$as_ac_var=no"
11072 fi
11073
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075       conftest$ac_exeext conftest.$ac_ext
11076 fi
11077 ac_res=`eval echo '${'$as_ac_var'}'`
11078                { echo "$as_me:$LINENO: result: $ac_res" >&5
11079 echo "${ECHO_T}$ac_res" >&6; }
11080 if test `eval echo '${'$as_ac_var'}'` = yes; then
11081   cat >>confdefs.h <<_ACEOF
11082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11083 _ACEOF
11084
11085 fi
11086 done
11087
11088 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
11089     savedppflags="$CPPLAGS"
11090     CPPFLAGS="$CPPFLAGS $V_INCLS"
11091     { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
11092 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
11093 if test "${ac_cv_type_pcap_if_t+set}" = set; then
11094   echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096   cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 #include <pcap.h>
11103
11104 typedef pcap_if_t ac__type_new_;
11105 int
11106 main ()
11107 {
11108 if ((ac__type_new_ *) 0)
11109   return 0;
11110 if (sizeof (ac__type_new_))
11111   return 0;
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_compile") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } && {
11130          test -z "$ac_c_werror_flag" ||
11131          test ! -s conftest.err
11132        } && test -s conftest.$ac_objext; then
11133   ac_cv_type_pcap_if_t=yes
11134 else
11135   echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138         ac_cv_type_pcap_if_t=no
11139 fi
11140
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 fi
11143 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11144 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
11145 if test $ac_cv_type_pcap_if_t = yes; then
11146
11147 cat >>confdefs.h <<_ACEOF
11148 #define HAVE_PCAP_IF_T 1
11149 _ACEOF
11150
11151
11152 fi
11153
11154     CPPFLAGS="$savedcppflags"
11155 fi
11156
11157 if test $ac_cv_func_pcap_lib_version = "no" ; then
11158     { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11159 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
11160     cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166
11167 int
11168 main ()
11169 {
11170
11171         extern char pcap_version[];
11172
11173         return (int)pcap_version;
11174
11175   ;
11176   return 0;
11177 }
11178 _ACEOF
11179 rm -f conftest.$ac_objext conftest$ac_exeext
11180 if { (ac_try="$ac_link"
11181 case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_link") 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } && {
11193          test -z "$ac_c_werror_flag" ||
11194          test ! -s conftest.err
11195        } && test -s conftest$ac_exeext &&
11196        $as_test_x conftest$ac_exeext; then
11197   ac_lbl_cv_pcap_version_defined=yes
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202         ac_lbl_cv_pcap_version_defined=no
11203 fi
11204
11205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11206       conftest$ac_exeext conftest.$ac_ext
11207     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11208         { echo "$as_me:$LINENO: result: yes" >&5
11209 echo "${ECHO_T}yes" >&6; }
11210         cat >>confdefs.h <<\_ACEOF
11211 #define HAVE_PCAP_VERSION 1
11212 _ACEOF
11213
11214     else
11215         { echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6; }
11217     fi
11218 fi
11219 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11220 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227
11228 int
11229 main ()
11230 {
11231
11232         extern int pcap_debug;
11233
11234         return pcap_debug;
11235
11236   ;
11237   return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (ac_try="$ac_link"
11242 case "(($ac_try" in
11243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11244   *) ac_try_echo=$ac_try;;
11245 esac
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247   (eval "$ac_link") 2>conftest.er1
11248   ac_status=$?
11249   grep -v '^ *+' conftest.er1 >conftest.err
11250   rm -f conftest.er1
11251   cat conftest.err >&5
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } && {
11254          test -z "$ac_c_werror_flag" ||
11255          test ! -s conftest.err
11256        } && test -s conftest$ac_exeext &&
11257        $as_test_x conftest$ac_exeext; then
11258   ac_lbl_cv_pcap_debug_defined=yes
11259 else
11260   echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.$ac_ext >&5
11262
11263         ac_lbl_cv_pcap_debug_defined=no
11264 fi
11265
11266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11267       conftest$ac_exeext conftest.$ac_ext
11268 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11269         { echo "$as_me:$LINENO: result: yes" >&5
11270 echo "${ECHO_T}yes" >&6; }
11271         cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_PCAP_DEBUG 1
11273 _ACEOF
11274
11275 else
11276         { echo "$as_me:$LINENO: result: no" >&5
11277 echo "${ECHO_T}no" >&6; }
11278         #
11279         # OK, what about "yydebug"?
11280         #
11281         { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11282 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
11283         cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h.  */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h.  */
11289
11290 int
11291 main ()
11292 {
11293
11294                 extern int yydebug;
11295
11296                 return yydebug;
11297
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_link") 2>conftest.er1
11310   ac_status=$?
11311   grep -v '^ *+' conftest.er1 >conftest.err
11312   rm -f conftest.er1
11313   cat conftest.err >&5
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } && {
11316          test -z "$ac_c_werror_flag" ||
11317          test ! -s conftest.err
11318        } && test -s conftest$ac_exeext &&
11319        $as_test_x conftest$ac_exeext; then
11320   ac_lbl_cv_yydebug_defined=yes
11321 else
11322   echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11324
11325         ac_lbl_cv_yydebug_defined=no
11326 fi
11327
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329       conftest$ac_exeext conftest.$ac_ext
11330         if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11331                 { echo "$as_me:$LINENO: result: yes" >&5
11332 echo "${ECHO_T}yes" >&6; }
11333                 cat >>confdefs.h <<\_ACEOF
11334 #define HAVE_YYDEBUG 1
11335 _ACEOF
11336
11337         else
11338                 { echo "$as_me:$LINENO: result: no" >&5
11339 echo "${ECHO_T}no" >&6; }
11340         fi
11341 fi
11342
11343 for ac_func in bpf_dump
11344 do
11345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   cat >conftest.$ac_ext <<_ACEOF
11352 /* confdefs.h.  */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h.  */
11357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11359 #define $ac_func innocuous_$ac_func
11360
11361 /* System header to define __stub macros and hopefully few prototypes,
11362     which can conflict with char $ac_func (); below.
11363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364     <limits.h> exists even on freestanding compilers.  */
11365
11366 #ifdef __STDC__
11367 # include <limits.h>
11368 #else
11369 # include <assert.h>
11370 #endif
11371
11372 #undef $ac_func
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375    Use char because int might match the return type of a GCC
11376    builtin and then its argument prototype would still apply.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char $ac_func ();
11381 /* The GNU C library defines this for functions which it implements
11382     to always fail with ENOSYS.  Some functions are actually named
11383     something starting with __ and the normal name is an alias.  */
11384 #if defined __stub_$ac_func || defined __stub___$ac_func
11385 choke me
11386 #endif
11387
11388 int
11389 main ()
11390 {
11391 return $ac_func ();
11392   ;
11393   return 0;
11394 }
11395 _ACEOF
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_link") 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } && {
11410          test -z "$ac_c_werror_flag" ||
11411          test ! -s conftest.err
11412        } && test -s conftest$ac_exeext &&
11413        $as_test_x conftest$ac_exeext; then
11414   eval "$as_ac_var=yes"
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419         eval "$as_ac_var=no"
11420 fi
11421
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423       conftest$ac_exeext conftest.$ac_ext
11424 fi
11425 ac_res=`eval echo '${'$as_ac_var'}'`
11426                { echo "$as_me:$LINENO: result: $ac_res" >&5
11427 echo "${ECHO_T}$ac_res" >&6; }
11428 if test `eval echo '${'$as_ac_var'}'` = yes; then
11429   cat >>confdefs.h <<_ACEOF
11430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11431 _ACEOF
11432
11433 else
11434   case " $LIBOBJS " in
11435   *" $ac_func.$ac_objext "* ) ;;
11436   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11437  ;;
11438 esac
11439
11440 fi
11441 done
11442
11443
11444 V_GROUP=0
11445 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11446         V_GROUP=wheel
11447 fi
11448 case "$host_os" in
11449
11450 aix*)
11451                 cat >>confdefs.h <<\_ACEOF
11452 #define _SUN 1
11453 _ACEOF
11454
11455         ;;
11456
11457 irix*)
11458         V_GROUP=sys
11459         ;;
11460
11461 osf*)
11462         V_GROUP=system
11463         ;;
11464
11465 solaris*)
11466         V_GROUP=sys
11467         ;;
11468 esac
11469
11470 if test -f /dev/bpf0 ; then
11471         V_GROUP=bpf
11472 fi
11473
11474 #
11475 # Check for some headers introduced in later versions of libpcap
11476 # and used by some printers.
11477 #
11478 savedcppflags="$CPPFLAGS"
11479 CPPFLAGS="$CPPFLAGS $V_INCLS"
11480
11481 for ac_header in pcap/bluetooth.h
11482 do
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488   echo $ECHO_N "(cached) $ECHO_C" >&6
11489 fi
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491                { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493 else
11494   # Is the header compilable?
11495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 $ac_includes_default
11504 #include <$ac_header>
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510   *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513   (eval "$ac_compile") 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } && {
11520          test -z "$ac_c_werror_flag" ||
11521          test ! -s conftest.err
11522        } && test -s conftest.$ac_objext; then
11523   ac_header_compiler=yes
11524 else
11525   echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528         ac_header_compiler=no
11529 fi
11530
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11533 echo "${ECHO_T}$ac_header_compiler" >&6; }
11534
11535 # Is the header present?
11536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544 #include <$ac_header>
11545 _ACEOF
11546 if { (ac_try="$ac_cpp conftest.$ac_ext"
11547 case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } >/dev/null && {
11559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11560          test ! -s conftest.err
11561        }; then
11562   ac_header_preproc=yes
11563 else
11564   echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567   ac_header_preproc=no
11568 fi
11569
11570 rm -f conftest.err conftest.$ac_ext
11571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 echo "${ECHO_T}$ac_header_preproc" >&6; }
11573
11574 # So?  What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576   yes:no: )
11577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581     ac_header_preproc=yes
11582     ;;
11583   no:yes:* )
11584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11596
11597     ;;
11598 esac
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   eval "$as_ac_Header=\$ac_header_preproc"
11605 fi
11606 ac_res=`eval echo '${'$as_ac_Header'}'`
11607                { echo "$as_me:$LINENO: result: $ac_res" >&5
11608 echo "${ECHO_T}$ac_res" >&6; }
11609
11610 fi
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612   cat >>confdefs.h <<_ACEOF
11613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11614 _ACEOF
11615
11616 fi
11617
11618 done
11619
11620 CPPFLAGS="$savedcppflags"
11621
11622
11623 for ac_header in sys/bitypes.h
11624 do
11625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11627   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 fi
11632 ac_res=`eval echo '${'$as_ac_Header'}'`
11633                { echo "$as_me:$LINENO: result: $ac_res" >&5
11634 echo "${ECHO_T}$ac_res" >&6; }
11635 else
11636   # Is the header compilable?
11637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645 $ac_includes_default
11646 #include <$ac_header>
11647 _ACEOF
11648 rm -f conftest.$ac_objext
11649 if { (ac_try="$ac_compile"
11650 case "(($ac_try" in
11651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652   *) ac_try_echo=$ac_try;;
11653 esac
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655   (eval "$ac_compile") 2>conftest.er1
11656   ac_status=$?
11657   grep -v '^ *+' conftest.er1 >conftest.err
11658   rm -f conftest.er1
11659   cat conftest.err >&5
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); } && {
11662          test -z "$ac_c_werror_flag" ||
11663          test ! -s conftest.err
11664        } && test -s conftest.$ac_objext; then
11665   ac_header_compiler=yes
11666 else
11667   echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670         ac_header_compiler=no
11671 fi
11672
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11675 echo "${ECHO_T}$ac_header_compiler" >&6; }
11676
11677 # Is the header present?
11678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 #include <$ac_header>
11687 _ACEOF
11688 if { (ac_try="$ac_cpp conftest.$ac_ext"
11689 case "(($ac_try" in
11690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691   *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11695   ac_status=$?
11696   grep -v '^ *+' conftest.er1 >conftest.err
11697   rm -f conftest.er1
11698   cat conftest.err >&5
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } >/dev/null && {
11701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11702          test ! -s conftest.err
11703        }; then
11704   ac_header_preproc=yes
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709   ac_header_preproc=no
11710 fi
11711
11712 rm -f conftest.err conftest.$ac_ext
11713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11714 echo "${ECHO_T}$ac_header_preproc" >&6; }
11715
11716 # So?  What about this header?
11717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11718   yes:no: )
11719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11723     ac_header_preproc=yes
11724     ;;
11725   no:yes:* )
11726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11738
11739     ;;
11740 esac
11741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   eval "$as_ac_Header=\$ac_header_preproc"
11747 fi
11748 ac_res=`eval echo '${'$as_ac_Header'}'`
11749                { echo "$as_me:$LINENO: result: $ac_res" >&5
11750 echo "${ECHO_T}$ac_res" >&6; }
11751
11752 fi
11753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11754   cat >>confdefs.h <<_ACEOF
11755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11756 _ACEOF
11757
11758 fi
11759
11760 done
11761
11762
11763 { echo "$as_me:$LINENO: checking for int8_t" >&5
11764 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
11765 if test "${ac_cv_type_int8_t+set}" = set; then
11766   echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768   cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h.  */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h.  */
11774 $ac_includes_default
11775 typedef int8_t ac__type_new_;
11776 int
11777 main ()
11778 {
11779 if ((ac__type_new_ *) 0)
11780   return 0;
11781 if (sizeof (ac__type_new_))
11782   return 0;
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (ac_try="$ac_compile"
11789 case "(($ac_try" in
11790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791   *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794   (eval "$ac_compile") 2>conftest.er1
11795   ac_status=$?
11796   grep -v '^ *+' conftest.er1 >conftest.err
11797   rm -f conftest.er1
11798   cat conftest.err >&5
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); } && {
11801          test -z "$ac_c_werror_flag" ||
11802          test ! -s conftest.err
11803        } && test -s conftest.$ac_objext; then
11804   ac_cv_type_int8_t=yes
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809         ac_cv_type_int8_t=no
11810 fi
11811
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11815 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
11816 if test $ac_cv_type_int8_t = yes; then
11817   :
11818 else
11819
11820 cat >>confdefs.h <<\_ACEOF
11821 #define int8_t signed char
11822 _ACEOF
11823
11824 fi
11825
11826 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
11827 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
11828 if test "${ac_cv_type_u_int8_t+set}" = set; then
11829   echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831   cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837 $ac_includes_default
11838 #ifdef HAVE_SYS_BITYPES_H
11839 #include <sys/bitypes.h>
11840 #endif
11841
11842 typedef u_int8_t ac__type_new_;
11843 int
11844 main ()
11845 {
11846 if ((ac__type_new_ *) 0)
11847   return 0;
11848 if (sizeof (ac__type_new_))
11849   return 0;
11850   ;
11851   return 0;
11852 }
11853 _ACEOF
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_compile") 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } && {
11868          test -z "$ac_c_werror_flag" ||
11869          test ! -s conftest.err
11870        } && test -s conftest.$ac_objext; then
11871   ac_cv_type_u_int8_t=yes
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876         ac_cv_type_u_int8_t=no
11877 fi
11878
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 fi
11881 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11882 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
11883 if test $ac_cv_type_u_int8_t = yes; then
11884   :
11885 else
11886
11887 cat >>confdefs.h <<\_ACEOF
11888 #define u_int8_t unsigned char
11889 _ACEOF
11890
11891 fi
11892
11893 { echo "$as_me:$LINENO: checking for int16_t" >&5
11894 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
11895 if test "${ac_cv_type_int16_t+set}" = set; then
11896   echo $ECHO_N "(cached) $ECHO_C" >&6
11897 else
11898   cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904 $ac_includes_default
11905 typedef int16_t ac__type_new_;
11906 int
11907 main ()
11908 {
11909 if ((ac__type_new_ *) 0)
11910   return 0;
11911 if (sizeof (ac__type_new_))
11912   return 0;
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext
11918 if { (ac_try="$ac_compile"
11919 case "(($ac_try" in
11920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921   *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924   (eval "$ac_compile") 2>conftest.er1
11925   ac_status=$?
11926   grep -v '^ *+' conftest.er1 >conftest.err
11927   rm -f conftest.er1
11928   cat conftest.err >&5
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); } && {
11931          test -z "$ac_c_werror_flag" ||
11932          test ! -s conftest.err
11933        } && test -s conftest.$ac_objext; then
11934   ac_cv_type_int16_t=yes
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939         ac_cv_type_int16_t=no
11940 fi
11941
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 fi
11944 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11945 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
11946 if test $ac_cv_type_int16_t = yes; then
11947   :
11948 else
11949
11950 cat >>confdefs.h <<\_ACEOF
11951 #define int16_t short
11952 _ACEOF
11953
11954 fi
11955
11956 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
11957 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11958 if test "${ac_cv_type_u_int16_t+set}" = set; then
11959   echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961   cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h.  */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h.  */
11967 $ac_includes_default
11968 #ifdef HAVE_SYS_BITYPES_H
11969 #include <sys/bitypes.h>
11970 #endif
11971
11972 typedef u_int16_t ac__type_new_;
11973 int
11974 main ()
11975 {
11976 if ((ac__type_new_ *) 0)
11977   return 0;
11978 if (sizeof (ac__type_new_))
11979   return 0;
11980   ;
11981   return 0;
11982 }
11983 _ACEOF
11984 rm -f conftest.$ac_objext
11985 if { (ac_try="$ac_compile"
11986 case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_compile") 2>conftest.er1
11992   ac_status=$?
11993   grep -v '^ *+' conftest.er1 >conftest.err
11994   rm -f conftest.er1
11995   cat conftest.err >&5
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } && {
11998          test -z "$ac_c_werror_flag" ||
11999          test ! -s conftest.err
12000        } && test -s conftest.$ac_objext; then
12001   ac_cv_type_u_int16_t=yes
12002 else
12003   echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12005
12006         ac_cv_type_u_int16_t=no
12007 fi
12008
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 fi
12011 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
12012 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
12013 if test $ac_cv_type_u_int16_t = yes; then
12014   :
12015 else
12016
12017 cat >>confdefs.h <<\_ACEOF
12018 #define u_int16_t unsigned short
12019 _ACEOF
12020
12021 fi
12022
12023 { echo "$as_me:$LINENO: checking for int32_t" >&5
12024 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
12025 if test "${ac_cv_type_int32_t+set}" = set; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028   cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h.  */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h.  */
12034 $ac_includes_default
12035 typedef int32_t ac__type_new_;
12036 int
12037 main ()
12038 {
12039 if ((ac__type_new_ *) 0)
12040   return 0;
12041 if (sizeof (ac__type_new_))
12042   return 0;
12043   ;
12044   return 0;
12045 }
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (ac_try="$ac_compile"
12049 case "(($ac_try" in
12050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051   *) ac_try_echo=$ac_try;;
12052 esac
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054   (eval "$ac_compile") 2>conftest.er1
12055   ac_status=$?
12056   grep -v '^ *+' conftest.er1 >conftest.err
12057   rm -f conftest.er1
12058   cat conftest.err >&5
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); } && {
12061          test -z "$ac_c_werror_flag" ||
12062          test ! -s conftest.err
12063        } && test -s conftest.$ac_objext; then
12064   ac_cv_type_int32_t=yes
12065 else
12066   echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069         ac_cv_type_int32_t=no
12070 fi
12071
12072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 fi
12074 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
12075 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
12076 if test $ac_cv_type_int32_t = yes; then
12077   :
12078 else
12079
12080 cat >>confdefs.h <<\_ACEOF
12081 #define int32_t int
12082 _ACEOF
12083
12084 fi
12085
12086 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
12087 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
12088 if test "${ac_cv_type_u_int32_t+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 $ac_includes_default
12098 #ifdef HAVE_SYS_BITYPES_H
12099 #include <sys/bitypes.h>
12100 #endif
12101
12102 typedef u_int32_t ac__type_new_;
12103 int
12104 main ()
12105 {
12106 if ((ac__type_new_ *) 0)
12107   return 0;
12108 if (sizeof (ac__type_new_))
12109   return 0;
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_compile") 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } && {
12128          test -z "$ac_c_werror_flag" ||
12129          test ! -s conftest.err
12130        } && test -s conftest.$ac_objext; then
12131   ac_cv_type_u_int32_t=yes
12132 else
12133   echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136         ac_cv_type_u_int32_t=no
12137 fi
12138
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 fi
12141 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12142 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
12143 if test $ac_cv_type_u_int32_t = yes; then
12144   :
12145 else
12146
12147 cat >>confdefs.h <<\_ACEOF
12148 #define u_int32_t unsigned int
12149 _ACEOF
12150
12151 fi
12152
12153 { echo "$as_me:$LINENO: checking for int64_t" >&5
12154 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12155 if test "${ac_cv_type_int64_t+set}" = set; then
12156   echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158   cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h.  */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h.  */
12164 $ac_includes_default
12165 typedef int64_t ac__type_new_;
12166 int
12167 main ()
12168 {
12169 if ((ac__type_new_ *) 0)
12170   return 0;
12171 if (sizeof (ac__type_new_))
12172   return 0;
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext
12178 if { (ac_try="$ac_compile"
12179 case "(($ac_try" in
12180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181   *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184   (eval "$ac_compile") 2>conftest.er1
12185   ac_status=$?
12186   grep -v '^ *+' conftest.er1 >conftest.err
12187   rm -f conftest.er1
12188   cat conftest.err >&5
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); } && {
12191          test -z "$ac_c_werror_flag" ||
12192          test ! -s conftest.err
12193        } && test -s conftest.$ac_objext; then
12194   ac_cv_type_int64_t=yes
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199         ac_cv_type_int64_t=no
12200 fi
12201
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 fi
12204 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12205 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12206 if test $ac_cv_type_int64_t = yes; then
12207   :
12208 else
12209
12210 cat >>confdefs.h <<\_ACEOF
12211 #define int64_t long long
12212 _ACEOF
12213
12214 fi
12215
12216 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
12217 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
12218 if test "${ac_cv_type_u_int64_t+set}" = set; then
12219   echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221   cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227 $ac_includes_default
12228 #ifdef HAVE_SYS_BITYPES_H
12229 #include <sys/bitypes.h>
12230 #endif
12231
12232 typedef u_int64_t ac__type_new_;
12233 int
12234 main ()
12235 {
12236 if ((ac__type_new_ *) 0)
12237   return 0;
12238 if (sizeof (ac__type_new_))
12239   return 0;
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext
12245 if { (ac_try="$ac_compile"
12246 case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251   (eval "$ac_compile") 2>conftest.er1
12252   ac_status=$?
12253   grep -v '^ *+' conftest.er1 >conftest.err
12254   rm -f conftest.er1
12255   cat conftest.err >&5
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } && {
12258          test -z "$ac_c_werror_flag" ||
12259          test ! -s conftest.err
12260        } && test -s conftest.$ac_objext; then
12261   ac_cv_type_u_int64_t=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266         ac_cv_type_u_int64_t=no
12267 fi
12268
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12270 fi
12271 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12272 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
12273 if test $ac_cv_type_u_int64_t = yes; then
12274   :
12275 else
12276
12277 cat >>confdefs.h <<\_ACEOF
12278 #define u_int64_t unsigned long long
12279 _ACEOF
12280
12281 fi
12282
12283
12284 #
12285 # We can't just check for <inttypes.h> - some systems have one that
12286 # doesn't define all the PRI[doxu]64 macros.
12287 #
12288
12289 for ac_header in inttypes.h
12290 do
12291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12293   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296   echo $ECHO_N "(cached) $ECHO_C" >&6
12297 fi
12298 ac_res=`eval echo '${'$as_ac_Header'}'`
12299                { echo "$as_me:$LINENO: result: $ac_res" >&5
12300 echo "${ECHO_T}$ac_res" >&6; }
12301 else
12302   # Is the header compilable?
12303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311 $ac_includes_default
12312 #include <$ac_header>
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_compile") 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } && {
12328          test -z "$ac_c_werror_flag" ||
12329          test ! -s conftest.err
12330        } && test -s conftest.$ac_objext; then
12331   ac_header_compiler=yes
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336         ac_header_compiler=no
12337 fi
12338
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 echo "${ECHO_T}$ac_header_compiler" >&6; }
12342
12343 # Is the header present?
12344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 #include <$ac_header>
12353 _ACEOF
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } >/dev/null && {
12367          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12368          test ! -s conftest.err
12369        }; then
12370   ac_header_preproc=yes
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375   ac_header_preproc=no
12376 fi
12377
12378 rm -f conftest.err conftest.$ac_ext
12379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12380 echo "${ECHO_T}$ac_header_preproc" >&6; }
12381
12382 # So?  What about this header?
12383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12384   yes:no: )
12385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12389     ac_header_preproc=yes
12390     ;;
12391   no:yes:* )
12392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12404
12405     ;;
12406 esac
12407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12410   echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412   eval "$as_ac_Header=\$ac_header_preproc"
12413 fi
12414 ac_res=`eval echo '${'$as_ac_Header'}'`
12415                { echo "$as_me:$LINENO: result: $ac_res" >&5
12416 echo "${ECHO_T}$ac_res" >&6; }
12417
12418 fi
12419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12420   cat >>confdefs.h <<_ACEOF
12421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12422 _ACEOF
12423
12424     #
12425     # OK, we have inttypes.h, but does it define those macros?
12426     #
12427     { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12428 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
12429     cat >conftest.$ac_ext <<_ACEOF
12430
12431         /* confdefs.h.  */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h.  */
12436
12437             #include <inttypes.h>
12438             #include <stdio.h>
12439             #include <sys/types.h>
12440             #ifdef HAVE_SYS_BITYPES_H
12441             #include <sys/bitypes.h>
12442             #endif
12443
12444             main()
12445             {
12446               printf("%" PRId64 "\n", (u_int64_t)1);
12447               printf("%" PRIo64 "\n", (u_int64_t)1);
12448               printf("%" PRIx64 "\n", (u_int64_t)1);
12449               printf("%" PRIu64 "\n", (u_int64_t)1);
12450             }
12451
12452
12453 _ACEOF
12454 rm -f conftest.$ac_objext
12455 if { (ac_try="$ac_compile"
12456 case "(($ac_try" in
12457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458   *) ac_try_echo=$ac_try;;
12459 esac
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461   (eval "$ac_compile") 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } && {
12468          test -z "$ac_c_werror_flag" ||
12469          test ! -s conftest.err
12470        } && test -s conftest.$ac_objext; then
12471
12472         { echo "$as_me:$LINENO: result: yes" >&5
12473 echo "${ECHO_T}yes" >&6; }
12474         ac_lbl_inttypes_h_defines_formats=yes
12475
12476 else
12477   echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480
12481         { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12483         ac_lbl_inttypes_h_defines_formats=no
12484
12485 fi
12486
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488
12489 else
12490
12491     #
12492     # We don't have inttypes.h, so it obviously can't define those
12493     # macros.
12494     #
12495     ac_lbl_inttypes_h_defines_formats=no
12496
12497 fi
12498
12499 done
12500
12501 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12502
12503     { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12504 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12505     if test "$cross_compiling" = yes; then
12506   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12507 See \`config.log' for more details." >&5
12508 echo "$as_me: error: cannot run test program while cross compiling
12509 See \`config.log' for more details." >&2;}
12510    { (exit 1); exit 1; }; }
12511 else
12512   cat >conftest.$ac_ext <<_ACEOF
12513
12514         /* confdefs.h.  */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h.  */
12519
12520 #           ifdef HAVE_INTTYPES_H
12521             #include <inttypes.h>
12522 #           endif
12523 #           ifdef HAVE_SYS_BITYPES_H
12524             #include <sys/bitypes.h>
12525 #           endif
12526             #include <stdio.h>
12527             #include <sys/types.h>
12528
12529             main()
12530             {
12531               u_int64_t t = 1;
12532               char strbuf[16+1];
12533               sprintf(strbuf, "%016lx", t << 32);
12534               if (strcmp(strbuf, "0000000100000000") == 0)
12535                 exit(0);
12536               else
12537                 exit(1);
12538             }
12539
12540
12541 _ACEOF
12542 rm -f conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_link") 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12553   { (case "(($ac_try" in
12554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555   *) ac_try_echo=$ac_try;;
12556 esac
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558   (eval "$ac_try") 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562
12563         cat >>confdefs.h <<\_ACEOF
12564 #define PRId64 "ld"
12565 _ACEOF
12566
12567         cat >>confdefs.h <<\_ACEOF
12568 #define PRIo64 "lo"
12569 _ACEOF
12570
12571         cat >>confdefs.h <<\_ACEOF
12572 #define PRIx64 "lx"
12573 _ACEOF
12574
12575         cat >>confdefs.h <<\_ACEOF
12576 #define PRIu64 "lu"
12577 _ACEOF
12578
12579         { echo "$as_me:$LINENO: result: yes" >&5
12580 echo "${ECHO_T}yes" >&6; }
12581
12582 else
12583   echo "$as_me: program exited with status $ac_status" >&5
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587 ( exit $ac_status )
12588
12589         { echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6; }
12591
12592
12593     { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12594 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
12595     if test "$cross_compiling" = yes; then
12596   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12597 See \`config.log' for more details." >&5
12598 echo "$as_me: error: cannot run test program while cross compiling
12599 See \`config.log' for more details." >&2;}
12600    { (exit 1); exit 1; }; }
12601 else
12602   cat >conftest.$ac_ext <<_ACEOF
12603
12604         /* confdefs.h.  */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h.  */
12609
12610 #           ifdef HAVE_INTTYPES_H
12611             #include <inttypes.h>
12612 #           endif
12613 #           ifdef HAVE_SYS_BITYPES_H
12614             #include <sys/bitypes.h>
12615 #           endif
12616             #include <stdio.h>
12617             #include <sys/types.h>
12618
12619             main()
12620             {
12621               u_int64_t t = 1;
12622               char strbuf[16+1];
12623               sprintf(strbuf, "%016llx", t << 32);
12624               if (strcmp(strbuf, "0000000100000000") == 0)
12625                 exit(0);
12626               else
12627                 exit(1);
12628             }
12629
12630
12631 _ACEOF
12632 rm -f conftest$ac_exeext
12633 if { (ac_try="$ac_link"
12634 case "(($ac_try" in
12635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636   *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639   (eval "$ac_link") 2>&5
12640   ac_status=$?
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12643   { (case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_try") 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; }; then
12652
12653         cat >>confdefs.h <<\_ACEOF
12654 #define PRId64 "lld"
12655 _ACEOF
12656
12657         cat >>confdefs.h <<\_ACEOF
12658 #define PRIo64 "llo"
12659 _ACEOF
12660
12661         cat >>confdefs.h <<\_ACEOF
12662 #define PRIx64 "llx"
12663 _ACEOF
12664
12665         cat >>confdefs.h <<\_ACEOF
12666 #define PRIu64 "llu"
12667 _ACEOF
12668
12669         { echo "$as_me:$LINENO: result: yes" >&5
12670 echo "${ECHO_T}yes" >&6; }
12671
12672 else
12673   echo "$as_me: program exited with status $ac_status" >&5
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ( exit $ac_status )
12678
12679         { echo "$as_me:$LINENO: result: no" >&5
12680 echo "${ECHO_T}no" >&6; }
12681
12682
12683     { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12684 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
12685     if test "$cross_compiling" = yes; then
12686   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12687 See \`config.log' for more details." >&5
12688 echo "$as_me: error: cannot run test program while cross compiling
12689 See \`config.log' for more details." >&2;}
12690    { (exit 1); exit 1; }; }
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693
12694         /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699
12700 #           ifdef HAVE_INTTYPES_H
12701             #include <inttypes.h>
12702 #           endif
12703 #           ifdef HAVE_SYS_BITYPES_H
12704             #include <sys/bitypes.h>
12705 #           endif
12706             #include <stdio.h>
12707             #include <sys/types.h>
12708
12709             main()
12710             {
12711               u_int64_t t = 1;
12712               char strbuf[16+1];
12713               sprintf(strbuf, "%016Lx", t << 32);
12714               if (strcmp(strbuf, "0000000100000000") == 0)
12715                 exit(0);
12716               else
12717                 exit(1);
12718             }
12719
12720
12721 _ACEOF
12722 rm -f conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_link") 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733   { (case "(($ac_try" in
12734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735   *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738   (eval "$ac_try") 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742
12743         cat >>confdefs.h <<\_ACEOF
12744 #define PRId64 "Ld"
12745 _ACEOF
12746
12747         cat >>confdefs.h <<\_ACEOF
12748 #define PRIo64 "Lo"
12749 _ACEOF
12750
12751         cat >>confdefs.h <<\_ACEOF
12752 #define PRIx64 "Lx"
12753 _ACEOF
12754
12755         cat >>confdefs.h <<\_ACEOF
12756 #define PRIu64 "Lu"
12757 _ACEOF
12758
12759         { echo "$as_me:$LINENO: result: yes" >&5
12760 echo "${ECHO_T}yes" >&6; }
12761
12762 else
12763   echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ( exit $ac_status )
12768
12769         { echo "$as_me:$LINENO: result: no" >&5
12770 echo "${ECHO_T}no" >&6; }
12771
12772
12773     { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12774 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
12775     if test "$cross_compiling" = yes; then
12776   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12777 See \`config.log' for more details." >&5
12778 echo "$as_me: error: cannot run test program while cross compiling
12779 See \`config.log' for more details." >&2;}
12780    { (exit 1); exit 1; }; }
12781 else
12782   cat >conftest.$ac_ext <<_ACEOF
12783
12784         /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789
12790 #           ifdef HAVE_INTTYPES_H
12791             #include <inttypes.h>
12792 #           endif
12793 #           ifdef HAVE_SYS_BITYPES_H
12794             #include <sys/bitypes.h>
12795 #           endif
12796             #include <stdio.h>
12797             #include <sys/types.h>
12798
12799             main()
12800             {
12801               u_int64_t t = 1;
12802               char strbuf[16+1];
12803               sprintf(strbuf, "%016qx", t << 32);
12804               if (strcmp(strbuf, "0000000100000000") == 0)
12805                 exit(0);
12806               else
12807                 exit(1);
12808             }
12809
12810
12811 _ACEOF
12812 rm -f conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819   (eval "$ac_link") 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12823   { (case "(($ac_try" in
12824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825   *) ac_try_echo=$ac_try;;
12826 esac
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828   (eval "$ac_try") 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; }; then
12832
12833         cat >>confdefs.h <<\_ACEOF
12834 #define PRId64 "qd"
12835 _ACEOF
12836
12837         cat >>confdefs.h <<\_ACEOF
12838 #define PRIo64 "qo"
12839 _ACEOF
12840
12841         cat >>confdefs.h <<\_ACEOF
12842 #define PRIx64 "qx"
12843 _ACEOF
12844
12845         cat >>confdefs.h <<\_ACEOF
12846 #define PRIu64 "qu"
12847 _ACEOF
12848
12849         { echo "$as_me:$LINENO: result: yes" >&5
12850 echo "${ECHO_T}yes" >&6; }
12851
12852 else
12853   echo "$as_me: program exited with status $ac_status" >&5
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 ( exit $ac_status )
12858
12859         { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12861
12862                   { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12863 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12864    { (exit 1); exit 1; }; }
12865
12866
12867 fi
12868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12869 fi
12870
12871
12872
12873
12874
12875 fi
12876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12877 fi
12878
12879
12880
12881
12882
12883 fi
12884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12885 fi
12886
12887
12888
12889
12890
12891 fi
12892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12893 fi
12894
12895
12896
12897 fi
12898
12899 if test -n "$ac_tool_prefix"; then
12900   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12904 if test "${ac_cv_prog_RANLIB+set}" = set; then
12905   echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907   if test -n "$RANLIB"; then
12908   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12909 else
12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in $PATH
12912 do
12913   IFS=$as_save_IFS
12914   test -z "$as_dir" && as_dir=.
12915   for ac_exec_ext in '' $ac_executable_extensions; do
12916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12917     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12919     break 2
12920   fi
12921 done
12922 done
12923 IFS=$as_save_IFS
12924
12925 fi
12926 fi
12927 RANLIB=$ac_cv_prog_RANLIB
12928 if test -n "$RANLIB"; then
12929   { echo "$as_me:$LINENO: result: $RANLIB" >&5
12930 echo "${ECHO_T}$RANLIB" >&6; }
12931 else
12932   { echo "$as_me:$LINENO: result: no" >&5
12933 echo "${ECHO_T}no" >&6; }
12934 fi
12935
12936
12937 fi
12938 if test -z "$ac_cv_prog_RANLIB"; then
12939   ac_ct_RANLIB=$RANLIB
12940   # Extract the first word of "ranlib", so it can be a program name with args.
12941 set dummy ranlib; ac_word=$2
12942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   if test -n "$ac_ct_RANLIB"; then
12948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953   IFS=$as_save_IFS
12954   test -z "$as_dir" && as_dir=.
12955   for ac_exec_ext in '' $ac_executable_extensions; do
12956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12957     ac_cv_prog_ac_ct_RANLIB="ranlib"
12958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12959     break 2
12960   fi
12961 done
12962 done
12963 IFS=$as_save_IFS
12964
12965 fi
12966 fi
12967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12968 if test -n "$ac_ct_RANLIB"; then
12969   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12970 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
12971 else
12972   { echo "$as_me:$LINENO: result: no" >&5
12973 echo "${ECHO_T}no" >&6; }
12974 fi
12975
12976   if test "x$ac_ct_RANLIB" = x; then
12977     RANLIB=":"
12978   else
12979     case $cross_compiling:$ac_tool_warned in
12980 yes:)
12981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12982 whose name does not start with the host triplet.  If you think this
12983 configuration is useful to you, please write to autoconf@gnu.org." >&5
12984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12985 whose name does not start with the host triplet.  If you think this
12986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12987 ac_tool_warned=yes ;;
12988 esac
12989     RANLIB=$ac_ct_RANLIB
12990   fi
12991 else
12992   RANLIB="$ac_cv_prog_RANLIB"
12993 fi
12994
12995
12996 rm -f os-proto.h
12997     if test "${LBL_CFLAGS+set}" = set; then
12998             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12999     fi
13000     if test -f .devel ; then
13001             if test "$GCC" = yes ; then
13002                     if test "${LBL_CFLAGS+set}" != set; then
13003                             if test "$ac_cv_prog_cc_g" = yes ; then
13004                                     V_CCOPT="-g $V_CCOPT"
13005                             fi
13006                             V_CCOPT="$V_CCOPT -Wall"
13007                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
13008                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
13009                             fi
13010                     fi
13011             else
13012                     case "$host_os" in
13013
13014                     irix6*)
13015                             V_CCOPT="$V_CCOPT -n32"
13016                             ;;
13017
13018                     *)
13019                             ;;
13020                     esac
13021             fi
13022             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
13023             name="lbl/os-$os.h"
13024             if test -f $name ; then
13025                     ln -s $name os-proto.h
13026                     cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_OS_PROTO_H 1
13028 _ACEOF
13029
13030             else
13031                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
13032 echo "$as_me: WARNING: can't find $name" >&2;}
13033             fi
13034     fi
13035
13036 { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
13037 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
13038     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
13039   echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041   cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h.  */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h.  */
13047
13048 #       include <sys/types.h>
13049 #       include <sys/socket.h>
13050 int
13051 main ()
13052 {
13053 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 rm -f conftest.$ac_objext
13059 if { (ac_try="$ac_compile"
13060 case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_compile") 2>conftest.er1
13066   ac_status=$?
13067   grep -v '^ *+' conftest.er1 >conftest.err
13068   rm -f conftest.er1
13069   cat conftest.err >&5
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); } && {
13072          test -z "$ac_c_werror_flag" ||
13073          test ! -s conftest.err
13074        } && test -s conftest.$ac_objext; then
13075   ac_cv_lbl_sockaddr_has_sa_len=yes
13076 else
13077   echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13079
13080         ac_cv_lbl_sockaddr_has_sa_len=no
13081 fi
13082
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 fi
13085
13086     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
13087 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
13088     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
13089             cat >>confdefs.h <<\_ACEOF
13090 #define HAVE_SOCKADDR_SA_LEN 1
13091 _ACEOF
13092
13093     fi
13094
13095 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
13096 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
13097     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   case "$host_cpu" in
13101
13102         #
13103         # These are CPU types where:
13104         #
13105         #       the CPU faults on an unaligned access, but at least some
13106         #       OSes that support that CPU catch the fault and simulate
13107         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
13108         #       the simulation is slow, so we don't want to use it;
13109         #
13110         #       the CPU, I infer (from the old
13111         #
13112         # XXX: should also check that they don't do weird things (like on arm)
13113         #
13114         #       comment) doesn't fault on unaligned accesses, but doesn't
13115         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
13116         #
13117         #       for whatever reason, the test program doesn't work
13118         #       (this has been claimed to be the case for several of those
13119         #       CPUs - I don't know what the problem is; the problem
13120         #       was reported as "the test program dumps core" for SuperH,
13121         #       but that's what the test program is *supposed* to do -
13122         #       it dumps core before it writes anything, so the test
13123         #       for an empty output file should find an empty output
13124         #       file and conclude that unaligned accesses don't work).
13125         #
13126         # This run-time test won't work if you're cross-compiling, so
13127         # in order to support cross-compiling for a particular CPU,
13128         # we have to wire in the list of CPU types anyway, as far as
13129         # I know, so perhaps we should just have a set of CPUs on
13130         # which we know it doesn't work, a set of CPUs on which we
13131         # know it does work, and have the script just fail on other
13132         # cpu types and update it when such a failure occurs.
13133         #
13134         alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
13135                 ac_cv_lbl_unaligned_fail=yes
13136                 ;;
13137
13138         *)
13139                 cat >conftest.c <<EOF
13140 #               include <sys/types.h>
13141 #               include <sys/wait.h>
13142 #               include <stdio.h>
13143                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
13144                 main() {
13145                 unsigned int i;
13146                 pid_t pid;
13147                 int status;
13148                 /* avoid "core dumped" message */
13149                 pid = fork();
13150                 if (pid <  0)
13151                         exit(2);
13152                 if (pid > 0) {
13153                         /* parent */
13154                         pid = waitpid(pid, &status, 0);
13155                         if (pid < 0)
13156                                 exit(3);
13157                         exit(!WIFEXITED(status));
13158                 }
13159                 /* child */
13160                 i = *(unsigned int *)&a[1];
13161                 printf("%d\n", i);
13162                 exit(0);
13163                 }
13164 EOF
13165                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
13166                     conftest.c $LIBS >/dev/null 2>&1
13167                 if test ! -x conftest ; then
13168                                                 ac_cv_lbl_unaligned_fail=yes
13169                 else
13170                         ./conftest >conftest.out
13171                         if test ! -s conftest.out ; then
13172                                 ac_cv_lbl_unaligned_fail=yes
13173                         else
13174                                 ac_cv_lbl_unaligned_fail=no
13175                         fi
13176                 fi
13177                 rm -f conftest* core core.conftest
13178                 ;;
13179         esac
13180 fi
13181
13182     { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
13183 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
13184     if test $ac_cv_lbl_unaligned_fail = yes ; then
13185             cat >>confdefs.h <<\_ACEOF
13186 #define LBL_ALIGN 1
13187 _ACEOF
13188
13189     fi
13190
13191
13192         { echo "$as_me:$LINENO: checking for h_errno" >&5
13193 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
13194         if test "${ac_cv_var_h_errno+set}" = set; then
13195   echo $ECHO_N "(cached) $ECHO_C" >&6
13196 else
13197   cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203
13204 #               include <sys/types.h>
13205 #               include <netdb.h>
13206 int
13207 main ()
13208 {
13209 int foo = h_errno;
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214 rm -f conftest.$ac_objext
13215 if { (ac_try="$ac_compile"
13216 case "(($ac_try" in
13217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218   *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221   (eval "$ac_compile") 2>conftest.er1
13222   ac_status=$?
13223   grep -v '^ *+' conftest.er1 >conftest.err
13224   rm -f conftest.er1
13225   cat conftest.err >&5
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); } && {
13228          test -z "$ac_c_werror_flag" ||
13229          test ! -s conftest.err
13230        } && test -s conftest.$ac_objext; then
13231   ac_cv_var_h_errno=yes
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236         ac_cv_var_h_errno=no
13237 fi
13238
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 fi
13241
13242         { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
13243 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
13244         if test "$ac_cv_var_h_errno" = "yes"; then
13245                 cat >>confdefs.h <<\_ACEOF
13246 #define HAVE_H_ERRNO 1
13247 _ACEOF
13248
13249         fi
13250
13251
13252 # Check for SSLeay
13253 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13254 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
13255 # Specify location for both includes and libraries.
13256 want_libcrypto=youmama
13257
13258 # Check whether --with-crypto was given.
13259 if test "${with_crypto+set}" = set; then
13260   withval=$with_crypto;
13261         if test $withval = no
13262         then
13263                 want_libcrypto=no
13264                 { echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6; }
13266         elif test $withval = yes
13267         then
13268                 want_libcrypto=yes
13269                 { echo "$as_me:$LINENO: result: yes" >&5
13270 echo "${ECHO_T}yes" >&6; }
13271         else
13272                 want_libcrypto=yes
13273                 { echo "$as_me:$LINENO: result: yes" >&5
13274 echo "${ECHO_T}yes" >&6; }
13275                 crypto_dir=$withval
13276         fi
13277
13278 else
13279
13280         #
13281         # Use libcrypto if it's present, otherwise don't.
13282         #
13283         want_libcrypto=ifavailable
13284         { echo "$as_me:$LINENO: result: yes, if available" >&5
13285 echo "${ECHO_T}yes, if available" >&6; }
13286
13287 fi
13288
13289 if test "$want_libcrypto" != "no"; then
13290         ac_cv_ssleay_path=no
13291         incdir=no
13292         if test "x$crypto_dir" = x; then
13293                 #
13294                 # Location not specified; check the default locations.
13295                 #
13296                 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13297 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
13298                 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13299                 if test "x${host_alias}" != x; then
13300                         dirs="/usr/${host_alias} $dirs"
13301                 fi
13302                 for dir in $dirs; do
13303
13304         #
13305         # XXX - is there a better way to check if a given library is
13306         # in a given directory than checking each of the possible
13307         # shared library suffixes?
13308         #
13309         # Are there any other suffixes we need to look for?  Do we
13310         # have to worry about ".so.{version}"?
13311         #
13312         # Or should we just look for "libcrypto.*"?
13313         #
13314         if test -d "$dir/lib" -a \( -f "$dir/lib/libcrypto.a" -o \
13315                                     -f "$dir/lib/libcrypto.so" -o \
13316                                     -f "$dir/lib/libcrypto.sl" -o \
13317                                     -f "$dir/lib/libcrypto.dylib" \); then
13318                 ac_cv_ssleay_path="$dir"
13319         fi
13320
13321         #
13322         # Make sure we have the headers as well.
13323         #
13324         if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13325                 incdir="-I$dir/include"
13326         fi
13327
13328
13329                         if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13330                                 break;
13331                         else
13332                                 ac_cv_ssleay_path=no
13333                                 incdir=no
13334                         fi
13335                 done
13336                 if test "$ac_cv_ssleay_path" != no; then
13337                         { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13338 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
13339                 fi
13340         else
13341                 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13342 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
13343
13344         #
13345         # XXX - is there a better way to check if a given library is
13346         # in a given directory than checking each of the possible
13347         # shared library suffixes?
13348         #
13349         # Are there any other suffixes we need to look for?  Do we
13350         # have to worry about ".so.{version}"?
13351         #
13352         # Or should we just look for "libcrypto.*"?
13353         #
13354         if test -d "$crypto_dir/lib" -a \( -f "$crypto_dir/lib/libcrypto.a" -o \
13355                                     -f "$crypto_dir/lib/libcrypto.so" -o \
13356                                     -f "$crypto_dir/lib/libcrypto.sl" -o \
13357                                     -f "$crypto_dir/lib/libcrypto.dylib" \); then
13358                 ac_cv_ssleay_path="$crypto_dir"
13359         fi
13360
13361         #
13362         # Make sure we have the headers as well.
13363         #
13364         if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13365                 incdir="-I$crypto_dir/include"
13366         fi
13367
13368                 if test "$ac_cv_ssleay_path" != no; then
13369                         { echo "$as_me:$LINENO: result: found" >&5
13370 echo "${ECHO_T}found" >&6; }
13371                 fi
13372         fi
13373         if test "$ac_cv_ssleay_path" != no; then
13374                 V_INCLS="$V_INCLS $incdir"
13375                 LDFLAGS="-L$dir/lib $LDFLAGS"
13376                 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13377                         LIBS="$LIBS -lRSAglue"
13378                 fi
13379                 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13380                         LIBS="$LIBS -lrsaref"
13381                 fi
13382
13383 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13384 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
13385 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13386   echo $ECHO_N "(cached) $ECHO_C" >&6
13387 else
13388   ac_check_lib_save_LIBS=$LIBS
13389 LIBS="-lcrypto  $LIBS"
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h.  */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h.  */
13396
13397 /* Override any GCC internal prototype to avoid an error.
13398    Use char because int might match the return type of a GCC
13399    builtin and then its argument prototype would still apply.  */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char DES_cbc_encrypt ();
13404 int
13405 main ()
13406 {
13407 return DES_cbc_encrypt ();
13408   ;
13409   return 0;
13410 }
13411 _ACEOF
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_link") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } && {
13426          test -z "$ac_c_werror_flag" ||
13427          test ! -s conftest.err
13428        } && test -s conftest$ac_exeext &&
13429        $as_test_x conftest$ac_exeext; then
13430   ac_cv_lib_crypto_DES_cbc_encrypt=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435         ac_cv_lib_crypto_DES_cbc_encrypt=no
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439       conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13441 fi
13442 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13443 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13444 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13445   cat >>confdefs.h <<_ACEOF
13446 #define HAVE_LIBCRYPTO 1
13447 _ACEOF
13448
13449   LIBS="-lcrypto $LIBS"
13450
13451 fi
13452
13453
13454                 CPPFLAGS="$CPPFLAGS $V_INCLS"
13455
13456 for ac_header in openssl/evp.h
13457 do
13458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 fi
13465 ac_res=`eval echo '${'$as_ac_Header'}'`
13466                { echo "$as_me:$LINENO: result: $ac_res" >&5
13467 echo "${ECHO_T}$ac_res" >&6; }
13468 else
13469   # Is the header compilable?
13470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 $ac_includes_default
13479 #include <$ac_header>
13480 _ACEOF
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_compile") 2>conftest.er1
13489   ac_status=$?
13490   grep -v '^ *+' conftest.er1 >conftest.err
13491   rm -f conftest.er1
13492   cat conftest.err >&5
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } && {
13495          test -z "$ac_c_werror_flag" ||
13496          test ! -s conftest.err
13497        } && test -s conftest.$ac_objext; then
13498   ac_header_compiler=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503         ac_header_compiler=no
13504 fi
13505
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13508 echo "${ECHO_T}$ac_header_compiler" >&6; }
13509
13510 # Is the header present?
13511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h.  */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h.  */
13519 #include <$ac_header>
13520 _ACEOF
13521 if { (ac_try="$ac_cpp conftest.$ac_ext"
13522 case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13528   ac_status=$?
13529   grep -v '^ *+' conftest.er1 >conftest.err
13530   rm -f conftest.er1
13531   cat conftest.err >&5
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); } >/dev/null && {
13534          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13535          test ! -s conftest.err
13536        }; then
13537   ac_header_preproc=yes
13538 else
13539   echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542   ac_header_preproc=no
13543 fi
13544
13545 rm -f conftest.err conftest.$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6; }
13548
13549 # So?  What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551   yes:no: )
13552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556     ac_header_preproc=yes
13557     ;;
13558   no:yes:* )
13559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13571
13572     ;;
13573 esac
13574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579   eval "$as_ac_Header=\$ac_header_preproc"
13580 fi
13581 ac_res=`eval echo '${'$as_ac_Header'}'`
13582                { echo "$as_me:$LINENO: result: $ac_res" >&5
13583 echo "${ECHO_T}$ac_res" >&6; }
13584
13585 fi
13586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13587   cat >>confdefs.h <<_ACEOF
13588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13589 _ACEOF
13590
13591 fi
13592
13593 done
13594
13595         else
13596                 #
13597                 # Not found.  Did the user explicitly ask for it?
13598                 #
13599                 { echo "$as_me:$LINENO: result: not found" >&5
13600 echo "${ECHO_T}not found" >&6; }
13601                 if test "$want_libcrypto" = yes; then
13602                         { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
13603 echo "$as_me: error: SSLeay not found" >&2;}
13604    { (exit 1); exit 1; }; }
13605                 fi
13606         fi
13607 fi
13608
13609 if test "$missing_includes" = "yes"; then
13610         CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13611         V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13612 fi
13613
13614
13615
13616
13617
13618
13619
13620
13621 # Find a good install program.  We prefer a C program (faster),
13622 # so one script is as good as another.  But avoid the broken or
13623 # incompatible versions:
13624 # SysV /etc/install, /usr/sbin/install
13625 # SunOS /usr/etc/install
13626 # IRIX /sbin/install
13627 # AIX /bin/install
13628 # AmigaOS /C/install, which installs bootblocks on floppy discs
13629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13632 # OS/2's system install, which has a completely different semantic
13633 # ./install, which can be erroneously created by make from ./install.sh.
13634 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
13636 if test -z "$INSTALL"; then
13637 if test "${ac_cv_path_install+set}" = set; then
13638   echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13642 do
13643   IFS=$as_save_IFS
13644   test -z "$as_dir" && as_dir=.
13645   # Account for people who put trailing slashes in PATH elements.
13646 case $as_dir/ in
13647   ./ | .// | /cC/* | \
13648   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13649   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13650   /usr/ucb/* ) ;;
13651   *)
13652     # OSF1 and SCO ODT 3.0 have their own names for install.
13653     # Don't use installbsd from OSF since it installs stuff as root
13654     # by default.
13655     for ac_prog in ginstall scoinst install; do
13656       for ac_exec_ext in '' $ac_executable_extensions; do
13657         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13658           if test $ac_prog = install &&
13659             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13660             # AIX install.  It has an incompatible calling convention.
13661             :
13662           elif test $ac_prog = install &&
13663             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13664             # program-specific install script used by HP pwplus--don't use.
13665             :
13666           else
13667             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13668             break 3
13669           fi
13670         fi
13671       done
13672     done
13673     ;;
13674 esac
13675 done
13676 IFS=$as_save_IFS
13677
13678
13679 fi
13680   if test "${ac_cv_path_install+set}" = set; then
13681     INSTALL=$ac_cv_path_install
13682   else
13683     # As a last resort, use the slow shell script.  Don't cache a
13684     # value for INSTALL within a source directory, because that will
13685     # break other packages using the cache if that directory is
13686     # removed, or if the value is a relative name.
13687     INSTALL=$ac_install_sh
13688   fi
13689 fi
13690 { echo "$as_me:$LINENO: result: $INSTALL" >&5
13691 echo "${ECHO_T}$INSTALL" >&6; }
13692
13693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13694 # It thinks the first close brace ends the variable substitution.
13695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13696
13697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13698
13699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13700
13701
13702 ac_config_headers="$ac_config_headers config.h"
13703
13704
13705 ac_config_commands="$ac_config_commands default-1"
13706
13707 ac_config_files="$ac_config_files Makefile"
13708
13709 cat >confcache <<\_ACEOF
13710 # This file is a shell script that caches the results of configure
13711 # tests run on this system so they can be shared between configure
13712 # scripts and configure runs, see configure's option --config-cache.
13713 # It is not useful on other systems.  If it contains results you don't
13714 # want to keep, you may remove or edit it.
13715 #
13716 # config.status only pays attention to the cache file if you give it
13717 # the --recheck option to rerun configure.
13718 #
13719 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13720 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13721 # following values.
13722
13723 _ACEOF
13724
13725 # The following way of writing the cache mishandles newlines in values,
13726 # but we know of no workaround that is simple, portable, and efficient.
13727 # So, we kill variables containing newlines.
13728 # Ultrix sh set writes to stderr and can't be redirected directly,
13729 # and sets the high bit in the cache file unless we assign to the vars.
13730 (
13731   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13732     eval ac_val=\$$ac_var
13733     case $ac_val in #(
13734     *${as_nl}*)
13735       case $ac_var in #(
13736       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13737 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13738       esac
13739       case $ac_var in #(
13740       _ | IFS | as_nl) ;; #(
13741       *) $as_unset $ac_var ;;
13742       esac ;;
13743     esac
13744   done
13745
13746   (set) 2>&1 |
13747     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13748     *${as_nl}ac_space=\ *)
13749       # `set' does not quote correctly, so add quotes (double-quote
13750       # substitution turns \\\\ into \\, and sed turns \\ into \).
13751       sed -n \
13752         "s/'/'\\\\''/g;
13753           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13754       ;; #(
13755     *)
13756       # `set' quotes correctly as required by POSIX, so do not add quotes.
13757       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13758       ;;
13759     esac |
13760     sort
13761 ) |
13762   sed '
13763      /^ac_cv_env_/b end
13764      t clear
13765      :clear
13766      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13767      t end
13768      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13769      :end' >>confcache
13770 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13771   if test -w "$cache_file"; then
13772     test "x$cache_file" != "x/dev/null" &&
13773       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13774 echo "$as_me: updating cache $cache_file" >&6;}
13775     cat confcache >$cache_file
13776   else
13777     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13778 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13779   fi
13780 fi
13781 rm -f confcache
13782
13783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13784 # Let make expand exec_prefix.
13785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13786
13787 DEFS=-DHAVE_CONFIG_H
13788
13789 ac_libobjs=
13790 ac_ltlibobjs=
13791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13792   # 1. Remove the extension, and $U if already installed.
13793   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13794   ac_i=`echo "$ac_i" | sed "$ac_script"`
13795   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13796   #    will be set to the directory where LIBOBJS objects are built.
13797   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13798   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13799 done
13800 LIBOBJS=$ac_libobjs
13801
13802 LTLIBOBJS=$ac_ltlibobjs
13803
13804
13805
13806 : ${CONFIG_STATUS=./config.status}
13807 ac_clean_files_save=$ac_clean_files
13808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13809 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13810 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13811 cat >$CONFIG_STATUS <<_ACEOF
13812 #! $SHELL
13813 # Generated by $as_me.
13814 # Run this file to recreate the current configuration.
13815 # Compiler output produced by configure, useful for debugging
13816 # configure, is in config.log if it exists.
13817
13818 debug=false
13819 ac_cs_recheck=false
13820 ac_cs_silent=false
13821 SHELL=\${CONFIG_SHELL-$SHELL}
13822 _ACEOF
13823
13824 cat >>$CONFIG_STATUS <<\_ACEOF
13825 ## --------------------- ##
13826 ## M4sh Initialization.  ##
13827 ## --------------------- ##
13828
13829 # Be more Bourne compatible
13830 DUALCASE=1; export DUALCASE # for MKS sh
13831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13832   emulate sh
13833   NULLCMD=:
13834   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13835   # is contrary to our usage.  Disable this feature.
13836   alias -g '${1+"$@"}'='"$@"'
13837   setopt NO_GLOB_SUBST
13838 else
13839   case `(set -o) 2>/dev/null` in
13840   *posix*) set -o posix ;;
13841 esac
13842
13843 fi
13844
13845
13846
13847
13848 # PATH needs CR
13849 # Avoid depending upon Character Ranges.
13850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13853 as_cr_digits='0123456789'
13854 as_cr_alnum=$as_cr_Letters$as_cr_digits
13855
13856 # The user is always right.
13857 if test "${PATH_SEPARATOR+set}" != set; then
13858   echo "#! /bin/sh" >conf$$.sh
13859   echo  "exit 0"   >>conf$$.sh
13860   chmod +x conf$$.sh
13861   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13862     PATH_SEPARATOR=';'
13863   else
13864     PATH_SEPARATOR=:
13865   fi
13866   rm -f conf$$.sh
13867 fi
13868
13869 # Support unset when possible.
13870 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13871   as_unset=unset
13872 else
13873   as_unset=false
13874 fi
13875
13876
13877 # IFS
13878 # We need space, tab and new line, in precisely that order.  Quoting is
13879 # there to prevent editors from complaining about space-tab.
13880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13881 # splitting by setting IFS to empty value.)
13882 as_nl='
13883 '
13884 IFS=" ""        $as_nl"
13885
13886 # Find who we are.  Look in the path if we contain no directory separator.
13887 case $0 in
13888   *[\\/]* ) as_myself=$0 ;;
13889   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13891 do
13892   IFS=$as_save_IFS
13893   test -z "$as_dir" && as_dir=.
13894   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13895 done
13896 IFS=$as_save_IFS
13897
13898      ;;
13899 esac
13900 # We did not find ourselves, most probably we were run as `sh COMMAND'
13901 # in which case we are not to be found in the path.
13902 if test "x$as_myself" = x; then
13903   as_myself=$0
13904 fi
13905 if test ! -f "$as_myself"; then
13906   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13907   { (exit 1); exit 1; }
13908 fi
13909
13910 # Work around bugs in pre-3.0 UWIN ksh.
13911 for as_var in ENV MAIL MAILPATH
13912 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13913 done
13914 PS1='$ '
13915 PS2='> '
13916 PS4='+ '
13917
13918 # NLS nuisances.
13919 for as_var in \
13920   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13921   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13922   LC_TELEPHONE LC_TIME
13923 do
13924   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13925     eval $as_var=C; export $as_var
13926   else
13927     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13928   fi
13929 done
13930
13931 # Required to use basename.
13932 if expr a : '\(a\)' >/dev/null 2>&1 &&
13933    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13934   as_expr=expr
13935 else
13936   as_expr=false
13937 fi
13938
13939 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13940   as_basename=basename
13941 else
13942   as_basename=false
13943 fi
13944
13945
13946 # Name of the executable.
13947 as_me=`$as_basename -- "$0" ||
13948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13949          X"$0" : 'X\(//\)$' \| \
13950          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13951 echo X/"$0" |
13952     sed '/^.*\/\([^/][^/]*\)\/*$/{
13953             s//\1/
13954             q
13955           }
13956           /^X\/\(\/\/\)$/{
13957             s//\1/
13958             q
13959           }
13960           /^X\/\(\/\).*/{
13961             s//\1/
13962             q
13963           }
13964           s/.*/./; q'`
13965
13966 # CDPATH.
13967 $as_unset CDPATH
13968
13969
13970
13971   as_lineno_1=$LINENO
13972   as_lineno_2=$LINENO
13973   test "x$as_lineno_1" != "x$as_lineno_2" &&
13974   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13975
13976   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13977   # uniformly replaced by the line number.  The first 'sed' inserts a
13978   # line-number line after each line using $LINENO; the second 'sed'
13979   # does the real work.  The second script uses 'N' to pair each
13980   # line-number line with the line containing $LINENO, and appends
13981   # trailing '-' during substitution so that $LINENO is not a special
13982   # case at line end.
13983   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13984   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13985   # E. McMahon (1931-1989) for sed's syntax.  :-)
13986   sed -n '
13987     p
13988     /[$]LINENO/=
13989   ' <$as_myself |
13990     sed '
13991       s/[$]LINENO.*/&-/
13992       t lineno
13993       b
13994       :lineno
13995       N
13996       :loop
13997       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13998       t loop
13999       s/-\n.*//
14000     ' >$as_me.lineno &&
14001   chmod +x "$as_me.lineno" ||
14002     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14003    { (exit 1); exit 1; }; }
14004
14005   # Don't try to exec as it changes $[0], causing all sort of problems
14006   # (the dirname of $[0] is not the place where we might find the
14007   # original and so on.  Autoconf is especially sensitive to this).
14008   . "./$as_me.lineno"
14009   # Exit status is that of the last command.
14010   exit
14011 }
14012
14013
14014 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14015   as_dirname=dirname
14016 else
14017   as_dirname=false
14018 fi
14019
14020 ECHO_C= ECHO_N= ECHO_T=
14021 case `echo -n x` in
14022 -n*)
14023   case `echo 'x\c'` in
14024   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14025   *)   ECHO_C='\c';;
14026   esac;;
14027 *)
14028   ECHO_N='-n';;
14029 esac
14030
14031 if expr a : '\(a\)' >/dev/null 2>&1 &&
14032    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14033   as_expr=expr
14034 else
14035   as_expr=false
14036 fi
14037
14038 rm -f conf$$ conf$$.exe conf$$.file
14039 if test -d conf$$.dir; then
14040   rm -f conf$$.dir/conf$$.file
14041 else
14042   rm -f conf$$.dir
14043   mkdir conf$$.dir
14044 fi
14045 echo >conf$$.file
14046 if ln -s conf$$.file conf$$ 2>/dev/null; then
14047   as_ln_s='ln -s'
14048   # ... but there are two gotchas:
14049   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14050   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14051   # In both cases, we have to default to `cp -p'.
14052   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14053     as_ln_s='cp -p'
14054 elif ln conf$$.file conf$$ 2>/dev/null; then
14055   as_ln_s=ln
14056 else
14057   as_ln_s='cp -p'
14058 fi
14059 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14060 rmdir conf$$.dir 2>/dev/null
14061
14062 if mkdir -p . 2>/dev/null; then
14063   as_mkdir_p=:
14064 else
14065   test -d ./-p && rmdir ./-p
14066   as_mkdir_p=false
14067 fi
14068
14069 if test -x / >/dev/null 2>&1; then
14070   as_test_x='test -x'
14071 else
14072   if ls -dL / >/dev/null 2>&1; then
14073     as_ls_L_option=L
14074   else
14075     as_ls_L_option=
14076   fi
14077   as_test_x='
14078     eval sh -c '\''
14079       if test -d "$1"; then
14080         test -d "$1/.";
14081       else
14082         case $1 in
14083         -*)set "./$1";;
14084         esac;
14085         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14086         ???[sx]*):;;*)false;;esac;fi
14087     '\'' sh
14088   '
14089 fi
14090 as_executable_p=$as_test_x
14091
14092 # Sed expression to map a string onto a valid CPP name.
14093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14094
14095 # Sed expression to map a string onto a valid variable name.
14096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14097
14098
14099 exec 6>&1
14100
14101 # Save the log message, to keep $[0] and so on meaningful, and to
14102 # report actual input values of CONFIG_FILES etc. instead of their
14103 # values after options handling.
14104 ac_log="
14105 This file was extended by $as_me, which was
14106 generated by GNU Autoconf 2.61.  Invocation command line was
14107
14108   CONFIG_FILES    = $CONFIG_FILES
14109   CONFIG_HEADERS  = $CONFIG_HEADERS
14110   CONFIG_LINKS    = $CONFIG_LINKS
14111   CONFIG_COMMANDS = $CONFIG_COMMANDS
14112   $ $0 $@
14113
14114 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14115 "
14116
14117 _ACEOF
14118
14119 cat >>$CONFIG_STATUS <<_ACEOF
14120 # Files that config.status was made for.
14121 config_files="$ac_config_files"
14122 config_headers="$ac_config_headers"
14123 config_commands="$ac_config_commands"
14124
14125 _ACEOF
14126
14127 cat >>$CONFIG_STATUS <<\_ACEOF
14128 ac_cs_usage="\
14129 \`$as_me' instantiates files from templates according to the
14130 current configuration.
14131
14132 Usage: $0 [OPTIONS] [FILE]...
14133
14134   -h, --help       print this help, then exit
14135   -V, --version    print version number and configuration settings, then exit
14136   -q, --quiet      do not print progress messages
14137   -d, --debug      don't remove temporary files
14138       --recheck    update $as_me by reconfiguring in the same conditions
14139   --file=FILE[:TEMPLATE]
14140                    instantiate the configuration file FILE
14141   --header=FILE[:TEMPLATE]
14142                    instantiate the configuration header FILE
14143
14144 Configuration files:
14145 $config_files
14146
14147 Configuration headers:
14148 $config_headers
14149
14150 Configuration commands:
14151 $config_commands
14152
14153 Report bugs to <bug-autoconf@gnu.org>."
14154
14155 _ACEOF
14156 cat >>$CONFIG_STATUS <<_ACEOF
14157 ac_cs_version="\\
14158 config.status
14159 configured by $0, generated by GNU Autoconf 2.61,
14160   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14161
14162 Copyright (C) 2006 Free Software Foundation, Inc.
14163 This config.status script is free software; the Free Software Foundation
14164 gives unlimited permission to copy, distribute and modify it."
14165
14166 ac_pwd='$ac_pwd'
14167 srcdir='$srcdir'
14168 INSTALL='$INSTALL'
14169 _ACEOF
14170
14171 cat >>$CONFIG_STATUS <<\_ACEOF
14172 # If no file are specified by the user, then we need to provide default
14173 # value.  By we need to know if files were specified by the user.
14174 ac_need_defaults=:
14175 while test $# != 0
14176 do
14177   case $1 in
14178   --*=*)
14179     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14180     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14181     ac_shift=:
14182     ;;
14183   *)
14184     ac_option=$1
14185     ac_optarg=$2
14186     ac_shift=shift
14187     ;;
14188   esac
14189
14190   case $ac_option in
14191   # Handling of the options.
14192   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14193     ac_cs_recheck=: ;;
14194   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14195     echo "$ac_cs_version"; exit ;;
14196   --debug | --debu | --deb | --de | --d | -d )
14197     debug=: ;;
14198   --file | --fil | --fi | --f )
14199     $ac_shift
14200     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14201     ac_need_defaults=false;;
14202   --header | --heade | --head | --hea )
14203     $ac_shift
14204     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14205     ac_need_defaults=false;;
14206   --he | --h)
14207     # Conflict between --help and --header
14208     { echo "$as_me: error: ambiguous option: $1
14209 Try \`$0 --help' for more information." >&2
14210    { (exit 1); exit 1; }; };;
14211   --help | --hel | -h )
14212     echo "$ac_cs_usage"; exit ;;
14213   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14214   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14215     ac_cs_silent=: ;;
14216
14217   # This is an error.
14218   -*) { echo "$as_me: error: unrecognized option: $1
14219 Try \`$0 --help' for more information." >&2
14220    { (exit 1); exit 1; }; } ;;
14221
14222   *) ac_config_targets="$ac_config_targets $1"
14223      ac_need_defaults=false ;;
14224
14225   esac
14226   shift
14227 done
14228
14229 ac_configure_extra_args=
14230
14231 if $ac_cs_silent; then
14232   exec 6>/dev/null
14233   ac_configure_extra_args="$ac_configure_extra_args --silent"
14234 fi
14235
14236 _ACEOF
14237 cat >>$CONFIG_STATUS <<_ACEOF
14238 if \$ac_cs_recheck; then
14239   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14240   CONFIG_SHELL=$SHELL
14241   export CONFIG_SHELL
14242   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14243 fi
14244
14245 _ACEOF
14246 cat >>$CONFIG_STATUS <<\_ACEOF
14247 exec 5>>config.log
14248 {
14249   echo
14250   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14251 ## Running $as_me. ##
14252 _ASBOX
14253   echo "$ac_log"
14254 } >&5
14255
14256 _ACEOF
14257 cat >>$CONFIG_STATUS <<_ACEOF
14258 #
14259 # INIT-COMMANDS
14260 #
14261
14262
14263 _ACEOF
14264
14265 cat >>$CONFIG_STATUS <<\_ACEOF
14266
14267 # Handling of arguments.
14268 for ac_config_target in $ac_config_targets
14269 do
14270   case $ac_config_target in
14271     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14272     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14273     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14274
14275   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14276 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14277    { (exit 1); exit 1; }; };;
14278   esac
14279 done
14280
14281
14282 # If the user did not use the arguments to specify the items to instantiate,
14283 # then the envvar interface is used.  Set only those that are not.
14284 # We use the long form for the default assignment because of an extremely
14285 # bizarre bug on SunOS 4.1.3.
14286 if $ac_need_defaults; then
14287   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14288   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14289   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14290 fi
14291
14292 # Have a temporary directory for convenience.  Make it in the build tree
14293 # simply because there is no reason against having it here, and in addition,
14294 # creating and moving files from /tmp can sometimes cause problems.
14295 # Hook for its removal unless debugging.
14296 # Note that there is a small window in which the directory will not be cleaned:
14297 # after its creation but before its name has been assigned to `$tmp'.
14298 $debug ||
14299 {
14300   tmp=
14301   trap 'exit_status=$?
14302   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14303 ' 0
14304   trap '{ (exit 1); exit 1; }' 1 2 13 15
14305 }
14306 # Create a (secure) tmp directory for tmp files.
14307
14308 {
14309   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14310   test -n "$tmp" && test -d "$tmp"
14311 }  ||
14312 {
14313   tmp=./conf$$-$RANDOM
14314   (umask 077 && mkdir "$tmp")
14315 } ||
14316 {
14317    echo "$me: cannot create a temporary directory in ." >&2
14318    { (exit 1); exit 1; }
14319 }
14320
14321 #
14322 # Set up the sed scripts for CONFIG_FILES section.
14323 #
14324
14325 # No need to generate the scripts if there are no CONFIG_FILES.
14326 # This happens for instance when ./config.status config.h
14327 if test -n "$CONFIG_FILES"; then
14328
14329 _ACEOF
14330
14331
14332
14333 ac_delim='%!_!# '
14334 for ac_last_try in false false false false false :; do
14335   cat >conf$$subs.sed <<_ACEOF
14336 SHELL!$SHELL$ac_delim
14337 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14338 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14339 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14340 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14341 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14342 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14343 exec_prefix!$exec_prefix$ac_delim
14344 prefix!$prefix$ac_delim
14345 program_transform_name!$program_transform_name$ac_delim
14346 bindir!$bindir$ac_delim
14347 sbindir!$sbindir$ac_delim
14348 libexecdir!$libexecdir$ac_delim
14349 datarootdir!$datarootdir$ac_delim
14350 datadir!$datadir$ac_delim
14351 sysconfdir!$sysconfdir$ac_delim
14352 sharedstatedir!$sharedstatedir$ac_delim
14353 localstatedir!$localstatedir$ac_delim
14354 includedir!$includedir$ac_delim
14355 oldincludedir!$oldincludedir$ac_delim
14356 docdir!$docdir$ac_delim
14357 infodir!$infodir$ac_delim
14358 htmldir!$htmldir$ac_delim
14359 dvidir!$dvidir$ac_delim
14360 pdfdir!$pdfdir$ac_delim
14361 psdir!$psdir$ac_delim
14362 libdir!$libdir$ac_delim
14363 localedir!$localedir$ac_delim
14364 mandir!$mandir$ac_delim
14365 DEFS!$DEFS$ac_delim
14366 ECHO_C!$ECHO_C$ac_delim
14367 ECHO_N!$ECHO_N$ac_delim
14368 ECHO_T!$ECHO_T$ac_delim
14369 LIBS!$LIBS$ac_delim
14370 build_alias!$build_alias$ac_delim
14371 host_alias!$host_alias$ac_delim
14372 target_alias!$target_alias$ac_delim
14373 build!$build$ac_delim
14374 build_cpu!$build_cpu$ac_delim
14375 build_vendor!$build_vendor$ac_delim
14376 build_os!$build_os$ac_delim
14377 host!$host$ac_delim
14378 host_cpu!$host_cpu$ac_delim
14379 host_vendor!$host_vendor$ac_delim
14380 host_os!$host_os$ac_delim
14381 SHLICC2!$SHLICC2$ac_delim
14382 CC!$CC$ac_delim
14383 CFLAGS!$CFLAGS$ac_delim
14384 LDFLAGS!$LDFLAGS$ac_delim
14385 CPPFLAGS!$CPPFLAGS$ac_delim
14386 ac_ct_CC!$ac_ct_CC$ac_delim
14387 EXEEXT!$EXEEXT$ac_delim
14388 OBJEXT!$OBJEXT$ac_delim
14389 CPP!$CPP$ac_delim
14390 GREP!$GREP$ac_delim
14391 EGREP!$EGREP$ac_delim
14392 LIBOBJS!$LIBOBJS$ac_delim
14393 RANLIB!$RANLIB$ac_delim
14394 V_CCOPT!$V_CCOPT$ac_delim
14395 V_DEFS!$V_DEFS$ac_delim
14396 V_GROUP!$V_GROUP$ac_delim
14397 V_INCLS!$V_INCLS$ac_delim
14398 V_PCAPDEP!$V_PCAPDEP$ac_delim
14399 LOCALSRC!$LOCALSRC$ac_delim
14400 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14401 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14402 INSTALL_DATA!$INSTALL_DATA$ac_delim
14403 LTLIBOBJS!$LTLIBOBJS$ac_delim
14404 _ACEOF
14405
14406   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
14407     break
14408   elif $ac_last_try; then
14409     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14410 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14411    { (exit 1); exit 1; }; }
14412   else
14413     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14414   fi
14415 done
14416
14417 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14418 if test -n "$ac_eof"; then
14419   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14420   ac_eof=`expr $ac_eof + 1`
14421 fi
14422
14423 cat >>$CONFIG_STATUS <<_ACEOF
14424 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14426 _ACEOF
14427 sed '
14428 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14429 s/^/s,@/; s/!/@,|#_!!_#|/
14430 :n
14431 t n
14432 s/'"$ac_delim"'$/,g/; t
14433 s/$/\\/; p
14434 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14435 ' >>$CONFIG_STATUS <conf$$subs.sed
14436 rm -f conf$$subs.sed
14437 cat >>$CONFIG_STATUS <<_ACEOF
14438 :end
14439 s/|#_!!_#|//g
14440 CEOF$ac_eof
14441 _ACEOF
14442
14443
14444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14446 # trailing colons and then remove the whole line if VPATH becomes empty
14447 # (actually we leave an empty line to preserve line numbers).
14448 if test "x$srcdir" = x.; then
14449   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14450 s/:*\$(srcdir):*/:/
14451 s/:*\${srcdir}:*/:/
14452 s/:*@srcdir@:*/:/
14453 s/^\([^=]*=[     ]*\):*/\1/
14454 s/:*$//
14455 s/^[^=]*=[       ]*$//
14456 }'
14457 fi
14458
14459 cat >>$CONFIG_STATUS <<\_ACEOF
14460 fi # test -n "$CONFIG_FILES"
14461
14462
14463 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
14464 do
14465   case $ac_tag in
14466   :[FHLC]) ac_mode=$ac_tag; continue;;
14467   esac
14468   case $ac_mode$ac_tag in
14469   :[FHL]*:*);;
14470   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14471 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14472    { (exit 1); exit 1; }; };;
14473   :[FH]-) ac_tag=-:-;;
14474   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14475   esac
14476   ac_save_IFS=$IFS
14477   IFS=:
14478   set x $ac_tag
14479   IFS=$ac_save_IFS
14480   shift
14481   ac_file=$1
14482   shift
14483
14484   case $ac_mode in
14485   :L) ac_source=$1;;
14486   :[FH])
14487     ac_file_inputs=
14488     for ac_f
14489     do
14490       case $ac_f in
14491       -) ac_f="$tmp/stdin";;
14492       *) # Look for the file first in the build tree, then in the source tree
14493          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14494          # because $ac_f cannot contain `:'.
14495          test -f "$ac_f" ||
14496            case $ac_f in
14497            [\\/$]*) false;;
14498            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14499            esac ||
14500            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14501 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14502    { (exit 1); exit 1; }; };;
14503       esac
14504       ac_file_inputs="$ac_file_inputs $ac_f"
14505     done
14506
14507     # Let's still pretend it is `configure' which instantiates (i.e., don't
14508     # use $as_me), people would be surprised to read:
14509     #    /* config.h.  Generated by config.status.  */
14510     configure_input="Generated from "`IFS=:
14511           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14512     if test x"$ac_file" != x-; then
14513       configure_input="$ac_file.  $configure_input"
14514       { echo "$as_me:$LINENO: creating $ac_file" >&5
14515 echo "$as_me: creating $ac_file" >&6;}
14516     fi
14517
14518     case $ac_tag in
14519     *:-:* | *:-) cat >"$tmp/stdin";;
14520     esac
14521     ;;
14522   esac
14523
14524   ac_dir=`$as_dirname -- "$ac_file" ||
14525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14526          X"$ac_file" : 'X\(//\)[^/]' \| \
14527          X"$ac_file" : 'X\(//\)$' \| \
14528          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14529 echo X"$ac_file" |
14530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14531             s//\1/
14532             q
14533           }
14534           /^X\(\/\/\)[^/].*/{
14535             s//\1/
14536             q
14537           }
14538           /^X\(\/\/\)$/{
14539             s//\1/
14540             q
14541           }
14542           /^X\(\/\).*/{
14543             s//\1/
14544             q
14545           }
14546           s/.*/./; q'`
14547   { as_dir="$ac_dir"
14548   case $as_dir in #(
14549   -*) as_dir=./$as_dir;;
14550   esac
14551   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14552     as_dirs=
14553     while :; do
14554       case $as_dir in #(
14555       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14556       *) as_qdir=$as_dir;;
14557       esac
14558       as_dirs="'$as_qdir' $as_dirs"
14559       as_dir=`$as_dirname -- "$as_dir" ||
14560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561          X"$as_dir" : 'X\(//\)[^/]' \| \
14562          X"$as_dir" : 'X\(//\)$' \| \
14563          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14564 echo X"$as_dir" |
14565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14566             s//\1/
14567             q
14568           }
14569           /^X\(\/\/\)[^/].*/{
14570             s//\1/
14571             q
14572           }
14573           /^X\(\/\/\)$/{
14574             s//\1/
14575             q
14576           }
14577           /^X\(\/\).*/{
14578             s//\1/
14579             q
14580           }
14581           s/.*/./; q'`
14582       test -d "$as_dir" && break
14583     done
14584     test -z "$as_dirs" || eval "mkdir $as_dirs"
14585   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14586 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14587    { (exit 1); exit 1; }; }; }
14588   ac_builddir=.
14589
14590 case "$ac_dir" in
14591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14592 *)
14593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14594   # A ".." for each directory in $ac_dir_suffix.
14595   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14596   case $ac_top_builddir_sub in
14597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14599   esac ;;
14600 esac
14601 ac_abs_top_builddir=$ac_pwd
14602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14603 # for backward compatibility:
14604 ac_top_builddir=$ac_top_build_prefix
14605
14606 case $srcdir in
14607   .)  # We are building in place.
14608     ac_srcdir=.
14609     ac_top_srcdir=$ac_top_builddir_sub
14610     ac_abs_top_srcdir=$ac_pwd ;;
14611   [\\/]* | ?:[\\/]* )  # Absolute name.
14612     ac_srcdir=$srcdir$ac_dir_suffix;
14613     ac_top_srcdir=$srcdir
14614     ac_abs_top_srcdir=$srcdir ;;
14615   *) # Relative name.
14616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14617     ac_top_srcdir=$ac_top_build_prefix$srcdir
14618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14619 esac
14620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14621
14622
14623   case $ac_mode in
14624   :F)
14625   #
14626   # CONFIG_FILE
14627   #
14628
14629   case $INSTALL in
14630   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14631   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14632   esac
14633 _ACEOF
14634
14635 cat >>$CONFIG_STATUS <<\_ACEOF
14636 # If the template does not know about datarootdir, expand it.
14637 # FIXME: This hack should be removed a few years after 2.60.
14638 ac_datarootdir_hack=; ac_datarootdir_seen=
14639
14640 case `sed -n '/datarootdir/ {
14641   p
14642   q
14643 }
14644 /@datadir@/p
14645 /@docdir@/p
14646 /@infodir@/p
14647 /@localedir@/p
14648 /@mandir@/p
14649 ' $ac_file_inputs` in
14650 *datarootdir*) ac_datarootdir_seen=yes;;
14651 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14652   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14653 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14654 _ACEOF
14655 cat >>$CONFIG_STATUS <<_ACEOF
14656   ac_datarootdir_hack='
14657   s&@datadir@&$datadir&g
14658   s&@docdir@&$docdir&g
14659   s&@infodir@&$infodir&g
14660   s&@localedir@&$localedir&g
14661   s&@mandir@&$mandir&g
14662     s&\\\${datarootdir}&$datarootdir&g' ;;
14663 esac
14664 _ACEOF
14665
14666 # Neutralize VPATH when `$srcdir' = `.'.
14667 # Shell code in configure.ac might set extrasub.
14668 # FIXME: do we really want to maintain this feature?
14669 cat >>$CONFIG_STATUS <<_ACEOF
14670   sed "$ac_vpsub
14671 $extrasub
14672 _ACEOF
14673 cat >>$CONFIG_STATUS <<\_ACEOF
14674 :t
14675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14676 s&@configure_input@&$configure_input&;t t
14677 s&@top_builddir@&$ac_top_builddir_sub&;t t
14678 s&@srcdir@&$ac_srcdir&;t t
14679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14680 s&@top_srcdir@&$ac_top_srcdir&;t t
14681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14682 s&@builddir@&$ac_builddir&;t t
14683 s&@abs_builddir@&$ac_abs_builddir&;t t
14684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14685 s&@INSTALL@&$ac_INSTALL&;t t
14686 $ac_datarootdir_hack
14687 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14688
14689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14690   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14691   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14692   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14693 which seems to be undefined.  Please make sure it is defined." >&5
14694 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14695 which seems to be undefined.  Please make sure it is defined." >&2;}
14696
14697   rm -f "$tmp/stdin"
14698   case $ac_file in
14699   -) cat "$tmp/out"; rm -f "$tmp/out";;
14700   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14701   esac
14702  ;;
14703   :H)
14704   #
14705   # CONFIG_HEADER
14706   #
14707 _ACEOF
14708
14709 # Transform confdefs.h into a sed script `conftest.defines', that
14710 # substitutes the proper values into config.h.in to produce config.h.
14711 rm -f conftest.defines conftest.tail
14712 # First, append a space to every undef/define line, to ease matching.
14713 echo 's/$/ /' >conftest.defines
14714 # Then, protect against being on the right side of a sed subst, or in
14715 # an unquoted here document, in config.status.  If some macros were
14716 # called several times there might be several #defines for the same
14717 # symbol, which is useless.  But do not sort them, since the last
14718 # AC_DEFINE must be honored.
14719 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14720 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14721 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14722 # PARAMS is the parameter list in the macro definition--in most cases, it's
14723 # just an empty string.
14724 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
14725 ac_dB='\\)[      (].*,\\1define\\2'
14726 ac_dC=' '
14727 ac_dD=' ,'
14728
14729 uniq confdefs.h |
14730   sed -n '
14731         t rset
14732         :rset
14733         s/^[     ]*#[    ]*define[       ][      ]*//
14734         t ok
14735         d
14736         :ok
14737         s/[\\&,]/\\&/g
14738         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14739         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14740   ' >>conftest.defines
14741
14742 # Remove the space that was appended to ease matching.
14743 # Then replace #undef with comments.  This is necessary, for
14744 # example, in the case of _POSIX_SOURCE, which is predefined and required
14745 # on some systems where configure will not decide to define it.
14746 # (The regexp can be short, since the line contains either #define or #undef.)
14747 echo 's/ $//
14748 s,^[     #]*u.*,/* & */,' >>conftest.defines
14749
14750 # Break up conftest.defines:
14751 ac_max_sed_lines=50
14752
14753 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14754 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14755 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14756 # et cetera.
14757 ac_in='$ac_file_inputs'
14758 ac_out='"$tmp/out1"'
14759 ac_nxt='"$tmp/out2"'
14760
14761 while :
14762 do
14763   # Write a here document:
14764     cat >>$CONFIG_STATUS <<_ACEOF
14765     # First, check the format of the line:
14766     cat >"\$tmp/defines.sed" <<\\CEOF
14767 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14768 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14769 b
14770 :def
14771 _ACEOF
14772   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14773   echo 'CEOF
14774     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14775   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14776   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14777   grep . conftest.tail >/dev/null || break
14778   rm -f conftest.defines
14779   mv conftest.tail conftest.defines
14780 done
14781 rm -f conftest.defines conftest.tail
14782
14783 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14784 cat >>$CONFIG_STATUS <<\_ACEOF
14785   if test x"$ac_file" != x-; then
14786     echo "/* $configure_input  */" >"$tmp/config.h"
14787     cat "$ac_result" >>"$tmp/config.h"
14788     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14789       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14790 echo "$as_me: $ac_file is unchanged" >&6;}
14791     else
14792       rm -f $ac_file
14793       mv "$tmp/config.h" $ac_file
14794     fi
14795   else
14796     echo "/* $configure_input  */"
14797     cat "$ac_result"
14798   fi
14799   rm -f "$tmp/out12"
14800  ;;
14801
14802   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14803 echo "$as_me: executing $ac_file commands" >&6;}
14804  ;;
14805   esac
14806
14807
14808   case $ac_file$ac_mode in
14809     "default-1":C) if test -f .devel; then
14810         echo timestamp > stamp-h
14811         cat Makefile-devel-adds >> Makefile
14812         make depend
14813 fi ;;
14814
14815   esac
14816 done # for ac_tag
14817
14818
14819 { (exit 0); exit 0; }
14820 _ACEOF
14821 chmod +x $CONFIG_STATUS
14822 ac_clean_files=$ac_clean_files_save
14823
14824
14825 # configure is writing to config.log, and then calls config.status.
14826 # config.status does its own redirection, appending to config.log.
14827 # Unfortunately, on DOS this fails, as config.log is still kept open
14828 # by configure, so config.status won't be able to write to it; its
14829 # output is simply discarded.  So we exec the FD to /dev/null,
14830 # effectively closing config.log, so it can be properly (re)opened and
14831 # appended to by config.status.  When coming back to configure, we
14832 # need to make the FD available again.
14833 if test "$no_create" != yes; then
14834   ac_cs_success=:
14835   ac_config_status_args=
14836   test "$silent" = yes &&
14837     ac_config_status_args="$ac_config_status_args --quiet"
14838   exec 5>/dev/null
14839   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14840   exec 5>>config.log
14841   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14842   # would make configure fail if this is the last instruction.
14843   $ac_cs_success || { (exit 1); exit 1; }
14844 fi
14845
14846 exit 0