]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/blob - contrib/tcpdump/configure
MFC r238673:
[FreeBSD/releng/9.1.git] / contrib / tcpdump / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.204 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="tcpdump.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 SHLICC2
663 CC
664 CFLAGS
665 LDFLAGS
666 CPPFLAGS
667 ac_ct_CC
668 EXEEXT
669 OBJEXT
670 CPP
671 GREP
672 EGREP
673 LIBOBJS
674 PCAP_CONFIG
675 RANLIB
676 V_CCOPT
677 V_DEFS
678 V_GROUP
679 V_INCLS
680 V_PCAPDEP
681 LOCALSRC
682 MAN_FILE_FORMATS
683 MAN_MISC_INFO
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 LTLIBOBJS'
688 ac_subst_files=''
689       ac_precious_vars='build_alias
690 host_alias
691 target_alias
692 CC
693 CFLAGS
694 LDFLAGS
695 LIBS
696 CPPFLAGS
697 CPP'
698
699
700 # Initialize some variables set by options.
701 ac_init_help=
702 ac_init_version=false
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
705 cache_file=/dev/null
706 exec_prefix=NONE
707 no_create=
708 no_recursion=
709 prefix=NONE
710 program_prefix=NONE
711 program_suffix=NONE
712 program_transform_name=s,x,x,
713 silent=
714 site=
715 srcdir=
716 verbose=
717 x_includes=NONE
718 x_libraries=NONE
719
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir='${exec_prefix}/bin'
727 sbindir='${exec_prefix}/sbin'
728 libexecdir='${exec_prefix}/libexec'
729 datarootdir='${prefix}/share'
730 datadir='${datarootdir}'
731 sysconfdir='${prefix}/etc'
732 sharedstatedir='${prefix}/com'
733 localstatedir='${prefix}/var'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
745
746 ac_prev=
747 ac_dashdash=
748 for ac_option
749 do
750   # If the previous option needs an argument, assign it.
751   if test -n "$ac_prev"; then
752     eval $ac_prev=\$ac_option
753     ac_prev=
754     continue
755   fi
756
757   case $ac_option in
758   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759   *)    ac_optarg=yes ;;
760   esac
761
762   # Accept the important Cygnus configure options, so we can diagnose typos.
763
764   case $ac_dashdash$ac_option in
765   --)
766     ac_dashdash=yes ;;
767
768   -bindir | --bindir | --bindi | --bind | --bin | --bi)
769     ac_prev=bindir ;;
770   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771     bindir=$ac_optarg ;;
772
773   -build | --build | --buil | --bui | --bu)
774     ac_prev=build_alias ;;
775   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776     build_alias=$ac_optarg ;;
777
778   -cache-file | --cache-file | --cache-fil | --cache-fi \
779   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
780     ac_prev=cache_file ;;
781   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
782   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783     cache_file=$ac_optarg ;;
784
785   --config-cache | -C)
786     cache_file=config.cache ;;
787
788   -datadir | --datadir | --datadi | --datad)
789     ac_prev=datadir ;;
790   -datadir=* | --datadir=* | --datadi=* | --datad=*)
791     datadir=$ac_optarg ;;
792
793   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794   | --dataroo | --dataro | --datar)
795     ac_prev=datarootdir ;;
796   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798     datarootdir=$ac_optarg ;;
799
800   -disable-* | --disable-*)
801     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802     # Reject names that are not valid shell variable names.
803     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805    { (exit 1); exit 1; }; }
806     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807     eval enable_$ac_feature=no ;;
808
809   -docdir | --docdir | --docdi | --doc | --do)
810     ac_prev=docdir ;;
811   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812     docdir=$ac_optarg ;;
813
814   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815     ac_prev=dvidir ;;
816   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817     dvidir=$ac_optarg ;;
818
819   -enable-* | --enable-*)
820     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821     # Reject names that are not valid shell variable names.
822     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824    { (exit 1); exit 1; }; }
825     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826     eval enable_$ac_feature=\$ac_optarg ;;
827
828   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
829   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
830   | --exec | --exe | --ex)
831     ac_prev=exec_prefix ;;
832   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
833   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
834   | --exec=* | --exe=* | --ex=*)
835     exec_prefix=$ac_optarg ;;
836
837   -gas | --gas | --ga | --g)
838     # Obsolete; use --with-gas.
839     with_gas=yes ;;
840
841   -help | --help | --hel | --he | -h)
842     ac_init_help=long ;;
843   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844     ac_init_help=recursive ;;
845   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846     ac_init_help=short ;;
847
848   -host | --host | --hos | --ho)
849     ac_prev=host_alias ;;
850   -host=* | --host=* | --hos=* | --ho=*)
851     host_alias=$ac_optarg ;;
852
853   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854     ac_prev=htmldir ;;
855   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856   | --ht=*)
857     htmldir=$ac_optarg ;;
858
859   -includedir | --includedir | --includedi | --included | --include \
860   | --includ | --inclu | --incl | --inc)
861     ac_prev=includedir ;;
862   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
863   | --includ=* | --inclu=* | --incl=* | --inc=*)
864     includedir=$ac_optarg ;;
865
866   -infodir | --infodir | --infodi | --infod | --info | --inf)
867     ac_prev=infodir ;;
868   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869     infodir=$ac_optarg ;;
870
871   -libdir | --libdir | --libdi | --libd)
872     ac_prev=libdir ;;
873   -libdir=* | --libdir=* | --libdi=* | --libd=*)
874     libdir=$ac_optarg ;;
875
876   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
877   | --libexe | --libex | --libe)
878     ac_prev=libexecdir ;;
879   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
880   | --libexe=* | --libex=* | --libe=*)
881     libexecdir=$ac_optarg ;;
882
883   -localedir | --localedir | --localedi | --localed | --locale)
884     ac_prev=localedir ;;
885   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886     localedir=$ac_optarg ;;
887
888   -localstatedir | --localstatedir | --localstatedi | --localstated \
889   | --localstate | --localstat | --localsta | --localst | --locals)
890     ac_prev=localstatedir ;;
891   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893     localstatedir=$ac_optarg ;;
894
895   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
896     ac_prev=mandir ;;
897   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898     mandir=$ac_optarg ;;
899
900   -nfp | --nfp | --nf)
901     # Obsolete; use --without-fp.
902     with_fp=no ;;
903
904   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905   | --no-cr | --no-c | -n)
906     no_create=yes ;;
907
908   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
909   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910     no_recursion=yes ;;
911
912   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
913   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
914   | --oldin | --oldi | --old | --ol | --o)
915     ac_prev=oldincludedir ;;
916   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
917   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
918   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919     oldincludedir=$ac_optarg ;;
920
921   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
922     ac_prev=prefix ;;
923   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924     prefix=$ac_optarg ;;
925
926   -program-prefix | --program-prefix | --program-prefi | --program-pref \
927   | --program-pre | --program-pr | --program-p)
928     ac_prev=program_prefix ;;
929   -program-prefix=* | --program-prefix=* | --program-prefi=* \
930   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931     program_prefix=$ac_optarg ;;
932
933   -program-suffix | --program-suffix | --program-suffi | --program-suff \
934   | --program-suf | --program-su | --program-s)
935     ac_prev=program_suffix ;;
936   -program-suffix=* | --program-suffix=* | --program-suffi=* \
937   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938     program_suffix=$ac_optarg ;;
939
940   -program-transform-name | --program-transform-name \
941   | --program-transform-nam | --program-transform-na \
942   | --program-transform-n | --program-transform- \
943   | --program-transform | --program-transfor \
944   | --program-transfo | --program-transf \
945   | --program-trans | --program-tran \
946   | --progr-tra | --program-tr | --program-t)
947     ac_prev=program_transform_name ;;
948   -program-transform-name=* | --program-transform-name=* \
949   | --program-transform-nam=* | --program-transform-na=* \
950   | --program-transform-n=* | --program-transform-=* \
951   | --program-transform=* | --program-transfor=* \
952   | --program-transfo=* | --program-transf=* \
953   | --program-trans=* | --program-tran=* \
954   | --progr-tra=* | --program-tr=* | --program-t=*)
955     program_transform_name=$ac_optarg ;;
956
957   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958     ac_prev=pdfdir ;;
959   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960     pdfdir=$ac_optarg ;;
961
962   -psdir | --psdir | --psdi | --psd | --ps)
963     ac_prev=psdir ;;
964   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965     psdir=$ac_optarg ;;
966
967   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
968   | -silent | --silent | --silen | --sile | --sil)
969     silent=yes ;;
970
971   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
972     ac_prev=sbindir ;;
973   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
974   | --sbi=* | --sb=*)
975     sbindir=$ac_optarg ;;
976
977   -sharedstatedir | --sharedstatedir | --sharedstatedi \
978   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
979   | --sharedst | --shareds | --shared | --share | --shar \
980   | --sha | --sh)
981     ac_prev=sharedstatedir ;;
982   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
983   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
984   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
985   | --sha=* | --sh=*)
986     sharedstatedir=$ac_optarg ;;
987
988   -site | --site | --sit)
989     ac_prev=site ;;
990   -site=* | --site=* | --sit=*)
991     site=$ac_optarg ;;
992
993   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
994     ac_prev=srcdir ;;
995   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996     srcdir=$ac_optarg ;;
997
998   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
999   | --syscon | --sysco | --sysc | --sys | --sy)
1000     ac_prev=sysconfdir ;;
1001   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1002   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003     sysconfdir=$ac_optarg ;;
1004
1005   -target | --target | --targe | --targ | --tar | --ta | --t)
1006     ac_prev=target_alias ;;
1007   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008     target_alias=$ac_optarg ;;
1009
1010   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011     verbose=yes ;;
1012
1013   -version | --version | --versio | --versi | --vers | -V)
1014     ac_init_version=: ;;
1015
1016   -with-* | --with-*)
1017     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid package name: $ac_package" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023     eval with_$ac_package=\$ac_optarg ;;
1024
1025   -without-* | --without-*)
1026     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027     # Reject names that are not valid shell variable names.
1028     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029       { echo "$as_me: error: invalid package name: $ac_package" >&2
1030    { (exit 1); exit 1; }; }
1031     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032     eval with_$ac_package=no ;;
1033
1034   --x)
1035     # Obsolete; use --with-x.
1036     with_x=yes ;;
1037
1038   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1039   | --x-incl | --x-inc | --x-in | --x-i)
1040     ac_prev=x_includes ;;
1041   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1042   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1043     x_includes=$ac_optarg ;;
1044
1045   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1046   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1047     ac_prev=x_libraries ;;
1048   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1049   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1050     x_libraries=$ac_optarg ;;
1051
1052   -*) { echo "$as_me: error: unrecognized option: $ac_option
1053 Try \`$0 --help' for more information." >&2
1054    { (exit 1); exit 1; }; }
1055     ;;
1056
1057   *=*)
1058     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1061       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1062    { (exit 1); exit 1; }; }
1063     eval $ac_envvar=\$ac_optarg
1064     export $ac_envvar ;;
1065
1066   *)
1067     # FIXME: should be removed in autoconf 3.0.
1068     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072     ;;
1073
1074   esac
1075 done
1076
1077 if test -n "$ac_prev"; then
1078   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1079   { echo "$as_me: error: missing argument to $ac_option" >&2
1080    { (exit 1); exit 1; }; }
1081 fi
1082
1083 # Be sure to have absolute directory names.
1084 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085                 datadir sysconfdir sharedstatedir localstatedir includedir \
1086                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087                 libdir localedir mandir
1088 do
1089   eval ac_val=\$$ac_var
1090   case $ac_val in
1091     [\\/$]* | ?:[\\/]* )  continue;;
1092     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1093   esac
1094   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1095    { (exit 1); exit 1; }; }
1096 done
1097
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1101 build=$build_alias
1102 host=$host_alias
1103 target=$target_alias
1104
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x; then
1107   if test "x$build_alias" = x; then
1108     cross_compiling=maybe
1109     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1110     If a cross compiler is detected then cross compile mode will be used." >&2
1111   elif test "x$build_alias" != "x$host_alias"; then
1112     cross_compiling=yes
1113   fi
1114 fi
1115
1116 ac_tool_prefix=
1117 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118
1119 test "$silent" = yes && exec 6>/dev/null
1120
1121
1122 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di=`ls -di .` &&
1124 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125   { echo "$as_me: error: Working directory cannot be determined" >&2
1126    { (exit 1); exit 1; }; }
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128   { echo "$as_me: error: pwd does not report name of working directory" >&2
1129    { (exit 1); exit 1; }; }
1130
1131
1132 # Find the source files, if location was not specified.
1133 if test -z "$srcdir"; then
1134   ac_srcdir_defaulted=yes
1135   # Try the directory containing this script, then the parent directory.
1136   ac_confdir=`$as_dirname -- "$0" ||
1137 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138          X"$0" : 'X\(//\)[^/]' \| \
1139          X"$0" : 'X\(//\)$' \| \
1140          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1141 echo X"$0" |
1142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143             s//\1/
1144             q
1145           }
1146           /^X\(\/\/\)[^/].*/{
1147             s//\1/
1148             q
1149           }
1150           /^X\(\/\/\)$/{
1151             s//\1/
1152             q
1153           }
1154           /^X\(\/\).*/{
1155             s//\1/
1156             q
1157           }
1158           s/.*/./; q'`
1159   srcdir=$ac_confdir
1160   if test ! -r "$srcdir/$ac_unique_file"; then
1161     srcdir=..
1162   fi
1163 else
1164   ac_srcdir_defaulted=no
1165 fi
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1167   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1169    { (exit 1); exit 1; }; }
1170 fi
1171 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 ac_abs_confdir=`(
1173         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1174    { (exit 1); exit 1; }; }
1175         pwd)`
1176 # When building in place, set srcdir=.
1177 if test "$ac_abs_confdir" = "$ac_pwd"; then
1178   srcdir=.
1179 fi
1180 # Remove unnecessary trailing slashes from srcdir.
1181 # Double slashes in file names in object file debugging info
1182 # mess up M-x gdb in Emacs.
1183 case $srcdir in
1184 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1185 esac
1186 for ac_var in $ac_precious_vars; do
1187   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1188   eval ac_env_${ac_var}_value=\$${ac_var}
1189   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1190   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1191 done
1192
1193 #
1194 # Report the --help message.
1195 #
1196 if test "$ac_init_help" = "long"; then
1197   # Omit some internal or obsolete options to make the list less imposing.
1198   # This message is too long to be a string in the A/UX 3.1 sh.
1199   cat <<_ACEOF
1200 \`configure' configures this package to adapt to many kinds of systems.
1201
1202 Usage: $0 [OPTION]... [VAR=VALUE]...
1203
1204 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1205 VAR=VALUE.  See below for descriptions of some of the useful variables.
1206
1207 Defaults for the options are specified in brackets.
1208
1209 Configuration:
1210   -h, --help              display this help and exit
1211       --help=short        display options specific to this package
1212       --help=recursive    display the short help of all the included packages
1213   -V, --version           display version information and exit
1214   -q, --quiet, --silent   do not print \`checking...' messages
1215       --cache-file=FILE   cache test results in FILE [disabled]
1216   -C, --config-cache      alias for \`--cache-file=config.cache'
1217   -n, --no-create         do not create output files
1218       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1219
1220 Installation directories:
1221   --prefix=PREFIX         install architecture-independent files in PREFIX
1222                           [$ac_default_prefix]
1223   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1224                           [PREFIX]
1225
1226 By default, \`make install' will install all the files in
1227 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1228 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1229 for instance \`--prefix=\$HOME'.
1230
1231 For better control, use the options below.
1232
1233 Fine tuning of the installation directories:
1234   --bindir=DIR           user executables [EPREFIX/bin]
1235   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1236   --libexecdir=DIR       program executables [EPREFIX/libexec]
1237   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1238   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1239   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1240   --libdir=DIR           object code libraries [EPREFIX/lib]
1241   --includedir=DIR       C header files [PREFIX/include]
1242   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1243   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1244   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1245   --infodir=DIR          info documentation [DATAROOTDIR/info]
1246   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1247   --mandir=DIR           man documentation [DATAROOTDIR/man]
1248   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1249   --htmldir=DIR          html documentation [DOCDIR]
1250   --dvidir=DIR           dvi documentation [DOCDIR]
1251   --pdfdir=DIR           pdf documentation [DOCDIR]
1252   --psdir=DIR            ps documentation [DOCDIR]
1253 _ACEOF
1254
1255   cat <<\_ACEOF
1256
1257 System types:
1258   --build=BUILD     configure for building on BUILD [guessed]
1259   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1260 _ACEOF
1261 fi
1262
1263 if test -n "$ac_init_help"; then
1264
1265   cat <<\_ACEOF
1266
1267 Optional Features:
1268   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1269   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1270   --disable-universal     don't build universal on OS X
1271   --enable-smb            enable possibly-buggy SMB printer default=yes
1272   --disable-smb           disable possibly-buggy SMB printer
1273   --enable-ipv6           enable ipv6 (with ipv4) support
1274   --disable-ipv6          disable ipv6 support
1275
1276 Optional Packages:
1277   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1278   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1279   --without-gcc           don't use gcc
1280   --with-smi              link with libsmi (allows to load MIBs on the fly to decode SNMP packets. default=yes
1281   --without-smi           don't link with libsmi
1282   --with-user=USERNAME    drop privileges by default to USERNAME
1283   --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
1284   --with-crypto[=PATH]    use SSLeay libcrypto (located in directory PATH, if
1285                           supplied). [default=yes, if available]
1286
1287 Some influential environment variables:
1288   CC          C compiler command
1289   CFLAGS      C compiler flags
1290   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1291               nonstandard directory <lib dir>
1292   LIBS        libraries to pass to the linker, e.g. -l<library>
1293   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1294               you have headers in a nonstandard directory <include dir>
1295   CPP         C preprocessor
1296
1297 Use these variables to override the choices made by `configure' or to help
1298 it to find libraries and programs with nonstandard names/locations.
1299
1300 _ACEOF
1301 ac_status=$?
1302 fi
1303
1304 if test "$ac_init_help" = "recursive"; then
1305   # If there are subdirs, report their specific --help.
1306   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1307     test -d "$ac_dir" || continue
1308     ac_builddir=.
1309
1310 case "$ac_dir" in
1311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *)
1313   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1314   # A ".." for each directory in $ac_dir_suffix.
1315   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1316   case $ac_top_builddir_sub in
1317   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1319   esac ;;
1320 esac
1321 ac_abs_top_builddir=$ac_pwd
1322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1323 # for backward compatibility:
1324 ac_top_builddir=$ac_top_build_prefix
1325
1326 case $srcdir in
1327   .)  # We are building in place.
1328     ac_srcdir=.
1329     ac_top_srcdir=$ac_top_builddir_sub
1330     ac_abs_top_srcdir=$ac_pwd ;;
1331   [\\/]* | ?:[\\/]* )  # Absolute name.
1332     ac_srcdir=$srcdir$ac_dir_suffix;
1333     ac_top_srcdir=$srcdir
1334     ac_abs_top_srcdir=$srcdir ;;
1335   *) # Relative name.
1336     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1337     ac_top_srcdir=$ac_top_build_prefix$srcdir
1338     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1339 esac
1340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1341
1342     cd "$ac_dir" || { ac_status=$?; continue; }
1343     # Check for guested configure.
1344     if test -f "$ac_srcdir/configure.gnu"; then
1345       echo &&
1346       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1347     elif test -f "$ac_srcdir/configure"; then
1348       echo &&
1349       $SHELL "$ac_srcdir/configure" --help=recursive
1350     else
1351       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1352     fi || ac_status=$?
1353     cd "$ac_pwd" || { ac_status=$?; break; }
1354   done
1355 fi
1356
1357 test -n "$ac_init_help" && exit $ac_status
1358 if $ac_init_version; then
1359   cat <<\_ACEOF
1360 configure
1361 generated by GNU Autoconf 2.61
1362
1363 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1364 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1365 This configure script is free software; the Free Software Foundation
1366 gives unlimited permission to copy, distribute and modify it.
1367 _ACEOF
1368   exit
1369 fi
1370 cat >config.log <<_ACEOF
1371 This file contains any messages produced by compilers while
1372 running configure, to aid debugging if configure makes a mistake.
1373
1374 It was created by $as_me, which was
1375 generated by GNU Autoconf 2.61.  Invocation command line was
1376
1377   $ $0 $@
1378
1379 _ACEOF
1380 exec 5>>config.log
1381 {
1382 cat <<_ASUNAME
1383 ## --------- ##
1384 ## Platform. ##
1385 ## --------- ##
1386
1387 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1388 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1389 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1390 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1391 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1392
1393 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1394 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1395
1396 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1397 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1398 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1399 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1400 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1401 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1402 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1403
1404 _ASUNAME
1405
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409   IFS=$as_save_IFS
1410   test -z "$as_dir" && as_dir=.
1411   echo "PATH: $as_dir"
1412 done
1413 IFS=$as_save_IFS
1414
1415 } >&5
1416
1417 cat >&5 <<_ACEOF
1418
1419
1420 ## ----------- ##
1421 ## Core tests. ##
1422 ## ----------- ##
1423
1424 _ACEOF
1425
1426
1427 # Keep a trace of the command line.
1428 # Strip out --no-create and --no-recursion so they do not pile up.
1429 # Strip out --silent because we don't want to record it for future runs.
1430 # Also quote any args containing shell meta-characters.
1431 # Make two passes to allow for proper duplicate-argument suppression.
1432 ac_configure_args=
1433 ac_configure_args0=
1434 ac_configure_args1=
1435 ac_must_keep_next=false
1436 for ac_pass in 1 2
1437 do
1438   for ac_arg
1439   do
1440     case $ac_arg in
1441     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1442     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1443     | -silent | --silent | --silen | --sile | --sil)
1444       continue ;;
1445     *\'*)
1446       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1447     esac
1448     case $ac_pass in
1449     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1450     2)
1451       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1452       if test $ac_must_keep_next = true; then
1453         ac_must_keep_next=false # Got value, back to normal.
1454       else
1455         case $ac_arg in
1456           *=* | --config-cache | -C | -disable-* | --disable-* \
1457           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1458           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1459           | -with-* | --with-* | -without-* | --without-* | --x)
1460             case "$ac_configure_args0 " in
1461               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1462             esac
1463             ;;
1464           -* ) ac_must_keep_next=true ;;
1465         esac
1466       fi
1467       ac_configure_args="$ac_configure_args '$ac_arg'"
1468       ;;
1469     esac
1470   done
1471 done
1472 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1473 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1474
1475 # When interrupted or exit'd, cleanup temporary files, and complete
1476 # config.log.  We remove comments because anyway the quotes in there
1477 # would cause problems or look ugly.
1478 # WARNING: Use '\'' to represent an apostrophe within the trap.
1479 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1480 trap 'exit_status=$?
1481   # Save into config.log some information that might help in debugging.
1482   {
1483     echo
1484
1485     cat <<\_ASBOX
1486 ## ---------------- ##
1487 ## Cache variables. ##
1488 ## ---------------- ##
1489 _ASBOX
1490     echo
1491     # The following way of writing the cache mishandles newlines in values,
1492 (
1493   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1494     eval ac_val=\$$ac_var
1495     case $ac_val in #(
1496     *${as_nl}*)
1497       case $ac_var in #(
1498       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1499 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1500       esac
1501       case $ac_var in #(
1502       _ | IFS | as_nl) ;; #(
1503       *) $as_unset $ac_var ;;
1504       esac ;;
1505     esac
1506   done
1507   (set) 2>&1 |
1508     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1509     *${as_nl}ac_space=\ *)
1510       sed -n \
1511         "s/'\''/'\''\\\\'\'''\''/g;
1512           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1513       ;; #(
1514     *)
1515       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1516       ;;
1517     esac |
1518     sort
1519 )
1520     echo
1521
1522     cat <<\_ASBOX
1523 ## ----------------- ##
1524 ## Output variables. ##
1525 ## ----------------- ##
1526 _ASBOX
1527     echo
1528     for ac_var in $ac_subst_vars
1529     do
1530       eval ac_val=\$$ac_var
1531       case $ac_val in
1532       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1533       esac
1534       echo "$ac_var='\''$ac_val'\''"
1535     done | sort
1536     echo
1537
1538     if test -n "$ac_subst_files"; then
1539       cat <<\_ASBOX
1540 ## ------------------- ##
1541 ## File substitutions. ##
1542 ## ------------------- ##
1543 _ASBOX
1544       echo
1545       for ac_var in $ac_subst_files
1546       do
1547         eval ac_val=\$$ac_var
1548         case $ac_val in
1549         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550         esac
1551         echo "$ac_var='\''$ac_val'\''"
1552       done | sort
1553       echo
1554     fi
1555
1556     if test -s confdefs.h; then
1557       cat <<\_ASBOX
1558 ## ----------- ##
1559 ## confdefs.h. ##
1560 ## ----------- ##
1561 _ASBOX
1562       echo
1563       cat confdefs.h
1564       echo
1565     fi
1566     test "$ac_signal" != 0 &&
1567       echo "$as_me: caught signal $ac_signal"
1568     echo "$as_me: exit $exit_status"
1569   } >&5
1570   rm -f core *.core core.conftest.* &&
1571     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1572     exit $exit_status
1573 ' 0
1574 for ac_signal in 1 2 13 15; do
1575   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1576 done
1577 ac_signal=0
1578
1579 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1580 rm -f -r conftest* confdefs.h
1581
1582 # Predefined preprocessor variables.
1583
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_NAME "$PACKAGE_NAME"
1586 _ACEOF
1587
1588
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1591 _ACEOF
1592
1593
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1596 _ACEOF
1597
1598
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_STRING "$PACKAGE_STRING"
1601 _ACEOF
1602
1603
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1606 _ACEOF
1607
1608
1609 # Let the site file select an alternate cache file if it wants to.
1610 # Prefer explicitly selected file to automatically selected ones.
1611 if test -n "$CONFIG_SITE"; then
1612   set x "$CONFIG_SITE"
1613 elif test "x$prefix" != xNONE; then
1614   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1615 else
1616   set x "$ac_default_prefix/share/config.site" \
1617         "$ac_default_prefix/etc/config.site"
1618 fi
1619 shift
1620 for ac_site_file
1621 do
1622   if test -r "$ac_site_file"; then
1623     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1624 echo "$as_me: loading site script $ac_site_file" >&6;}
1625     sed 's/^/| /' "$ac_site_file" >&5
1626     . "$ac_site_file"
1627   fi
1628 done
1629
1630 if test -r "$cache_file"; then
1631   # Some versions of bash will fail to source /dev/null (special
1632   # files actually), so we avoid doing that.
1633   if test -f "$cache_file"; then
1634     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1635 echo "$as_me: loading cache $cache_file" >&6;}
1636     case $cache_file in
1637       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1638       *)                      . "./$cache_file";;
1639     esac
1640   fi
1641 else
1642   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1643 echo "$as_me: creating cache $cache_file" >&6;}
1644   >$cache_file
1645 fi
1646
1647 # Check that the precious variables saved in the cache have kept the same
1648 # value.
1649 ac_cache_corrupted=false
1650 for ac_var in $ac_precious_vars; do
1651   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1652   eval ac_new_set=\$ac_env_${ac_var}_set
1653   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1654   eval ac_new_val=\$ac_env_${ac_var}_value
1655   case $ac_old_set,$ac_new_set in
1656     set,)
1657       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1659       ac_cache_corrupted=: ;;
1660     ,set)
1661       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1662 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1663       ac_cache_corrupted=: ;;
1664     ,);;
1665     *)
1666       if test "x$ac_old_val" != "x$ac_new_val"; then
1667         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1668 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1669         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1670 echo "$as_me:   former value:  $ac_old_val" >&2;}
1671         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1672 echo "$as_me:   current value: $ac_new_val" >&2;}
1673         ac_cache_corrupted=:
1674       fi;;
1675   esac
1676   # Pass precious variables to config.status.
1677   if test "$ac_new_set" = set; then
1678     case $ac_new_val in
1679     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1680     *) ac_arg=$ac_var=$ac_new_val ;;
1681     esac
1682     case " $ac_configure_args " in
1683       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1684       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1685     esac
1686   fi
1687 done
1688 if $ac_cache_corrupted; then
1689   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1690 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1691   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1692 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1693    { (exit 1); exit 1; }; }
1694 fi
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712 ac_ext=c
1713 ac_cpp='$CPP $CPPFLAGS'
1714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719
1720 ac_aux_dir=
1721 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1722   if test -f "$ac_dir/install-sh"; then
1723     ac_aux_dir=$ac_dir
1724     ac_install_sh="$ac_aux_dir/install-sh -c"
1725     break
1726   elif test -f "$ac_dir/install.sh"; then
1727     ac_aux_dir=$ac_dir
1728     ac_install_sh="$ac_aux_dir/install.sh -c"
1729     break
1730   elif test -f "$ac_dir/shtool"; then
1731     ac_aux_dir=$ac_dir
1732     ac_install_sh="$ac_aux_dir/shtool install -c"
1733     break
1734   fi
1735 done
1736 if test -z "$ac_aux_dir"; then
1737   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1738 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1739    { (exit 1); exit 1; }; }
1740 fi
1741
1742 # These three variables are undocumented and unsupported,
1743 # and are intended to be withdrawn in a future Autoconf release.
1744 # They can cause serious problems if a builder's source tree is in a directory
1745 # whose full name contains unusual characters.
1746 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1747 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1748 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1749
1750
1751 # Make sure we can run config.sub.
1752 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1753   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1754 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1755    { (exit 1); exit 1; }; }
1756
1757 { echo "$as_me:$LINENO: checking build system type" >&5
1758 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1759 if test "${ac_cv_build+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   ac_build_alias=$build_alias
1763 test "x$ac_build_alias" = x &&
1764   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1765 test "x$ac_build_alias" = x &&
1766   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768    { (exit 1); exit 1; }; }
1769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1771 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1772    { (exit 1); exit 1; }; }
1773
1774 fi
1775 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776 echo "${ECHO_T}$ac_cv_build" >&6; }
1777 case $ac_cv_build in
1778 *-*-*) ;;
1779 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1780 echo "$as_me: error: invalid value of canonical build" >&2;}
1781    { (exit 1); exit 1; }; };;
1782 esac
1783 build=$ac_cv_build
1784 ac_save_IFS=$IFS; IFS='-'
1785 set x $ac_cv_build
1786 shift
1787 build_cpu=$1
1788 build_vendor=$2
1789 shift; shift
1790 # Remember, the first character of IFS is used to create $*,
1791 # except with old shells:
1792 build_os=$*
1793 IFS=$ac_save_IFS
1794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1795
1796
1797 { echo "$as_me:$LINENO: checking host system type" >&5
1798 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_host+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test "x$host_alias" = x; then
1803   ac_cv_host=$ac_cv_build
1804 else
1805   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1806     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1807 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1808    { (exit 1); exit 1; }; }
1809 fi
1810
1811 fi
1812 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6; }
1814 case $ac_cv_host in
1815 *-*-*) ;;
1816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1817 echo "$as_me: error: invalid value of canonical host" >&2;}
1818    { (exit 1); exit 1; }; };;
1819 esac
1820 host=$ac_cv_host
1821 ac_save_IFS=$IFS; IFS='-'
1822 set x $ac_cv_host
1823 shift
1824 host_cpu=$1
1825 host_vendor=$2
1826 shift; shift
1827 # Remember, the first character of IFS is used to create $*,
1828 # except with old shells:
1829 host_os=$*
1830 IFS=$ac_save_IFS
1831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1843   withval=$with_gcc;
1844 fi
1845
1846     V_CCOPT="-O"
1847     V_INCLS=""
1848     if test "${srcdir}" != "." ; then
1849             V_INCLS="-I$srcdir"
1850     fi
1851     if test "${CFLAGS+set}" = set; then
1852             LBL_CFLAGS="$CFLAGS"
1853     fi
1854     if test -z "$CC" ; then
1855             case "$host_os" in
1856
1857             bsdi*)
1858                     # Extract the first word of "shlicc2", so it can be a program name with args.
1859 set dummy shlicc2; ac_word=$2
1860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1862 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$SHLICC2"; then
1866   ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1875     ac_cv_prog_SHLICC2="yes"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881 IFS=$as_save_IFS
1882
1883   test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1884 fi
1885 fi
1886 SHLICC2=$ac_cv_prog_SHLICC2
1887 if test -n "$SHLICC2"; then
1888   { echo "$as_me:$LINENO: result: $SHLICC2" >&5
1889 echo "${ECHO_T}$SHLICC2" >&6; }
1890 else
1891   { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1893 fi
1894
1895
1896                     if test $SHLICC2 = yes ; then
1897                             CC=shlicc2
1898                             export CC
1899                     fi
1900                     ;;
1901             esac
1902     fi
1903     if test -z "$CC" -a "$with_gcc" = no ; then
1904             CC=cc
1905             export CC
1906     fi
1907
1908 ac_ext=c
1909 ac_cpp='$CPP $CPPFLAGS'
1910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 if test -n "$ac_tool_prefix"; then
1914   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1915 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   if test -n "$CC"; then
1922   ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 CC=$ac_cv_prog_CC
1942 if test -n "$CC"; then
1943   { echo "$as_me:$LINENO: result: $CC" >&5
1944 echo "${ECHO_T}$CC" >&6; }
1945 else
1946   { echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6; }
1948 fi
1949
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953   ac_ct_CC=$CC
1954   # Extract the first word of "gcc", so it can be a program name with args.
1955 set dummy gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_CC"; then
1962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971     ac_cv_prog_ac_ct_CC="gcc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6; }
1985 else
1986   { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990   if test "x$ac_ct_CC" = x; then
1991     CC=""
1992   else
1993     case $cross_compiling:$ac_tool_warned in
1994 yes:)
1995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1996 whose name does not start with the host triplet.  If you think this
1997 configuration is useful to you, please write to autoconf@gnu.org." >&5
1998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1999 whose name does not start with the host triplet.  If you think this
2000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2001 ac_tool_warned=yes ;;
2002 esac
2003     CC=$ac_ct_CC
2004   fi
2005 else
2006   CC="$ac_cv_prog_CC"
2007 fi
2008
2009 if test -z "$CC"; then
2010           if test -n "$ac_tool_prefix"; then
2011     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}cc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$CC"; then
2019   ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_CC="${ac_tool_prefix}cc"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048   fi
2049 fi
2050 if test -z "$CC"; then
2051   # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061   ac_prog_rejected=no
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070        ac_prog_rejected=yes
2071        continue
2072      fi
2073     ac_cv_prog_CC="cc"
2074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075     break 2
2076   fi
2077 done
2078 done
2079 IFS=$as_save_IFS
2080
2081 if test $ac_prog_rejected = yes; then
2082   # We found a bogon in the path, so make sure we never use it.
2083   set dummy $ac_cv_prog_CC
2084   shift
2085   if test $# != 0; then
2086     # We chose a different compiler from the bogus one.
2087     # However, it has the same basename, so the bogon will be chosen
2088     # first if we set CC to just the basename; use the full file name.
2089     shift
2090     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2091   fi
2092 fi
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097   { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100   { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105 fi
2106 if test -z "$CC"; then
2107   if test -n "$ac_tool_prefix"; then
2108   for ac_prog in cl.exe
2109   do
2110     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   if test -n "$CC"; then
2118   ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123   IFS=$as_save_IFS
2124   test -z "$as_dir" && as_dir=.
2125   for ac_exec_ext in '' $ac_executable_extensions; do
2126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129     break 2
2130   fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then
2139   { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2141 else
2142   { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147     test -n "$CC" && break
2148   done
2149 fi
2150 if test -z "$CC"; then
2151   ac_ct_CC=$CC
2152   for ac_prog in cl.exe
2153 do
2154   # Extract the first word of "$ac_prog", so it can be a program name with args.
2155 set dummy $ac_prog; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   if test -n "$ac_ct_CC"; then
2162   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 else
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 for as_dir in $PATH
2166 do
2167   IFS=$as_save_IFS
2168   test -z "$as_dir" && as_dir=.
2169   for ac_exec_ext in '' $ac_executable_extensions; do
2170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171     ac_cv_prog_ac_ct_CC="$ac_prog"
2172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173     break 2
2174   fi
2175 done
2176 done
2177 IFS=$as_save_IFS
2178
2179 fi
2180 fi
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2185 else
2186   { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2188 fi
2189
2190
2191   test -n "$ac_ct_CC" && break
2192 done
2193
2194   if test "x$ac_ct_CC" = x; then
2195     CC=""
2196   else
2197     case $cross_compiling:$ac_tool_warned in
2198 yes:)
2199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2200 whose name does not start with the host triplet.  If you think this
2201 configuration is useful to you, please write to autoconf@gnu.org." >&5
2202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2203 whose name does not start with the host triplet.  If you think this
2204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2205 ac_tool_warned=yes ;;
2206 esac
2207     CC=$ac_ct_CC
2208   fi
2209 fi
2210
2211 fi
2212
2213
2214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218    { (exit 1); exit 1; }; }
2219
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO: checking for C compiler version" >&5
2222 ac_compiler=`set X $ac_compile; echo $2`
2223 { (ac_try="$ac_compiler --version >&5"
2224 case "(($ac_try" in
2225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226   *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229   (eval "$ac_compiler --version >&5") 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }
2233 { (ac_try="$ac_compiler -v >&5"
2234 case "(($ac_try" in
2235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236   *) ac_try_echo=$ac_try;;
2237 esac
2238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2239   (eval "$ac_compiler -v >&5") 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }
2243 { (ac_try="$ac_compiler -V >&5"
2244 case "(($ac_try" in
2245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246   *) ac_try_echo=$ac_try;;
2247 esac
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249   (eval "$ac_compiler -V >&5") 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }
2253
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h.  */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h.  */
2260
2261 int
2262 main ()
2263 {
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 ac_clean_files_save=$ac_clean_files
2270 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2271 # Try to create an executable without -o first, disregard a.out.
2272 # It will help us diagnose broken compilers, and finding out an intuition
2273 # of exeext.
2274 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2275 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2276 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2277 #
2278 # List of possible output files, starting from the most likely.
2279 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2280 # only as a last resort.  b.out is created by i960 compilers.
2281 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2282 #
2283 # The IRIX 6 linker writes into existing files which may not be
2284 # executable, retaining their permissions.  Remove them first so a
2285 # subsequent execution test works.
2286 ac_rmfiles=
2287 for ac_file in $ac_files
2288 do
2289   case $ac_file in
2290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2291     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292   esac
2293 done
2294 rm -f $ac_rmfiles
2295
2296 if { (ac_try="$ac_link_default"
2297 case "(($ac_try" in
2298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299   *) ac_try_echo=$ac_try;;
2300 esac
2301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2302   (eval "$ac_link_default") 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; then
2306   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2308 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2309 # so that the user can short-circuit this test for compilers unknown to
2310 # Autoconf.
2311 for ac_file in $ac_files ''
2312 do
2313   test -f "$ac_file" || continue
2314   case $ac_file in
2315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2316         ;;
2317     [ab].out )
2318         # We found the default executable, but exeext='' is most
2319         # certainly right.
2320         break;;
2321     *.* )
2322         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2323         then :; else
2324            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325         fi
2326         # We set ac_cv_exeext here because the later test for it is not
2327         # safe: cross compilers may not add the suffix if given an `-o'
2328         # argument, so we may need to know it at that point already.
2329         # Even if this section looks crufty: it has the advantage of
2330         # actually working.
2331         break;;
2332     * )
2333         break;;
2334   esac
2335 done
2336 test "$ac_cv_exeext" = no && ac_cv_exeext=
2337
2338 else
2339   ac_file=''
2340 fi
2341
2342 { echo "$as_me:$LINENO: result: $ac_file" >&5
2343 echo "${ECHO_T}$ac_file" >&6; }
2344 if test -z "$ac_file"; then
2345   echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2347
2348 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: C compiler cannot create executables
2351 See \`config.log' for more details." >&2;}
2352    { (exit 77); exit 77; }; }
2353 fi
2354
2355 ac_exeext=$ac_cv_exeext
2356
2357 # Check that the compiler produces executables we can run.  If not, either
2358 # the compiler is broken, or we cross compile.
2359 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364   if { ac_try='./$ac_file'
2365   { (case "(($ac_try" in
2366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367   *) ac_try_echo=$ac_try;;
2368 esac
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370   (eval "$ac_try") 2>&5
2371   ac_status=$?
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); }; }; then
2374     cross_compiling=no
2375   else
2376     if test "$cross_compiling" = maybe; then
2377         cross_compiling=yes
2378     else
2379         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2380 If you meant to cross compile, use \`--host'.
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: cannot run C compiled programs.
2383 If you meant to cross compile, use \`--host'.
2384 See \`config.log' for more details." >&2;}
2385    { (exit 1); exit 1; }; }
2386     fi
2387   fi
2388 fi
2389 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2391
2392 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2393 ac_clean_files=$ac_clean_files_save
2394 # Check that the compiler produces executables we can run.  If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2398 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2399 echo "${ECHO_T}$cross_compiling" >&6; }
2400
2401 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2402 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2403 if { (ac_try="$ac_link"
2404 case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409   (eval "$ac_link") 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; then
2413   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2414 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2415 # work properly (i.e., refer to `conftest.exe'), while it won't with
2416 # `rm'.
2417 for ac_file in conftest.exe conftest conftest.*; do
2418   test -f "$ac_file" || continue
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422           break;;
2423     * ) break;;
2424   esac
2425 done
2426 else
2427   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&2;}
2431    { (exit 1); exit 1; }; }
2432 fi
2433
2434 rm -f conftest$ac_cv_exeext
2435 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2436 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2437
2438 rm -f conftest.$ac_ext
2439 EXEEXT=$ac_cv_exeext
2440 ac_exeext=$EXEEXT
2441 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2442 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2443 if test "${ac_cv_objext+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h.  */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h.  */
2452
2453 int
2454 main ()
2455 {
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.o conftest.obj
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_compile") 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; then
2472   for ac_file in conftest.o conftest.obj conftest.*; do
2473   test -f "$ac_file" || continue;
2474   case $ac_file in
2475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2476     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477        break;;
2478   esac
2479 done
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6; }
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512 #ifndef __GNUC__
2513        choke me
2514 #endif
2515
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (ac_try="$ac_compile"
2522 case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527   (eval "$ac_compile") 2>conftest.er1
2528   ac_status=$?
2529   grep -v '^ *+' conftest.er1 >conftest.err
2530   rm -f conftest.er1
2531   cat conftest.err >&5
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } && {
2534          test -z "$ac_c_werror_flag" ||
2535          test ! -s conftest.err
2536        } && test -s conftest.$ac_objext; then
2537   ac_compiler_gnu=yes
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542         ac_compiler_gnu=no
2543 fi
2544
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2547
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2551 GCC=`test $ac_compiler_gnu = yes && echo yes`
2552 ac_test_CFLAGS=${CFLAGS+set}
2553 ac_save_CFLAGS=$CFLAGS
2554 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   ac_save_c_werror_flag=$ac_c_werror_flag
2560    ac_c_werror_flag=yes
2561    ac_cv_prog_cc_g=no
2562    CFLAGS="-g"
2563    cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569
2570 int
2571 main ()
2572 {
2573
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (ac_try="$ac_compile"
2580 case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585   (eval "$ac_compile") 2>conftest.er1
2586   ac_status=$?
2587   grep -v '^ *+' conftest.er1 >conftest.err
2588   rm -f conftest.er1
2589   cat conftest.err >&5
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); } && {
2592          test -z "$ac_c_werror_flag" ||
2593          test ! -s conftest.err
2594        } && test -s conftest.$ac_objext; then
2595   ac_cv_prog_cc_g=yes
2596 else
2597   echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600         CFLAGS=""
2601       cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 int
2609 main ()
2610 {
2611
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (ac_try="$ac_compile"
2618 case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623   (eval "$ac_compile") 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } && {
2630          test -z "$ac_c_werror_flag" ||
2631          test ! -s conftest.err
2632        } && test -s conftest.$ac_objext; then
2633   :
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638         ac_c_werror_flag=$ac_save_c_werror_flag
2639          CFLAGS="-g"
2640          cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compile") 2>conftest.er1
2663   ac_status=$?
2664   grep -v '^ *+' conftest.er1 >conftest.err
2665   rm -f conftest.er1
2666   cat conftest.err >&5
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } && {
2669          test -z "$ac_c_werror_flag" ||
2670          test ! -s conftest.err
2671        } && test -s conftest.$ac_objext; then
2672   ac_cv_prog_cc_g=yes
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677
2678 fi
2679
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 fi
2682
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687    ac_c_werror_flag=$ac_save_c_werror_flag
2688 fi
2689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2690 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2691 if test "$ac_test_CFLAGS" = set; then
2692   CFLAGS=$ac_save_CFLAGS
2693 elif test $ac_cv_prog_cc_g = yes; then
2694   if test "$GCC" = yes; then
2695     CFLAGS="-g -O2"
2696   else
2697     CFLAGS="-g"
2698   fi
2699 else
2700   if test "$GCC" = yes; then
2701     CFLAGS="-O2"
2702   else
2703     CFLAGS=
2704   fi
2705 fi
2706 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2707 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_c89+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   ac_cv_prog_cc_c89=no
2712 ac_save_CC=$CC
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719 #include <stdarg.h>
2720 #include <stdio.h>
2721 #include <sys/types.h>
2722 #include <sys/stat.h>
2723 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2724 struct buf { int x; };
2725 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2726 static char *e (p, i)
2727      char **p;
2728      int i;
2729 {
2730   return p[i];
2731 }
2732 static char *f (char * (*g) (char **, int), char **p, ...)
2733 {
2734   char *s;
2735   va_list v;
2736   va_start (v,p);
2737   s = g (p, va_arg (v,int));
2738   va_end (v);
2739   return s;
2740 }
2741
2742 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2743    function prototypes and stuff, but not '\xHH' hex character constants.
2744    These don't provoke an error unfortunately, instead are silently treated
2745    as 'x'.  The following induces an error, until -std is added to get
2746    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2747    array size at least.  It's necessary to write '\x00'==0 to get something
2748    that's true only with -std.  */
2749 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2750
2751 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2752    inside strings and character constants.  */
2753 #define FOO(x) 'x'
2754 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2755
2756 int test (int i, double x);
2757 struct s1 {int (*f) (int a);};
2758 struct s2 {int (*f) (double a);};
2759 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760 int argc;
2761 char **argv;
2762 int
2763 main ()
2764 {
2765 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2771         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2772 do
2773   CC="$ac_save_CC $ac_arg"
2774   rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_compile") 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } && {
2788          test -z "$ac_c_werror_flag" ||
2789          test ! -s conftest.err
2790        } && test -s conftest.$ac_objext; then
2791   ac_cv_prog_cc_c89=$ac_arg
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796
2797 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext
2800   test "x$ac_cv_prog_cc_c89" != "xno" && break
2801 done
2802 rm -f conftest.$ac_ext
2803 CC=$ac_save_CC
2804
2805 fi
2806 # AC_CACHE_VAL
2807 case "x$ac_cv_prog_cc_c89" in
2808   x)
2809     { echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6; } ;;
2811   xno)
2812     { echo "$as_me:$LINENO: result: unsupported" >&5
2813 echo "${ECHO_T}unsupported" >&6; } ;;
2814   *)
2815     CC="$CC $ac_cv_prog_cc_c89"
2816     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2818 esac
2819
2820
2821 ac_ext=c
2822 ac_cpp='$CPP $CPPFLAGS'
2823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826
2827
2828
2829
2830
2831     if test "$GCC" = yes ; then
2832             if test "$SHLICC2" = yes ; then
2833                     ac_cv_lbl_gcc_vers=2
2834                     V_CCOPT="-O2"
2835             else
2836                     { echo "$as_me:$LINENO: checking gcc version" >&5
2837 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
2838                     if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2842                             sed -e '/^gcc version /!d' \
2843                                 -e 's/^gcc version //' \
2844                                 -e 's/ .*//' -e 's/^[^0-9]*//' \
2845                                 -e 's/\..*//'`
2846 fi
2847
2848                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2849 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6; }
2850                     if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2851                             V_CCOPT="-O2"
2852                     fi
2853             fi
2854     else
2855             { echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2856 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6; }
2857             if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 #include <sys/types.h>
2868 int
2869 main ()
2870 {
2871 int frob(int, char *)
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_compile") 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } && {
2890          test -z "$ac_c_werror_flag" ||
2891          test ! -s conftest.err
2892        } && test -s conftest.$ac_objext; then
2893   ac_cv_lbl_cc_ansi_prototypes=yes
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898         ac_cv_lbl_cc_ansi_prototypes=no
2899 fi
2900
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 fi
2903
2904             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2905 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6; }
2906             if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2907                     case "$host_os" in
2908
2909                     hpux*)
2910                             { echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2911 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6; }
2912                             savedcflags="$CFLAGS"
2913                             CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2914                             if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 #include <sys/types.h>
2924 int
2925 main ()
2926 {
2927 int frob(int, char *)
2928   ;
2929   return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (ac_try="$ac_compile"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939   (eval "$ac_compile") 2>conftest.er1
2940   ac_status=$?
2941   grep -v '^ *+' conftest.er1 >conftest.err
2942   rm -f conftest.er1
2943   cat conftest.err >&5
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); } && {
2946          test -z "$ac_c_werror_flag" ||
2947          test ! -s conftest.err
2948        } && test -s conftest.$ac_objext; then
2949   ac_cv_lbl_cc_hpux_cc_aa=yes
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954         ac_cv_lbl_cc_hpux_cc_aa=no
2955 fi
2956
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 fi
2959
2960                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2961 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6; }
2962                             if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2963                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2964 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2965    { (exit 1); exit 1; }; }
2966                             fi
2967                             CFLAGS="$savedcflags"
2968                             V_CCOPT="-Aa $V_CCOPT"
2969
2970 cat >>confdefs.h <<\_ACEOF
2971 #define _HPUX_SOURCE 1
2972 _ACEOF
2973
2974                             ;;
2975
2976                     osf*)
2977                             { echo "$as_me:$LINENO: checking for ansi mode in DEC compiler ($CC -std1)" >&5
2978 echo $ECHO_N "checking for ansi mode in DEC compiler ($CC -std1)... $ECHO_C" >&6; }
2979                             savedcflags="$CFLAGS"
2980                             CFLAGS="-std1"
2981                             if test "${ac_cv_lbl_cc_osf1_cc_std1+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990 #include <sys/types.h>
2991 int
2992 main ()
2993 {
2994 int frob(int, char *)
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_compile") 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } && {
3013          test -z "$ac_c_werror_flag" ||
3014          test ! -s conftest.err
3015        } && test -s conftest.$ac_objext; then
3016   ac_cv_lbl_cc_osf1_cc_std1=yes
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021         ac_cv_lbl_cc_osf1_cc_std1=no
3022 fi
3023
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 fi
3026
3027                             { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_osf1_cc_std1" >&5
3028 echo "${ECHO_T}$ac_cv_lbl_cc_osf1_cc_std1" >&6; }
3029                             if test $ac_cv_lbl_cc_osf1_cc_std1 = no ; then
3030                                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3031 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3032    { (exit 1); exit 1; }; }
3033                             fi
3034                             CFLAGS="$savedcflags"
3035                             V_CCOPT="-std1 $V_CCOPT"
3036                             ;;
3037
3038                     *)
3039                             { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
3040 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
3041    { (exit 1); exit 1; }; }
3042                             ;;
3043                     esac
3044             fi
3045             V_INCLS="$V_INCLS -I/usr/local/include"
3046             LDFLAGS="$LDFLAGS -L/usr/local/lib"
3047
3048             case "$host_os" in
3049
3050             irix*)
3051                     V_CCOPT="$V_CCOPT -xansi -signed -O"
3052                     ;;
3053
3054             osf*)
3055                     #
3056                     # Presumed to be DEC OSF/1, Digital UNIX, or
3057                     # Tru64 UNIX.
3058                     #
3059                     V_CCOPT="$V_CCOPT -O"
3060                     ;;
3061
3062             ultrix*)
3063                     { echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
3064 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6; }
3065                     if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 #include <sys/types.h>
3075 int
3076 main ()
3077 {
3078 struct a { int b; };
3079                             void c(const struct a *)
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_compile") 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } && {
3098          test -z "$ac_c_werror_flag" ||
3099          test ! -s conftest.err
3100        } && test -s conftest.$ac_objext; then
3101   ac_cv_lbl_cc_const_proto=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106         ac_cv_lbl_cc_const_proto=no
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 fi
3111
3112                     { echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
3113 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6; }
3114                     if test $ac_cv_lbl_cc_const_proto = no ; then
3115
3116 cat >>confdefs.h <<\_ACEOF
3117 #define const
3118 _ACEOF
3119
3120                     fi
3121                     ;;
3122             esac
3123     fi
3124
3125 { echo "$as_me:$LINENO: checking for inline" >&5
3126 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3127     save_CFLAGS="$CFLAGS"
3128     CFLAGS="$V_CCOPT"
3129     if test "${ac_cv_lbl_inline+set}" = set; then
3130   echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132
3133         ac_cv_lbl_inline=""
3134         ac_lbl_cc_inline=no
3135         for ac_lbl_inline in inline __inline__ __inline
3136         do
3137             cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143 #define inline $ac_lbl_inline
3144                 static inline struct iltest *foo(void);
3145                 struct iltest {
3146                     int iltest1;
3147                     int iltest2;
3148                 };
3149
3150                 static inline struct iltest *
3151                 foo()
3152                 {
3153                     static struct iltest xxx;
3154
3155                     return &xxx;
3156                 }
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } && {
3179          test -z "$ac_c_werror_flag" ||
3180          test ! -s conftest.err
3181        } && test -s conftest.$ac_objext; then
3182   ac_lbl_cc_inline=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191             if test "$ac_lbl_cc_inline" = yes ; then
3192                 break;
3193             fi
3194         done
3195         if test "$ac_lbl_cc_inline" = yes ; then
3196             ac_cv_lbl_inline=$ac_lbl_inline
3197         fi
3198 fi
3199
3200     CFLAGS="$save_CFLAGS"
3201     if test ! -z "$ac_cv_lbl_inline" ; then
3202         { echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
3203 echo "${ECHO_T}$ac_cv_lbl_inline" >&6; }
3204     else
3205         { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3207     fi
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define inline $ac_cv_lbl_inline
3211 _ACEOF
3212
3213
3214 { echo "$as_me:$LINENO: checking for __attribute__" >&5
3215 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
3216 if test "${ac_cv___attribute__+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219
3220 cat >conftest.$ac_ext <<_ACEOF
3221
3222   /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227
3228 #include <stdlib.h>
3229
3230 static void foo(void) __attribute__ ((noreturn));
3231
3232 static void
3233 foo(void)
3234 {
3235   exit(1);
3236 }
3237
3238 int
3239 main(int argc, char **argv)
3240 {
3241   foo();
3242 }
3243
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_compile") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } && {
3259          test -z "$ac_c_werror_flag" ||
3260          test ! -s conftest.err
3261        } && test -s conftest.$ac_objext; then
3262   ac_cv___attribute__=yes
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267         ac_cv___attribute__=no
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 fi
3272
3273 if test "$ac_cv___attribute__" = "yes"; then
3274
3275 cat >>confdefs.h <<\_ACEOF
3276 #define HAVE___ATTRIBUTE__ 1
3277 _ACEOF
3278
3279   V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
3280 else
3281   V_DEFS="$V_DEFS -D_U_=\"\""
3282 fi
3283 { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3284 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
3285
3286 if test "$ac_cv___attribute__" = "yes"; then
3287
3288 { echo "$as_me:$LINENO: checking whether __attribute__((format)) can be applied to function pointers" >&5
3289 echo $ECHO_N "checking whether __attribute__((format)) can be applied to function pointers... $ECHO_C" >&6; }
3290 if test "${ac_cv___attribute___format_function_pointer+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293
3294 cat >conftest.$ac_ext <<_ACEOF
3295
3296   /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301
3302 #include <stdlib.h>
3303
3304 extern int (*foo)(const char *fmt, ...)
3305                   __attribute__ ((format (printf, 1, 2)));
3306
3307 int
3308 main(int argc, char **argv)
3309 {
3310   (*foo)("%s", "test");
3311 }
3312
3313 _ACEOF
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321   (eval "$ac_compile") 2>conftest.er1
3322   ac_status=$?
3323   grep -v '^ *+' conftest.er1 >conftest.err
3324   rm -f conftest.er1
3325   cat conftest.err >&5
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } && {
3328          test -z "$ac_c_werror_flag" ||
3329          test ! -s conftest.err
3330        } && test -s conftest.$ac_objext; then
3331   ac_cv___attribute___format_function_pointer=yes
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336         ac_cv___attribute___format_function_pointer=no
3337 fi
3338
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341
3342 if test "$ac_cv___attribute___format_function_pointer" = "yes"; then
3343
3344 cat >>confdefs.h <<\_ACEOF
3345 #define __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS 1
3346 _ACEOF
3347
3348 fi
3349 { echo "$as_me:$LINENO: result: $ac_cv___attribute___format_function_pointer" >&5
3350 echo "${ECHO_T}$ac_cv___attribute___format_function_pointer" >&6; }
3351
3352 fi
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3360 # On Suns, sometimes $CPP names a directory.
3361 if test -n "$CPP" && test -d "$CPP"; then
3362   CPP=
3363 fi
3364 if test -z "$CPP"; then
3365   if test "${ac_cv_prog_CPP+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368       # Double quotes because CPP needs to be expanded
3369     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370     do
3371       ac_preproc_ok=false
3372 for ac_c_preproc_warn_flag in '' yes
3373 do
3374   # Use a header file that comes with gcc, so configuring glibc
3375   # with a fresh cross-compiler works.
3376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377   # <limits.h> exists even on freestanding compilers.
3378   # On the NeXT, cc -E runs the code through the compiler's parser,
3379   # not just through cpp. "Syntax error" is here to catch this case.
3380   cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386 #ifdef __STDC__
3387 # include <limits.h>
3388 #else
3389 # include <assert.h>
3390 #endif
3391                      Syntax error
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null && {
3406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3407          test ! -s conftest.err
3408        }; then
3409   :
3410 else
3411   echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414   # Broken: fails on valid input.
3415 continue
3416 fi
3417
3418 rm -f conftest.err conftest.$ac_ext
3419
3420   # OK, works on sane cases.  Now check whether nonexistent headers
3421   # can be detected and how.
3422   cat >conftest.$ac_ext <<_ACEOF
3423 /* confdefs.h.  */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h.  */
3428 #include <ac_nonexistent.h>
3429 _ACEOF
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } >/dev/null && {
3443          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444          test ! -s conftest.err
3445        }; then
3446   # Broken: success on invalid input.
3447 continue
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452   # Passes both tests.
3453 ac_preproc_ok=:
3454 break
3455 fi
3456
3457 rm -f conftest.err conftest.$ac_ext
3458
3459 done
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3463   break
3464 fi
3465
3466     done
3467     ac_cv_prog_CPP=$CPP
3468
3469 fi
3470   CPP=$ac_cv_prog_CPP
3471 else
3472   ac_cv_prog_CPP=$CPP
3473 fi
3474 { echo "$as_me:$LINENO: result: $CPP" >&5
3475 echo "${ECHO_T}$CPP" >&6; }
3476 ac_preproc_ok=false
3477 for ac_c_preproc_warn_flag in '' yes
3478 do
3479   # Use a header file that comes with gcc, so configuring glibc
3480   # with a fresh cross-compiler works.
3481   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3482   # <limits.h> exists even on freestanding compilers.
3483   # On the NeXT, cc -E runs the code through the compiler's parser,
3484   # not just through cpp. "Syntax error" is here to catch this case.
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496                      Syntax error
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } >/dev/null && {
3511          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3512          test ! -s conftest.err
3513        }; then
3514   :
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519   # Broken: fails on valid input.
3520 continue
3521 fi
3522
3523 rm -f conftest.err conftest.$ac_ext
3524
3525   # OK, works on sane cases.  Now check whether nonexistent headers
3526   # can be detected and how.
3527   cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h.  */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h.  */
3533 #include <ac_nonexistent.h>
3534 _ACEOF
3535 if { (ac_try="$ac_cpp conftest.$ac_ext"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } >/dev/null && {
3548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3549          test ! -s conftest.err
3550        }; then
3551   # Broken: success on invalid input.
3552 continue
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557   # Passes both tests.
3558 ac_preproc_ok=:
3559 break
3560 fi
3561
3562 rm -f conftest.err conftest.$ac_ext
3563
3564 done
3565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3566 rm -f conftest.err conftest.$ac_ext
3567 if $ac_preproc_ok; then
3568   :
3569 else
3570   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&5
3572 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3573 See \`config.log' for more details." >&2;}
3574    { (exit 1); exit 1; }; }
3575 fi
3576
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582
3583
3584 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3585 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3586 if test "${ac_cv_path_GREP+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   # Extract the first word of "grep ggrep" to use in msg output
3590 if test -z "$GREP"; then
3591 set dummy grep ggrep; ac_prog_name=$2
3592 if test "${ac_cv_path_GREP+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   ac_path_GREP_found=false
3596 # Loop through the user's path and test for each of PROGNAME-LIST
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602   for ac_prog in grep ggrep; do
3603   for ac_exec_ext in '' $ac_executable_extensions; do
3604     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3605     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3606     # Check for GNU ac_path_GREP and select it if it is found.
3607   # Check for GNU $ac_path_GREP
3608 case `"$ac_path_GREP" --version 2>&1` in
3609 *GNU*)
3610   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3611 *)
3612   ac_count=0
3613   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3614   while :
3615   do
3616     cat "conftest.in" "conftest.in" >"conftest.tmp"
3617     mv "conftest.tmp" "conftest.in"
3618     cp "conftest.in" "conftest.nl"
3619     echo 'GREP' >> "conftest.nl"
3620     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3622     ac_count=`expr $ac_count + 1`
3623     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3624       # Best one so far, save it but keep looking for a better one
3625       ac_cv_path_GREP="$ac_path_GREP"
3626       ac_path_GREP_max=$ac_count
3627     fi
3628     # 10*(2^10) chars as input seems more than enough
3629     test $ac_count -gt 10 && break
3630   done
3631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3632 esac
3633
3634
3635     $ac_path_GREP_found && break 3
3636   done
3637 done
3638
3639 done
3640 IFS=$as_save_IFS
3641
3642
3643 fi
3644
3645 GREP="$ac_cv_path_GREP"
3646 if test -z "$GREP"; then
3647   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3648 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3649    { (exit 1); exit 1; }; }
3650 fi
3651
3652 else
3653   ac_cv_path_GREP=$GREP
3654 fi
3655
3656
3657 fi
3658 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3659 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3660  GREP="$ac_cv_path_GREP"
3661
3662
3663 { echo "$as_me:$LINENO: checking for egrep" >&5
3664 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3665 if test "${ac_cv_path_EGREP+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669    then ac_cv_path_EGREP="$GREP -E"
3670    else
3671      # Extract the first word of "egrep" to use in msg output
3672 if test -z "$EGREP"; then
3673 set dummy egrep; ac_prog_name=$2
3674 if test "${ac_cv_path_EGREP+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_path_EGREP_found=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3681 do
3682   IFS=$as_save_IFS
3683   test -z "$as_dir" && as_dir=.
3684   for ac_prog in egrep; do
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3687     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3688     # Check for GNU ac_path_EGREP and select it if it is found.
3689   # Check for GNU $ac_path_EGREP
3690 case `"$ac_path_EGREP" --version 2>&1` in
3691 *GNU*)
3692   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3693 *)
3694   ac_count=0
3695   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696   while :
3697   do
3698     cat "conftest.in" "conftest.in" >"conftest.tmp"
3699     mv "conftest.tmp" "conftest.in"
3700     cp "conftest.in" "conftest.nl"
3701     echo 'EGREP' >> "conftest.nl"
3702     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3703     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3704     ac_count=`expr $ac_count + 1`
3705     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3706       # Best one so far, save it but keep looking for a better one
3707       ac_cv_path_EGREP="$ac_path_EGREP"
3708       ac_path_EGREP_max=$ac_count
3709     fi
3710     # 10*(2^10) chars as input seems more than enough
3711     test $ac_count -gt 10 && break
3712   done
3713   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3714 esac
3715
3716
3717     $ac_path_EGREP_found && break 3
3718   done
3719 done
3720
3721 done
3722 IFS=$as_save_IFS
3723
3724
3725 fi
3726
3727 EGREP="$ac_cv_path_EGREP"
3728 if test -z "$EGREP"; then
3729   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731    { (exit 1); exit 1; }; }
3732 fi
3733
3734 else
3735   ac_cv_path_EGREP=$EGREP
3736 fi
3737
3738
3739    fi
3740 fi
3741 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3742 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3743  EGREP="$ac_cv_path_EGREP"
3744
3745
3746 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3748 if test "${ac_cv_header_stdc+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 #include <stdlib.h>
3758 #include <stdarg.h>
3759 #include <string.h>
3760 #include <float.h>
3761
3762 int
3763 main ()
3764 {
3765
3766   ;
3767   return 0;
3768 }
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (ac_try="$ac_compile"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777   (eval "$ac_compile") 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } && {
3784          test -z "$ac_c_werror_flag" ||
3785          test ! -s conftest.err
3786        } && test -s conftest.$ac_objext; then
3787   ac_cv_header_stdc=yes
3788 else
3789   echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792         ac_cv_header_stdc=no
3793 fi
3794
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796
3797 if test $ac_cv_header_stdc = yes; then
3798   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799   cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h.  */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h.  */
3805 #include <string.h>
3806
3807 _ACEOF
3808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809   $EGREP "memchr" >/dev/null 2>&1; then
3810   :
3811 else
3812   ac_cv_header_stdc=no
3813 fi
3814 rm -f -r conftest*
3815
3816 fi
3817
3818 if test $ac_cv_header_stdc = yes; then
3819   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3820   cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h.  */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h.  */
3826 #include <stdlib.h>
3827
3828 _ACEOF
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830   $EGREP "free" >/dev/null 2>&1; then
3831   :
3832 else
3833   ac_cv_header_stdc=no
3834 fi
3835 rm -f -r conftest*
3836
3837 fi
3838
3839 if test $ac_cv_header_stdc = yes; then
3840   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3841   if test "$cross_compiling" = yes; then
3842   :
3843 else
3844   cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850 #include <ctype.h>
3851 #include <stdlib.h>
3852 #if ((' ' & 0x0FF) == 0x020)
3853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3855 #else
3856 # define ISLOWER(c) \
3857                    (('a' <= (c) && (c) <= 'i') \
3858                      || ('j' <= (c) && (c) <= 'r') \
3859                      || ('s' <= (c) && (c) <= 'z'))
3860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3861 #endif
3862
3863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3864 int
3865 main ()
3866 {
3867   int i;
3868   for (i = 0; i < 256; i++)
3869     if (XOR (islower (i), ISLOWER (i))
3870         || toupper (i) != TOUPPER (i))
3871       return 2;
3872   return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest$ac_exeext
3876 if { (ac_try="$ac_link"
3877 case "(($ac_try" in
3878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879   *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882   (eval "$ac_link") 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3886   { (case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891   (eval "$ac_try") 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); }; }; then
3895   :
3896 else
3897   echo "$as_me: program exited with status $ac_status" >&5
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 ( exit $ac_status )
3902 ac_cv_header_stdc=no
3903 fi
3904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3905 fi
3906
3907
3908 fi
3909 fi
3910 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3911 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3912 if test $ac_cv_header_stdc = yes; then
3913
3914 cat >>confdefs.h <<\_ACEOF
3915 #define STDC_HEADERS 1
3916 _ACEOF
3917
3918 fi
3919
3920 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3931                   inttypes.h stdint.h unistd.h
3932 do
3933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945 $ac_includes_default
3946
3947 #include <$ac_header>
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3951 case "(($ac_try" in
3952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953   *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956   (eval "$ac_compile") 2>conftest.er1
3957   ac_status=$?
3958   grep -v '^ *+' conftest.er1 >conftest.err
3959   rm -f conftest.er1
3960   cat conftest.err >&5
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } && {
3963          test -z "$ac_c_werror_flag" ||
3964          test ! -s conftest.err
3965        } && test -s conftest.$ac_objext; then
3966   eval "$as_ac_Header=yes"
3967 else
3968   echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971         eval "$as_ac_Header=no"
3972 fi
3973
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 ac_res=`eval echo '${'$as_ac_Header'}'`
3977                { echo "$as_me:$LINENO: result: $ac_res" >&5
3978 echo "${ECHO_T}$ac_res" >&6; }
3979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3980   cat >>confdefs.h <<_ACEOF
3981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3982 _ACEOF
3983
3984 fi
3985
3986 done
3987
3988
3989
3990
3991
3992
3993 for ac_header in fcntl.h rpc/rpc.h rpc/rpcent.h netdnet/dnetdb.h
3994 do
3995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3997   { echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 fi
4002 ac_res=`eval echo '${'$as_ac_Header'}'`
4003                { echo "$as_me:$LINENO: result: $ac_res" >&5
4004 echo "${ECHO_T}$ac_res" >&6; }
4005 else
4006   # Is the header compilable?
4007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015 $ac_includes_default
4016 #include <$ac_header>
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4020 case "(($ac_try" in
4021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022   *) ac_try_echo=$ac_try;;
4023 esac
4024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025   (eval "$ac_compile") 2>conftest.er1
4026   ac_status=$?
4027   grep -v '^ *+' conftest.er1 >conftest.err
4028   rm -f conftest.er1
4029   cat conftest.err >&5
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } && {
4032          test -z "$ac_c_werror_flag" ||
4033          test ! -s conftest.err
4034        } && test -s conftest.$ac_objext; then
4035   ac_header_compiler=yes
4036 else
4037   echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040         ac_header_compiler=no
4041 fi
4042
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4045 echo "${ECHO_T}$ac_header_compiler" >&6; }
4046
4047 # Is the header present?
4048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056 #include <$ac_header>
4057 _ACEOF
4058 if { (ac_try="$ac_cpp conftest.$ac_ext"
4059 case "(($ac_try" in
4060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061   *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065   ac_status=$?
4066   grep -v '^ *+' conftest.er1 >conftest.err
4067   rm -f conftest.er1
4068   cat conftest.err >&5
4069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070   (exit $ac_status); } >/dev/null && {
4071          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072          test ! -s conftest.err
4073        }; then
4074   ac_header_preproc=yes
4075 else
4076   echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079   ac_header_preproc=no
4080 fi
4081
4082 rm -f conftest.err conftest.$ac_ext
4083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4084 echo "${ECHO_T}$ac_header_preproc" >&6; }
4085
4086 # So?  What about this header?
4087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4088   yes:no: )
4089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4093     ac_header_preproc=yes
4094     ;;
4095   no:yes:* )
4096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4108
4109     ;;
4110 esac
4111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   eval "$as_ac_Header=\$ac_header_preproc"
4117 fi
4118 ac_res=`eval echo '${'$as_ac_Header'}'`
4119                { echo "$as_me:$LINENO: result: $ac_res" >&5
4120 echo "${ECHO_T}$ac_res" >&6; }
4121
4122 fi
4123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4124   cat >>confdefs.h <<_ACEOF
4125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4126 _ACEOF
4127
4128 fi
4129
4130 done
4131
4132
4133 for ac_header in net/pfvar.h
4134 do
4135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #include <sys/types.h>
4148 #include <sys/socket.h>
4149 #include <net/if.h>
4150
4151 #include <$ac_header>
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_compile") 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } && {
4167          test -z "$ac_c_werror_flag" ||
4168          test ! -s conftest.err
4169        } && test -s conftest.$ac_objext; then
4170   eval "$as_ac_Header=yes"
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175         eval "$as_ac_Header=no"
4176 fi
4177
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 fi
4180 ac_res=`eval echo '${'$as_ac_Header'}'`
4181                { echo "$as_me:$LINENO: result: $ac_res" >&5
4182 echo "${ECHO_T}$ac_res" >&6; }
4183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4184   cat >>confdefs.h <<_ACEOF
4185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4186 _ACEOF
4187
4188 fi
4189
4190 done
4191
4192 if test "$ac_cv_header_net_pfvar_h" = yes; then
4193         LOCALSRC="print-pflog.c $LOCALSRC"
4194 fi
4195
4196 for ac_header in netinet/if_ether.h
4197 do
4198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210 #include <sys/types.h>
4211 #include <sys/socket.h>
4212
4213 #include <$ac_header>
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (ac_try="$ac_compile"
4217 case "(($ac_try" in
4218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219   *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222   (eval "$ac_compile") 2>conftest.er1
4223   ac_status=$?
4224   grep -v '^ *+' conftest.er1 >conftest.err
4225   rm -f conftest.er1
4226   cat conftest.err >&5
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } && {
4229          test -z "$ac_c_werror_flag" ||
4230          test ! -s conftest.err
4231        } && test -s conftest.$ac_objext; then
4232   eval "$as_ac_Header=yes"
4233 else
4234   echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237         eval "$as_ac_Header=no"
4238 fi
4239
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 fi
4242 ac_res=`eval echo '${'$as_ac_Header'}'`
4243                { echo "$as_me:$LINENO: result: $ac_res" >&5
4244 echo "${ECHO_T}$ac_res" >&6; }
4245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4246   cat >>confdefs.h <<_ACEOF
4247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4248 _ACEOF
4249
4250 fi
4251
4252 done
4253
4254 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
4255         #
4256         # The simple test didn't work.
4257         # Do we need to include <net/if.h> first?
4258         # Unset ac_cv_header_netinet_if_ether_h so we don't
4259         # treat the previous failure as a cached value and
4260         # suppress the next test.
4261         #
4262         { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
4263 echo "$as_me: Rechecking with some additional includes" >&6;}
4264         unset ac_cv_header_netinet_if_ether_h
4265
4266 for ac_header in netinet/if_ether.h
4267 do
4268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 #include <sys/types.h>
4281 #include <sys/socket.h>
4282 #include <netinet/in.h>
4283 struct mbuf;
4284 struct rtentry;
4285 #include <net/if.h>
4286
4287 #include <$ac_header>
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_compile") 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } && {
4303          test -z "$ac_c_werror_flag" ||
4304          test ! -s conftest.err
4305        } && test -s conftest.$ac_objext; then
4306   eval "$as_ac_Header=yes"
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311         eval "$as_ac_Header=no"
4312 fi
4313
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 ac_res=`eval echo '${'$as_ac_Header'}'`
4317                { echo "$as_me:$LINENO: result: $ac_res" >&5
4318 echo "${ECHO_T}$ac_res" >&6; }
4319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4320   cat >>confdefs.h <<_ACEOF
4321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322 _ACEOF
4323
4324 fi
4325
4326 done
4327
4328 fi
4329
4330 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4331 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4332 if test "${ac_cv_header_time+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 #include <sys/types.h>
4342 #include <sys/time.h>
4343 #include <time.h>
4344
4345 int
4346 main ()
4347 {
4348 if ((struct tm *) 0)
4349 return 0;
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4356 case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_compile") 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } && {
4368          test -z "$ac_c_werror_flag" ||
4369          test ! -s conftest.err
4370        } && test -s conftest.$ac_objext; then
4371   ac_cv_header_time=yes
4372 else
4373   echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4375
4376         ac_cv_header_time=no
4377 fi
4378
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 fi
4381 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4382 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4383 if test $ac_cv_header_time = yes; then
4384
4385 cat >>confdefs.h <<\_ACEOF
4386 #define TIME_WITH_SYS_TIME 1
4387 _ACEOF
4388
4389 fi
4390
4391
4392 case "$host_os" in
4393
4394 darwin*)
4395         # Check whether --enable-universal was given.
4396 if test "${enable_universal+set}" = set; then
4397   enableval=$enable_universal;
4398 fi
4399
4400         if test "$enable_universal" != "no"; then
4401                 case "$host_os" in
4402
4403                 darwin9.*)
4404                         #
4405                         # Leopard.  Build for x86 and 32-bit PowerPC, with
4406                         # x86 first.  (That's what Apple does.)
4407                         #
4408                         V_CCOPT="$V_CCOPT -arch i386 -arch ppc"
4409                         LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
4410                         ;;
4411
4412                 darwin10.*)
4413                         #
4414                         # Snow Leopard.  Build for x86-64 and x86, with
4415                         # x86-64 first.  (That's what Apple does.)
4416                         #
4417                         V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
4418                         LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
4419                         ;;
4420                 esac
4421         fi
4422         ;;
4423
4424 linux*)
4425         { echo "$as_me:$LINENO: checking Linux kernel version" >&5
4426 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
4427         if test "$cross_compiling" = yes; then
4428                 if test "${ac_cv_linux_vers+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   ac_cv_linux_vers=unknown
4432 fi
4433
4434         else
4435                 if test "${ac_cv_linux_vers+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   ac_cv_linux_vers=`uname -r 2>&1 | \
4439                         sed -n -e '$s/.* //' -e '$s/\..*//p'`
4440 fi
4441
4442         fi
4443         { echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
4444 echo "${ECHO_T}$ac_cv_linux_vers" >&6; }
4445         if test $ac_cv_linux_vers = unknown ; then
4446                 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
4447 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
4448    { (exit 1); exit 1; }; }
4449         fi
4450         if test $ac_cv_linux_vers -lt 2 ; then
4451                 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
4452 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
4453    { (exit 1); exit 1; }; }
4454         fi
4455         ;;
4456
4457 *)
4458         ;;
4459 esac
4460
4461
4462
4463 # Check whether --with-smi was given.
4464 if test "${with_smi+set}" = set; then
4465   withval=$with_smi;
4466 else
4467   with_smi=yes
4468 fi
4469
4470
4471 if test "x$with_smi" != "xno" ; then
4472
4473 for ac_header in smi.h
4474 do
4475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 fi
4482 ac_res=`eval echo '${'$as_ac_Header'}'`
4483                { echo "$as_me:$LINENO: result: $ac_res" >&5
4484 echo "${ECHO_T}$ac_res" >&6; }
4485 else
4486   # Is the header compilable?
4487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 $ac_includes_default
4496 #include <$ac_header>
4497 _ACEOF
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505   (eval "$ac_compile") 2>conftest.er1
4506   ac_status=$?
4507   grep -v '^ *+' conftest.er1 >conftest.err
4508   rm -f conftest.er1
4509   cat conftest.err >&5
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } && {
4512          test -z "$ac_c_werror_flag" ||
4513          test ! -s conftest.err
4514        } && test -s conftest.$ac_objext; then
4515   ac_header_compiler=yes
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520         ac_header_compiler=no
4521 fi
4522
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525 echo "${ECHO_T}$ac_header_compiler" >&6; }
4526
4527 # Is the header present?
4528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 #include <$ac_header>
4537 _ACEOF
4538 if { (ac_try="$ac_cpp conftest.$ac_ext"
4539 case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545   ac_status=$?
4546   grep -v '^ *+' conftest.er1 >conftest.err
4547   rm -f conftest.er1
4548   cat conftest.err >&5
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); } >/dev/null && {
4551          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552          test ! -s conftest.err
4553        }; then
4554   ac_header_preproc=yes
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559   ac_header_preproc=no
4560 fi
4561
4562 rm -f conftest.err conftest.$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6; }
4565
4566 # So?  What about this header?
4567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4568   yes:no: )
4569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573     ac_header_preproc=yes
4574     ;;
4575   no:yes:* )
4576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4588
4589     ;;
4590 esac
4591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   eval "$as_ac_Header=\$ac_header_preproc"
4597 fi
4598 ac_res=`eval echo '${'$as_ac_Header'}'`
4599                { echo "$as_me:$LINENO: result: $ac_res" >&5
4600 echo "${ECHO_T}$ac_res" >&6; }
4601
4602 fi
4603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4604   cat >>confdefs.h <<_ACEOF
4605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606 _ACEOF
4607
4608 fi
4609
4610 done
4611
4612
4613 { echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
4614 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6; }
4615 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
4616   echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618   ac_check_lib_save_LIBS=$LIBS
4619 LIBS="-lsmi  $LIBS"
4620 cat >conftest.$ac_ext <<_ACEOF
4621 /* confdefs.h.  */
4622 _ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h.  */
4626
4627 /* Override any GCC internal prototype to avoid an error.
4628    Use char because int might match the return type of a GCC
4629    builtin and then its argument prototype would still apply.  */
4630 #ifdef __cplusplus
4631 extern "C"
4632 #endif
4633 char smiInit ();
4634 int
4635 main ()
4636 {
4637 return smiInit ();
4638   ;
4639   return 0;
4640 }
4641 _ACEOF
4642 rm -f conftest.$ac_objext conftest$ac_exeext
4643 if { (ac_try="$ac_link"
4644 case "(($ac_try" in
4645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646   *) ac_try_echo=$ac_try;;
4647 esac
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649   (eval "$ac_link") 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } && {
4656          test -z "$ac_c_werror_flag" ||
4657          test ! -s conftest.err
4658        } && test -s conftest$ac_exeext &&
4659        $as_test_x conftest$ac_exeext; then
4660   ac_cv_lib_smi_smiInit=yes
4661 else
4662   echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665         ac_cv_lib_smi_smiInit=no
4666 fi
4667
4668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4669       conftest$ac_exeext conftest.$ac_ext
4670 LIBS=$ac_check_lib_save_LIBS
4671 fi
4672 { echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
4673 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6; }
4674 if test $ac_cv_lib_smi_smiInit = yes; then
4675   cat >>confdefs.h <<_ACEOF
4676 #define HAVE_LIBSMI 1
4677 _ACEOF
4678
4679   LIBS="-lsmi $LIBS"
4680
4681 fi
4682
4683 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
4684 then
4685 { echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
4686 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6; }
4687         if test "$cross_compiling" = yes; then
4688    { echo "$as_me:$LINENO: result: not when cross-compiling" >&5
4689 echo "${ECHO_T}not when cross-compiling" >&6; }
4690   libsmi=no
4691
4692 else
4693   cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699  /* libsmi available check */
4700 #include <smi.h>
4701 main()
4702 {
4703   int current, revision, age, n;
4704   const int required = 2;
4705   if (smiInit(""))
4706     exit(1);
4707   if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
4708     exit(2);
4709   n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
4710   if (n != 3)
4711     exit(3);
4712   if (required < current - age || required > current)
4713     exit(4);
4714   exit(0);
4715 }
4716
4717 _ACEOF
4718 rm -f conftest$ac_exeext
4719 if { (ac_try="$ac_link"
4720 case "(($ac_try" in
4721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722   *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725   (eval "$ac_link") 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4729   { (case "(($ac_try" in
4730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731   *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734   (eval "$ac_try") 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); }; }; then
4738    { echo "$as_me:$LINENO: result: yes" >&5
4739 echo "${ECHO_T}yes" >&6; }
4740   cat >>confdefs.h <<\_ACEOF
4741 #define LIBSMI 1
4742 _ACEOF
4743
4744   libsmi=yes
4745 else
4746   echo "$as_me: program exited with status $ac_status" >&5
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 ( exit $ac_status )
4751  case $? in
4752   1) { echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4753 echo "${ECHO_T}no - smiInit failed" >&6; } ;;
4754   2) { echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4755 echo "${ECHO_T}no - header/library version mismatch" >&6; } ;;
4756   3) { echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4757 echo "${ECHO_T}no - can't determine library version" >&6; } ;;
4758   4) { echo "$as_me:$LINENO: result: no - too old" >&5
4759 echo "${ECHO_T}no - too old" >&6; } ;;
4760   *) { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; } ;;
4762   esac
4763   libsmi=no
4764 fi
4765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4766 fi
4767
4768
4769 fi
4770 fi
4771
4772 { echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4773 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6; }
4774 # Check whether --enable-smb was given.
4775 if test "${enable_smb+set}" = set; then
4776   enableval=$enable_smb;
4777 else
4778   enableval=yes
4779 fi
4780
4781 case "$enableval" in
4782 yes)    { echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6; }
4784         { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4785 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4786         cat >>confdefs.h <<\_ACEOF
4787 #define TCPDUMP_DO_SMB 1
4788 _ACEOF
4789
4790         LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4791         ;;
4792 *)      { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794         ;;
4795 esac
4796
4797
4798 # Check whether --with-user was given.
4799 if test "${with_user+set}" = set; then
4800   withval=$with_user;
4801 fi
4802
4803 { echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4804 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6; }
4805 if test ! -z "$with_user" ; then
4806         cat >>confdefs.h <<_ACEOF
4807 #define WITH_USER "$withval"
4808 _ACEOF
4809
4810        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4811 echo "${ECHO_T}to \"$withval\"" >&6; }
4812 else
4813        { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4815 fi
4816
4817
4818 # Check whether --with-chroot was given.
4819 if test "${with_chroot+set}" = set; then
4820   withval=$with_chroot;
4821 fi
4822
4823 { echo "$as_me:$LINENO: checking whether to chroot" >&5
4824 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6; }
4825 if test ! -z "$with_chroot" && test "$with_chroot" != "no" ; then
4826         cat >>confdefs.h <<_ACEOF
4827 #define WITH_CHROOT "$withval"
4828 _ACEOF
4829
4830        { echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4831 echo "${ECHO_T}to \"$withval\"" >&6; }
4832 else
4833        { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4838 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
4839 # Check whether --enable-ipv6 was given.
4840 if test "${enable_ipv6+set}" = set; then
4841   enableval=$enable_ipv6;  case "$enableval" in
4842 yes)   { echo "$as_me:$LINENO: result: yes" >&5
4843 echo "${ECHO_T}yes" >&6; }
4844        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 print-babel.c $LOCALSRC"
4845        cat >>confdefs.h <<\_ACEOF
4846 #define INET6 1
4847 _ACEOF
4848
4849        ipv6=yes
4850        ;;
4851 *)
4852        { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854        ipv6=no
4855        ;;
4856   esac
4857 else
4858   if test "$cross_compiling" = yes; then
4859    { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4861   ipv6=no
4862
4863 else
4864   cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h.  */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h.  */
4870  /* AF_INET6 available check */
4871 #include <sys/types.h>
4872 #include <sys/socket.h>
4873 main()
4874 {
4875  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4876    exit(1);
4877  else
4878    exit(0);
4879 }
4880
4881 _ACEOF
4882 rm -f conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886   *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889   (eval "$ac_link") 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4893   { (case "(($ac_try" in
4894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895   *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898   (eval "$ac_try") 2>&5
4899   ac_status=$?
4900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901   (exit $ac_status); }; }; then
4902    { echo "$as_me:$LINENO: result: yes" >&5
4903 echo "${ECHO_T}yes" >&6; }
4904   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 print-babel.c $LOCALSRC"
4905   cat >>confdefs.h <<\_ACEOF
4906 #define INET6 1
4907 _ACEOF
4908
4909   ipv6=yes
4910 else
4911   echo "$as_me: program exited with status $ac_status" >&5
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 ( exit $ac_status )
4916  { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4918   ipv6=no
4919 fi
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4921 fi
4922
4923
4924 fi
4925
4926
4927 ipv6type=unknown
4928 ipv6lib=none
4929 ipv6trylibc=no
4930
4931 if test "$ipv6" = "yes"; then
4932         { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4933 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
4934         for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4935                 case $i in
4936                 inria)
4937                                                 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h.  */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h.  */
4943 #include <netinet/in.h>
4944 #ifdef IPV6_INRIA_VERSION
4945 yes
4946 #endif
4947 _ACEOF
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949   $EGREP "yes" >/dev/null 2>&1; then
4950   ipv6type=$i;
4951                                 CFLAGS="-DINET6 $CFLAGS"
4952 fi
4953 rm -f -r conftest*
4954
4955                         ;;
4956                 kame)
4957                                                 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963 #include <netinet/in.h>
4964 #ifdef __KAME__
4965 yes
4966 #endif
4967 _ACEOF
4968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4969   $EGREP "yes" >/dev/null 2>&1; then
4970   ipv6type=$i;
4971                                 ipv6lib=inet6;
4972                                 ipv6libdir=/usr/local/v6/lib;
4973                                 ipv6trylibc=yes;
4974                                 CFLAGS="-DINET6 $CFLAGS"
4975 fi
4976 rm -f -r conftest*
4977
4978                         ;;
4979                 linux-glibc)
4980                                                 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 #include <features.h>
4987 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4988 yes
4989 #endif
4990 _ACEOF
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992   $EGREP "yes" >/dev/null 2>&1; then
4993   ipv6type=$i;
4994                                 CFLAGS="-DINET6 $CFLAGS"
4995 fi
4996 rm -f -r conftest*
4997
4998                         ;;
4999                 linux-libinet6)
5000                                                                                                                                                 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
5001                                 ipv6type=$i
5002                                 ipv6lib=inet6
5003                                 ipv6libdir=/usr/inet6/lib
5004                                 ipv6trylibc=yes;
5005                                 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
5006                         fi
5007                         ;;
5008                 toshiba)
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 #include <sys/param.h>
5016 #ifdef _TOSHIBA_INET6
5017 yes
5018 #endif
5019 _ACEOF
5020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021   $EGREP "yes" >/dev/null 2>&1; then
5022   ipv6type=$i;
5023                                 ipv6lib=inet6;
5024                                 ipv6libdir=/usr/local/v6/lib;
5025                                 CFLAGS="-DINET6 $CFLAGS"
5026 fi
5027 rm -f -r conftest*
5028
5029                         ;;
5030                 v6d)
5031                         cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h.  */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h.  */
5037 #include </usr/local/v6/include/sys/v6config.h>
5038 #ifdef __V6D__
5039 yes
5040 #endif
5041 _ACEOF
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043   $EGREP "yes" >/dev/null 2>&1; then
5044   ipv6type=$i;
5045                                 ipv6lib=v6;
5046                                 ipv6libdir=/usr/local/v6/lib;
5047                                 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5048 fi
5049 rm -f -r conftest*
5050
5051                         ;;
5052                 zeta)
5053                         cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h.  */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h.  */
5059 #include <sys/param.h>
5060 #ifdef _ZETA_MINAMI_INET6
5061 yes
5062 #endif
5063 _ACEOF
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065   $EGREP "yes" >/dev/null 2>&1; then
5066   ipv6type=$i;
5067                                 ipv6lib=inet6;
5068                                 ipv6libdir=/usr/local/v6/lib;
5069                                 CFLAGS="-DINET6 $CFLAGS"
5070 fi
5071 rm -f -r conftest*
5072
5073                         ;;
5074                 esac
5075                 if test "$ipv6type" != "unknown"; then
5076                         break
5077                 fi
5078         done
5079         { echo "$as_me:$LINENO: result: $ipv6type" >&5
5080 echo "${ECHO_T}$ipv6type" >&6; }
5081 fi
5082
5083 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
5084         if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
5085                 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
5086                 echo "You have $ipv6lib library, using it"
5087         else
5088                 if test "$ipv6trylibc" = "yes"; then
5089                         echo "You do not have $ipv6lib library, using libc"
5090                 else
5091                         echo 'Fatal: no $ipv6lib library found.  cannot continue.'
5092                         echo "You need to fetch lib$ipv6lib.a from appropriate"
5093                         echo 'ipv6 kit and compile beforehand.'
5094                         exit 1
5095                 fi
5096         fi
5097 fi
5098
5099
5100 if test "$ipv6" = "yes"; then
5101         #
5102         # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
5103         # function in libc; there are "ngetaddrinfo()" and
5104         # "ogetaddrinfo()" functions, and <netdb.h> #defines
5105         # "getaddrinfo" to be either "ngetaddrinfo" or
5106         # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
5107         # or _XOPEN_SOURCE_EXTENDED are defined or not.
5108         #
5109         # So this test doesn't work on Tru64 5.1, and possibly
5110         # on other 5.x releases.  This causes the configure
5111         # script to become confused, and results in libpcap
5112         # being unbuildable.
5113         #
5114         { echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
5115 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
5116 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   ac_func_search_save_LIBS=$LIBS
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126
5127 /* Override any GCC internal prototype to avoid an error.
5128    Use char because int might match the return type of a GCC
5129    builtin and then its argument prototype would still apply.  */
5130 #ifdef __cplusplus
5131 extern "C"
5132 #endif
5133 char getaddrinfo ();
5134 int
5135 main ()
5136 {
5137 return getaddrinfo ();
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 for ac_lib in '' socket; do
5143   if test -z "$ac_lib"; then
5144     ac_res="none required"
5145   else
5146     ac_res=-l$ac_lib
5147     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5148   fi
5149   rm -f conftest.$ac_objext conftest$ac_exeext
5150 if { (ac_try="$ac_link"
5151 case "(($ac_try" in
5152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153   *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156   (eval "$ac_link") 2>conftest.er1
5157   ac_status=$?
5158   grep -v '^ *+' conftest.er1 >conftest.err
5159   rm -f conftest.er1
5160   cat conftest.err >&5
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } && {
5163          test -z "$ac_c_werror_flag" ||
5164          test ! -s conftest.err
5165        } && test -s conftest$ac_exeext &&
5166        $as_test_x conftest$ac_exeext; then
5167   ac_cv_search_getaddrinfo=$ac_res
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172
5173 fi
5174
5175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5176       conftest$ac_exeext
5177   if test "${ac_cv_search_getaddrinfo+set}" = set; then
5178   break
5179 fi
5180 done
5181 if test "${ac_cv_search_getaddrinfo+set}" = set; then
5182   :
5183 else
5184   ac_cv_search_getaddrinfo=no
5185 fi
5186 rm conftest.$ac_ext
5187 LIBS=$ac_func_search_save_LIBS
5188 fi
5189 { echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
5190 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
5191 ac_res=$ac_cv_search_getaddrinfo
5192 if test "$ac_res" != no; then
5193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5194         { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
5195 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
5196         if test "${td_cv_buggygetaddrinfo+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   if test "$cross_compiling" = yes; then
5200   td_cv_buggygetaddrinfo=yes
5201 else
5202   cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208
5209 #include <sys/types.h>
5210 #include <netdb.h>
5211 #include <string.h>
5212 #include <sys/socket.h>
5213 #include <netinet/in.h>
5214
5215 main()
5216 {
5217   int passive, gaierr, inet4 = 0, inet6 = 0;
5218   struct addrinfo hints, *ai, *aitop;
5219   char straddr[INET6_ADDRSTRLEN], strport[16];
5220
5221   for (passive = 0; passive <= 1; passive++) {
5222     memset(&hints, 0, sizeof(hints));
5223     hints.ai_family = AF_UNSPEC;
5224     hints.ai_flags = passive ? AI_PASSIVE : 0;
5225     hints.ai_socktype = SOCK_STREAM;
5226     hints.ai_protocol = IPPROTO_TCP;
5227     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5228       (void)gai_strerror(gaierr);
5229       goto bad;
5230     }
5231     for (ai = aitop; ai; ai = ai->ai_next) {
5232       if (ai->ai_addr == NULL ||
5233           ai->ai_addrlen == 0 ||
5234           getnameinfo(ai->ai_addr, ai->ai_addrlen,
5235                       straddr, sizeof(straddr), strport, sizeof(strport),
5236                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5237         goto bad;
5238       }
5239       switch (ai->ai_family) {
5240       case AF_INET:
5241         if (strcmp(strport, "54321") != 0) {
5242           goto bad;
5243         }
5244         if (passive) {
5245           if (strcmp(straddr, "0.0.0.0") != 0) {
5246             goto bad;
5247           }
5248         } else {
5249           if (strcmp(straddr, "127.0.0.1") != 0) {
5250             goto bad;
5251           }
5252         }
5253         inet4++;
5254         break;
5255       case AF_INET6:
5256         if (strcmp(strport, "54321") != 0) {
5257           goto bad;
5258         }
5259         if (passive) {
5260           if (strcmp(straddr, "::") != 0) {
5261             goto bad;
5262           }
5263         } else {
5264           if (strcmp(straddr, "::1") != 0) {
5265             goto bad;
5266           }
5267         }
5268         inet6++;
5269         break;
5270       case AF_UNSPEC:
5271         goto bad;
5272         break;
5273 #ifdef AF_UNIX
5274       case AF_UNIX:
5275 #else
5276 #ifdef AF_LOCAL
5277       case AF_LOCAL:
5278 #endif
5279 #endif
5280       default:
5281         /* another family support? */
5282         break;
5283       }
5284     }
5285   }
5286
5287   /* supported family should be 2, unsupported family should be 0 */
5288   if (!(inet4 == 0 || inet4 == 2))
5289     goto bad;
5290   if (!(inet6 == 0 || inet6 == 2))
5291     goto bad;
5292
5293   if (aitop)
5294     freeaddrinfo(aitop);
5295   exit(0);
5296
5297  bad:
5298   if (aitop)
5299     freeaddrinfo(aitop);
5300   exit(1);
5301 }
5302
5303 _ACEOF
5304 rm -f conftest$ac_exeext
5305 if { (ac_try="$ac_link"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_link") 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5315   { (case "(($ac_try" in
5316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317   *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320   (eval "$ac_try") 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }; }; then
5324   td_cv_buggygetaddrinfo=no
5325 else
5326   echo "$as_me: program exited with status $ac_status" >&5
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ( exit $ac_status )
5331 td_cv_buggygetaddrinfo=yes
5332 fi
5333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5334 fi
5335
5336
5337 fi
5338
5339         if test "$td_cv_buggygetaddrinfo" = no; then
5340                 { echo "$as_me:$LINENO: result: good" >&5
5341 echo "${ECHO_T}good" >&6; }
5342         else
5343                 { echo "$as_me:$LINENO: result: buggy" >&5
5344 echo "${ECHO_T}buggy" >&6; }
5345         fi
5346
5347         if test "$td_cv_buggygetaddrinfo" = "yes"; then
5348                 #
5349                 # XXX - it doesn't appear that "ipv6type" can ever be
5350                 # set to "linux".  Should this be testing for
5351                 # "linux-glibc", or for that *or* "linux-libinet6"?
5352                 # If the latter, note that "linux-libinet6" is also
5353                 # the type given to some non-Linux OSes.
5354                 #
5355                 if test "$ipv6type" != "linux"; then
5356                         echo 'Fatal: You must get working getaddrinfo() function.'
5357                         echo '       or you can specify "--disable-ipv6"'.
5358                         exit 1
5359                 else
5360                         echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
5361                         echo '         Better upgrade your system library to newest version'
5362                         echo '         of GNU C library (aka glibc).'
5363                 fi
5364         fi
5365
5366 fi
5367
5368
5369 for ac_func in getnameinfo
5370 do
5371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5385 #define $ac_func innocuous_$ac_func
5386
5387 /* System header to define __stub macros and hopefully few prototypes,
5388     which can conflict with char $ac_func (); below.
5389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390     <limits.h> exists even on freestanding compilers.  */
5391
5392 #ifdef __STDC__
5393 # include <limits.h>
5394 #else
5395 # include <assert.h>
5396 #endif
5397
5398 #undef $ac_func
5399
5400 /* Override any GCC internal prototype to avoid an error.
5401    Use char because int might match the return type of a GCC
5402    builtin and then its argument prototype would still apply.  */
5403 #ifdef __cplusplus
5404 extern "C"
5405 #endif
5406 char $ac_func ();
5407 /* The GNU C library defines this for functions which it implements
5408     to always fail with ENOSYS.  Some functions are actually named
5409     something starting with __ and the normal name is an alias.  */
5410 #if defined __stub_$ac_func || defined __stub___$ac_func
5411 choke me
5412 #endif
5413
5414 int
5415 main ()
5416 {
5417 return $ac_func ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (ac_try="$ac_link"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_link") 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } && {
5436          test -z "$ac_c_werror_flag" ||
5437          test ! -s conftest.err
5438        } && test -s conftest$ac_exeext &&
5439        $as_test_x conftest$ac_exeext; then
5440   eval "$as_ac_var=yes"
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445         eval "$as_ac_var=no"
5446 fi
5447
5448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5449       conftest$ac_exeext conftest.$ac_ext
5450 fi
5451 ac_res=`eval echo '${'$as_ac_var'}'`
5452                { echo "$as_me:$LINENO: result: $ac_res" >&5
5453 echo "${ECHO_T}$ac_res" >&6; }
5454 if test `eval echo '${'$as_ac_var'}'` = yes; then
5455   cat >>confdefs.h <<_ACEOF
5456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5457 _ACEOF
5458
5459 else
5460   case " $LIBOBJS " in
5461   *" $ac_func.$ac_objext "* ) ;;
5462   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5463  ;;
5464 esac
5465
5466 fi
5467 done
5468
5469
5470 fi
5471
5472 { echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
5473 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6; }
5474 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483 #include <netdnet/dnetdb.h>
5484
5485 _ACEOF
5486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5487   $EGREP "dnet_htoa" >/dev/null 2>&1; then
5488   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
5489 else
5490   td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
5491 fi
5492 rm -f -r conftest*
5493
5494 fi
5495 { echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
5496 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6; }
5497 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
5498         cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
5500 _ACEOF
5501
5502 fi
5503
5504
5505         { echo "$as_me:$LINENO: checking for addrinfo" >&5
5506 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
5507         if test "${ac_cv_addrinfo+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516
5517 #               include <netdb.h>
5518 int
5519 main ()
5520 {
5521 struct addrinfo a
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533   (eval "$ac_compile") 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } && {
5540          test -z "$ac_c_werror_flag" ||
5541          test ! -s conftest.err
5542        } && test -s conftest.$ac_objext; then
5543   ac_cv_addrinfo=yes
5544 else
5545   echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548         ac_cv_addrinfo=no
5549 fi
5550
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 fi
5553
5554         { echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5555 echo "${ECHO_T}$ac_cv_addrinfo" >&6; }
5556         if test $ac_cv_addrinfo = yes; then
5557                 cat >>confdefs.h <<\_ACEOF
5558 #define HAVE_ADDRINFO 1
5559 _ACEOF
5560
5561         else
5562                 cat >>confdefs.h <<\_ACEOF
5563 #define NEED_ADDRINFO_H 1
5564 _ACEOF
5565
5566         fi
5567
5568 if test "$ac_cv_addrinfo" = no; then
5569         missing_includes=yes
5570 fi
5571
5572
5573         { echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5574 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6; }
5575         if test "${ac_cv_maxserv+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h.  */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h.  */
5584 #include <netdb.h>
5585 #ifdef NI_MAXSERV
5586 yes
5587 #endif
5588 _ACEOF
5589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590   $EGREP "yes" >/dev/null 2>&1; then
5591   ac_cv_maxserv=yes
5592 else
5593   ac_cv_maxserv=no
5594 fi
5595 rm -f -r conftest*
5596
5597 fi
5598
5599         { echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5600 echo "${ECHO_T}$ac_cv_maxserv" >&6; }
5601         if test $ac_cv_maxserv != yes; then
5602                 cat >>confdefs.h <<\_ACEOF
5603 #define NEED_ADDRINFO_H 1
5604 _ACEOF
5605
5606         fi
5607
5608 if test "$ac_cv_maxserv" = no; then
5609         missing_includes=yes
5610 fi
5611
5612
5613         { echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5614 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6; }
5615         if test "${ac_cv_namereqd+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h.  */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h.  */
5624 #include <netdb.h>
5625 #ifdef NI_NOFQDN
5626 yes
5627 #endif
5628 _ACEOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630   $EGREP "yes" >/dev/null 2>&1; then
5631   ac_cv_namereqd=yes
5632 else
5633   ac_cv_namereqd=no
5634 fi
5635 rm -f -r conftest*
5636
5637 fi
5638
5639         { echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5640 echo "${ECHO_T}$ac_cv_namereqd" >&6; }
5641         if test $ac_cv_namereqd != yes; then
5642                 cat >>confdefs.h <<\_ACEOF
5643 #define NEED_ADDRINFO_H 1
5644 _ACEOF
5645
5646         fi
5647
5648 if test "$ac_cv_namereqd" = no; then
5649         missing_includes=yes
5650 fi
5651
5652
5653         { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5654 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
5655         if test "${ac_cv_sa_storage+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664
5665 #               include <sys/types.h>
5666 #               include <sys/socket.h>
5667 int
5668 main ()
5669 {
5670 struct sockaddr_storage s
5671   ;
5672   return 0;
5673 }
5674 _ACEOF
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5677 case "(($ac_try" in
5678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679   *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682   (eval "$ac_compile") 2>conftest.er1
5683   ac_status=$?
5684   grep -v '^ *+' conftest.er1 >conftest.err
5685   rm -f conftest.er1
5686   cat conftest.err >&5
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); } && {
5689          test -z "$ac_c_werror_flag" ||
5690          test ! -s conftest.err
5691        } && test -s conftest.$ac_objext; then
5692   ac_cv_sa_storage=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697         ac_cv_sa_storage=no
5698 fi
5699
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 fi
5702
5703         { echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5704 echo "${ECHO_T}$ac_cv_sa_storage" >&6; }
5705         if test $ac_cv_sa_storage = yes; then
5706                 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_SOCKADDR_STORAGE 1
5708 _ACEOF
5709
5710         fi
5711
5712 if test "$ac_cv_sa_storage" = no; then
5713         missing_includes=yes
5714 fi
5715
5716
5717
5718
5719
5720
5721
5722 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
5723 do
5724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5738 #define $ac_func innocuous_$ac_func
5739
5740 /* System header to define __stub macros and hopefully few prototypes,
5741     which can conflict with char $ac_func (); below.
5742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5743     <limits.h> exists even on freestanding compilers.  */
5744
5745 #ifdef __STDC__
5746 # include <limits.h>
5747 #else
5748 # include <assert.h>
5749 #endif
5750
5751 #undef $ac_func
5752
5753 /* Override any GCC internal prototype to avoid an error.
5754    Use char because int might match the return type of a GCC
5755    builtin and then its argument prototype would still apply.  */
5756 #ifdef __cplusplus
5757 extern "C"
5758 #endif
5759 char $ac_func ();
5760 /* The GNU C library defines this for functions which it implements
5761     to always fail with ENOSYS.  Some functions are actually named
5762     something starting with __ and the normal name is an alias.  */
5763 #if defined __stub_$ac_func || defined __stub___$ac_func
5764 choke me
5765 #endif
5766
5767 int
5768 main ()
5769 {
5770 return $ac_func ();
5771   ;
5772   return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext conftest$ac_exeext
5776 if { (ac_try="$ac_link"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_link") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } && {
5789          test -z "$ac_c_werror_flag" ||
5790          test ! -s conftest.err
5791        } && test -s conftest$ac_exeext &&
5792        $as_test_x conftest$ac_exeext; then
5793   eval "$as_ac_var=yes"
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798         eval "$as_ac_var=no"
5799 fi
5800
5801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5802       conftest$ac_exeext conftest.$ac_ext
5803 fi
5804 ac_res=`eval echo '${'$as_ac_var'}'`
5805                { echo "$as_me:$LINENO: result: $ac_res" >&5
5806 echo "${ECHO_T}$ac_res" >&6; }
5807 if test `eval echo '${'$as_ac_var'}'` = yes; then
5808   cat >>confdefs.h <<_ACEOF
5809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5810 _ACEOF
5811
5812 else
5813   case " $LIBOBJS " in
5814   *" $ac_func.$ac_objext "* ) ;;
5815   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5816  ;;
5817 esac
5818
5819 fi
5820 done
5821
5822
5823
5824
5825
5826 for ac_func in fork vfork strftime
5827 do
5828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5842 #define $ac_func innocuous_$ac_func
5843
5844 /* System header to define __stub macros and hopefully few prototypes,
5845     which can conflict with char $ac_func (); below.
5846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847     <limits.h> exists even on freestanding compilers.  */
5848
5849 #ifdef __STDC__
5850 # include <limits.h>
5851 #else
5852 # include <assert.h>
5853 #endif
5854
5855 #undef $ac_func
5856
5857 /* Override any GCC internal prototype to avoid an error.
5858    Use char because int might match the return type of a GCC
5859    builtin and then its argument prototype would still apply.  */
5860 #ifdef __cplusplus
5861 extern "C"
5862 #endif
5863 char $ac_func ();
5864 /* The GNU C library defines this for functions which it implements
5865     to always fail with ENOSYS.  Some functions are actually named
5866     something starting with __ and the normal name is an alias.  */
5867 #if defined __stub_$ac_func || defined __stub___$ac_func
5868 choke me
5869 #endif
5870
5871 int
5872 main ()
5873 {
5874 return $ac_func ();
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (ac_try="$ac_link"
5881 case "(($ac_try" in
5882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883   *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886   (eval "$ac_link") 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } && {
5893          test -z "$ac_c_werror_flag" ||
5894          test ! -s conftest.err
5895        } && test -s conftest$ac_exeext &&
5896        $as_test_x conftest$ac_exeext; then
5897   eval "$as_ac_var=yes"
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902         eval "$as_ac_var=no"
5903 fi
5904
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906       conftest$ac_exeext conftest.$ac_ext
5907 fi
5908 ac_res=`eval echo '${'$as_ac_var'}'`
5909                { echo "$as_me:$LINENO: result: $ac_res" >&5
5910 echo "${ECHO_T}$ac_res" >&6; }
5911 if test `eval echo '${'$as_ac_var'}'` = yes; then
5912   cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5914 _ACEOF
5915
5916 fi
5917 done
5918
5919
5920
5921 for ac_func in setlinebuf alarm
5922 do
5923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5937 #define $ac_func innocuous_$ac_func
5938
5939 /* System header to define __stub macros and hopefully few prototypes,
5940     which can conflict with char $ac_func (); below.
5941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5942     <limits.h> exists even on freestanding compilers.  */
5943
5944 #ifdef __STDC__
5945 # include <limits.h>
5946 #else
5947 # include <assert.h>
5948 #endif
5949
5950 #undef $ac_func
5951
5952 /* Override any GCC internal prototype to avoid an error.
5953    Use char because int might match the return type of a GCC
5954    builtin and then its argument prototype would still apply.  */
5955 #ifdef __cplusplus
5956 extern "C"
5957 #endif
5958 char $ac_func ();
5959 /* The GNU C library defines this for functions which it implements
5960     to always fail with ENOSYS.  Some functions are actually named
5961     something starting with __ and the normal name is an alias.  */
5962 #if defined __stub_$ac_func || defined __stub___$ac_func
5963 choke me
5964 #endif
5965
5966 int
5967 main ()
5968 {
5969 return $ac_func ();
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_link") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } && {
5988          test -z "$ac_c_werror_flag" ||
5989          test ! -s conftest.err
5990        } && test -s conftest$ac_exeext &&
5991        $as_test_x conftest$ac_exeext; then
5992   eval "$as_ac_var=yes"
5993 else
5994   echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997         eval "$as_ac_var=no"
5998 fi
5999
6000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6001       conftest$ac_exeext conftest.$ac_ext
6002 fi
6003 ac_res=`eval echo '${'$as_ac_var'}'`
6004                { echo "$as_me:$LINENO: result: $ac_res" >&5
6005 echo "${ECHO_T}$ac_res" >&6; }
6006 if test `eval echo '${'$as_ac_var'}'` = yes; then
6007   cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6009 _ACEOF
6010
6011 fi
6012 done
6013
6014
6015 needsnprintf=no
6016
6017
6018 for ac_func in vsnprintf snprintf
6019 do
6020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6034 #define $ac_func innocuous_$ac_func
6035
6036 /* System header to define __stub macros and hopefully few prototypes,
6037     which can conflict with char $ac_func (); below.
6038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039     <limits.h> exists even on freestanding compilers.  */
6040
6041 #ifdef __STDC__
6042 # include <limits.h>
6043 #else
6044 # include <assert.h>
6045 #endif
6046
6047 #undef $ac_func
6048
6049 /* Override any GCC internal prototype to avoid an error.
6050    Use char because int might match the return type of a GCC
6051    builtin and then its argument prototype would still apply.  */
6052 #ifdef __cplusplus
6053 extern "C"
6054 #endif
6055 char $ac_func ();
6056 /* The GNU C library defines this for functions which it implements
6057     to always fail with ENOSYS.  Some functions are actually named
6058     something starting with __ and the normal name is an alias.  */
6059 #if defined __stub_$ac_func || defined __stub___$ac_func
6060 choke me
6061 #endif
6062
6063 int
6064 main ()
6065 {
6066 return $ac_func ();
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext 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>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && {
6085          test -z "$ac_c_werror_flag" ||
6086          test ! -s conftest.err
6087        } && test -s conftest$ac_exeext &&
6088        $as_test_x conftest$ac_exeext; then
6089   eval "$as_ac_var=yes"
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094         eval "$as_ac_var=no"
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098       conftest$ac_exeext conftest.$ac_ext
6099 fi
6100 ac_res=`eval echo '${'$as_ac_var'}'`
6101                { echo "$as_me:$LINENO: result: $ac_res" >&5
6102 echo "${ECHO_T}$ac_res" >&6; }
6103 if test `eval echo '${'$as_ac_var'}'` = yes; then
6104   cat >>confdefs.h <<_ACEOF
6105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6106 _ACEOF
6107
6108 else
6109   needsnprintf=yes
6110 fi
6111 done
6112
6113 if test $needsnprintf = yes; then
6114         case " $LIBOBJS " in
6115   *" snprintf.$ac_objext "* ) ;;
6116   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
6117  ;;
6118 esac
6119
6120 fi
6121
6122
6123     { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6124 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6125 if test "${ac_cv_type_signal+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134 #include <sys/types.h>
6135 #include <signal.h>
6136
6137 int
6138 main ()
6139 {
6140 return *(signal (0, 0)) (0) == 1;
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6147 case "(($ac_try" in
6148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149   *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152   (eval "$ac_compile") 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } && {
6159          test -z "$ac_c_werror_flag" ||
6160          test ! -s conftest.err
6161        } && test -s conftest.$ac_objext; then
6162   ac_cv_type_signal=int
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167         ac_cv_type_signal=void
6168 fi
6169
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6173 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6174
6175 cat >>confdefs.h <<_ACEOF
6176 #define RETSIGTYPE $ac_cv_type_signal
6177 _ACEOF
6178
6179
6180     if test "$ac_cv_type_signal" = void ; then
6181
6182 cat >>confdefs.h <<\_ACEOF
6183 #define RETSIGVAL
6184 _ACEOF
6185
6186     else
6187
6188 cat >>confdefs.h <<\_ACEOF
6189 #define RETSIGVAL (0)
6190 _ACEOF
6191
6192     fi
6193     case "$host_os" in
6194
6195     irix*)
6196
6197 cat >>confdefs.h <<\_ACEOF
6198 #define _BSD_SIGNALS 1
6199 _ACEOF
6200
6201             ;;
6202
6203     *)
6204
6205 for ac_func in sigaction
6206 do
6207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6221 #define $ac_func innocuous_$ac_func
6222
6223 /* System header to define __stub macros and hopefully few prototypes,
6224     which can conflict with char $ac_func (); below.
6225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226     <limits.h> exists even on freestanding compilers.  */
6227
6228 #ifdef __STDC__
6229 # include <limits.h>
6230 #else
6231 # include <assert.h>
6232 #endif
6233
6234 #undef $ac_func
6235
6236 /* Override any GCC internal prototype to avoid an error.
6237    Use char because int might match the return type of a GCC
6238    builtin and then its argument prototype would still apply.  */
6239 #ifdef __cplusplus
6240 extern "C"
6241 #endif
6242 char $ac_func ();
6243 /* The GNU C library defines this for functions which it implements
6244     to always fail with ENOSYS.  Some functions are actually named
6245     something starting with __ and the normal name is an alias.  */
6246 #if defined __stub_$ac_func || defined __stub___$ac_func
6247 choke me
6248 #endif
6249
6250 int
6251 main ()
6252 {
6253 return $ac_func ();
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (ac_try="$ac_link"
6260 case "(($ac_try" in
6261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262   *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265   (eval "$ac_link") 2>conftest.er1
6266   ac_status=$?
6267   grep -v '^ *+' conftest.er1 >conftest.err
6268   rm -f conftest.er1
6269   cat conftest.err >&5
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } && {
6272          test -z "$ac_c_werror_flag" ||
6273          test ! -s conftest.err
6274        } && test -s conftest$ac_exeext &&
6275        $as_test_x conftest$ac_exeext; then
6276   eval "$as_ac_var=yes"
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281         eval "$as_ac_var=no"
6282 fi
6283
6284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6285       conftest$ac_exeext conftest.$ac_ext
6286 fi
6287 ac_res=`eval echo '${'$as_ac_var'}'`
6288                { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6290 if test `eval echo '${'$as_ac_var'}'` = yes; then
6291   cat >>confdefs.h <<_ACEOF
6292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6293 _ACEOF
6294
6295 fi
6296 done
6297
6298             if test $ac_cv_func_sigaction = no ; then
6299
6300 for ac_func in sigset
6301 do
6302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6316 #define $ac_func innocuous_$ac_func
6317
6318 /* System header to define __stub macros and hopefully few prototypes,
6319     which can conflict with char $ac_func (); below.
6320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6321     <limits.h> exists even on freestanding compilers.  */
6322
6323 #ifdef __STDC__
6324 # include <limits.h>
6325 #else
6326 # include <assert.h>
6327 #endif
6328
6329 #undef $ac_func
6330
6331 /* Override any GCC internal prototype to avoid an error.
6332    Use char because int might match the return type of a GCC
6333    builtin and then its argument prototype would still apply.  */
6334 #ifdef __cplusplus
6335 extern "C"
6336 #endif
6337 char $ac_func ();
6338 /* The GNU C library defines this for functions which it implements
6339     to always fail with ENOSYS.  Some functions are actually named
6340     something starting with __ and the normal name is an alias.  */
6341 #if defined __stub_$ac_func || defined __stub___$ac_func
6342 choke me
6343 #endif
6344
6345 int
6346 main ()
6347 {
6348 return $ac_func ();
6349   ;
6350   return 0;
6351 }
6352 _ACEOF
6353 rm -f conftest.$ac_objext conftest$ac_exeext
6354 if { (ac_try="$ac_link"
6355 case "(($ac_try" in
6356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357   *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360   (eval "$ac_link") 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } && {
6367          test -z "$ac_c_werror_flag" ||
6368          test ! -s conftest.err
6369        } && test -s conftest$ac_exeext &&
6370        $as_test_x conftest$ac_exeext; then
6371   eval "$as_ac_var=yes"
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376         eval "$as_ac_var=no"
6377 fi
6378
6379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6380       conftest$ac_exeext conftest.$ac_ext
6381 fi
6382 ac_res=`eval echo '${'$as_ac_var'}'`
6383                { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6385 if test `eval echo '${'$as_ac_var'}'` = yes; then
6386   cat >>confdefs.h <<_ACEOF
6387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6388 _ACEOF
6389
6390 fi
6391 done
6392
6393             fi
6394             ;;
6395     esac
6396
6397 { echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
6398 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6; }
6399 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   ac_func_search_save_LIBS=$LIBS
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409
6410 /* Override any GCC internal prototype to avoid an error.
6411    Use char because int might match the return type of a GCC
6412    builtin and then its argument prototype would still apply.  */
6413 #ifdef __cplusplus
6414 extern "C"
6415 #endif
6416 char dnet_htoa ();
6417 int
6418 main ()
6419 {
6420 return dnet_htoa ();
6421   ;
6422   return 0;
6423 }
6424 _ACEOF
6425 for ac_lib in '' dnet; do
6426   if test -z "$ac_lib"; then
6427     ac_res="none required"
6428   else
6429     ac_res=-l$ac_lib
6430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6431   fi
6432   rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (ac_try="$ac_link"
6434 case "(($ac_try" in
6435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436   *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439   (eval "$ac_link") 2>conftest.er1
6440   ac_status=$?
6441   grep -v '^ *+' conftest.er1 >conftest.err
6442   rm -f conftest.er1
6443   cat conftest.err >&5
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); } && {
6446          test -z "$ac_c_werror_flag" ||
6447          test ! -s conftest.err
6448        } && test -s conftest$ac_exeext &&
6449        $as_test_x conftest$ac_exeext; then
6450   ac_cv_search_dnet_htoa=$ac_res
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455
6456 fi
6457
6458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6459       conftest$ac_exeext
6460   if test "${ac_cv_search_dnet_htoa+set}" = set; then
6461   break
6462 fi
6463 done
6464 if test "${ac_cv_search_dnet_htoa+set}" = set; then
6465   :
6466 else
6467   ac_cv_search_dnet_htoa=no
6468 fi
6469 rm conftest.$ac_ext
6470 LIBS=$ac_func_search_save_LIBS
6471 fi
6472 { echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
6473 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6; }
6474 ac_res=$ac_cv_search_dnet_htoa
6475 if test "$ac_res" != no; then
6476   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6477   cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_DNET_HTOA 1
6479 _ACEOF
6480
6481 fi
6482
6483
6484
6485 { echo "$as_me:$LINENO: checking for main in -lrpc" >&5
6486 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6; }
6487 if test "${ac_cv_lib_rpc_main+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   ac_check_lib_save_LIBS=$LIBS
6491 LIBS="-lrpc  $LIBS"
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498
6499
6500 int
6501 main ()
6502 {
6503 return main ();
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6510 case "(($ac_try" in
6511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512   *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515   (eval "$ac_link") 2>conftest.er1
6516   ac_status=$?
6517   grep -v '^ *+' conftest.er1 >conftest.err
6518   rm -f conftest.er1
6519   cat conftest.err >&5
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); } && {
6522          test -z "$ac_c_werror_flag" ||
6523          test ! -s conftest.err
6524        } && test -s conftest$ac_exeext &&
6525        $as_test_x conftest$ac_exeext; then
6526   ac_cv_lib_rpc_main=yes
6527 else
6528   echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531         ac_cv_lib_rpc_main=no
6532 fi
6533
6534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6535       conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6537 fi
6538 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
6539 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6; }
6540 if test $ac_cv_lib_rpc_main = yes; then
6541   cat >>confdefs.h <<_ACEOF
6542 #define HAVE_LIBRPC 1
6543 _ACEOF
6544
6545   LIBS="-lrpc $LIBS"
6546
6547 fi
6548
6549 { echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
6550 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6; }
6551 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6552   echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554   ac_func_search_save_LIBS=$LIBS
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h.  */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h.  */
6561
6562 /* Override any GCC internal prototype to avoid an error.
6563    Use char because int might match the return type of a GCC
6564    builtin and then its argument prototype would still apply.  */
6565 #ifdef __cplusplus
6566 extern "C"
6567 #endif
6568 char getrpcbynumber ();
6569 int
6570 main ()
6571 {
6572 return getrpcbynumber ();
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 for ac_lib in '' nsl; do
6578   if test -z "$ac_lib"; then
6579     ac_res="none required"
6580   else
6581     ac_res=-l$ac_lib
6582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6583   fi
6584   rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (ac_try="$ac_link"
6586 case "(($ac_try" in
6587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588   *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591   (eval "$ac_link") 2>conftest.er1
6592   ac_status=$?
6593   grep -v '^ *+' conftest.er1 >conftest.err
6594   rm -f conftest.er1
6595   cat conftest.err >&5
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } && {
6598          test -z "$ac_c_werror_flag" ||
6599          test ! -s conftest.err
6600        } && test -s conftest$ac_exeext &&
6601        $as_test_x conftest$ac_exeext; then
6602   ac_cv_search_getrpcbynumber=$ac_res
6603 else
6604   echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607
6608 fi
6609
6610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6611       conftest$ac_exeext
6612   if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6613   break
6614 fi
6615 done
6616 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
6617   :
6618 else
6619   ac_cv_search_getrpcbynumber=no
6620 fi
6621 rm conftest.$ac_ext
6622 LIBS=$ac_func_search_save_LIBS
6623 fi
6624 { echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
6625 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6; }
6626 ac_res=$ac_cv_search_getrpcbynumber
6627 if test "$ac_res" != no; then
6628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6629   cat >>confdefs.h <<\_ACEOF
6630 #define HAVE_GETRPCBYNUMBER 1
6631 _ACEOF
6632
6633 fi
6634
6635
6636
6637
6638     # Most operating systems have gethostbyname() in the default searched
6639     # libraries (i.e. libc):
6640     # Some OSes (eg. Solaris) place it in libnsl
6641     # Some strange OSes (SINIX) have it in libsocket:
6642     { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6643 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6644 if test "${ac_cv_search_gethostbyname+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   ac_func_search_save_LIBS=$LIBS
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654
6655 /* Override any GCC internal prototype to avoid an error.
6656    Use char because int might match the return type of a GCC
6657    builtin and then its argument prototype would still apply.  */
6658 #ifdef __cplusplus
6659 extern "C"
6660 #endif
6661 char gethostbyname ();
6662 int
6663 main ()
6664 {
6665 return gethostbyname ();
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 for ac_lib in '' nsl socket resolv; do
6671   if test -z "$ac_lib"; then
6672     ac_res="none required"
6673   else
6674     ac_res=-l$ac_lib
6675     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6676   fi
6677   rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (ac_try="$ac_link"
6679 case "(($ac_try" in
6680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681   *) ac_try_echo=$ac_try;;
6682 esac
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684   (eval "$ac_link") 2>conftest.er1
6685   ac_status=$?
6686   grep -v '^ *+' conftest.er1 >conftest.err
6687   rm -f conftest.er1
6688   cat conftest.err >&5
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); } && {
6691          test -z "$ac_c_werror_flag" ||
6692          test ! -s conftest.err
6693        } && test -s conftest$ac_exeext &&
6694        $as_test_x conftest$ac_exeext; then
6695   ac_cv_search_gethostbyname=$ac_res
6696 else
6697   echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700
6701 fi
6702
6703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6704       conftest$ac_exeext
6705   if test "${ac_cv_search_gethostbyname+set}" = set; then
6706   break
6707 fi
6708 done
6709 if test "${ac_cv_search_gethostbyname+set}" = set; then
6710   :
6711 else
6712   ac_cv_search_gethostbyname=no
6713 fi
6714 rm conftest.$ac_ext
6715 LIBS=$ac_func_search_save_LIBS
6716 fi
6717 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6718 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6719 ac_res=$ac_cv_search_gethostbyname
6720 if test "$ac_res" != no; then
6721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6722
6723 fi
6724
6725     # Unfortunately libsocket sometimes depends on libnsl and
6726     # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
6727     if test "$ac_cv_search_gethostbyname" = "no"
6728     then
6729         { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
6730 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
6731 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   ac_check_lib_save_LIBS=$LIBS
6735 LIBS="-lsocket -lnsl $LIBS"
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742
6743 /* Override any GCC internal prototype to avoid an error.
6744    Use char because int might match the return type of a GCC
6745    builtin and then its argument prototype would still apply.  */
6746 #ifdef __cplusplus
6747 extern "C"
6748 #endif
6749 char gethostbyname ();
6750 int
6751 main ()
6752 {
6753 return gethostbyname ();
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext conftest$ac_exeext
6759 if { (ac_try="$ac_link"
6760 case "(($ac_try" in
6761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762   *) ac_try_echo=$ac_try;;
6763 esac
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765   (eval "$ac_link") 2>conftest.er1
6766   ac_status=$?
6767   grep -v '^ *+' conftest.er1 >conftest.err
6768   rm -f conftest.er1
6769   cat conftest.err >&5
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } && {
6772          test -z "$ac_c_werror_flag" ||
6773          test ! -s conftest.err
6774        } && test -s conftest$ac_exeext &&
6775        $as_test_x conftest$ac_exeext; then
6776   ac_cv_lib_socket_gethostbyname=yes
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781         ac_cv_lib_socket_gethostbyname=no
6782 fi
6783
6784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6785       conftest$ac_exeext conftest.$ac_ext
6786 LIBS=$ac_check_lib_save_LIBS
6787 fi
6788 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
6789 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
6790 if test $ac_cv_lib_socket_gethostbyname = yes; then
6791   LIBS="-lsocket -lnsl $LIBS"
6792 fi
6793
6794     fi
6795     { echo "$as_me:$LINENO: checking for library containing socket" >&5
6796 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6797 if test "${ac_cv_search_socket+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   ac_func_search_save_LIBS=$LIBS
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807
6808 /* Override any GCC internal prototype to avoid an error.
6809    Use char because int might match the return type of a GCC
6810    builtin and then its argument prototype would still apply.  */
6811 #ifdef __cplusplus
6812 extern "C"
6813 #endif
6814 char socket ();
6815 int
6816 main ()
6817 {
6818 return socket ();
6819   ;
6820   return 0;
6821 }
6822 _ACEOF
6823 for ac_lib in '' socket; do
6824   if test -z "$ac_lib"; then
6825     ac_res="none required"
6826   else
6827     ac_res=-l$ac_lib
6828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6829   fi
6830   rm -f conftest.$ac_objext conftest$ac_exeext
6831 if { (ac_try="$ac_link"
6832 case "(($ac_try" in
6833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834   *) ac_try_echo=$ac_try;;
6835 esac
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837   (eval "$ac_link") 2>conftest.er1
6838   ac_status=$?
6839   grep -v '^ *+' conftest.er1 >conftest.err
6840   rm -f conftest.er1
6841   cat conftest.err >&5
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } && {
6844          test -z "$ac_c_werror_flag" ||
6845          test ! -s conftest.err
6846        } && test -s conftest$ac_exeext &&
6847        $as_test_x conftest$ac_exeext; then
6848   ac_cv_search_socket=$ac_res
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853
6854 fi
6855
6856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6857       conftest$ac_exeext
6858   if test "${ac_cv_search_socket+set}" = set; then
6859   break
6860 fi
6861 done
6862 if test "${ac_cv_search_socket+set}" = set; then
6863   :
6864 else
6865   ac_cv_search_socket=no
6866 fi
6867 rm conftest.$ac_ext
6868 LIBS=$ac_func_search_save_LIBS
6869 fi
6870 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6871 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6872 ac_res=$ac_cv_search_socket
6873 if test "$ac_res" != no; then
6874   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6875
6876 else
6877   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6878 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
6879 if test "${ac_cv_lib_socket_socket+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   ac_check_lib_save_LIBS=$LIBS
6883 LIBS="-lsocket -lnsl $LIBS"
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h.  */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h.  */
6890
6891 /* Override any GCC internal prototype to avoid an error.
6892    Use char because int might match the return type of a GCC
6893    builtin and then its argument prototype would still apply.  */
6894 #ifdef __cplusplus
6895 extern "C"
6896 #endif
6897 char socket ();
6898 int
6899 main ()
6900 {
6901 return socket ();
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext conftest$ac_exeext
6907 if { (ac_try="$ac_link"
6908 case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913   (eval "$ac_link") 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } && {
6920          test -z "$ac_c_werror_flag" ||
6921          test ! -s conftest.err
6922        } && test -s conftest$ac_exeext &&
6923        $as_test_x conftest$ac_exeext; then
6924   ac_cv_lib_socket_socket=yes
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929         ac_cv_lib_socket_socket=no
6930 fi
6931
6932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6933       conftest$ac_exeext conftest.$ac_ext
6934 LIBS=$ac_check_lib_save_LIBS
6935 fi
6936 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6937 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6938 if test $ac_cv_lib_socket_socket = yes; then
6939   LIBS="-lsocket -lnsl $LIBS"
6940 fi
6941
6942 fi
6943
6944     # DLPI needs putmsg under HPUX so test for -lstr while we're at it
6945     { echo "$as_me:$LINENO: checking for library containing putmsg" >&5
6946 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6; }
6947 if test "${ac_cv_search_putmsg+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   ac_func_search_save_LIBS=$LIBS
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957
6958 /* Override any GCC internal prototype to avoid an error.
6959    Use char because int might match the return type of a GCC
6960    builtin and then its argument prototype would still apply.  */
6961 #ifdef __cplusplus
6962 extern "C"
6963 #endif
6964 char putmsg ();
6965 int
6966 main ()
6967 {
6968 return putmsg ();
6969   ;
6970   return 0;
6971 }
6972 _ACEOF
6973 for ac_lib in '' str; do
6974   if test -z "$ac_lib"; then
6975     ac_res="none required"
6976   else
6977     ac_res=-l$ac_lib
6978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6979   fi
6980   rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6982 case "(($ac_try" in
6983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984   *) ac_try_echo=$ac_try;;
6985 esac
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987   (eval "$ac_link") 2>conftest.er1
6988   ac_status=$?
6989   grep -v '^ *+' conftest.er1 >conftest.err
6990   rm -f conftest.er1
6991   cat conftest.err >&5
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } && {
6994          test -z "$ac_c_werror_flag" ||
6995          test ! -s conftest.err
6996        } && test -s conftest$ac_exeext &&
6997        $as_test_x conftest$ac_exeext; then
6998   ac_cv_search_putmsg=$ac_res
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003
7004 fi
7005
7006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7007       conftest$ac_exeext
7008   if test "${ac_cv_search_putmsg+set}" = set; then
7009   break
7010 fi
7011 done
7012 if test "${ac_cv_search_putmsg+set}" = set; then
7013   :
7014 else
7015   ac_cv_search_putmsg=no
7016 fi
7017 rm conftest.$ac_ext
7018 LIBS=$ac_func_search_save_LIBS
7019 fi
7020 { echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7021 echo "${ECHO_T}$ac_cv_search_putmsg" >&6; }
7022 ac_res=$ac_cv_search_putmsg
7023 if test "$ac_res" != no; then
7024   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7025
7026 fi
7027
7028
7029
7030                 LBL_LIBS="$LIBS"
7031     pfopen=/usr/examples/packetfilter/pfopen.c
7032     if test -f $pfopen ; then
7033
7034 for ac_func in pfopen
7035 do
7036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042   cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7050 #define $ac_func innocuous_$ac_func
7051
7052 /* System header to define __stub macros and hopefully few prototypes,
7053     which can conflict with char $ac_func (); below.
7054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7055     <limits.h> exists even on freestanding compilers.  */
7056
7057 #ifdef __STDC__
7058 # include <limits.h>
7059 #else
7060 # include <assert.h>
7061 #endif
7062
7063 #undef $ac_func
7064
7065 /* Override any GCC internal prototype to avoid an error.
7066    Use char because int might match the return type of a GCC
7067    builtin and then its argument prototype would still apply.  */
7068 #ifdef __cplusplus
7069 extern "C"
7070 #endif
7071 char $ac_func ();
7072 /* The GNU C library defines this for functions which it implements
7073     to always fail with ENOSYS.  Some functions are actually named
7074     something starting with __ and the normal name is an alias.  */
7075 #if defined __stub_$ac_func || defined __stub___$ac_func
7076 choke me
7077 #endif
7078
7079 int
7080 main ()
7081 {
7082 return $ac_func ();
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7089 case "(($ac_try" in
7090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091   *) ac_try_echo=$ac_try;;
7092 esac
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094   (eval "$ac_link") 2>conftest.er1
7095   ac_status=$?
7096   grep -v '^ *+' conftest.er1 >conftest.err
7097   rm -f conftest.er1
7098   cat conftest.err >&5
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); } && {
7101          test -z "$ac_c_werror_flag" ||
7102          test ! -s conftest.err
7103        } && test -s conftest$ac_exeext &&
7104        $as_test_x conftest$ac_exeext; then
7105   eval "$as_ac_var=yes"
7106 else
7107   echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110         eval "$as_ac_var=no"
7111 fi
7112
7113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7114       conftest$ac_exeext conftest.$ac_ext
7115 fi
7116 ac_res=`eval echo '${'$as_ac_var'}'`
7117                { echo "$as_me:$LINENO: result: $ac_res" >&5
7118 echo "${ECHO_T}$ac_res" >&6; }
7119 if test `eval echo '${'$as_ac_var'}'` = yes; then
7120   cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7122 _ACEOF
7123
7124 fi
7125 done
7126
7127             if test $ac_cv_func_pfopen = "no" ; then
7128                     { echo "$as_me:$LINENO: result: Using $pfopen" >&5
7129 echo "${ECHO_T}Using $pfopen" >&6; }
7130                     LIBS="$LIBS $pfopen"
7131             fi
7132     fi
7133     { echo "$as_me:$LINENO: checking for local pcap library" >&5
7134 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6; }
7135     libpcap=FAIL
7136     lastdir=FAIL
7137     places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7138         egrep '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT)?$'`
7139     for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7140             basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \
7141                 sed -e 's/-PRE-GIT$//' `
7142             if test $lastdir = $basedir ; then
7143                                     continue;
7144             fi
7145             lastdir=$dir
7146             if test -r $dir/libpcap.a ; then
7147                     libpcap=$dir/libpcap.a
7148                     d=$dir
7149                             fi
7150     done
7151     if test $libpcap = FAIL ; then
7152             { echo "$as_me:$LINENO: result: not found" >&5
7153 echo "${ECHO_T}not found" >&6; }
7154
7155             #
7156             # Look for pcap-config.
7157             #
7158             if test -n "$ac_tool_prefix"; then
7159   # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   case $PCAP_CONFIG in
7167   [\\/]* | ?:[\\/]*)
7168   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7169   ;;
7170   *)
7171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176   for ac_exec_ext in '' $ac_executable_extensions; do
7177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178     ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180     break 2
7181   fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186   ;;
7187 esac
7188 fi
7189 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7190 if test -n "$PCAP_CONFIG"; then
7191   { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7192 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7193 else
7194   { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_path_PCAP_CONFIG"; then
7201   ac_pt_PCAP_CONFIG=$PCAP_CONFIG
7202   # Extract the first word of "pcap-config", so it can be a program name with args.
7203 set dummy pcap-config; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_ac_pt_PCAP_CONFIG+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $ac_pt_PCAP_CONFIG in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
7233 if test -n "$ac_pt_PCAP_CONFIG"; then
7234   { echo "$as_me:$LINENO: result: $ac_pt_PCAP_CONFIG" >&5
7235 echo "${ECHO_T}$ac_pt_PCAP_CONFIG" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241   if test "x$ac_pt_PCAP_CONFIG" = x; then
7242     PCAP_CONFIG=""
7243   else
7244     case $cross_compiling:$ac_tool_warned in
7245 yes:)
7246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7247 whose name does not start with the host triplet.  If you think this
7248 configuration is useful to you, please write to autoconf@gnu.org." >&5
7249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7250 whose name does not start with the host triplet.  If you think this
7251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7252 ac_tool_warned=yes ;;
7253 esac
7254     PCAP_CONFIG=$ac_pt_PCAP_CONFIG
7255   fi
7256 else
7257   PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
7258 fi
7259
7260             if test -n "$PCAP_CONFIG" ; then
7261                 #
7262                 # Found - use it to get the include flags for
7263                 # libpcap and the flags to link with libpcap.
7264                 #
7265                 # Please read section 11.6 "Shell Substitutions"
7266                 # in the autoconf manual before doing anything
7267                 # to this that involves quoting.  Especially note
7268                 # the statement "There is just no portable way to use
7269                 # double-quoted strings inside double-quoted back-quoted
7270                 # expressions (pfew!)."
7271                 #
7272                 cflags=`"$PCAP_CONFIG" --cflags`
7273                 V_INCLS="$cflags $V_INCLS"
7274                 libpcap=`"$PCAP_CONFIG" --libs`
7275             else
7276                 #
7277                 # Not found; look for pcap.
7278                 #
7279                 { echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7280 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6; }
7281 if test "${ac_cv_lib_pcap_main+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   ac_check_lib_save_LIBS=$LIBS
7285 LIBS="-lpcap  $LIBS"
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292
7293
7294 int
7295 main ()
7296 {
7297 return main ();
7298   ;
7299   return 0;
7300 }
7301 _ACEOF
7302 rm -f conftest.$ac_objext conftest$ac_exeext
7303 if { (ac_try="$ac_link"
7304 case "(($ac_try" in
7305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306   *) ac_try_echo=$ac_try;;
7307 esac
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309   (eval "$ac_link") 2>conftest.er1
7310   ac_status=$?
7311   grep -v '^ *+' conftest.er1 >conftest.err
7312   rm -f conftest.er1
7313   cat conftest.err >&5
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } && {
7316          test -z "$ac_c_werror_flag" ||
7317          test ! -s conftest.err
7318        } && test -s conftest$ac_exeext &&
7319        $as_test_x conftest$ac_exeext; then
7320   ac_cv_lib_pcap_main=yes
7321 else
7322   echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7324
7325         ac_cv_lib_pcap_main=no
7326 fi
7327
7328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7329       conftest$ac_exeext conftest.$ac_ext
7330 LIBS=$ac_check_lib_save_LIBS
7331 fi
7332 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7333 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6; }
7334 if test $ac_cv_lib_pcap_main = yes; then
7335   libpcap="-lpcap"
7336 fi
7337
7338                 if test $libpcap = FAIL ; then
7339                     { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7340 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7341    { (exit 1); exit 1; }; }
7342                 fi
7343                                                                                                                                                                                                                                                                                                                                 { echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7344 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6; }
7345                 if test \( ! -r /usr/local/include/pcap.h \) -a \
7346                         \( ! -r /usr/include/pcap.h \); then
7347                     if test -r /usr/local/include/pcap/pcap.h; then
7348                         d="/usr/local/include/pcap"
7349                     elif test -r /usr/include/pcap/pcap.h; then
7350                         d="/usr/include/pcap"
7351                     fi
7352                 fi
7353                 if test -z "$d" ; then
7354                     { echo "$as_me:$LINENO: result: not found" >&5
7355 echo "${ECHO_T}not found" >&6; }
7356                 else
7357                     V_INCLS="-I$d $V_INCLS"
7358                     { echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7359 echo "${ECHO_T}found -- -I$d added" >&6; }
7360                 fi
7361             fi
7362     else
7363             V_PCAPDEP=$libpcap
7364             places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7365                         egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7366             if test -r $d/pcap.h; then
7367                     V_INCLS="-I$d $V_INCLS"
7368             elif test -r $places/pcap.h; then
7369                     V_INCLS="-I$places $V_INCLS"
7370             else
7371                     { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7372 echo "$as_me: error: cannot find pcap.h" >&2;}
7373    { (exit see INSTALL); exit see INSTALL; }; }
7374             fi
7375             { echo "$as_me:$LINENO: result: $libpcap" >&5
7376 echo "${ECHO_T}$libpcap" >&6; }
7377             # Extract the first word of "pcap-config", so it can be a program name with args.
7378 set dummy pcap-config; ac_word=$2
7379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7381 if test "${ac_cv_path_PCAP_CONFIG+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   case $PCAP_CONFIG in
7385   [\\/]* | ?:[\\/]*)
7386   ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
7387   ;;
7388   *)
7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $d
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396     ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404   ;;
7405 esac
7406 fi
7407 PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
7408 if test -n "$PCAP_CONFIG"; then
7409   { echo "$as_me:$LINENO: result: $PCAP_CONFIG" >&5
7410 echo "${ECHO_T}$PCAP_CONFIG" >&6; }
7411 else
7412   { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7415
7416
7417             if test -n "$PCAP_CONFIG"; then
7418                 #
7419                 # The libpcap directory has a pcap-config script.
7420                 # Use it to get any additioal libraries needed
7421                 # to link with the libpcap archive library in
7422                 # that directory.
7423                 #
7424                 # Please read section 11.6 "Shell Substitutions"
7425                 # in the autoconf manual before doing anything
7426                 # to this that involves quoting.  Especially note
7427                 # the statement "There is just no portable way to use
7428                 # double-quoted strings inside double-quoted back-quoted
7429                 # expressions (pfew!)."
7430                 #
7431                 additional_libs=`"$PCAP_CONFIG" --additional-libs --static`
7432                 libpcap="$libpcap $additional_libs"
7433             fi
7434     fi
7435     LIBS="$libpcap $LIBS"
7436     if ! test -n "$PCAP_CONFIG" ; then
7437         #
7438         # We don't have pcap-config; find out any additional link flags
7439         # we need.  (If we have pcap-config, we assume it tells us what
7440         # we need.)
7441         #
7442         case "$host_os" in
7443
7444         aix*)
7445             #
7446             # If libpcap is DLPI-based, we have to use /lib/pse.exp if
7447             # present, as we use the STREAMS routines.
7448             #
7449             # (XXX - true only if we're linking with a static libpcap?)
7450             #
7451             pseexe="/lib/pse.exp"
7452             { echo "$as_me:$LINENO: checking for $pseexe" >&5
7453 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6; }
7454             if test -f $pseexe ; then
7455                     { echo "$as_me:$LINENO: result: yes" >&5
7456 echo "${ECHO_T}yes" >&6; }
7457                     LIBS="$LIBS -I:$pseexe"
7458             fi
7459
7460             #
7461             # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as
7462             # we use them to load the BPF module.
7463             #
7464             # (XXX - true only if we're linking with a static libpcap?)
7465             #
7466             LIBS="$LIBS -lodm -lcfg"
7467             ;;
7468         esac
7469     fi
7470
7471                                     { echo "$as_me:$LINENO: checking for pcap_loop" >&5
7472 echo $ECHO_N "checking for pcap_loop... $ECHO_C" >&6; }
7473 if test "${ac_cv_func_pcap_loop+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482 /* Define pcap_loop to an innocuous variant, in case <limits.h> declares pcap_loop.
7483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7484 #define pcap_loop innocuous_pcap_loop
7485
7486 /* System header to define __stub macros and hopefully few prototypes,
7487     which can conflict with char pcap_loop (); below.
7488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7489     <limits.h> exists even on freestanding compilers.  */
7490
7491 #ifdef __STDC__
7492 # include <limits.h>
7493 #else
7494 # include <assert.h>
7495 #endif
7496
7497 #undef pcap_loop
7498
7499 /* Override any GCC internal prototype to avoid an error.
7500    Use char because int might match the return type of a GCC
7501    builtin and then its argument prototype would still apply.  */
7502 #ifdef __cplusplus
7503 extern "C"
7504 #endif
7505 char pcap_loop ();
7506 /* The GNU C library defines this for functions which it implements
7507     to always fail with ENOSYS.  Some functions are actually named
7508     something starting with __ and the normal name is an alias.  */
7509 #if defined __stub_pcap_loop || defined __stub___pcap_loop
7510 choke me
7511 #endif
7512
7513 int
7514 main ()
7515 {
7516 return pcap_loop ();
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7523 case "(($ac_try" in
7524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525   *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528   (eval "$ac_link") 2>conftest.er1
7529   ac_status=$?
7530   grep -v '^ *+' conftest.er1 >conftest.err
7531   rm -f conftest.er1
7532   cat conftest.err >&5
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } && {
7535          test -z "$ac_c_werror_flag" ||
7536          test ! -s conftest.err
7537        } && test -s conftest$ac_exeext &&
7538        $as_test_x conftest$ac_exeext; then
7539   ac_cv_func_pcap_loop=yes
7540 else
7541   echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544         ac_cv_func_pcap_loop=no
7545 fi
7546
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548       conftest$ac_exeext conftest.$ac_ext
7549 fi
7550 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_loop" >&5
7551 echo "${ECHO_T}$ac_cv_func_pcap_loop" >&6; }
7552 if test $ac_cv_func_pcap_loop = yes; then
7553   :
7554 else
7555
7556             { { echo "$as_me:$LINENO: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7557 config.log file in your report" >&5
7558 echo "$as_me: error: Report this to tcpdump-workers@lists.tcpdump.org, and include the
7559 config.log file in your report" >&2;}
7560    { (exit 1); exit 1; }; }
7561
7562 fi
7563
7564
7565                         { echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7566 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6; }
7567 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
7577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7578 #define pcap_list_datalinks innocuous_pcap_list_datalinks
7579
7580 /* System header to define __stub macros and hopefully few prototypes,
7581     which can conflict with char pcap_list_datalinks (); below.
7582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583     <limits.h> exists even on freestanding compilers.  */
7584
7585 #ifdef __STDC__
7586 # include <limits.h>
7587 #else
7588 # include <assert.h>
7589 #endif
7590
7591 #undef pcap_list_datalinks
7592
7593 /* Override any GCC internal prototype to avoid an error.
7594    Use char because int might match the return type of a GCC
7595    builtin and then its argument prototype would still apply.  */
7596 #ifdef __cplusplus
7597 extern "C"
7598 #endif
7599 char pcap_list_datalinks ();
7600 /* The GNU C library defines this for functions which it implements
7601     to always fail with ENOSYS.  Some functions are actually named
7602     something starting with __ and the normal name is an alias.  */
7603 #if defined __stub_pcap_list_datalinks || defined __stub___pcap_list_datalinks
7604 choke me
7605 #endif
7606
7607 int
7608 main ()
7609 {
7610 return pcap_list_datalinks ();
7611   ;
7612   return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (ac_try="$ac_link"
7617 case "(($ac_try" in
7618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619   *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622   (eval "$ac_link") 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } && {
7629          test -z "$ac_c_werror_flag" ||
7630          test ! -s conftest.err
7631        } && test -s conftest$ac_exeext &&
7632        $as_test_x conftest$ac_exeext; then
7633   ac_cv_func_pcap_list_datalinks=yes
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638         ac_cv_func_pcap_list_datalinks=no
7639 fi
7640
7641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642       conftest$ac_exeext conftest.$ac_ext
7643 fi
7644 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
7645 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6; }
7646 if test $ac_cv_func_pcap_list_datalinks = yes; then
7647   cat >>confdefs.h <<\_ACEOF
7648 #define HAVE_PCAP_LIST_DATALINKS 1
7649 _ACEOF
7650
7651 else
7652
7653             case " $LIBOBJS " in
7654   *" datalinks.$ac_objext "* ) ;;
7655   *) LIBOBJS="$LIBOBJS datalinks.$ac_objext"
7656  ;;
7657 esac
7658
7659
7660 fi
7661
7662     { echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
7663 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6; }
7664 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h.  */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h.  */
7673 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
7674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7675 #define pcap_set_datalink innocuous_pcap_set_datalink
7676
7677 /* System header to define __stub macros and hopefully few prototypes,
7678     which can conflict with char pcap_set_datalink (); below.
7679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7680     <limits.h> exists even on freestanding compilers.  */
7681
7682 #ifdef __STDC__
7683 # include <limits.h>
7684 #else
7685 # include <assert.h>
7686 #endif
7687
7688 #undef pcap_set_datalink
7689
7690 /* Override any GCC internal prototype to avoid an error.
7691    Use char because int might match the return type of a GCC
7692    builtin and then its argument prototype would still apply.  */
7693 #ifdef __cplusplus
7694 extern "C"
7695 #endif
7696 char pcap_set_datalink ();
7697 /* The GNU C library defines this for functions which it implements
7698     to always fail with ENOSYS.  Some functions are actually named
7699     something starting with __ and the normal name is an alias.  */
7700 #if defined __stub_pcap_set_datalink || defined __stub___pcap_set_datalink
7701 choke me
7702 #endif
7703
7704 int
7705 main ()
7706 {
7707 return pcap_set_datalink ();
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (ac_try="$ac_link"
7714 case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719   (eval "$ac_link") 2>conftest.er1
7720   ac_status=$?
7721   grep -v '^ *+' conftest.er1 >conftest.err
7722   rm -f conftest.er1
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } && {
7726          test -z "$ac_c_werror_flag" ||
7727          test ! -s conftest.err
7728        } && test -s conftest$ac_exeext &&
7729        $as_test_x conftest$ac_exeext; then
7730   ac_cv_func_pcap_set_datalink=yes
7731 else
7732   echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7734
7735         ac_cv_func_pcap_set_datalink=no
7736 fi
7737
7738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7739       conftest$ac_exeext conftest.$ac_ext
7740 fi
7741 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
7742 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6; }
7743 if test $ac_cv_func_pcap_set_datalink = yes; then
7744   cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_PCAP_SET_DATALINK 1
7746 _ACEOF
7747
7748 fi
7749
7750     { echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
7751 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6; }
7752 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
7753   echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755   cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
7762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7763 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
7764
7765 /* System header to define __stub macros and hopefully few prototypes,
7766     which can conflict with char pcap_datalink_name_to_val (); below.
7767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7768     <limits.h> exists even on freestanding compilers.  */
7769
7770 #ifdef __STDC__
7771 # include <limits.h>
7772 #else
7773 # include <assert.h>
7774 #endif
7775
7776 #undef pcap_datalink_name_to_val
7777
7778 /* Override any GCC internal prototype to avoid an error.
7779    Use char because int might match the return type of a GCC
7780    builtin and then its argument prototype would still apply.  */
7781 #ifdef __cplusplus
7782 extern "C"
7783 #endif
7784 char pcap_datalink_name_to_val ();
7785 /* The GNU C library defines this for functions which it implements
7786     to always fail with ENOSYS.  Some functions are actually named
7787     something starting with __ and the normal name is an alias.  */
7788 #if defined __stub_pcap_datalink_name_to_val || defined __stub___pcap_datalink_name_to_val
7789 choke me
7790 #endif
7791
7792 int
7793 main ()
7794 {
7795 return pcap_datalink_name_to_val ();
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest.$ac_objext conftest$ac_exeext
7801 if { (ac_try="$ac_link"
7802 case "(($ac_try" in
7803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804   *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807   (eval "$ac_link") 2>conftest.er1
7808   ac_status=$?
7809   grep -v '^ *+' conftest.er1 >conftest.err
7810   rm -f conftest.er1
7811   cat conftest.err >&5
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); } && {
7814          test -z "$ac_c_werror_flag" ||
7815          test ! -s conftest.err
7816        } && test -s conftest$ac_exeext &&
7817        $as_test_x conftest$ac_exeext; then
7818   ac_cv_func_pcap_datalink_name_to_val=yes
7819 else
7820   echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823         ac_cv_func_pcap_datalink_name_to_val=no
7824 fi
7825
7826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7827       conftest$ac_exeext conftest.$ac_ext
7828 fi
7829 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
7830 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6; }
7831 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
7832
7833             cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
7835 _ACEOF
7836
7837             { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
7838 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
7839 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h.  */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h.  */
7848 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
7849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7850 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
7851
7852 /* System header to define __stub macros and hopefully few prototypes,
7853     which can conflict with char pcap_datalink_val_to_description (); below.
7854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7855     <limits.h> exists even on freestanding compilers.  */
7856
7857 #ifdef __STDC__
7858 # include <limits.h>
7859 #else
7860 # include <assert.h>
7861 #endif
7862
7863 #undef pcap_datalink_val_to_description
7864
7865 /* Override any GCC internal prototype to avoid an error.
7866    Use char because int might match the return type of a GCC
7867    builtin and then its argument prototype would still apply.  */
7868 #ifdef __cplusplus
7869 extern "C"
7870 #endif
7871 char pcap_datalink_val_to_description ();
7872 /* The GNU C library defines this for functions which it implements
7873     to always fail with ENOSYS.  Some functions are actually named
7874     something starting with __ and the normal name is an alias.  */
7875 #if defined __stub_pcap_datalink_val_to_description || defined __stub___pcap_datalink_val_to_description
7876 choke me
7877 #endif
7878
7879 int
7880 main ()
7881 {
7882 return pcap_datalink_val_to_description ();
7883   ;
7884   return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext conftest$ac_exeext
7888 if { (ac_try="$ac_link"
7889 case "(($ac_try" in
7890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891   *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894   (eval "$ac_link") 2>conftest.er1
7895   ac_status=$?
7896   grep -v '^ *+' conftest.er1 >conftest.err
7897   rm -f conftest.er1
7898   cat conftest.err >&5
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } && {
7901          test -z "$ac_c_werror_flag" ||
7902          test ! -s conftest.err
7903        } && test -s conftest$ac_exeext &&
7904        $as_test_x conftest$ac_exeext; then
7905   ac_cv_func_pcap_datalink_val_to_description=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910         ac_cv_func_pcap_datalink_val_to_description=no
7911 fi
7912
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914       conftest$ac_exeext conftest.$ac_ext
7915 fi
7916 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
7917 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6; }
7918 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
7919   cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
7921 _ACEOF
7922
7923 else
7924
7925                     case " $LIBOBJS " in
7926   *" dlnames.$ac_objext "* ) ;;
7927   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7928  ;;
7929 esac
7930
7931
7932 fi
7933
7934
7935 else
7936
7937             case " $LIBOBJS " in
7938   *" dlnames.$ac_objext "* ) ;;
7939   *) LIBOBJS="$LIBOBJS dlnames.$ac_objext"
7940  ;;
7941 esac
7942
7943
7944 fi
7945
7946
7947
7948 for ac_func in pcap_breakloop
7949 do
7950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7964 #define $ac_func innocuous_$ac_func
7965
7966 /* System header to define __stub macros and hopefully few prototypes,
7967     which can conflict with char $ac_func (); below.
7968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7969     <limits.h> exists even on freestanding compilers.  */
7970
7971 #ifdef __STDC__
7972 # include <limits.h>
7973 #else
7974 # include <assert.h>
7975 #endif
7976
7977 #undef $ac_func
7978
7979 /* Override any GCC internal prototype to avoid an error.
7980    Use char because int might match the return type of a GCC
7981    builtin and then its argument prototype would still apply.  */
7982 #ifdef __cplusplus
7983 extern "C"
7984 #endif
7985 char $ac_func ();
7986 /* The GNU C library defines this for functions which it implements
7987     to always fail with ENOSYS.  Some functions are actually named
7988     something starting with __ and the normal name is an alias.  */
7989 #if defined __stub_$ac_func || defined __stub___$ac_func
7990 choke me
7991 #endif
7992
7993 int
7994 main ()
7995 {
7996 return $ac_func ();
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (ac_try="$ac_link"
8003 case "(($ac_try" in
8004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005   *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008   (eval "$ac_link") 2>conftest.er1
8009   ac_status=$?
8010   grep -v '^ *+' conftest.er1 >conftest.err
8011   rm -f conftest.er1
8012   cat conftest.err >&5
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } && {
8015          test -z "$ac_c_werror_flag" ||
8016          test ! -s conftest.err
8017        } && test -s conftest$ac_exeext &&
8018        $as_test_x conftest$ac_exeext; then
8019   eval "$as_ac_var=yes"
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024         eval "$as_ac_var=no"
8025 fi
8026
8027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8028       conftest$ac_exeext conftest.$ac_ext
8029 fi
8030 ac_res=`eval echo '${'$as_ac_var'}'`
8031                { echo "$as_me:$LINENO: result: $ac_res" >&5
8032 echo "${ECHO_T}$ac_res" >&6; }
8033 if test `eval echo '${'$as_ac_var'}'` = yes; then
8034   cat >>confdefs.h <<_ACEOF
8035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8036 _ACEOF
8037
8038 fi
8039 done
8040
8041
8042                 { echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
8043 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6; }
8044 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
8054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8055 #define pcap_dump_ftell innocuous_pcap_dump_ftell
8056
8057 /* System header to define __stub macros and hopefully few prototypes,
8058     which can conflict with char pcap_dump_ftell (); below.
8059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8060     <limits.h> exists even on freestanding compilers.  */
8061
8062 #ifdef __STDC__
8063 # include <limits.h>
8064 #else
8065 # include <assert.h>
8066 #endif
8067
8068 #undef pcap_dump_ftell
8069
8070 /* Override any GCC internal prototype to avoid an error.
8071    Use char because int might match the return type of a GCC
8072    builtin and then its argument prototype would still apply.  */
8073 #ifdef __cplusplus
8074 extern "C"
8075 #endif
8076 char pcap_dump_ftell ();
8077 /* The GNU C library defines this for functions which it implements
8078     to always fail with ENOSYS.  Some functions are actually named
8079     something starting with __ and the normal name is an alias.  */
8080 #if defined __stub_pcap_dump_ftell || defined __stub___pcap_dump_ftell
8081 choke me
8082 #endif
8083
8084 int
8085 main ()
8086 {
8087 return pcap_dump_ftell ();
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 rm -f conftest.$ac_objext conftest$ac_exeext
8093 if { (ac_try="$ac_link"
8094 case "(($ac_try" in
8095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096   *) ac_try_echo=$ac_try;;
8097 esac
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099   (eval "$ac_link") 2>conftest.er1
8100   ac_status=$?
8101   grep -v '^ *+' conftest.er1 >conftest.err
8102   rm -f conftest.er1
8103   cat conftest.err >&5
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); } && {
8106          test -z "$ac_c_werror_flag" ||
8107          test ! -s conftest.err
8108        } && test -s conftest$ac_exeext &&
8109        $as_test_x conftest$ac_exeext; then
8110   ac_cv_func_pcap_dump_ftell=yes
8111 else
8112   echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115         ac_cv_func_pcap_dump_ftell=no
8116 fi
8117
8118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8119       conftest$ac_exeext conftest.$ac_ext
8120 fi
8121 { echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
8122 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6; }
8123 if test $ac_cv_func_pcap_dump_ftell = yes; then
8124   cat >>confdefs.h <<\_ACEOF
8125 #define HAVE_PCAP_DUMP_FTELL 1
8126 _ACEOF
8127
8128 else
8129
8130             case " $LIBOBJS " in
8131   *" pcap_dump_ftell.$ac_objext "* ) ;;
8132   *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext"
8133  ;;
8134 esac
8135
8136
8137 fi
8138
8139
8140
8141 #
8142 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8143 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8144 #
8145 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8146 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8147 # to make this work on BSD/OS 4.x.  BSD/OS 4.x ships with the BIND8
8148 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8149 # it does not ship with a libc symbol "inet_ntop()", it ships with
8150 # "_inet_ntop()", and has a #define macro in one of the system headers
8151 # to rename it.
8152 #
8153 { echo "$as_me:$LINENO: checking for inet_ntop" >&5
8154 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161 #include <sys/types.h>
8162 #include <sys/socket.h>
8163 #include <netinet/in.h>
8164 #include <arpa/inet.h>
8165 int
8166 main ()
8167 {
8168 char src[4], dst[128];
8169 inet_ntop(AF_INET, src, dst, sizeof(dst));
8170   ;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8176 case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_link") 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } && {
8188          test -z "$ac_c_werror_flag" ||
8189          test ! -s conftest.err
8190        } && test -s conftest$ac_exeext &&
8191        $as_test_x conftest$ac_exeext; then
8192   { echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6; }
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198         { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8200         case " $LIBOBJS " in
8201   *" inet_ntop.$ac_objext "* ) ;;
8202   *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8203  ;;
8204 esac
8205
8206 fi
8207
8208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8209       conftest$ac_exeext conftest.$ac_ext
8210 { echo "$as_me:$LINENO: checking for inet_pton" >&5
8211 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218 #include <sys/types.h>
8219 #include <sys/socket.h>
8220 #include <netinet/in.h>
8221 #include <arpa/inet.h>
8222 int
8223 main ()
8224 {
8225 char src[128], dst[4];
8226 inet_pton(AF_INET, src, dst);
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (ac_try="$ac_link"
8233 case "(($ac_try" in
8234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235   *) ac_try_echo=$ac_try;;
8236 esac
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238   (eval "$ac_link") 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } && {
8245          test -z "$ac_c_werror_flag" ||
8246          test ! -s conftest.err
8247        } && test -s conftest$ac_exeext &&
8248        $as_test_x conftest$ac_exeext; then
8249   { echo "$as_me:$LINENO: result: yes" >&5
8250 echo "${ECHO_T}yes" >&6; }
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255         { echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6; }
8257         case " $LIBOBJS " in
8258   *" inet_pton.$ac_objext "* ) ;;
8259   *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8260  ;;
8261 esac
8262
8263 fi
8264
8265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8266       conftest$ac_exeext conftest.$ac_ext
8267 { echo "$as_me:$LINENO: checking for inet_aton" >&5
8268 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275 #include <sys/types.h>
8276 #include <netinet/in.h>
8277 #include <arpa/inet.h>
8278 int
8279 main ()
8280 {
8281 char src[128];
8282 struct in_addr dst;
8283 inet_aton(src, &dst);
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8290 case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_link") 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } && {
8302          test -z "$ac_c_werror_flag" ||
8303          test ! -s conftest.err
8304        } && test -s conftest$ac_exeext &&
8305        $as_test_x conftest$ac_exeext; then
8306   { echo "$as_me:$LINENO: result: yes" >&5
8307 echo "${ECHO_T}yes" >&6; }
8308 else
8309   echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312         { echo "$as_me:$LINENO: result: no" >&5
8313 echo "${ECHO_T}no" >&6; }
8314         case " $LIBOBJS " in
8315   *" inet_aton.$ac_objext "* ) ;;
8316   *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8317  ;;
8318 esac
8319
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8323       conftest$ac_exeext conftest.$ac_ext
8324
8325 #
8326 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8327 #
8328 # You are in a twisty little maze of UN*Xes, all different.
8329 # Some might not have ether_ntohost().
8330 # Some might have it, but not declare it in any header file.
8331 # Some might have it, but declare it in <netinet/if_ether.h>.
8332 # Some might have it, but declare it in <netinet/ether.h>
8333 # (And some might have it but document it as something declared in
8334 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8335 #
8336 # Before you is a C compiler.
8337 #
8338
8339 for ac_func in ether_ntohost
8340 do
8341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8355 #define $ac_func innocuous_$ac_func
8356
8357 /* System header to define __stub macros and hopefully few prototypes,
8358     which can conflict with char $ac_func (); below.
8359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8360     <limits.h> exists even on freestanding compilers.  */
8361
8362 #ifdef __STDC__
8363 # include <limits.h>
8364 #else
8365 # include <assert.h>
8366 #endif
8367
8368 #undef $ac_func
8369
8370 /* Override any GCC internal prototype to avoid an error.
8371    Use char because int might match the return type of a GCC
8372    builtin and then its argument prototype would still apply.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 char $ac_func ();
8377 /* The GNU C library defines this for functions which it implements
8378     to always fail with ENOSYS.  Some functions are actually named
8379     something starting with __ and the normal name is an alias.  */
8380 #if defined __stub_$ac_func || defined __stub___$ac_func
8381 choke me
8382 #endif
8383
8384 int
8385 main ()
8386 {
8387 return $ac_func ();
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_link") 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } && {
8406          test -z "$ac_c_werror_flag" ||
8407          test ! -s conftest.err
8408        } && test -s conftest$ac_exeext &&
8409        $as_test_x conftest$ac_exeext; then
8410   eval "$as_ac_var=yes"
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         eval "$as_ac_var=no"
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8419       conftest$ac_exeext conftest.$ac_ext
8420 fi
8421 ac_res=`eval echo '${'$as_ac_var'}'`
8422                { echo "$as_me:$LINENO: result: $ac_res" >&5
8423 echo "${ECHO_T}$ac_res" >&6; }
8424 if test `eval echo '${'$as_ac_var'}'` = yes; then
8425   cat >>confdefs.h <<_ACEOF
8426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8427 _ACEOF
8428
8429     { echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
8430 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6; }
8431 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434
8435         if test "$cross_compiling" = yes; then
8436   ac_cv_buggy_ether_ntohost="not while cross-compiling"
8437 else
8438   cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444
8445                 #include <netdb.h>
8446                 #include <sys/types.h>
8447                 #include <sys/param.h>
8448                 #include <sys/socket.h>
8449
8450                 int
8451                 main(int argc, char **argv)
8452                 {
8453                         u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
8454                         char name[MAXHOSTNAMELEN];
8455
8456                         ether_ntohost(name, (struct ether_addr *)ea);
8457                         exit(0);
8458                 }
8459
8460 _ACEOF
8461 rm -f conftest$ac_exeext
8462 if { (ac_try="$ac_link"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468   (eval "$ac_link") 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8472   { (case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477   (eval "$ac_try") 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   ac_cv_buggy_ether_ntohost=no
8482 else
8483   echo "$as_me: program exited with status $ac_status" >&5
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 ( exit $ac_status )
8488 ac_cv_buggy_ether_ntohost=yes
8489 fi
8490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8491 fi
8492
8493
8494 fi
8495 { echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
8496 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6; }
8497     if test "$ac_cv_buggy_ether_ntohost" = "no"; then
8498         cat >>confdefs.h <<\_ACEOF
8499 #define USE_ETHER_NTOHOST 1
8500 _ACEOF
8501
8502     fi
8503
8504 fi
8505 done
8506
8507 if test "$ac_cv_func_ether_ntohost" = yes -a \
8508     "$ac_cv_buggy_ether_ntohost" = "no"; then
8509         #
8510         # OK, we have ether_ntohost().  Do we have <netinet/if_ether.h>?
8511         #
8512         if test "$ac_cv_header_netinet_if_ether_h" = yes; then
8513                 #
8514                 # Yes.  Does it declare ether_ntohost()?
8515                 #
8516                 { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8517 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8518 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h.  */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h.  */
8527
8528 #include <sys/types.h>
8529 #include <sys/socket.h>
8530 #include <netinet/in.h>
8531 #include <arpa/inet.h>
8532 struct mbuf;
8533 struct rtentry;
8534 #include <net/if.h>
8535 #include <netinet/if_ether.h>
8536
8537
8538 int
8539 main ()
8540 {
8541 #ifndef ether_ntohost
8542   (void) ether_ntohost;
8543 #endif
8544
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553   *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556   (eval "$ac_compile") 2>conftest.er1
8557   ac_status=$?
8558   grep -v '^ *+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } && {
8563          test -z "$ac_c_werror_flag" ||
8564          test ! -s conftest.err
8565        } && test -s conftest.$ac_objext; then
8566   ac_cv_have_decl_ether_ntohost=yes
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571         ac_cv_have_decl_ether_ntohost=no
8572 fi
8573
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8577 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8578 if test $ac_cv_have_decl_ether_ntohost = yes; then
8579
8580
8581 cat >>confdefs.h <<\_ACEOF
8582 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
8583 _ACEOF
8584
8585
8586 fi
8587
8588         fi
8589         #
8590         # Did that succeed?
8591         #
8592         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8593                 #
8594                 # No, how about <netinet/ether.h>, as on Linux?
8595                 #
8596
8597 for ac_header in netinet/ether.h
8598 do
8599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 fi
8606 ac_res=`eval echo '${'$as_ac_Header'}'`
8607                { echo "$as_me:$LINENO: result: $ac_res" >&5
8608 echo "${ECHO_T}$ac_res" >&6; }
8609 else
8610   # Is the header compilable?
8611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 $ac_includes_default
8620 #include <$ac_header>
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8624 case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_compile") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } && {
8636          test -z "$ac_c_werror_flag" ||
8637          test ! -s conftest.err
8638        } && test -s conftest.$ac_objext; then
8639   ac_header_compiler=yes
8640 else
8641   echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644         ac_header_compiler=no
8645 fi
8646
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8649 echo "${ECHO_T}$ac_header_compiler" >&6; }
8650
8651 # Is the header present?
8652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660 #include <$ac_header>
8661 _ACEOF
8662 if { (ac_try="$ac_cpp conftest.$ac_ext"
8663 case "(($ac_try" in
8664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665   *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8669   ac_status=$?
8670   grep -v '^ *+' conftest.er1 >conftest.err
8671   rm -f conftest.er1
8672   cat conftest.err >&5
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); } >/dev/null && {
8675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8676          test ! -s conftest.err
8677        }; then
8678   ac_header_preproc=yes
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683   ac_header_preproc=no
8684 fi
8685
8686 rm -f conftest.err conftest.$ac_ext
8687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8688 echo "${ECHO_T}$ac_header_preproc" >&6; }
8689
8690 # So?  What about this header?
8691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8692   yes:no: )
8693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8697     ac_header_preproc=yes
8698     ;;
8699   no:yes:* )
8700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8712
8713     ;;
8714 esac
8715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   eval "$as_ac_Header=\$ac_header_preproc"
8721 fi
8722 ac_res=`eval echo '${'$as_ac_Header'}'`
8723                { echo "$as_me:$LINENO: result: $ac_res" >&5
8724 echo "${ECHO_T}$ac_res" >&6; }
8725
8726 fi
8727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8728   cat >>confdefs.h <<_ACEOF
8729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8730 _ACEOF
8731
8732 fi
8733
8734 done
8735
8736                 if test "$ac_cv_header_netinet_ether_h" = yes; then
8737                         #
8738                         # We have it - does it declare ether_ntohost()?
8739                         # Unset ac_cv_have_decl_ether_ntohost so we don't
8740                         # treat the previous failure as a cached value and
8741                         # suppress the next test.
8742                         #
8743                         unset ac_cv_have_decl_ether_ntohost
8744                         { echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
8745 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6; }
8746 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
8747   echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749   cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755
8756 #include <netinet/ether.h>
8757
8758
8759 int
8760 main ()
8761 {
8762 #ifndef ether_ntohost
8763   (void) ether_ntohost;
8764 #endif
8765
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8772 case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_compile") 2>conftest.er1
8778   ac_status=$?
8779   grep -v '^ *+' conftest.er1 >conftest.err
8780   rm -f conftest.er1
8781   cat conftest.err >&5
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } && {
8784          test -z "$ac_c_werror_flag" ||
8785          test ! -s conftest.err
8786        } && test -s conftest.$ac_objext; then
8787   ac_cv_have_decl_ether_ntohost=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792         ac_cv_have_decl_ether_ntohost=no
8793 fi
8794
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 fi
8797 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
8798 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6; }
8799 if test $ac_cv_have_decl_ether_ntohost = yes; then
8800
8801
8802 cat >>confdefs.h <<\_ACEOF
8803 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
8804 _ACEOF
8805
8806
8807 fi
8808
8809                 fi
8810         fi
8811         #
8812         # Is ether_ntohost() declared?
8813         #
8814         if test "$ac_cv_have_decl_ether_ntohost" != yes; then
8815                 #
8816                 # No, we'll have to declare it ourselves.
8817                 # Do we have "struct ether_addr"?
8818                 #
8819                 { echo "$as_me:$LINENO: checking for struct ether_addr" >&5
8820 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6; }
8821 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824   cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830
8831 #include <sys/types.h>
8832 #include <sys/socket.h>
8833 #include <netinet/in.h>
8834 #include <arpa/inet.h>
8835 struct mbuf;
8836 struct rtentry;
8837 #include <net/if.h>
8838 #include <netinet/if_ether.h>
8839
8840
8841 typedef struct ether_addr ac__type_new_;
8842 int
8843 main ()
8844 {
8845 if ((ac__type_new_ *) 0)
8846   return 0;
8847 if (sizeof (ac__type_new_))
8848   return 0;
8849   ;
8850   return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext
8854 if { (ac_try="$ac_compile"
8855 case "(($ac_try" in
8856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857   *) ac_try_echo=$ac_try;;
8858 esac
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860   (eval "$ac_compile") 2>conftest.er1
8861   ac_status=$?
8862   grep -v '^ *+' conftest.er1 >conftest.err
8863   rm -f conftest.er1
8864   cat conftest.err >&5
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); } && {
8867          test -z "$ac_c_werror_flag" ||
8868          test ! -s conftest.err
8869        } && test -s conftest.$ac_objext; then
8870   ac_cv_type_struct_ether_addr=yes
8871 else
8872   echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875         ac_cv_type_struct_ether_addr=no
8876 fi
8877
8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 fi
8880 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
8881 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6; }
8882 if test $ac_cv_type_struct_ether_addr = yes; then
8883
8884 cat >>confdefs.h <<_ACEOF
8885 #define HAVE_STRUCT_ETHER_ADDR 1
8886 _ACEOF
8887
8888
8889 fi
8890
8891
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_DECL_ETHER_NTOHOST 0
8894 _ACEOF
8895
8896         else
8897
8898 cat >>confdefs.h <<\_ACEOF
8899 #define HAVE_DECL_ETHER_NTOHOST 1
8900 _ACEOF
8901
8902         fi
8903 fi
8904
8905 # libdlpi is needed for Solaris 11 and later.
8906 { echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
8907 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6; }
8908 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
8909   echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911   ac_check_lib_save_LIBS=$LIBS
8912 LIBS="-ldlpi -L/lib $LIBS"
8913 cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h.  */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h.  */
8919
8920 /* Override any GCC internal prototype to avoid an error.
8921    Use char because int might match the return type of a GCC
8922    builtin and then its argument prototype would still apply.  */
8923 #ifdef __cplusplus
8924 extern "C"
8925 #endif
8926 char dlpi_walk ();
8927 int
8928 main ()
8929 {
8930 return dlpi_walk ();
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (ac_try="$ac_link"
8937 case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_link") 2>conftest.er1
8943   ac_status=$?
8944   grep -v '^ *+' conftest.er1 >conftest.err
8945   rm -f conftest.er1
8946   cat conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } && {
8949          test -z "$ac_c_werror_flag" ||
8950          test ! -s conftest.err
8951        } && test -s conftest$ac_exeext &&
8952        $as_test_x conftest$ac_exeext; then
8953   ac_cv_lib_dlpi_dlpi_walk=yes
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958         ac_cv_lib_dlpi_dlpi_walk=no
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8962       conftest$ac_exeext conftest.$ac_ext
8963 LIBS=$ac_check_lib_save_LIBS
8964 fi
8965 { echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
8966 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6; }
8967 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
8968   LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
8969 fi
8970
8971
8972
8973         { echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8974 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6; }
8975         if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8976   echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978   cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984
8985 #               include <sys/types.h>
8986 #               include <sys/socket.h>
8987 int
8988 main ()
8989 {
8990 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext
8996 if { (ac_try="$ac_compile"
8997 case "(($ac_try" in
8998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999   *) ac_try_echo=$ac_try;;
9000 esac
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002   (eval "$ac_compile") 2>conftest.er1
9003   ac_status=$?
9004   grep -v '^ *+' conftest.er1 >conftest.err
9005   rm -f conftest.er1
9006   cat conftest.err >&5
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); } && {
9009          test -z "$ac_c_werror_flag" ||
9010          test ! -s conftest.err
9011        } && test -s conftest.$ac_objext; then
9012   ac_cv_sockaddr_has_sa_len=yes
9013 else
9014   echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9016
9017         ac_cv_sockaddr_has_sa_len=no
9018 fi
9019
9020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9021 fi
9022
9023         { echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9024 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6; }
9025                 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9026                         cat >>confdefs.h <<\_ACEOF
9027 #define HAVE_SOCKADDR_SA_LEN 1
9028 _ACEOF
9029
9030         fi
9031
9032 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9033         missing_includes=yes
9034 fi
9035
9036 #
9037 # Do we have the new open API?  Check for pcap_create, and assume that,
9038 # if we do, we also have pcap_activate() and the other new routines
9039 # introduced in libpcap 1.0.0.
9040 #
9041
9042 for ac_func in pcap_create
9043 do
9044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9058 #define $ac_func innocuous_$ac_func
9059
9060 /* System header to define __stub macros and hopefully few prototypes,
9061     which can conflict with char $ac_func (); below.
9062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9063     <limits.h> exists even on freestanding compilers.  */
9064
9065 #ifdef __STDC__
9066 # include <limits.h>
9067 #else
9068 # include <assert.h>
9069 #endif
9070
9071 #undef $ac_func
9072
9073 /* Override any GCC internal prototype to avoid an error.
9074    Use char because int might match the return type of a GCC
9075    builtin and then its argument prototype would still apply.  */
9076 #ifdef __cplusplus
9077 extern "C"
9078 #endif
9079 char $ac_func ();
9080 /* The GNU C library defines this for functions which it implements
9081     to always fail with ENOSYS.  Some functions are actually named
9082     something starting with __ and the normal name is an alias.  */
9083 #if defined __stub_$ac_func || defined __stub___$ac_func
9084 choke me
9085 #endif
9086
9087 int
9088 main ()
9089 {
9090 return $ac_func ();
9091   ;
9092   return 0;
9093 }
9094 _ACEOF
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (ac_try="$ac_link"
9097 case "(($ac_try" in
9098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099   *) ac_try_echo=$ac_try;;
9100 esac
9101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102   (eval "$ac_link") 2>conftest.er1
9103   ac_status=$?
9104   grep -v '^ *+' conftest.er1 >conftest.err
9105   rm -f conftest.er1
9106   cat conftest.err >&5
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); } && {
9109          test -z "$ac_c_werror_flag" ||
9110          test ! -s conftest.err
9111        } && test -s conftest$ac_exeext &&
9112        $as_test_x conftest$ac_exeext; then
9113   eval "$as_ac_var=yes"
9114 else
9115   echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118         eval "$as_ac_var=no"
9119 fi
9120
9121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9122       conftest$ac_exeext conftest.$ac_ext
9123 fi
9124 ac_res=`eval echo '${'$as_ac_var'}'`
9125                { echo "$as_me:$LINENO: result: $ac_res" >&5
9126 echo "${ECHO_T}$ac_res" >&6; }
9127 if test `eval echo '${'$as_ac_var'}'` = yes; then
9128   cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9130 _ACEOF
9131
9132 fi
9133 done
9134
9135 if test $ac_cv_func_pcap_create = "yes" ; then
9136         #
9137         # OK, do we have pcap_set_tstamp_type?  If so, assume we have
9138         # pcap_list_tstamp_types and pcap_free_tstamp_types as well.
9139         #
9140
9141 for ac_func in pcap_set_tstamp_type
9142 do
9143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9157 #define $ac_func innocuous_$ac_func
9158
9159 /* System header to define __stub macros and hopefully few prototypes,
9160     which can conflict with char $ac_func (); below.
9161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9162     <limits.h> exists even on freestanding compilers.  */
9163
9164 #ifdef __STDC__
9165 # include <limits.h>
9166 #else
9167 # include <assert.h>
9168 #endif
9169
9170 #undef $ac_func
9171
9172 /* Override any GCC internal prototype to avoid an error.
9173    Use char because int might match the return type of a GCC
9174    builtin and then its argument prototype would still apply.  */
9175 #ifdef __cplusplus
9176 extern "C"
9177 #endif
9178 char $ac_func ();
9179 /* The GNU C library defines this for functions which it implements
9180     to always fail with ENOSYS.  Some functions are actually named
9181     something starting with __ and the normal name is an alias.  */
9182 #if defined __stub_$ac_func || defined __stub___$ac_func
9183 choke me
9184 #endif
9185
9186 int
9187 main ()
9188 {
9189 return $ac_func ();
9190   ;
9191   return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198   *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201   (eval "$ac_link") 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } && {
9208          test -z "$ac_c_werror_flag" ||
9209          test ! -s conftest.err
9210        } && test -s conftest$ac_exeext &&
9211        $as_test_x conftest$ac_exeext; then
9212   eval "$as_ac_var=yes"
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217         eval "$as_ac_var=no"
9218 fi
9219
9220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221       conftest$ac_exeext conftest.$ac_ext
9222 fi
9223 ac_res=`eval echo '${'$as_ac_var'}'`
9224                { echo "$as_me:$LINENO: result: $ac_res" >&5
9225 echo "${ECHO_T}$ac_res" >&6; }
9226 if test `eval echo '${'$as_ac_var'}'` = yes; then
9227   cat >>confdefs.h <<_ACEOF
9228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9229 _ACEOF
9230
9231 fi
9232 done
9233
9234 fi
9235
9236
9237
9238
9239 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9240 do
9241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247   cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9255 #define $ac_func innocuous_$ac_func
9256
9257 /* System header to define __stub macros and hopefully few prototypes,
9258     which can conflict with char $ac_func (); below.
9259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9260     <limits.h> exists even on freestanding compilers.  */
9261
9262 #ifdef __STDC__
9263 # include <limits.h>
9264 #else
9265 # include <assert.h>
9266 #endif
9267
9268 #undef $ac_func
9269
9270 /* Override any GCC internal prototype to avoid an error.
9271    Use char because int might match the return type of a GCC
9272    builtin and then its argument prototype would still apply.  */
9273 #ifdef __cplusplus
9274 extern "C"
9275 #endif
9276 char $ac_func ();
9277 /* The GNU C library defines this for functions which it implements
9278     to always fail with ENOSYS.  Some functions are actually named
9279     something starting with __ and the normal name is an alias.  */
9280 #if defined __stub_$ac_func || defined __stub___$ac_func
9281 choke me
9282 #endif
9283
9284 int
9285 main ()
9286 {
9287 return $ac_func ();
9288   ;
9289   return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (ac_try="$ac_link"
9294 case "(($ac_try" in
9295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296   *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299   (eval "$ac_link") 2>conftest.er1
9300   ac_status=$?
9301   grep -v '^ *+' conftest.er1 >conftest.err
9302   rm -f conftest.er1
9303   cat conftest.err >&5
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); } && {
9306          test -z "$ac_c_werror_flag" ||
9307          test ! -s conftest.err
9308        } && test -s conftest$ac_exeext &&
9309        $as_test_x conftest$ac_exeext; then
9310   eval "$as_ac_var=yes"
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315         eval "$as_ac_var=no"
9316 fi
9317
9318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9319       conftest$ac_exeext conftest.$ac_ext
9320 fi
9321 ac_res=`eval echo '${'$as_ac_var'}'`
9322                { echo "$as_me:$LINENO: result: $ac_res" >&5
9323 echo "${ECHO_T}$ac_res" >&6; }
9324 if test `eval echo '${'$as_ac_var'}'` = yes; then
9325   cat >>confdefs.h <<_ACEOF
9326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9327 _ACEOF
9328
9329 fi
9330 done
9331
9332 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9333     savedppflags="$CPPLAGS"
9334     CPPFLAGS="$CPPFLAGS $V_INCLS"
9335     { echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9336 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6; }
9337 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9338   echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340   cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346 #include <pcap.h>
9347
9348 typedef pcap_if_t ac__type_new_;
9349 int
9350 main ()
9351 {
9352 if ((ac__type_new_ *) 0)
9353   return 0;
9354 if (sizeof (ac__type_new_))
9355   return 0;
9356   ;
9357   return 0;
9358 }
9359 _ACEOF
9360 rm -f conftest.$ac_objext
9361 if { (ac_try="$ac_compile"
9362 case "(($ac_try" in
9363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364   *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367   (eval "$ac_compile") 2>conftest.er1
9368   ac_status=$?
9369   grep -v '^ *+' conftest.er1 >conftest.err
9370   rm -f conftest.er1
9371   cat conftest.err >&5
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } && {
9374          test -z "$ac_c_werror_flag" ||
9375          test ! -s conftest.err
9376        } && test -s conftest.$ac_objext; then
9377   ac_cv_type_pcap_if_t=yes
9378 else
9379   echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382         ac_cv_type_pcap_if_t=no
9383 fi
9384
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 fi
9387 { echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9388 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6; }
9389 if test $ac_cv_type_pcap_if_t = yes; then
9390
9391 cat >>confdefs.h <<_ACEOF
9392 #define HAVE_PCAP_IF_T 1
9393 _ACEOF
9394
9395
9396 fi
9397
9398     CPPFLAGS="$savedcppflags"
9399 fi
9400
9401 if test $ac_cv_func_pcap_lib_version = "no" ; then
9402     { echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9403 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6; }
9404     cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410
9411 int
9412 main ()
9413 {
9414
9415         extern char pcap_version[];
9416
9417         return (int)pcap_version;
9418
9419   ;
9420   return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (ac_try="$ac_link"
9425 case "(($ac_try" in
9426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427   *) ac_try_echo=$ac_try;;
9428 esac
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430   (eval "$ac_link") 2>conftest.er1
9431   ac_status=$?
9432   grep -v '^ *+' conftest.er1 >conftest.err
9433   rm -f conftest.er1
9434   cat conftest.err >&5
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); } && {
9437          test -z "$ac_c_werror_flag" ||
9438          test ! -s conftest.err
9439        } && test -s conftest$ac_exeext &&
9440        $as_test_x conftest$ac_exeext; then
9441   ac_lbl_cv_pcap_version_defined=yes
9442 else
9443   echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446         ac_lbl_cv_pcap_version_defined=no
9447 fi
9448
9449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9450       conftest$ac_exeext conftest.$ac_ext
9451     if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9452         { echo "$as_me:$LINENO: result: yes" >&5
9453 echo "${ECHO_T}yes" >&6; }
9454         cat >>confdefs.h <<\_ACEOF
9455 #define HAVE_PCAP_VERSION 1
9456 _ACEOF
9457
9458     else
9459         { echo "$as_me:$LINENO: result: no" >&5
9460 echo "${ECHO_T}no" >&6; }
9461     fi
9462 fi
9463 { echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9464 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6; }
9465 cat >conftest.$ac_ext <<_ACEOF
9466 /* confdefs.h.  */
9467 _ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h.  */
9471
9472 int
9473 main ()
9474 {
9475
9476         extern int pcap_debug;
9477
9478         return pcap_debug;
9479
9480   ;
9481   return 0;
9482 }
9483 _ACEOF
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9486 case "(($ac_try" in
9487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488   *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491   (eval "$ac_link") 2>conftest.er1
9492   ac_status=$?
9493   grep -v '^ *+' conftest.er1 >conftest.err
9494   rm -f conftest.er1
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } && {
9498          test -z "$ac_c_werror_flag" ||
9499          test ! -s conftest.err
9500        } && test -s conftest$ac_exeext &&
9501        $as_test_x conftest$ac_exeext; then
9502   ac_lbl_cv_pcap_debug_defined=yes
9503 else
9504   echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9506
9507         ac_lbl_cv_pcap_debug_defined=no
9508 fi
9509
9510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9511       conftest$ac_exeext conftest.$ac_ext
9512 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9513         { echo "$as_me:$LINENO: result: yes" >&5
9514 echo "${ECHO_T}yes" >&6; }
9515         cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_PCAP_DEBUG 1
9517 _ACEOF
9518
9519 else
9520         { echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6; }
9522         #
9523         # OK, what about "yydebug"?
9524         #
9525         { echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9526 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6; }
9527         cat >conftest.$ac_ext <<_ACEOF
9528 /* confdefs.h.  */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h.  */
9533
9534 int
9535 main ()
9536 {
9537
9538                 extern int yydebug;
9539
9540                 return yydebug;
9541
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9548 case "(($ac_try" in
9549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550   *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553   (eval "$ac_link") 2>conftest.er1
9554   ac_status=$?
9555   grep -v '^ *+' conftest.er1 >conftest.err
9556   rm -f conftest.er1
9557   cat conftest.err >&5
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); } && {
9560          test -z "$ac_c_werror_flag" ||
9561          test ! -s conftest.err
9562        } && test -s conftest$ac_exeext &&
9563        $as_test_x conftest$ac_exeext; then
9564   ac_lbl_cv_yydebug_defined=yes
9565 else
9566   echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569         ac_lbl_cv_yydebug_defined=no
9570 fi
9571
9572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9573       conftest$ac_exeext conftest.$ac_ext
9574         if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9575                 { echo "$as_me:$LINENO: result: yes" >&5
9576 echo "${ECHO_T}yes" >&6; }
9577                 cat >>confdefs.h <<\_ACEOF
9578 #define HAVE_YYDEBUG 1
9579 _ACEOF
9580
9581         else
9582                 { echo "$as_me:$LINENO: result: no" >&5
9583 echo "${ECHO_T}no" >&6; }
9584         fi
9585 fi
9586
9587 for ac_func in bpf_dump
9588 do
9589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595   cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h.  */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h.  */
9601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9603 #define $ac_func innocuous_$ac_func
9604
9605 /* System header to define __stub macros and hopefully few prototypes,
9606     which can conflict with char $ac_func (); below.
9607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9608     <limits.h> exists even on freestanding compilers.  */
9609
9610 #ifdef __STDC__
9611 # include <limits.h>
9612 #else
9613 # include <assert.h>
9614 #endif
9615
9616 #undef $ac_func
9617
9618 /* Override any GCC internal prototype to avoid an error.
9619    Use char because int might match the return type of a GCC
9620    builtin and then its argument prototype would still apply.  */
9621 #ifdef __cplusplus
9622 extern "C"
9623 #endif
9624 char $ac_func ();
9625 /* The GNU C library defines this for functions which it implements
9626     to always fail with ENOSYS.  Some functions are actually named
9627     something starting with __ and the normal name is an alias.  */
9628 #if defined __stub_$ac_func || defined __stub___$ac_func
9629 choke me
9630 #endif
9631
9632 int
9633 main ()
9634 {
9635 return $ac_func ();
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (ac_try="$ac_link"
9642 case "(($ac_try" in
9643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644   *) ac_try_echo=$ac_try;;
9645 esac
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647   (eval "$ac_link") 2>conftest.er1
9648   ac_status=$?
9649   grep -v '^ *+' conftest.er1 >conftest.err
9650   rm -f conftest.er1
9651   cat conftest.err >&5
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); } && {
9654          test -z "$ac_c_werror_flag" ||
9655          test ! -s conftest.err
9656        } && test -s conftest$ac_exeext &&
9657        $as_test_x conftest$ac_exeext; then
9658   eval "$as_ac_var=yes"
9659 else
9660   echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663         eval "$as_ac_var=no"
9664 fi
9665
9666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9667       conftest$ac_exeext conftest.$ac_ext
9668 fi
9669 ac_res=`eval echo '${'$as_ac_var'}'`
9670                { echo "$as_me:$LINENO: result: $ac_res" >&5
9671 echo "${ECHO_T}$ac_res" >&6; }
9672 if test `eval echo '${'$as_ac_var'}'` = yes; then
9673   cat >>confdefs.h <<_ACEOF
9674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9675 _ACEOF
9676
9677 else
9678   case " $LIBOBJS " in
9679   *" $ac_func.$ac_objext "* ) ;;
9680   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9681  ;;
9682 esac
9683
9684 fi
9685 done
9686
9687
9688 V_GROUP=0
9689 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9690         V_GROUP=wheel
9691 fi
9692 #
9693 # Assume V7/BSD convention for man pages (file formats in section 5,
9694 # miscellaneous info in section 7).
9695 #
9696 MAN_FILE_FORMATS=5
9697 MAN_MISC_INFO=7
9698 case "$host_os" in
9699
9700 aix*)
9701
9702 cat >>confdefs.h <<\_ACEOF
9703 #define _SUN 1
9704 _ACEOF
9705
9706         ;;
9707
9708 hpux*)
9709         #
9710         # Use System V conventions for man pages.
9711         #
9712         MAN_FILE_FORMATS=4
9713         MAN_MISC_INFO=5
9714         ;;
9715
9716 irix*)
9717         V_GROUP=sys
9718
9719         #
9720         # Use System V conventions for man pages.
9721         #
9722         MAN_FILE_FORMATS=4
9723         MAN_MISC_INFO=5
9724         ;;
9725
9726 osf*)
9727         V_GROUP=system
9728
9729         #
9730         # Use System V conventions for man pages.
9731         #
9732         MAN_FILE_FORMATS=4
9733         MAN_MISC_INFO=5
9734         ;;
9735
9736 solaris*)
9737         V_GROUP=sys
9738
9739         #
9740         # Use System V conventions for man pages.
9741         #
9742         MAN_FILE_FORMATS=4
9743         MAN_MISC_INFO=5
9744         ;;
9745 esac
9746
9747 if test -f /dev/bpf0 ; then
9748         V_GROUP=bpf
9749 fi
9750
9751
9752 for ac_header in sys/bitypes.h
9753 do
9754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9756   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9759   echo $ECHO_N "(cached) $ECHO_C" >&6
9760 fi
9761 ac_res=`eval echo '${'$as_ac_Header'}'`
9762                { echo "$as_me:$LINENO: result: $ac_res" >&5
9763 echo "${ECHO_T}$ac_res" >&6; }
9764 else
9765   # Is the header compilable?
9766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h.  */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h.  */
9774 $ac_includes_default
9775 #include <$ac_header>
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (ac_try="$ac_compile"
9779 case "(($ac_try" in
9780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781   *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784   (eval "$ac_compile") 2>conftest.er1
9785   ac_status=$?
9786   grep -v '^ *+' conftest.er1 >conftest.err
9787   rm -f conftest.er1
9788   cat conftest.err >&5
9789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } && {
9791          test -z "$ac_c_werror_flag" ||
9792          test ! -s conftest.err
9793        } && test -s conftest.$ac_objext; then
9794   ac_header_compiler=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799         ac_header_compiler=no
9800 fi
9801
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9804 echo "${ECHO_T}$ac_header_compiler" >&6; }
9805
9806 # Is the header present?
9807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815 #include <$ac_header>
9816 _ACEOF
9817 if { (ac_try="$ac_cpp conftest.$ac_ext"
9818 case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } >/dev/null && {
9830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9831          test ! -s conftest.err
9832        }; then
9833   ac_header_preproc=yes
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838   ac_header_preproc=no
9839 fi
9840
9841 rm -f conftest.err conftest.$ac_ext
9842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9843 echo "${ECHO_T}$ac_header_preproc" >&6; }
9844
9845 # So?  What about this header?
9846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9847   yes:no: )
9848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9852     ac_header_preproc=yes
9853     ;;
9854   no:yes:* )
9855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9867
9868     ;;
9869 esac
9870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   eval "$as_ac_Header=\$ac_header_preproc"
9876 fi
9877 ac_res=`eval echo '${'$as_ac_Header'}'`
9878                { echo "$as_me:$LINENO: result: $ac_res" >&5
9879 echo "${ECHO_T}$ac_res" >&6; }
9880
9881 fi
9882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9883   cat >>confdefs.h <<_ACEOF
9884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9885 _ACEOF
9886
9887 fi
9888
9889 done
9890
9891
9892 { echo "$as_me:$LINENO: checking for int8_t" >&5
9893 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
9894 if test "${ac_cv_type_int8_t+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903 $ac_includes_default
9904 #ifdef HAVE_SYS_BITYPES_H
9905 #include <sys/bitypes.h>
9906 #endif
9907
9908 typedef int8_t ac__type_new_;
9909 int
9910 main ()
9911 {
9912 if ((ac__type_new_ *) 0)
9913   return 0;
9914 if (sizeof (ac__type_new_))
9915   return 0;
9916   ;
9917   return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9922 case "(($ac_try" in
9923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924   *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927   (eval "$ac_compile") 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } && {
9934          test -z "$ac_c_werror_flag" ||
9935          test ! -s conftest.err
9936        } && test -s conftest.$ac_objext; then
9937   ac_cv_type_int8_t=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         ac_cv_type_int8_t=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 fi
9947 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9948 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
9949 if test $ac_cv_type_int8_t = yes; then
9950   :
9951 else
9952
9953 cat >>confdefs.h <<\_ACEOF
9954 #define int8_t signed char
9955 _ACEOF
9956
9957 fi
9958
9959 { echo "$as_me:$LINENO: checking for u_int8_t" >&5
9960 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
9961 if test "${ac_cv_type_u_int8_t+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 $ac_includes_default
9971 #ifdef HAVE_SYS_BITYPES_H
9972 #include <sys/bitypes.h>
9973 #endif
9974
9975 typedef u_int8_t ac__type_new_;
9976 int
9977 main ()
9978 {
9979 if ((ac__type_new_ *) 0)
9980   return 0;
9981 if (sizeof (ac__type_new_))
9982   return 0;
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_compile") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } && {
10001          test -z "$ac_c_werror_flag" ||
10002          test ! -s conftest.err
10003        } && test -s conftest.$ac_objext; then
10004   ac_cv_type_u_int8_t=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         ac_cv_type_u_int8_t=no
10010 fi
10011
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 fi
10014 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10015 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
10016 if test $ac_cv_type_u_int8_t = yes; then
10017   :
10018 else
10019
10020 cat >>confdefs.h <<\_ACEOF
10021 #define u_int8_t unsigned char
10022 _ACEOF
10023
10024 fi
10025
10026 { echo "$as_me:$LINENO: checking for int16_t" >&5
10027 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
10028 if test "${ac_cv_type_int16_t+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037 $ac_includes_default
10038 typedef int16_t ac__type_new_;
10039 int
10040 main ()
10041 {
10042 if ((ac__type_new_ *) 0)
10043   return 0;
10044 if (sizeof (ac__type_new_))
10045   return 0;
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (ac_try="$ac_compile"
10052 case "(($ac_try" in
10053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054   *) ac_try_echo=$ac_try;;
10055 esac
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057   (eval "$ac_compile") 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } && {
10064          test -z "$ac_c_werror_flag" ||
10065          test ! -s conftest.err
10066        } && test -s conftest.$ac_objext; then
10067   ac_cv_type_int16_t=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072         ac_cv_type_int16_t=no
10073 fi
10074
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 fi
10077 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10078 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
10079 if test $ac_cv_type_int16_t = yes; then
10080   :
10081 else
10082
10083 cat >>confdefs.h <<\_ACEOF
10084 #define int16_t short
10085 _ACEOF
10086
10087         $ac_includes_default
10088 #ifdef HAVE_SYS_BITYPES_H
10089 #include <sys/bitypes.h>
10090 #endif
10091 fi
10092
10093 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
10094 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
10095 if test "${ac_cv_type_u_int16_t+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 $ac_includes_default
10105 #ifdef HAVE_SYS_BITYPES_H
10106 #include <sys/bitypes.h>
10107 #endif
10108
10109 typedef u_int16_t ac__type_new_;
10110 int
10111 main ()
10112 {
10113 if ((ac__type_new_ *) 0)
10114   return 0;
10115 if (sizeof (ac__type_new_))
10116   return 0;
10117   ;
10118   return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (ac_try="$ac_compile"
10123 case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_compile") 2>conftest.er1
10129   ac_status=$?
10130   grep -v '^ *+' conftest.er1 >conftest.err
10131   rm -f conftest.er1
10132   cat conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } && {
10135          test -z "$ac_c_werror_flag" ||
10136          test ! -s conftest.err
10137        } && test -s conftest.$ac_objext; then
10138   ac_cv_type_u_int16_t=yes
10139 else
10140   echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143         ac_cv_type_u_int16_t=no
10144 fi
10145
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10147 fi
10148 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10149 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
10150 if test $ac_cv_type_u_int16_t = yes; then
10151   :
10152 else
10153
10154 cat >>confdefs.h <<\_ACEOF
10155 #define u_int16_t unsigned short
10156 _ACEOF
10157
10158 fi
10159
10160 { echo "$as_me:$LINENO: checking for int32_t" >&5
10161 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10162 if test "${ac_cv_type_int32_t+set}" = set; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h.  */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h.  */
10171 $ac_includes_default
10172 #ifdef HAVE_SYS_BITYPES_H
10173 #include <sys/bitypes.h>
10174 #endif
10175
10176 typedef int32_t ac__type_new_;
10177 int
10178 main ()
10179 {
10180 if ((ac__type_new_ *) 0)
10181   return 0;
10182 if (sizeof (ac__type_new_))
10183   return 0;
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 rm -f conftest.$ac_objext
10189 if { (ac_try="$ac_compile"
10190 case "(($ac_try" in
10191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192   *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195   (eval "$ac_compile") 2>conftest.er1
10196   ac_status=$?
10197   grep -v '^ *+' conftest.er1 >conftest.err
10198   rm -f conftest.er1
10199   cat conftest.err >&5
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } && {
10202          test -z "$ac_c_werror_flag" ||
10203          test ! -s conftest.err
10204        } && test -s conftest.$ac_objext; then
10205   ac_cv_type_int32_t=yes
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210         ac_cv_type_int32_t=no
10211 fi
10212
10213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 fi
10215 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10216 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
10217 if test $ac_cv_type_int32_t = yes; then
10218   :
10219 else
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define int32_t int
10223 _ACEOF
10224
10225 fi
10226
10227 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
10228 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
10229 if test "${ac_cv_type_u_int32_t+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238 $ac_includes_default
10239 #ifdef HAVE_SYS_BITYPES_H
10240 #include <sys/bitypes.h>
10241 #endif
10242
10243 typedef u_int32_t ac__type_new_;
10244 int
10245 main ()
10246 {
10247 if ((ac__type_new_ *) 0)
10248   return 0;
10249 if (sizeof (ac__type_new_))
10250   return 0;
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext
10256 if { (ac_try="$ac_compile"
10257 case "(($ac_try" in
10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259   *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262   (eval "$ac_compile") 2>conftest.er1
10263   ac_status=$?
10264   grep -v '^ *+' conftest.er1 >conftest.err
10265   rm -f conftest.er1
10266   cat conftest.err >&5
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); } && {
10269          test -z "$ac_c_werror_flag" ||
10270          test ! -s conftest.err
10271        } && test -s conftest.$ac_objext; then
10272   ac_cv_type_u_int32_t=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277         ac_cv_type_u_int32_t=no
10278 fi
10279
10280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 fi
10282 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10283 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
10284 if test $ac_cv_type_u_int32_t = yes; then
10285   :
10286 else
10287
10288 cat >>confdefs.h <<\_ACEOF
10289 #define u_int32_t unsigned int
10290 _ACEOF
10291
10292 fi
10293
10294 { echo "$as_me:$LINENO: checking for int64_t" >&5
10295 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
10296 if test "${ac_cv_type_int64_t+set}" = set; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299   cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305 $ac_includes_default
10306 #ifdef HAVE_SYS_BITYPES_H
10307 #include <sys/bitypes.h>
10308 #endif
10309
10310 typedef int64_t ac__type_new_;
10311 int
10312 main ()
10313 {
10314 if ((ac__type_new_ *) 0)
10315   return 0;
10316 if (sizeof (ac__type_new_))
10317   return 0;
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext
10323 if { (ac_try="$ac_compile"
10324 case "(($ac_try" in
10325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326   *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329   (eval "$ac_compile") 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } && {
10336          test -z "$ac_c_werror_flag" ||
10337          test ! -s conftest.err
10338        } && test -s conftest.$ac_objext; then
10339   ac_cv_type_int64_t=yes
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344         ac_cv_type_int64_t=no
10345 fi
10346
10347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10348 fi
10349 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10350 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
10351 if test $ac_cv_type_int64_t = yes; then
10352   :
10353 else
10354
10355 cat >>confdefs.h <<\_ACEOF
10356 #define int64_t long long
10357 _ACEOF
10358
10359 fi
10360
10361 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
10362 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
10363 if test "${ac_cv_type_u_int64_t+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 $ac_includes_default
10373 #ifdef HAVE_SYS_BITYPES_H
10374 #include <sys/bitypes.h>
10375 #endif
10376
10377 typedef u_int64_t ac__type_new_;
10378 int
10379 main ()
10380 {
10381 if ((ac__type_new_ *) 0)
10382   return 0;
10383 if (sizeof (ac__type_new_))
10384   return 0;
10385   ;
10386   return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext
10390 if { (ac_try="$ac_compile"
10391 case "(($ac_try" in
10392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393   *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396   (eval "$ac_compile") 2>conftest.er1
10397   ac_status=$?
10398   grep -v '^ *+' conftest.er1 >conftest.err
10399   rm -f conftest.er1
10400   cat conftest.err >&5
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } && {
10403          test -z "$ac_c_werror_flag" ||
10404          test ! -s conftest.err
10405        } && test -s conftest.$ac_objext; then
10406   ac_cv_type_u_int64_t=yes
10407 else
10408   echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10410
10411         ac_cv_type_u_int64_t=no
10412 fi
10413
10414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415 fi
10416 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10417 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
10418 if test $ac_cv_type_u_int64_t = yes; then
10419   :
10420 else
10421
10422 cat >>confdefs.h <<\_ACEOF
10423 #define u_int64_t unsigned long long
10424 _ACEOF
10425
10426 fi
10427
10428
10429 #
10430 # We can't just check for <inttypes.h> - some systems have one that
10431 # doesn't define all the PRI[doxu]64 macros.
10432 #
10433
10434 for ac_header in inttypes.h
10435 do
10436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10438   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10441   echo $ECHO_N "(cached) $ECHO_C" >&6
10442 fi
10443 ac_res=`eval echo '${'$as_ac_Header'}'`
10444                { echo "$as_me:$LINENO: result: $ac_res" >&5
10445 echo "${ECHO_T}$ac_res" >&6; }
10446 else
10447   # Is the header compilable?
10448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h.  */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h.  */
10456 $ac_includes_default
10457 #include <$ac_header>
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (ac_try="$ac_compile"
10461 case "(($ac_try" in
10462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463   *) ac_try_echo=$ac_try;;
10464 esac
10465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466   (eval "$ac_compile") 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } && {
10473          test -z "$ac_c_werror_flag" ||
10474          test ! -s conftest.err
10475        } && test -s conftest.$ac_objext; then
10476   ac_header_compiler=yes
10477 else
10478   echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481         ac_header_compiler=no
10482 fi
10483
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 echo "${ECHO_T}$ac_header_compiler" >&6; }
10487
10488 # Is the header present?
10489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 #include <$ac_header>
10498 _ACEOF
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502   *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10506   ac_status=$?
10507   grep -v '^ *+' conftest.er1 >conftest.err
10508   rm -f conftest.er1
10509   cat conftest.err >&5
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } >/dev/null && {
10512          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10513          test ! -s conftest.err
10514        }; then
10515   ac_header_preproc=yes
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520   ac_header_preproc=no
10521 fi
10522
10523 rm -f conftest.err conftest.$ac_ext
10524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10525 echo "${ECHO_T}$ac_header_preproc" >&6; }
10526
10527 # So?  What about this header?
10528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10529   yes:no: )
10530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10534     ac_header_preproc=yes
10535     ;;
10536   no:yes:* )
10537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10539     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10540 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10541     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10543     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10544 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10547     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10549
10550     ;;
10551 esac
10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   eval "$as_ac_Header=\$ac_header_preproc"
10558 fi
10559 ac_res=`eval echo '${'$as_ac_Header'}'`
10560                { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 echo "${ECHO_T}$ac_res" >&6; }
10562
10563 fi
10564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10565   cat >>confdefs.h <<_ACEOF
10566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567 _ACEOF
10568
10569     #
10570     # OK, we have inttypes.h, but does it define those macros?
10571     #
10572     { echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10573 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6; }
10574     cat >conftest.$ac_ext <<_ACEOF
10575
10576         /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581
10582             #include <inttypes.h>
10583             #include <stdio.h>
10584             #include <sys/types.h>
10585             #ifdef HAVE_SYS_BITYPES_H
10586             #include <sys/bitypes.h>
10587             #endif
10588
10589             main()
10590             {
10591               printf("%" PRId64 "\n", (u_int64_t)1);
10592               printf("%" PRIo64 "\n", (u_int64_t)1);
10593               printf("%" PRIx64 "\n", (u_int64_t)1);
10594               printf("%" PRIu64 "\n", (u_int64_t)1);
10595             }
10596
10597
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (ac_try="$ac_compile"
10601 case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606   (eval "$ac_compile") 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } && {
10613          test -z "$ac_c_werror_flag" ||
10614          test ! -s conftest.err
10615        } && test -s conftest.$ac_objext; then
10616
10617         { echo "$as_me:$LINENO: result: yes" >&5
10618 echo "${ECHO_T}yes" >&6; }
10619         ac_lbl_inttypes_h_defines_formats=yes
10620
10621 else
10622   echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625
10626         { echo "$as_me:$LINENO: result: no" >&5
10627 echo "${ECHO_T}no" >&6; }
10628         ac_lbl_inttypes_h_defines_formats=no
10629
10630 fi
10631
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633
10634 else
10635
10636     #
10637     # We don't have inttypes.h, so it obviously can't define those
10638     # macros.
10639     #
10640     ac_lbl_inttypes_h_defines_formats=no
10641
10642 fi
10643
10644 done
10645
10646 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
10647
10648     { echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10649 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10650     if test "$cross_compiling" = yes; then
10651   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10652 See \`config.log' for more details." >&5
10653 echo "$as_me: error: cannot run test program while cross compiling
10654 See \`config.log' for more details." >&2;}
10655    { (exit 1); exit 1; }; }
10656 else
10657   cat >conftest.$ac_ext <<_ACEOF
10658
10659         /* confdefs.h.  */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h.  */
10664
10665 #           ifdef HAVE_INTTYPES_H
10666             #include <inttypes.h>
10667 #           endif
10668 #           ifdef HAVE_SYS_BITYPES_H
10669             #include <sys/bitypes.h>
10670 #           endif
10671             #include <stdio.h>
10672             #include <sys/types.h>
10673
10674             main()
10675             {
10676               u_int64_t t = 1;
10677               char strbuf[16+1];
10678               sprintf(strbuf, "%016lx", t << 32);
10679               if (strcmp(strbuf, "0000000100000000") == 0)
10680                 exit(0);
10681               else
10682                 exit(1);
10683             }
10684
10685
10686 _ACEOF
10687 rm -f conftest$ac_exeext
10688 if { (ac_try="$ac_link"
10689 case "(($ac_try" in
10690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691   *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694   (eval "$ac_link") 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10698   { (case "(($ac_try" in
10699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700   *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703   (eval "$ac_try") 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); }; }; then
10707
10708         cat >>confdefs.h <<\_ACEOF
10709 #define PRId64 "ld"
10710 _ACEOF
10711
10712         cat >>confdefs.h <<\_ACEOF
10713 #define PRIo64 "lo"
10714 _ACEOF
10715
10716         cat >>confdefs.h <<\_ACEOF
10717 #define PRIx64 "lx"
10718 _ACEOF
10719
10720         cat >>confdefs.h <<\_ACEOF
10721 #define PRIu64 "lu"
10722 _ACEOF
10723
10724         { echo "$as_me:$LINENO: result: yes" >&5
10725 echo "${ECHO_T}yes" >&6; }
10726
10727 else
10728   echo "$as_me: program exited with status $ac_status" >&5
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 ( exit $ac_status )
10733
10734         { echo "$as_me:$LINENO: result: no" >&5
10735 echo "${ECHO_T}no" >&6; }
10736
10737
10738     { echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10739 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6; }
10740     if test "$cross_compiling" = yes; then
10741   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10742 See \`config.log' for more details." >&5
10743 echo "$as_me: error: cannot run test program while cross compiling
10744 See \`config.log' for more details." >&2;}
10745    { (exit 1); exit 1; }; }
10746 else
10747   cat >conftest.$ac_ext <<_ACEOF
10748
10749         /* confdefs.h.  */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h.  */
10754
10755 #           ifdef HAVE_INTTYPES_H
10756             #include <inttypes.h>
10757 #           endif
10758 #           ifdef HAVE_SYS_BITYPES_H
10759             #include <sys/bitypes.h>
10760 #           endif
10761             #include <stdio.h>
10762             #include <sys/types.h>
10763
10764             main()
10765             {
10766               u_int64_t t = 1;
10767               char strbuf[16+1];
10768               sprintf(strbuf, "%016llx", t << 32);
10769               if (strcmp(strbuf, "0000000100000000") == 0)
10770                 exit(0);
10771               else
10772                 exit(1);
10773             }
10774
10775
10776 _ACEOF
10777 rm -f conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781   *) ac_try_echo=$ac_try;;
10782 esac
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784   (eval "$ac_link") 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10788   { (case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_try") 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; }; then
10797
10798         cat >>confdefs.h <<\_ACEOF
10799 #define PRId64 "lld"
10800 _ACEOF
10801
10802         cat >>confdefs.h <<\_ACEOF
10803 #define PRIo64 "llo"
10804 _ACEOF
10805
10806         cat >>confdefs.h <<\_ACEOF
10807 #define PRIx64 "llx"
10808 _ACEOF
10809
10810         cat >>confdefs.h <<\_ACEOF
10811 #define PRIu64 "llu"
10812 _ACEOF
10813
10814         { echo "$as_me:$LINENO: result: yes" >&5
10815 echo "${ECHO_T}yes" >&6; }
10816
10817 else
10818   echo "$as_me: program exited with status $ac_status" >&5
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ( exit $ac_status )
10823
10824         { echo "$as_me:$LINENO: result: no" >&5
10825 echo "${ECHO_T}no" >&6; }
10826
10827
10828     { echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10829 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6; }
10830     if test "$cross_compiling" = yes; then
10831   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10832 See \`config.log' for more details." >&5
10833 echo "$as_me: error: cannot run test program while cross compiling
10834 See \`config.log' for more details." >&2;}
10835    { (exit 1); exit 1; }; }
10836 else
10837   cat >conftest.$ac_ext <<_ACEOF
10838
10839         /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844
10845 #           ifdef HAVE_INTTYPES_H
10846             #include <inttypes.h>
10847 #           endif
10848 #           ifdef HAVE_SYS_BITYPES_H
10849             #include <sys/bitypes.h>
10850 #           endif
10851             #include <stdio.h>
10852             #include <sys/types.h>
10853
10854             main()
10855             {
10856               u_int64_t t = 1;
10857               char strbuf[16+1];
10858               sprintf(strbuf, "%016Lx", t << 32);
10859               if (strcmp(strbuf, "0000000100000000") == 0)
10860                 exit(0);
10861               else
10862                 exit(1);
10863             }
10864
10865
10866 _ACEOF
10867 rm -f conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874   (eval "$ac_link") 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887
10888         cat >>confdefs.h <<\_ACEOF
10889 #define PRId64 "Ld"
10890 _ACEOF
10891
10892         cat >>confdefs.h <<\_ACEOF
10893 #define PRIo64 "Lo"
10894 _ACEOF
10895
10896         cat >>confdefs.h <<\_ACEOF
10897 #define PRIx64 "Lx"
10898 _ACEOF
10899
10900         cat >>confdefs.h <<\_ACEOF
10901 #define PRIu64 "Lu"
10902 _ACEOF
10903
10904         { echo "$as_me:$LINENO: result: yes" >&5
10905 echo "${ECHO_T}yes" >&6; }
10906
10907 else
10908   echo "$as_me: program exited with status $ac_status" >&5
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ( exit $ac_status )
10913
10914         { echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6; }
10916
10917
10918     { echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10919 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6; }
10920     if test "$cross_compiling" = yes; then
10921   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10922 See \`config.log' for more details." >&5
10923 echo "$as_me: error: cannot run test program while cross compiling
10924 See \`config.log' for more details." >&2;}
10925    { (exit 1); exit 1; }; }
10926 else
10927   cat >conftest.$ac_ext <<_ACEOF
10928
10929         /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934
10935 #           ifdef HAVE_INTTYPES_H
10936             #include <inttypes.h>
10937 #           endif
10938 #           ifdef HAVE_SYS_BITYPES_H
10939             #include <sys/bitypes.h>
10940 #           endif
10941             #include <stdio.h>
10942             #include <sys/types.h>
10943
10944             main()
10945             {
10946               u_int64_t t = 1;
10947               char strbuf[16+1];
10948               sprintf(strbuf, "%016qx", t << 32);
10949               if (strcmp(strbuf, "0000000100000000") == 0)
10950                 exit(0);
10951               else
10952                 exit(1);
10953             }
10954
10955
10956 _ACEOF
10957 rm -f conftest$ac_exeext
10958 if { (ac_try="$ac_link"
10959 case "(($ac_try" in
10960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961   *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964   (eval "$ac_link") 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10968   { (case "(($ac_try" in
10969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970   *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973   (eval "$ac_try") 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; }; then
10977
10978         cat >>confdefs.h <<\_ACEOF
10979 #define PRId64 "qd"
10980 _ACEOF
10981
10982         cat >>confdefs.h <<\_ACEOF
10983 #define PRIo64 "qo"
10984 _ACEOF
10985
10986         cat >>confdefs.h <<\_ACEOF
10987 #define PRIx64 "qx"
10988 _ACEOF
10989
10990         cat >>confdefs.h <<\_ACEOF
10991 #define PRIu64 "qu"
10992 _ACEOF
10993
10994         { echo "$as_me:$LINENO: result: yes" >&5
10995 echo "${ECHO_T}yes" >&6; }
10996
10997 else
10998   echo "$as_me: program exited with status $ac_status" >&5
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 ( exit $ac_status )
11003
11004         { echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6; }
11006
11007                   { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11008 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11009    { (exit 1); exit 1; }; }
11010
11011
11012 fi
11013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11014 fi
11015
11016
11017
11018
11019
11020 fi
11021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11022 fi
11023
11024
11025
11026
11027
11028 fi
11029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11030 fi
11031
11032
11033
11034
11035
11036 fi
11037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11038 fi
11039
11040
11041
11042 fi
11043
11044 #
11045 # Check for some headers introduced in later versions of libpcap
11046 # and used by some printers.
11047 #
11048 # Those headers use the {u_}intN_t types, so we must do this after
11049 # we check for what's needed to get them defined.
11050 #
11051 savedcppflags="$CPPFLAGS"
11052 CPPFLAGS="$CPPFLAGS $V_INCLS"
11053
11054 for ac_header in pcap/bluetooth.h
11055 do
11056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 #include <tcpdump-stdinc.h>
11069
11070 #include <$ac_header>
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076   *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079   (eval "$ac_compile") 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } && {
11086          test -z "$ac_c_werror_flag" ||
11087          test ! -s conftest.err
11088        } && test -s conftest.$ac_objext; then
11089   eval "$as_ac_Header=yes"
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094         eval "$as_ac_Header=no"
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 fi
11099 ac_res=`eval echo '${'$as_ac_Header'}'`
11100                { echo "$as_me:$LINENO: result: $ac_res" >&5
11101 echo "${ECHO_T}$ac_res" >&6; }
11102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11103   cat >>confdefs.h <<_ACEOF
11104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11105 _ACEOF
11106
11107 fi
11108
11109 done
11110
11111
11112 for ac_header in pcap/usb.h
11113 do
11114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126 #include <tcpdump-stdinc.h>
11127
11128 #include <$ac_header>
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_compile") 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } && {
11144          test -z "$ac_c_werror_flag" ||
11145          test ! -s conftest.err
11146        } && test -s conftest.$ac_objext; then
11147   eval "$as_ac_Header=yes"
11148 else
11149   echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152         eval "$as_ac_Header=no"
11153 fi
11154
11155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156 fi
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158                { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11161   cat >>confdefs.h <<_ACEOF
11162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11163 _ACEOF
11164
11165 fi
11166
11167 done
11168
11169 CPPFLAGS="$savedcppflags"
11170
11171 if test -n "$ac_tool_prefix"; then
11172   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11176 if test "${ac_cv_prog_RANLIB+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   if test -n "$RANLIB"; then
11180   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11181 else
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $PATH
11184 do
11185   IFS=$as_save_IFS
11186   test -z "$as_dir" && as_dir=.
11187   for ac_exec_ext in '' $ac_executable_extensions; do
11188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11189     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11191     break 2
11192   fi
11193 done
11194 done
11195 IFS=$as_save_IFS
11196
11197 fi
11198 fi
11199 RANLIB=$ac_cv_prog_RANLIB
11200 if test -n "$RANLIB"; then
11201   { echo "$as_me:$LINENO: result: $RANLIB" >&5
11202 echo "${ECHO_T}$RANLIB" >&6; }
11203 else
11204   { echo "$as_me:$LINENO: result: no" >&5
11205 echo "${ECHO_T}no" >&6; }
11206 fi
11207
11208
11209 fi
11210 if test -z "$ac_cv_prog_RANLIB"; then
11211   ac_ct_RANLIB=$RANLIB
11212   # Extract the first word of "ranlib", so it can be a program name with args.
11213 set dummy ranlib; ac_word=$2
11214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11217   echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219   if test -n "$ac_ct_RANLIB"; then
11220   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11221 else
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225   IFS=$as_save_IFS
11226   test -z "$as_dir" && as_dir=.
11227   for ac_exec_ext in '' $ac_executable_extensions; do
11228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11229     ac_cv_prog_ac_ct_RANLIB="ranlib"
11230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234 done
11235 IFS=$as_save_IFS
11236
11237 fi
11238 fi
11239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11240 if test -n "$ac_ct_RANLIB"; then
11241   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11242 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11243 else
11244   { echo "$as_me:$LINENO: result: no" >&5
11245 echo "${ECHO_T}no" >&6; }
11246 fi
11247
11248   if test "x$ac_ct_RANLIB" = x; then
11249     RANLIB=":"
11250   else
11251     case $cross_compiling:$ac_tool_warned in
11252 yes:)
11253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11254 whose name does not start with the host triplet.  If you think this
11255 configuration is useful to you, please write to autoconf@gnu.org." >&5
11256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11257 whose name does not start with the host triplet.  If you think this
11258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11259 ac_tool_warned=yes ;;
11260 esac
11261     RANLIB=$ac_ct_RANLIB
11262   fi
11263 else
11264   RANLIB="$ac_cv_prog_RANLIB"
11265 fi
11266
11267
11268 rm -f os-proto.h
11269     if test "${LBL_CFLAGS+set}" = set; then
11270             V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
11271     fi
11272     if test -f .devel ; then
11273             if test "$GCC" = yes ; then
11274                     if test "${LBL_CFLAGS+set}" != set; then
11275                             if test "$ac_cv_prog_cc_g" = yes ; then
11276                                     V_CCOPT="-g $V_CCOPT"
11277                             fi
11278                             V_CCOPT="$V_CCOPT -Wall"
11279                             if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11280                                     V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
11281                             fi
11282                     fi
11283             else
11284                     case "$host_os" in
11285
11286                     irix6*)
11287                             V_CCOPT="$V_CCOPT -n32"
11288                             ;;
11289
11290                     *)
11291                             ;;
11292                     esac
11293             fi
11294             os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11295             name="lbl/os-$os.h"
11296             if test -f $name ; then
11297                     ln -s $name os-proto.h
11298
11299 cat >>confdefs.h <<\_ACEOF
11300 #define HAVE_OS_PROTO_H 1
11301 _ACEOF
11302
11303             else
11304                     { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11305 echo "$as_me: WARNING: can't find $name" >&2;}
11306             fi
11307     fi
11308
11309 { echo "$as_me:$LINENO: checking if sockaddr struct has the sa_len member" >&5
11310 echo $ECHO_N "checking if sockaddr struct has the sa_len member... $ECHO_C" >&6; }
11311     if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11312   echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314   cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320
11321 #       include <sys/types.h>
11322 #       include <sys/socket.h>
11323 int
11324 main ()
11325 {
11326 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext
11332 if { (ac_try="$ac_compile"
11333 case "(($ac_try" in
11334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335   *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338   (eval "$ac_compile") 2>conftest.er1
11339   ac_status=$?
11340   grep -v '^ *+' conftest.er1 >conftest.err
11341   rm -f conftest.er1
11342   cat conftest.err >&5
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); } && {
11345          test -z "$ac_c_werror_flag" ||
11346          test ! -s conftest.err
11347        } && test -s conftest.$ac_objext; then
11348   ac_cv_lbl_sockaddr_has_sa_len=yes
11349 else
11350   echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353         ac_cv_lbl_sockaddr_has_sa_len=no
11354 fi
11355
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 fi
11358
11359     { echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11360 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6; }
11361     if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11362
11363 cat >>confdefs.h <<\_ACEOF
11364 #define HAVE_SOCKADDR_SA_LEN 1
11365 _ACEOF
11366
11367     fi
11368
11369 { echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11370 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6; }
11371     if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   case "$host_cpu" in
11375
11376         #
11377         # These are CPU types where:
11378         #
11379         #       the CPU faults on an unaligned access, but at least some
11380         #       OSes that support that CPU catch the fault and simulate
11381         #       the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11382         #       the simulation is slow, so we don't want to use it;
11383         #
11384         #       the CPU, I infer (from the old
11385         #
11386         # XXX: should also check that they don't do weird things (like on arm)
11387         #
11388         #       comment) doesn't fault on unaligned accesses, but doesn't
11389         #       do a normal unaligned fetch, either (e.g., presumably, ARM);
11390         #
11391         #       for whatever reason, the test program doesn't work
11392         #       (this has been claimed to be the case for several of those
11393         #       CPUs - I don't know what the problem is; the problem
11394         #       was reported as "the test program dumps core" for SuperH,
11395         #       but that's what the test program is *supposed* to do -
11396         #       it dumps core before it writes anything, so the test
11397         #       for an empty output file should find an empty output
11398         #       file and conclude that unaligned accesses don't work).
11399         #
11400         # This run-time test won't work if you're cross-compiling, so
11401         # in order to support cross-compiling for a particular CPU,
11402         # we have to wire in the list of CPU types anyway, as far as
11403         # I know, so perhaps we should just have a set of CPUs on
11404         # which we know it doesn't work, a set of CPUs on which we
11405         # know it does work, and have the script just fail on other
11406         # cpu types and update it when such a failure occurs.
11407         #
11408         alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
11409                 ac_cv_lbl_unaligned_fail=yes
11410                 ;;
11411
11412         *)
11413                 cat >conftest.c <<EOF
11414 #               include <sys/types.h>
11415 #               include <sys/wait.h>
11416 #               include <stdio.h>
11417                 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11418                 main() {
11419                 unsigned int i;
11420                 pid_t pid;
11421                 int status;
11422                 /* avoid "core dumped" message */
11423                 pid = fork();
11424                 if (pid <  0)
11425                         exit(2);
11426                 if (pid > 0) {
11427                         /* parent */
11428                         pid = waitpid(pid, &status, 0);
11429                         if (pid < 0)
11430                                 exit(3);
11431                         exit(!WIFEXITED(status));
11432                 }
11433                 /* child */
11434                 i = *(unsigned int *)&a[1];
11435                 printf("%d\n", i);
11436                 exit(0);
11437                 }
11438 EOF
11439                 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11440                     conftest.c $LIBS >/dev/null 2>&1
11441                 if test ! -x conftest ; then
11442                                                 ac_cv_lbl_unaligned_fail=yes
11443                 else
11444                         ./conftest >conftest.out
11445                         if test ! -s conftest.out ; then
11446                                 ac_cv_lbl_unaligned_fail=yes
11447                         else
11448                                 ac_cv_lbl_unaligned_fail=no
11449                         fi
11450                 fi
11451                 rm -f -r conftest* core core.conftest
11452                 ;;
11453         esac
11454 fi
11455
11456     { echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11457 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6; }
11458     if test $ac_cv_lbl_unaligned_fail = yes ; then
11459
11460 cat >>confdefs.h <<\_ACEOF
11461 #define LBL_ALIGN 1
11462 _ACEOF
11463
11464     fi
11465
11466
11467         { echo "$as_me:$LINENO: checking for h_errno" >&5
11468 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; }
11469         if test "${ac_cv_var_h_errno+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478
11479 #               include <sys/types.h>
11480 #               include <netdb.h>
11481 int
11482 main ()
11483 {
11484 int foo = h_errno;
11485   ;
11486   return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext
11490 if { (ac_try="$ac_compile"
11491 case "(($ac_try" in
11492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493   *) ac_try_echo=$ac_try;;
11494 esac
11495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496   (eval "$ac_compile") 2>conftest.er1
11497   ac_status=$?
11498   grep -v '^ *+' conftest.er1 >conftest.err
11499   rm -f conftest.er1
11500   cat conftest.err >&5
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); } && {
11503          test -z "$ac_c_werror_flag" ||
11504          test ! -s conftest.err
11505        } && test -s conftest.$ac_objext; then
11506   ac_cv_var_h_errno=yes
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11510
11511         ac_cv_var_h_errno=no
11512 fi
11513
11514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11515 fi
11516
11517         { echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11518 echo "${ECHO_T}$ac_cv_var_h_errno" >&6; }
11519         if test "$ac_cv_var_h_errno" = "yes"; then
11520                 cat >>confdefs.h <<\_ACEOF
11521 #define HAVE_H_ERRNO 1
11522 _ACEOF
11523
11524         fi
11525
11526
11527 # Check for SSLeay
11528 { echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
11529 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6; }
11530 # Specify location for both includes and libraries.
11531 want_libcrypto=youmama
11532
11533 # Check whether --with-crypto was given.
11534 if test "${with_crypto+set}" = set; then
11535   withval=$with_crypto;
11536         if test $withval = no
11537         then
11538                 want_libcrypto=no
11539                 { echo "$as_me:$LINENO: result: no" >&5
11540 echo "${ECHO_T}no" >&6; }
11541         elif test $withval = yes
11542         then
11543                 want_libcrypto=yes
11544                 { echo "$as_me:$LINENO: result: yes" >&5
11545 echo "${ECHO_T}yes" >&6; }
11546         else
11547                 want_libcrypto=yes
11548                 { echo "$as_me:$LINENO: result: yes" >&5
11549 echo "${ECHO_T}yes" >&6; }
11550                 crypto_dir=$withval
11551         fi
11552
11553 else
11554
11555         #
11556         # Use libcrypto if it's present, otherwise don't.
11557         #
11558         want_libcrypto=ifavailable
11559         { echo "$as_me:$LINENO: result: yes, if available" >&5
11560 echo "${ECHO_T}yes, if available" >&6; }
11561
11562 fi
11563
11564 if test "$want_libcrypto" != "no"; then
11565         ac_cv_ssleay_path=no
11566         incdir=no
11567         if test "x$crypto_dir" = x; then
11568                 #
11569                 # Location not specified; check the default locations.
11570                 #
11571                 { echo "$as_me:$LINENO: checking where SSLeay is located" >&5
11572 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6; }
11573                 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
11574                 if test "x${host_alias}" != x; then
11575                         dirs="/usr/${host_alias} $dirs"
11576                 fi
11577                 for dir in $dirs; do
11578
11579         #
11580         # Find the last component of $libdir; it's not necessarily
11581         # "lib" - it might be "lib64" on, for example, x86-64
11582         # Linux systems.
11583         #
11584         # We assume the directory in which we're looking for
11585         # libcrypto has a subdirectory with that as its name.
11586         #
11587         tmplib=`echo "$libdir" | sed 's,.*/,,'`
11588
11589         #
11590         # XXX - is there a better way to check if a given library is
11591         # in a given directory than checking each of the possible
11592         # shared library suffixes?
11593         #
11594         # Are there any other suffixes we need to look for?  Do we
11595         # have to worry about ".so.{version}"?
11596         #
11597         # Or should we just look for "libcrypto.*"?
11598         #
11599         if test -d "$dir/$tmplib" -a \( -f "$dir/$tmplib/libcrypto.a" -o \
11600                                     -f "$dir/$tmplib/libcrypto.so" -o \
11601                                     -f "$dir/$tmplib/libcrypto.sl" -o \
11602                                     -f "$dir/$tmplib/libcrypto.dylib" \); then
11603                 ac_cv_ssleay_path="$dir"
11604         fi
11605
11606         #
11607         # Make sure we have the headers as well.
11608         #
11609         if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
11610                 incdir="-I$dir/include"
11611         fi
11612
11613
11614                         if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11615                                 break;
11616                         else
11617                                 ac_cv_ssleay_path=no
11618                                 incdir=no
11619                         fi
11620                 done
11621                 if test "$ac_cv_ssleay_path" != no; then
11622                         { echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11623 echo "${ECHO_T}$ac_cv_ssleay_path" >&6; }
11624                 fi
11625         else
11626                 { echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
11627 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6; }
11628
11629         #
11630         # Find the last component of $libdir; it's not necessarily
11631         # "lib" - it might be "lib64" on, for example, x86-64
11632         # Linux systems.
11633         #
11634         # We assume the directory in which we're looking for
11635         # libcrypto has a subdirectory with that as its name.
11636         #
11637         tmplib=`echo "$libdir" | sed 's,.*/,,'`
11638
11639         #
11640         # XXX - is there a better way to check if a given library is
11641         # in a given directory than checking each of the possible
11642         # shared library suffixes?
11643         #
11644         # Are there any other suffixes we need to look for?  Do we
11645         # have to worry about ".so.{version}"?
11646         #
11647         # Or should we just look for "libcrypto.*"?
11648         #
11649         if test -d "$crypto_dir/$tmplib" -a \( -f "$crypto_dir/$tmplib/libcrypto.a" -o \
11650                                     -f "$crypto_dir/$tmplib/libcrypto.so" -o \
11651                                     -f "$crypto_dir/$tmplib/libcrypto.sl" -o \
11652                                     -f "$crypto_dir/$tmplib/libcrypto.dylib" \); then
11653                 ac_cv_ssleay_path="$crypto_dir"
11654         fi
11655
11656         #
11657         # Make sure we have the headers as well.
11658         #
11659         if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
11660                 incdir="-I$crypto_dir/include"
11661         fi
11662
11663                 if test "$ac_cv_ssleay_path" != no; then
11664                         { echo "$as_me:$LINENO: result: found" >&5
11665 echo "${ECHO_T}found" >&6; }
11666                 fi
11667         fi
11668         if test "$ac_cv_ssleay_path" != no; then
11669                 V_INCLS="$V_INCLS $incdir"
11670                 if test "$dir" != "/usr"; then
11671                         LDFLAGS="-L$dir/lib $LDFLAGS"
11672                 fi
11673                 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11674                         LIBS="$LIBS -lRSAglue"
11675                 fi
11676                 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11677                         LIBS="$LIBS -lrsaref"
11678                 fi
11679
11680 { echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11681 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
11682 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lcrypto  $LIBS"
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693
11694 /* Override any GCC internal prototype to avoid an error.
11695    Use char because int might match the return type of a GCC
11696    builtin and then its argument prototype would still apply.  */
11697 #ifdef __cplusplus
11698 extern "C"
11699 #endif
11700 char DES_cbc_encrypt ();
11701 int
11702 main ()
11703 {
11704 return DES_cbc_encrypt ();
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (ac_try="$ac_link"
11711 case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_link") 2>conftest.er1
11717   ac_status=$?
11718   grep -v '^ *+' conftest.er1 >conftest.err
11719   rm -f conftest.er1
11720   cat conftest.err >&5
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } && {
11723          test -z "$ac_c_werror_flag" ||
11724          test ! -s conftest.err
11725        } && test -s conftest$ac_exeext &&
11726        $as_test_x conftest$ac_exeext; then
11727   ac_cv_lib_crypto_DES_cbc_encrypt=yes
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732         ac_cv_lib_crypto_DES_cbc_encrypt=no
11733 fi
11734
11735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11736       conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_lib_save_LIBS
11738 fi
11739 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11740 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
11741 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11742   cat >>confdefs.h <<_ACEOF
11743 #define HAVE_LIBCRYPTO 1
11744 _ACEOF
11745
11746   LIBS="-lcrypto $LIBS"
11747
11748 fi
11749
11750
11751                 savedppflags="$CPPLAGS"
11752                 CPPFLAGS="$CPPFLAGS $V_INCLS"
11753
11754 for ac_header in openssl/evp.h
11755 do
11756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11758   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 fi
11763 ac_res=`eval echo '${'$as_ac_Header'}'`
11764                { echo "$as_me:$LINENO: result: $ac_res" >&5
11765 echo "${ECHO_T}$ac_res" >&6; }
11766 else
11767   # Is the header compilable?
11768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h.  */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h.  */
11776 $ac_includes_default
11777 #include <$ac_header>
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786   (eval "$ac_compile") 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } && {
11793          test -z "$ac_c_werror_flag" ||
11794          test ! -s conftest.err
11795        } && test -s conftest.$ac_objext; then
11796   ac_header_compiler=yes
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801         ac_header_compiler=no
11802 fi
11803
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 echo "${ECHO_T}$ac_header_compiler" >&6; }
11807
11808 # Is the header present?
11809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817 #include <$ac_header>
11818 _ACEOF
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11826   ac_status=$?
11827   grep -v '^ *+' conftest.er1 >conftest.err
11828   rm -f conftest.er1
11829   cat conftest.err >&5
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); } >/dev/null && {
11832          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11833          test ! -s conftest.err
11834        }; then
11835   ac_header_preproc=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840   ac_header_preproc=no
11841 fi
11842
11843 rm -f conftest.err conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6; }
11846
11847 # So?  What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849   yes:no: )
11850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854     ac_header_preproc=yes
11855     ;;
11856   no:yes:* )
11857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11869
11870     ;;
11871 esac
11872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875   echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877   eval "$as_ac_Header=\$ac_header_preproc"
11878 fi
11879 ac_res=`eval echo '${'$as_ac_Header'}'`
11880                { echo "$as_me:$LINENO: result: $ac_res" >&5
11881 echo "${ECHO_T}$ac_res" >&6; }
11882
11883 fi
11884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11885   cat >>confdefs.h <<_ACEOF
11886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11887 _ACEOF
11888
11889 fi
11890
11891 done
11892
11893                 CPPFLAGS="$savedcppflags"
11894         else
11895                 #
11896                 # Not found.  Did the user explicitly ask for it?
11897                 #
11898                 { echo "$as_me:$LINENO: result: not found" >&5
11899 echo "${ECHO_T}not found" >&6; }
11900                 if test "$want_libcrypto" = yes; then
11901                         { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
11902 echo "$as_me: error: SSLeay not found" >&2;}
11903    { (exit 1); exit 1; }; }
11904                 fi
11905         fi
11906 fi
11907
11908 if test "$missing_includes" = "yes"; then
11909         CPPFLAGS="$CPPFLAGS -I$srcdir/missing"
11910         V_INCLS="$V_INCLS -I$srcdir/missing"
11911 fi
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922 # Find a good install program.  We prefer a C program (faster),
11923 # so one script is as good as another.  But avoid the broken or
11924 # incompatible versions:
11925 # SysV /etc/install, /usr/sbin/install
11926 # SunOS /usr/etc/install
11927 # IRIX /sbin/install
11928 # AIX /bin/install
11929 # AmigaOS /C/install, which installs bootblocks on floppy discs
11930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11933 # OS/2's system install, which has a completely different semantic
11934 # ./install, which can be erroneously created by make from ./install.sh.
11935 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11936 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11937 if test -z "$INSTALL"; then
11938 if test "${ac_cv_path_install+set}" = set; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11943 do
11944   IFS=$as_save_IFS
11945   test -z "$as_dir" && as_dir=.
11946   # Account for people who put trailing slashes in PATH elements.
11947 case $as_dir/ in
11948   ./ | .// | /cC/* | \
11949   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11950   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11951   /usr/ucb/* ) ;;
11952   *)
11953     # OSF1 and SCO ODT 3.0 have their own names for install.
11954     # Don't use installbsd from OSF since it installs stuff as root
11955     # by default.
11956     for ac_prog in ginstall scoinst install; do
11957       for ac_exec_ext in '' $ac_executable_extensions; do
11958         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11959           if test $ac_prog = install &&
11960             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11961             # AIX install.  It has an incompatible calling convention.
11962             :
11963           elif test $ac_prog = install &&
11964             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11965             # program-specific install script used by HP pwplus--don't use.
11966             :
11967           else
11968             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11969             break 3
11970           fi
11971         fi
11972       done
11973     done
11974     ;;
11975 esac
11976 done
11977 IFS=$as_save_IFS
11978
11979
11980 fi
11981   if test "${ac_cv_path_install+set}" = set; then
11982     INSTALL=$ac_cv_path_install
11983   else
11984     # As a last resort, use the slow shell script.  Don't cache a
11985     # value for INSTALL within a source directory, because that will
11986     # break other packages using the cache if that directory is
11987     # removed, or if the value is a relative name.
11988     INSTALL=$ac_install_sh
11989   fi
11990 fi
11991 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11992 echo "${ECHO_T}$INSTALL" >&6; }
11993
11994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11995 # It thinks the first close brace ends the variable substitution.
11996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11997
11998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11999
12000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12001
12002
12003 ac_config_headers="$ac_config_headers config.h"
12004
12005
12006 ac_config_commands="$ac_config_commands default-1"
12007
12008 ac_config_files="$ac_config_files Makefile tcpdump.1"
12009
12010 cat >confcache <<\_ACEOF
12011 # This file is a shell script that caches the results of configure
12012 # tests run on this system so they can be shared between configure
12013 # scripts and configure runs, see configure's option --config-cache.
12014 # It is not useful on other systems.  If it contains results you don't
12015 # want to keep, you may remove or edit it.
12016 #
12017 # config.status only pays attention to the cache file if you give it
12018 # the --recheck option to rerun configure.
12019 #
12020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12022 # following values.
12023
12024 _ACEOF
12025
12026 # The following way of writing the cache mishandles newlines in values,
12027 # but we know of no workaround that is simple, portable, and efficient.
12028 # So, we kill variables containing newlines.
12029 # Ultrix sh set writes to stderr and can't be redirected directly,
12030 # and sets the high bit in the cache file unless we assign to the vars.
12031 (
12032   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12033     eval ac_val=\$$ac_var
12034     case $ac_val in #(
12035     *${as_nl}*)
12036       case $ac_var in #(
12037       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12038 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12039       esac
12040       case $ac_var in #(
12041       _ | IFS | as_nl) ;; #(
12042       *) $as_unset $ac_var ;;
12043       esac ;;
12044     esac
12045   done
12046
12047   (set) 2>&1 |
12048     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12049     *${as_nl}ac_space=\ *)
12050       # `set' does not quote correctly, so add quotes (double-quote
12051       # substitution turns \\\\ into \\, and sed turns \\ into \).
12052       sed -n \
12053         "s/'/'\\\\''/g;
12054           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12055       ;; #(
12056     *)
12057       # `set' quotes correctly as required by POSIX, so do not add quotes.
12058       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12059       ;;
12060     esac |
12061     sort
12062 ) |
12063   sed '
12064      /^ac_cv_env_/b end
12065      t clear
12066      :clear
12067      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12068      t end
12069      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12070      :end' >>confcache
12071 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12072   if test -w "$cache_file"; then
12073     test "x$cache_file" != "x/dev/null" &&
12074       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12075 echo "$as_me: updating cache $cache_file" >&6;}
12076     cat confcache >$cache_file
12077   else
12078     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12079 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12080   fi
12081 fi
12082 rm -f confcache
12083
12084 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12085 # Let make expand exec_prefix.
12086 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12087
12088 DEFS=-DHAVE_CONFIG_H
12089
12090 ac_libobjs=
12091 ac_ltlibobjs=
12092 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12093   # 1. Remove the extension, and $U if already installed.
12094   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12095   ac_i=`echo "$ac_i" | sed "$ac_script"`
12096   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12097   #    will be set to the directory where LIBOBJS objects are built.
12098   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12099   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12100 done
12101 LIBOBJS=$ac_libobjs
12102
12103 LTLIBOBJS=$ac_ltlibobjs
12104
12105
12106
12107 : ${CONFIG_STATUS=./config.status}
12108 ac_clean_files_save=$ac_clean_files
12109 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12110 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12111 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12112 cat >$CONFIG_STATUS <<_ACEOF
12113 #! $SHELL
12114 # Generated by $as_me.
12115 # Run this file to recreate the current configuration.
12116 # Compiler output produced by configure, useful for debugging
12117 # configure, is in config.log if it exists.
12118
12119 debug=false
12120 ac_cs_recheck=false
12121 ac_cs_silent=false
12122 SHELL=\${CONFIG_SHELL-$SHELL}
12123 _ACEOF
12124
12125 cat >>$CONFIG_STATUS <<\_ACEOF
12126 ## --------------------- ##
12127 ## M4sh Initialization.  ##
12128 ## --------------------- ##
12129
12130 # Be more Bourne compatible
12131 DUALCASE=1; export DUALCASE # for MKS sh
12132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12133   emulate sh
12134   NULLCMD=:
12135   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12136   # is contrary to our usage.  Disable this feature.
12137   alias -g '${1+"$@"}'='"$@"'
12138   setopt NO_GLOB_SUBST
12139 else
12140   case `(set -o) 2>/dev/null` in
12141   *posix*) set -o posix ;;
12142 esac
12143
12144 fi
12145
12146
12147
12148
12149 # PATH needs CR
12150 # Avoid depending upon Character Ranges.
12151 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12152 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12153 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12154 as_cr_digits='0123456789'
12155 as_cr_alnum=$as_cr_Letters$as_cr_digits
12156
12157 # The user is always right.
12158 if test "${PATH_SEPARATOR+set}" != set; then
12159   echo "#! /bin/sh" >conf$$.sh
12160   echo  "exit 0"   >>conf$$.sh
12161   chmod +x conf$$.sh
12162   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12163     PATH_SEPARATOR=';'
12164   else
12165     PATH_SEPARATOR=:
12166   fi
12167   rm -f conf$$.sh
12168 fi
12169
12170 # Support unset when possible.
12171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12172   as_unset=unset
12173 else
12174   as_unset=false
12175 fi
12176
12177
12178 # IFS
12179 # We need space, tab and new line, in precisely that order.  Quoting is
12180 # there to prevent editors from complaining about space-tab.
12181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12182 # splitting by setting IFS to empty value.)
12183 as_nl='
12184 '
12185 IFS=" ""        $as_nl"
12186
12187 # Find who we are.  Look in the path if we contain no directory separator.
12188 case $0 in
12189   *[\\/]* ) as_myself=$0 ;;
12190   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193   IFS=$as_save_IFS
12194   test -z "$as_dir" && as_dir=.
12195   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12196 done
12197 IFS=$as_save_IFS
12198
12199      ;;
12200 esac
12201 # We did not find ourselves, most probably we were run as `sh COMMAND'
12202 # in which case we are not to be found in the path.
12203 if test "x$as_myself" = x; then
12204   as_myself=$0
12205 fi
12206 if test ! -f "$as_myself"; then
12207   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12208   { (exit 1); exit 1; }
12209 fi
12210
12211 # Work around bugs in pre-3.0 UWIN ksh.
12212 for as_var in ENV MAIL MAILPATH
12213 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12214 done
12215 PS1='$ '
12216 PS2='> '
12217 PS4='+ '
12218
12219 # NLS nuisances.
12220 for as_var in \
12221   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12222   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12223   LC_TELEPHONE LC_TIME
12224 do
12225   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12226     eval $as_var=C; export $as_var
12227   else
12228     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12229   fi
12230 done
12231
12232 # Required to use basename.
12233 if expr a : '\(a\)' >/dev/null 2>&1 &&
12234    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12235   as_expr=expr
12236 else
12237   as_expr=false
12238 fi
12239
12240 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12241   as_basename=basename
12242 else
12243   as_basename=false
12244 fi
12245
12246
12247 # Name of the executable.
12248 as_me=`$as_basename -- "$0" ||
12249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12250          X"$0" : 'X\(//\)$' \| \
12251          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12252 echo X/"$0" |
12253     sed '/^.*\/\([^/][^/]*\)\/*$/{
12254             s//\1/
12255             q
12256           }
12257           /^X\/\(\/\/\)$/{
12258             s//\1/
12259             q
12260           }
12261           /^X\/\(\/\).*/{
12262             s//\1/
12263             q
12264           }
12265           s/.*/./; q'`
12266
12267 # CDPATH.
12268 $as_unset CDPATH
12269
12270
12271
12272   as_lineno_1=$LINENO
12273   as_lineno_2=$LINENO
12274   test "x$as_lineno_1" != "x$as_lineno_2" &&
12275   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12276
12277   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12278   # uniformly replaced by the line number.  The first 'sed' inserts a
12279   # line-number line after each line using $LINENO; the second 'sed'
12280   # does the real work.  The second script uses 'N' to pair each
12281   # line-number line with the line containing $LINENO, and appends
12282   # trailing '-' during substitution so that $LINENO is not a special
12283   # case at line end.
12284   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12285   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12286   # E. McMahon (1931-1989) for sed's syntax.  :-)
12287   sed -n '
12288     p
12289     /[$]LINENO/=
12290   ' <$as_myself |
12291     sed '
12292       s/[$]LINENO.*/&-/
12293       t lineno
12294       b
12295       :lineno
12296       N
12297       :loop
12298       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12299       t loop
12300       s/-\n.*//
12301     ' >$as_me.lineno &&
12302   chmod +x "$as_me.lineno" ||
12303     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12304    { (exit 1); exit 1; }; }
12305
12306   # Don't try to exec as it changes $[0], causing all sort of problems
12307   # (the dirname of $[0] is not the place where we might find the
12308   # original and so on.  Autoconf is especially sensitive to this).
12309   . "./$as_me.lineno"
12310   # Exit status is that of the last command.
12311   exit
12312 }
12313
12314
12315 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12316   as_dirname=dirname
12317 else
12318   as_dirname=false
12319 fi
12320
12321 ECHO_C= ECHO_N= ECHO_T=
12322 case `echo -n x` in
12323 -n*)
12324   case `echo 'x\c'` in
12325   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12326   *)   ECHO_C='\c';;
12327   esac;;
12328 *)
12329   ECHO_N='-n';;
12330 esac
12331
12332 if expr a : '\(a\)' >/dev/null 2>&1 &&
12333    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12334   as_expr=expr
12335 else
12336   as_expr=false
12337 fi
12338
12339 rm -f conf$$ conf$$.exe conf$$.file
12340 if test -d conf$$.dir; then
12341   rm -f conf$$.dir/conf$$.file
12342 else
12343   rm -f conf$$.dir
12344   mkdir conf$$.dir
12345 fi
12346 echo >conf$$.file
12347 if ln -s conf$$.file conf$$ 2>/dev/null; then
12348   as_ln_s='ln -s'
12349   # ... but there are two gotchas:
12350   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12351   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12352   # In both cases, we have to default to `cp -p'.
12353   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12354     as_ln_s='cp -p'
12355 elif ln conf$$.file conf$$ 2>/dev/null; then
12356   as_ln_s=ln
12357 else
12358   as_ln_s='cp -p'
12359 fi
12360 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12361 rmdir conf$$.dir 2>/dev/null
12362
12363 if mkdir -p . 2>/dev/null; then
12364   as_mkdir_p=:
12365 else
12366   test -d ./-p && rmdir ./-p
12367   as_mkdir_p=false
12368 fi
12369
12370 if test -x / >/dev/null 2>&1; then
12371   as_test_x='test -x'
12372 else
12373   if ls -dL / >/dev/null 2>&1; then
12374     as_ls_L_option=L
12375   else
12376     as_ls_L_option=
12377   fi
12378   as_test_x='
12379     eval sh -c '\''
12380       if test -d "$1"; then
12381         test -d "$1/.";
12382       else
12383         case $1 in
12384         -*)set "./$1";;
12385         esac;
12386         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12387         ???[sx]*):;;*)false;;esac;fi
12388     '\'' sh
12389   '
12390 fi
12391 as_executable_p=$as_test_x
12392
12393 # Sed expression to map a string onto a valid CPP name.
12394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12395
12396 # Sed expression to map a string onto a valid variable name.
12397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12398
12399
12400 exec 6>&1
12401
12402 # Save the log message, to keep $[0] and so on meaningful, and to
12403 # report actual input values of CONFIG_FILES etc. instead of their
12404 # values after options handling.
12405 ac_log="
12406 This file was extended by $as_me, which was
12407 generated by GNU Autoconf 2.61.  Invocation command line was
12408
12409   CONFIG_FILES    = $CONFIG_FILES
12410   CONFIG_HEADERS  = $CONFIG_HEADERS
12411   CONFIG_LINKS    = $CONFIG_LINKS
12412   CONFIG_COMMANDS = $CONFIG_COMMANDS
12413   $ $0 $@
12414
12415 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12416 "
12417
12418 _ACEOF
12419
12420 cat >>$CONFIG_STATUS <<_ACEOF
12421 # Files that config.status was made for.
12422 config_files="$ac_config_files"
12423 config_headers="$ac_config_headers"
12424 config_commands="$ac_config_commands"
12425
12426 _ACEOF
12427
12428 cat >>$CONFIG_STATUS <<\_ACEOF
12429 ac_cs_usage="\
12430 \`$as_me' instantiates files from templates according to the
12431 current configuration.
12432
12433 Usage: $0 [OPTIONS] [FILE]...
12434
12435   -h, --help       print this help, then exit
12436   -V, --version    print version number and configuration settings, then exit
12437   -q, --quiet      do not print progress messages
12438   -d, --debug      don't remove temporary files
12439       --recheck    update $as_me by reconfiguring in the same conditions
12440   --file=FILE[:TEMPLATE]
12441                    instantiate the configuration file FILE
12442   --header=FILE[:TEMPLATE]
12443                    instantiate the configuration header FILE
12444
12445 Configuration files:
12446 $config_files
12447
12448 Configuration headers:
12449 $config_headers
12450
12451 Configuration commands:
12452 $config_commands
12453
12454 Report bugs to <bug-autoconf@gnu.org>."
12455
12456 _ACEOF
12457 cat >>$CONFIG_STATUS <<_ACEOF
12458 ac_cs_version="\\
12459 config.status
12460 configured by $0, generated by GNU Autoconf 2.61,
12461   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12462
12463 Copyright (C) 2006 Free Software Foundation, Inc.
12464 This config.status script is free software; the Free Software Foundation
12465 gives unlimited permission to copy, distribute and modify it."
12466
12467 ac_pwd='$ac_pwd'
12468 srcdir='$srcdir'
12469 INSTALL='$INSTALL'
12470 _ACEOF
12471
12472 cat >>$CONFIG_STATUS <<\_ACEOF
12473 # If no file are specified by the user, then we need to provide default
12474 # value.  By we need to know if files were specified by the user.
12475 ac_need_defaults=:
12476 while test $# != 0
12477 do
12478   case $1 in
12479   --*=*)
12480     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12481     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12482     ac_shift=:
12483     ;;
12484   *)
12485     ac_option=$1
12486     ac_optarg=$2
12487     ac_shift=shift
12488     ;;
12489   esac
12490
12491   case $ac_option in
12492   # Handling of the options.
12493   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12494     ac_cs_recheck=: ;;
12495   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12496     echo "$ac_cs_version"; exit ;;
12497   --debug | --debu | --deb | --de | --d | -d )
12498     debug=: ;;
12499   --file | --fil | --fi | --f )
12500     $ac_shift
12501     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12502     ac_need_defaults=false;;
12503   --header | --heade | --head | --hea )
12504     $ac_shift
12505     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12506     ac_need_defaults=false;;
12507   --he | --h)
12508     # Conflict between --help and --header
12509     { echo "$as_me: error: ambiguous option: $1
12510 Try \`$0 --help' for more information." >&2
12511    { (exit 1); exit 1; }; };;
12512   --help | --hel | -h )
12513     echo "$ac_cs_usage"; exit ;;
12514   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12515   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12516     ac_cs_silent=: ;;
12517
12518   # This is an error.
12519   -*) { echo "$as_me: error: unrecognized option: $1
12520 Try \`$0 --help' for more information." >&2
12521    { (exit 1); exit 1; }; } ;;
12522
12523   *) ac_config_targets="$ac_config_targets $1"
12524      ac_need_defaults=false ;;
12525
12526   esac
12527   shift
12528 done
12529
12530 ac_configure_extra_args=
12531
12532 if $ac_cs_silent; then
12533   exec 6>/dev/null
12534   ac_configure_extra_args="$ac_configure_extra_args --silent"
12535 fi
12536
12537 _ACEOF
12538 cat >>$CONFIG_STATUS <<_ACEOF
12539 if \$ac_cs_recheck; then
12540   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12541   CONFIG_SHELL=$SHELL
12542   export CONFIG_SHELL
12543   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12544 fi
12545
12546 _ACEOF
12547 cat >>$CONFIG_STATUS <<\_ACEOF
12548 exec 5>>config.log
12549 {
12550   echo
12551   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12552 ## Running $as_me. ##
12553 _ASBOX
12554   echo "$ac_log"
12555 } >&5
12556
12557 _ACEOF
12558 cat >>$CONFIG_STATUS <<_ACEOF
12559 #
12560 # INIT-COMMANDS
12561 #
12562
12563
12564 _ACEOF
12565
12566 cat >>$CONFIG_STATUS <<\_ACEOF
12567
12568 # Handling of arguments.
12569 for ac_config_target in $ac_config_targets
12570 do
12571   case $ac_config_target in
12572     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12573     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12574     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12575     "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;;
12576
12577   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12578 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12579    { (exit 1); exit 1; }; };;
12580   esac
12581 done
12582
12583
12584 # If the user did not use the arguments to specify the items to instantiate,
12585 # then the envvar interface is used.  Set only those that are not.
12586 # We use the long form for the default assignment because of an extremely
12587 # bizarre bug on SunOS 4.1.3.
12588 if $ac_need_defaults; then
12589   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12590   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12591   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12592 fi
12593
12594 # Have a temporary directory for convenience.  Make it in the build tree
12595 # simply because there is no reason against having it here, and in addition,
12596 # creating and moving files from /tmp can sometimes cause problems.
12597 # Hook for its removal unless debugging.
12598 # Note that there is a small window in which the directory will not be cleaned:
12599 # after its creation but before its name has been assigned to `$tmp'.
12600 $debug ||
12601 {
12602   tmp=
12603   trap 'exit_status=$?
12604   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12605 ' 0
12606   trap '{ (exit 1); exit 1; }' 1 2 13 15
12607 }
12608 # Create a (secure) tmp directory for tmp files.
12609
12610 {
12611   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12612   test -n "$tmp" && test -d "$tmp"
12613 }  ||
12614 {
12615   tmp=./conf$$-$RANDOM
12616   (umask 077 && mkdir "$tmp")
12617 } ||
12618 {
12619    echo "$me: cannot create a temporary directory in ." >&2
12620    { (exit 1); exit 1; }
12621 }
12622
12623 #
12624 # Set up the sed scripts for CONFIG_FILES section.
12625 #
12626
12627 # No need to generate the scripts if there are no CONFIG_FILES.
12628 # This happens for instance when ./config.status config.h
12629 if test -n "$CONFIG_FILES"; then
12630
12631 _ACEOF
12632
12633
12634
12635 ac_delim='%!_!# '
12636 for ac_last_try in false false false false false :; do
12637   cat >conf$$subs.sed <<_ACEOF
12638 SHELL!$SHELL$ac_delim
12639 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12640 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12641 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12642 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12643 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12644 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12645 exec_prefix!$exec_prefix$ac_delim
12646 prefix!$prefix$ac_delim
12647 program_transform_name!$program_transform_name$ac_delim
12648 bindir!$bindir$ac_delim
12649 sbindir!$sbindir$ac_delim
12650 libexecdir!$libexecdir$ac_delim
12651 datarootdir!$datarootdir$ac_delim
12652 datadir!$datadir$ac_delim
12653 sysconfdir!$sysconfdir$ac_delim
12654 sharedstatedir!$sharedstatedir$ac_delim
12655 localstatedir!$localstatedir$ac_delim
12656 includedir!$includedir$ac_delim
12657 oldincludedir!$oldincludedir$ac_delim
12658 docdir!$docdir$ac_delim
12659 infodir!$infodir$ac_delim
12660 htmldir!$htmldir$ac_delim
12661 dvidir!$dvidir$ac_delim
12662 pdfdir!$pdfdir$ac_delim
12663 psdir!$psdir$ac_delim
12664 libdir!$libdir$ac_delim
12665 localedir!$localedir$ac_delim
12666 mandir!$mandir$ac_delim
12667 DEFS!$DEFS$ac_delim
12668 ECHO_C!$ECHO_C$ac_delim
12669 ECHO_N!$ECHO_N$ac_delim
12670 ECHO_T!$ECHO_T$ac_delim
12671 LIBS!$LIBS$ac_delim
12672 build_alias!$build_alias$ac_delim
12673 host_alias!$host_alias$ac_delim
12674 target_alias!$target_alias$ac_delim
12675 build!$build$ac_delim
12676 build_cpu!$build_cpu$ac_delim
12677 build_vendor!$build_vendor$ac_delim
12678 build_os!$build_os$ac_delim
12679 host!$host$ac_delim
12680 host_cpu!$host_cpu$ac_delim
12681 host_vendor!$host_vendor$ac_delim
12682 host_os!$host_os$ac_delim
12683 SHLICC2!$SHLICC2$ac_delim
12684 CC!$CC$ac_delim
12685 CFLAGS!$CFLAGS$ac_delim
12686 LDFLAGS!$LDFLAGS$ac_delim
12687 CPPFLAGS!$CPPFLAGS$ac_delim
12688 ac_ct_CC!$ac_ct_CC$ac_delim
12689 EXEEXT!$EXEEXT$ac_delim
12690 OBJEXT!$OBJEXT$ac_delim
12691 CPP!$CPP$ac_delim
12692 GREP!$GREP$ac_delim
12693 EGREP!$EGREP$ac_delim
12694 LIBOBJS!$LIBOBJS$ac_delim
12695 PCAP_CONFIG!$PCAP_CONFIG$ac_delim
12696 RANLIB!$RANLIB$ac_delim
12697 V_CCOPT!$V_CCOPT$ac_delim
12698 V_DEFS!$V_DEFS$ac_delim
12699 V_GROUP!$V_GROUP$ac_delim
12700 V_INCLS!$V_INCLS$ac_delim
12701 V_PCAPDEP!$V_PCAPDEP$ac_delim
12702 LOCALSRC!$LOCALSRC$ac_delim
12703 MAN_FILE_FORMATS!$MAN_FILE_FORMATS$ac_delim
12704 MAN_MISC_INFO!$MAN_MISC_INFO$ac_delim
12705 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12706 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12707 INSTALL_DATA!$INSTALL_DATA$ac_delim
12708 LTLIBOBJS!$LTLIBOBJS$ac_delim
12709 _ACEOF
12710
12711   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
12712     break
12713   elif $ac_last_try; then
12714     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12715 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12716    { (exit 1); exit 1; }; }
12717   else
12718     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12719   fi
12720 done
12721
12722 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12723 if test -n "$ac_eof"; then
12724   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12725   ac_eof=`expr $ac_eof + 1`
12726 fi
12727
12728 cat >>$CONFIG_STATUS <<_ACEOF
12729 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12731 _ACEOF
12732 sed '
12733 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12734 s/^/s,@/; s/!/@,|#_!!_#|/
12735 :n
12736 t n
12737 s/'"$ac_delim"'$/,g/; t
12738 s/$/\\/; p
12739 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12740 ' >>$CONFIG_STATUS <conf$$subs.sed
12741 rm -f conf$$subs.sed
12742 cat >>$CONFIG_STATUS <<_ACEOF
12743 :end
12744 s/|#_!!_#|//g
12745 CEOF$ac_eof
12746 _ACEOF
12747
12748
12749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12751 # trailing colons and then remove the whole line if VPATH becomes empty
12752 # (actually we leave an empty line to preserve line numbers).
12753 if test "x$srcdir" = x.; then
12754   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12755 s/:*\$(srcdir):*/:/
12756 s/:*\${srcdir}:*/:/
12757 s/:*@srcdir@:*/:/
12758 s/^\([^=]*=[     ]*\):*/\1/
12759 s/:*$//
12760 s/^[^=]*=[       ]*$//
12761 }'
12762 fi
12763
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12765 fi # test -n "$CONFIG_FILES"
12766
12767
12768 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12769 do
12770   case $ac_tag in
12771   :[FHLC]) ac_mode=$ac_tag; continue;;
12772   esac
12773   case $ac_mode$ac_tag in
12774   :[FHL]*:*);;
12775   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12776 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12777    { (exit 1); exit 1; }; };;
12778   :[FH]-) ac_tag=-:-;;
12779   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12780   esac
12781   ac_save_IFS=$IFS
12782   IFS=:
12783   set x $ac_tag
12784   IFS=$ac_save_IFS
12785   shift
12786   ac_file=$1
12787   shift
12788
12789   case $ac_mode in
12790   :L) ac_source=$1;;
12791   :[FH])
12792     ac_file_inputs=
12793     for ac_f
12794     do
12795       case $ac_f in
12796       -) ac_f="$tmp/stdin";;
12797       *) # Look for the file first in the build tree, then in the source tree
12798          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12799          # because $ac_f cannot contain `:'.
12800          test -f "$ac_f" ||
12801            case $ac_f in
12802            [\\/$]*) false;;
12803            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12804            esac ||
12805            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12806 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12807    { (exit 1); exit 1; }; };;
12808       esac
12809       ac_file_inputs="$ac_file_inputs $ac_f"
12810     done
12811
12812     # Let's still pretend it is `configure' which instantiates (i.e., don't
12813     # use $as_me), people would be surprised to read:
12814     #    /* config.h.  Generated by config.status.  */
12815     configure_input="Generated from "`IFS=:
12816           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12817     if test x"$ac_file" != x-; then
12818       configure_input="$ac_file.  $configure_input"
12819       { echo "$as_me:$LINENO: creating $ac_file" >&5
12820 echo "$as_me: creating $ac_file" >&6;}
12821     fi
12822
12823     case $ac_tag in
12824     *:-:* | *:-) cat >"$tmp/stdin";;
12825     esac
12826     ;;
12827   esac
12828
12829   ac_dir=`$as_dirname -- "$ac_file" ||
12830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12831          X"$ac_file" : 'X\(//\)[^/]' \| \
12832          X"$ac_file" : 'X\(//\)$' \| \
12833          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12834 echo X"$ac_file" |
12835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12836             s//\1/
12837             q
12838           }
12839           /^X\(\/\/\)[^/].*/{
12840             s//\1/
12841             q
12842           }
12843           /^X\(\/\/\)$/{
12844             s//\1/
12845             q
12846           }
12847           /^X\(\/\).*/{
12848             s//\1/
12849             q
12850           }
12851           s/.*/./; q'`
12852   { as_dir="$ac_dir"
12853   case $as_dir in #(
12854   -*) as_dir=./$as_dir;;
12855   esac
12856   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12857     as_dirs=
12858     while :; do
12859       case $as_dir in #(
12860       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12861       *) as_qdir=$as_dir;;
12862       esac
12863       as_dirs="'$as_qdir' $as_dirs"
12864       as_dir=`$as_dirname -- "$as_dir" ||
12865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12866          X"$as_dir" : 'X\(//\)[^/]' \| \
12867          X"$as_dir" : 'X\(//\)$' \| \
12868          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12869 echo X"$as_dir" |
12870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12871             s//\1/
12872             q
12873           }
12874           /^X\(\/\/\)[^/].*/{
12875             s//\1/
12876             q
12877           }
12878           /^X\(\/\/\)$/{
12879             s//\1/
12880             q
12881           }
12882           /^X\(\/\).*/{
12883             s//\1/
12884             q
12885           }
12886           s/.*/./; q'`
12887       test -d "$as_dir" && break
12888     done
12889     test -z "$as_dirs" || eval "mkdir $as_dirs"
12890   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12891 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12892    { (exit 1); exit 1; }; }; }
12893   ac_builddir=.
12894
12895 case "$ac_dir" in
12896 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12897 *)
12898   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12899   # A ".." for each directory in $ac_dir_suffix.
12900   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12901   case $ac_top_builddir_sub in
12902   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12903   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12904   esac ;;
12905 esac
12906 ac_abs_top_builddir=$ac_pwd
12907 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12908 # for backward compatibility:
12909 ac_top_builddir=$ac_top_build_prefix
12910
12911 case $srcdir in
12912   .)  # We are building in place.
12913     ac_srcdir=.
12914     ac_top_srcdir=$ac_top_builddir_sub
12915     ac_abs_top_srcdir=$ac_pwd ;;
12916   [\\/]* | ?:[\\/]* )  # Absolute name.
12917     ac_srcdir=$srcdir$ac_dir_suffix;
12918     ac_top_srcdir=$srcdir
12919     ac_abs_top_srcdir=$srcdir ;;
12920   *) # Relative name.
12921     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12922     ac_top_srcdir=$ac_top_build_prefix$srcdir
12923     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12924 esac
12925 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12926
12927
12928   case $ac_mode in
12929   :F)
12930   #
12931   # CONFIG_FILE
12932   #
12933
12934   case $INSTALL in
12935   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12936   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12937   esac
12938 _ACEOF
12939
12940 cat >>$CONFIG_STATUS <<\_ACEOF
12941 # If the template does not know about datarootdir, expand it.
12942 # FIXME: This hack should be removed a few years after 2.60.
12943 ac_datarootdir_hack=; ac_datarootdir_seen=
12944
12945 case `sed -n '/datarootdir/ {
12946   p
12947   q
12948 }
12949 /@datadir@/p
12950 /@docdir@/p
12951 /@infodir@/p
12952 /@localedir@/p
12953 /@mandir@/p
12954 ' $ac_file_inputs` in
12955 *datarootdir*) ac_datarootdir_seen=yes;;
12956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12957   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12958 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12959 _ACEOF
12960 cat >>$CONFIG_STATUS <<_ACEOF
12961   ac_datarootdir_hack='
12962   s&@datadir@&$datadir&g
12963   s&@docdir@&$docdir&g
12964   s&@infodir@&$infodir&g
12965   s&@localedir@&$localedir&g
12966   s&@mandir@&$mandir&g
12967     s&\\\${datarootdir}&$datarootdir&g' ;;
12968 esac
12969 _ACEOF
12970
12971 # Neutralize VPATH when `$srcdir' = `.'.
12972 # Shell code in configure.ac might set extrasub.
12973 # FIXME: do we really want to maintain this feature?
12974 cat >>$CONFIG_STATUS <<_ACEOF
12975   sed "$ac_vpsub
12976 $extrasub
12977 _ACEOF
12978 cat >>$CONFIG_STATUS <<\_ACEOF
12979 :t
12980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12981 s&@configure_input@&$configure_input&;t t
12982 s&@top_builddir@&$ac_top_builddir_sub&;t t
12983 s&@srcdir@&$ac_srcdir&;t t
12984 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12985 s&@top_srcdir@&$ac_top_srcdir&;t t
12986 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12987 s&@builddir@&$ac_builddir&;t t
12988 s&@abs_builddir@&$ac_abs_builddir&;t t
12989 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12990 s&@INSTALL@&$ac_INSTALL&;t t
12991 $ac_datarootdir_hack
12992 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12993
12994 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12995   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12996   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12997   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12998 which seems to be undefined.  Please make sure it is defined." >&5
12999 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13000 which seems to be undefined.  Please make sure it is defined." >&2;}
13001
13002   rm -f "$tmp/stdin"
13003   case $ac_file in
13004   -) cat "$tmp/out"; rm -f "$tmp/out";;
13005   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13006   esac
13007  ;;
13008   :H)
13009   #
13010   # CONFIG_HEADER
13011   #
13012 _ACEOF
13013
13014 # Transform confdefs.h into a sed script `conftest.defines', that
13015 # substitutes the proper values into config.h.in to produce config.h.
13016 rm -f conftest.defines conftest.tail
13017 # First, append a space to every undef/define line, to ease matching.
13018 echo 's/$/ /' >conftest.defines
13019 # Then, protect against being on the right side of a sed subst, or in
13020 # an unquoted here document, in config.status.  If some macros were
13021 # called several times there might be several #defines for the same
13022 # symbol, which is useless.  But do not sort them, since the last
13023 # AC_DEFINE must be honored.
13024 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13025 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13026 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13027 # PARAMS is the parameter list in the macro definition--in most cases, it's
13028 # just an empty string.
13029 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13030 ac_dB='\\)[      (].*,\\1define\\2'
13031 ac_dC=' '
13032 ac_dD=' ,'
13033
13034 uniq confdefs.h |
13035   sed -n '
13036         t rset
13037         :rset
13038         s/^[     ]*#[    ]*define[       ][      ]*//
13039         t ok
13040         d
13041         :ok
13042         s/[\\&,]/\\&/g
13043         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13044         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13045   ' >>conftest.defines
13046
13047 # Remove the space that was appended to ease matching.
13048 # Then replace #undef with comments.  This is necessary, for
13049 # example, in the case of _POSIX_SOURCE, which is predefined and required
13050 # on some systems where configure will not decide to define it.
13051 # (The regexp can be short, since the line contains either #define or #undef.)
13052 echo 's/ $//
13053 s,^[     #]*u.*,/* & */,' >>conftest.defines
13054
13055 # Break up conftest.defines:
13056 ac_max_sed_lines=50
13057
13058 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13059 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13060 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13061 # et cetera.
13062 ac_in='$ac_file_inputs'
13063 ac_out='"$tmp/out1"'
13064 ac_nxt='"$tmp/out2"'
13065
13066 while :
13067 do
13068   # Write a here document:
13069     cat >>$CONFIG_STATUS <<_ACEOF
13070     # First, check the format of the line:
13071     cat >"\$tmp/defines.sed" <<\\CEOF
13072 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13073 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
13074 b
13075 :def
13076 _ACEOF
13077   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13078   echo 'CEOF
13079     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13080   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13081   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13082   grep . conftest.tail >/dev/null || break
13083   rm -f conftest.defines
13084   mv conftest.tail conftest.defines
13085 done
13086 rm -f conftest.defines conftest.tail
13087
13088 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13089 cat >>$CONFIG_STATUS <<\_ACEOF
13090   if test x"$ac_file" != x-; then
13091     echo "/* $configure_input  */" >"$tmp/config.h"
13092     cat "$ac_result" >>"$tmp/config.h"
13093     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13094       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13095 echo "$as_me: $ac_file is unchanged" >&6;}
13096     else
13097       rm -f $ac_file
13098       mv "$tmp/config.h" $ac_file
13099     fi
13100   else
13101     echo "/* $configure_input  */"
13102     cat "$ac_result"
13103   fi
13104   rm -f "$tmp/out12"
13105  ;;
13106
13107   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13108 echo "$as_me: executing $ac_file commands" >&6;}
13109  ;;
13110   esac
13111
13112
13113   case $ac_file$ac_mode in
13114     "default-1":C) if test -f .devel; then
13115         echo timestamp > stamp-h
13116         cat Makefile-devel-adds >> Makefile
13117         make depend
13118 fi ;;
13119
13120   esac
13121 done # for ac_tag
13122
13123
13124 { (exit 0); exit 0; }
13125 _ACEOF
13126 chmod +x $CONFIG_STATUS
13127 ac_clean_files=$ac_clean_files_save
13128
13129
13130 # configure is writing to config.log, and then calls config.status.
13131 # config.status does its own redirection, appending to config.log.
13132 # Unfortunately, on DOS this fails, as config.log is still kept open
13133 # by configure, so config.status won't be able to write to it; its
13134 # output is simply discarded.  So we exec the FD to /dev/null,
13135 # effectively closing config.log, so it can be properly (re)opened and
13136 # appended to by config.status.  When coming back to configure, we
13137 # need to make the FD available again.
13138 if test "$no_create" != yes; then
13139   ac_cs_success=:
13140   ac_config_status_args=
13141   test "$silent" = yes &&
13142     ac_config_status_args="$ac_config_status_args --quiet"
13143   exec 5>/dev/null
13144   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13145   exec 5>>config.log
13146   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13147   # would make configure fail if this is the last instruction.
13148   $ac_cs_success || { (exit 1); exit 1; }
13149 fi
13150
13151 exit 0