]> arthur.barton.de Git - netatalk.git/blob - libevent/configure
Add libevent configure script to git, it was ignored from the toplevel .gitignore...
[netatalk.git] / libevent / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="event.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBEVENT_GC_SECTIONS
640 LIBOBJS
641 OPENSSL_LIBS
642 EV_LIB_GDI
643 EV_LIB_WS32
644 ZLIB_LIBS
645 LIBTOOL_DEPS
646 EGREP
647 GREP
648 CPP
649 MKDIR_P
650 LN_S
651 INSTALL_DATA
652 INSTALL_SCRIPT
653 INSTALL_PROGRAM
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 target_alias
670 host_alias
671 build_alias
672 LIBS
673 ECHO_T
674 ECHO_N
675 ECHO_C
676 DEFS
677 mandir
678 localedir
679 libdir
680 psdir
681 pdfdir
682 dvidir
683 htmldir
684 infodir
685 docdir
686 oldincludedir
687 includedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_BUGREPORT
700 PACKAGE_STRING
701 PACKAGE_VERSION
702 PACKAGE_TARNAME
703 PACKAGE_NAME
704 PATH_SEPARATOR
705 SHELL'
706 ac_subst_files=''
707 ac_user_opts='
708 enable_option_checking
709 enable_gcc_warnings
710 enable_thread_support
711 enable_malloc_replacement
712 enable_openssl
713 enable_debug_mode
714 enable_libevent_install
715 enable_libevent_regress
716 enable_function_sections
717 '
718       ac_precious_vars='build_alias
719 host_alias
720 target_alias
721 CC
722 CFLAGS
723 LDFLAGS
724 LIBS
725 CPPFLAGS
726 CPP'
727
728
729 # Initialize some variables set by options.
730 ac_init_help=
731 ac_init_version=false
732 ac_unrecognized_opts=
733 ac_unrecognized_sep=
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
736 cache_file=/dev/null
737 exec_prefix=NONE
738 no_create=
739 no_recursion=
740 prefix=NONE
741 program_prefix=NONE
742 program_suffix=NONE
743 program_transform_name=s,x,x,
744 silent=
745 site=
746 srcdir=
747 verbose=
748 x_includes=NONE
749 x_libraries=NONE
750
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781   # If the previous option needs an argument, assign it.
782   if test -n "$ac_prev"; then
783     eval $ac_prev=\$ac_option
784     ac_prev=
785     continue
786   fi
787
788   case $ac_option in
789   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790   *)    ac_optarg=yes ;;
791   esac
792
793   # Accept the important Cygnus configure options, so we can diagnose typos.
794
795   case $ac_dashdash$ac_option in
796   --)
797     ac_dashdash=yes ;;
798
799   -bindir | --bindir | --bindi | --bind | --bin | --bi)
800     ac_prev=bindir ;;
801   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802     bindir=$ac_optarg ;;
803
804   -build | --build | --buil | --bui | --bu)
805     ac_prev=build_alias ;;
806   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807     build_alias=$ac_optarg ;;
808
809   -cache-file | --cache-file | --cache-fil | --cache-fi \
810   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811     ac_prev=cache_file ;;
812   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814     cache_file=$ac_optarg ;;
815
816   --config-cache | -C)
817     cache_file=config.cache ;;
818
819   -datadir | --datadir | --datadi | --datad)
820     ac_prev=datadir ;;
821   -datadir=* | --datadir=* | --datadi=* | --datad=*)
822     datadir=$ac_optarg ;;
823
824   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825   | --dataroo | --dataro | --datar)
826     ac_prev=datarootdir ;;
827   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829     datarootdir=$ac_optarg ;;
830
831   -disable-* | --disable-*)
832     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833     # Reject names that are not valid shell variable names.
834     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
836    { (exit 1); exit 1; }; }
837     ac_useropt_orig=$ac_useropt
838     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839     case $ac_user_opts in
840       *"
841 "enable_$ac_useropt"
842 "*) ;;
843       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844          ac_unrecognized_sep=', ';;
845     esac
846     eval enable_$ac_useropt=no ;;
847
848   -docdir | --docdir | --docdi | --doc | --do)
849     ac_prev=docdir ;;
850   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
851     docdir=$ac_optarg ;;
852
853   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854     ac_prev=dvidir ;;
855   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
856     dvidir=$ac_optarg ;;
857
858   -enable-* | --enable-*)
859     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860     # Reject names that are not valid shell variable names.
861     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
863    { (exit 1); exit 1; }; }
864     ac_useropt_orig=$ac_useropt
865     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866     case $ac_user_opts in
867       *"
868 "enable_$ac_useropt"
869 "*) ;;
870       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871          ac_unrecognized_sep=', ';;
872     esac
873     eval enable_$ac_useropt=\$ac_optarg ;;
874
875   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877   | --exec | --exe | --ex)
878     ac_prev=exec_prefix ;;
879   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881   | --exec=* | --exe=* | --ex=*)
882     exec_prefix=$ac_optarg ;;
883
884   -gas | --gas | --ga | --g)
885     # Obsolete; use --with-gas.
886     with_gas=yes ;;
887
888   -help | --help | --hel | --he | -h)
889     ac_init_help=long ;;
890   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891     ac_init_help=recursive ;;
892   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893     ac_init_help=short ;;
894
895   -host | --host | --hos | --ho)
896     ac_prev=host_alias ;;
897   -host=* | --host=* | --hos=* | --ho=*)
898     host_alias=$ac_optarg ;;
899
900   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901     ac_prev=htmldir ;;
902   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903   | --ht=*)
904     htmldir=$ac_optarg ;;
905
906   -includedir | --includedir | --includedi | --included | --include \
907   | --includ | --inclu | --incl | --inc)
908     ac_prev=includedir ;;
909   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910   | --includ=* | --inclu=* | --incl=* | --inc=*)
911     includedir=$ac_optarg ;;
912
913   -infodir | --infodir | --infodi | --infod | --info | --inf)
914     ac_prev=infodir ;;
915   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916     infodir=$ac_optarg ;;
917
918   -libdir | --libdir | --libdi | --libd)
919     ac_prev=libdir ;;
920   -libdir=* | --libdir=* | --libdi=* | --libd=*)
921     libdir=$ac_optarg ;;
922
923   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924   | --libexe | --libex | --libe)
925     ac_prev=libexecdir ;;
926   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927   | --libexe=* | --libex=* | --libe=*)
928     libexecdir=$ac_optarg ;;
929
930   -localedir | --localedir | --localedi | --localed | --locale)
931     ac_prev=localedir ;;
932   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933     localedir=$ac_optarg ;;
934
935   -localstatedir | --localstatedir | --localstatedi | --localstated \
936   | --localstate | --localstat | --localsta | --localst | --locals)
937     ac_prev=localstatedir ;;
938   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940     localstatedir=$ac_optarg ;;
941
942   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943     ac_prev=mandir ;;
944   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945     mandir=$ac_optarg ;;
946
947   -nfp | --nfp | --nf)
948     # Obsolete; use --without-fp.
949     with_fp=no ;;
950
951   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952   | --no-cr | --no-c | -n)
953     no_create=yes ;;
954
955   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957     no_recursion=yes ;;
958
959   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961   | --oldin | --oldi | --old | --ol | --o)
962     ac_prev=oldincludedir ;;
963   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966     oldincludedir=$ac_optarg ;;
967
968   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969     ac_prev=prefix ;;
970   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971     prefix=$ac_optarg ;;
972
973   -program-prefix | --program-prefix | --program-prefi | --program-pref \
974   | --program-pre | --program-pr | --program-p)
975     ac_prev=program_prefix ;;
976   -program-prefix=* | --program-prefix=* | --program-prefi=* \
977   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978     program_prefix=$ac_optarg ;;
979
980   -program-suffix | --program-suffix | --program-suffi | --program-suff \
981   | --program-suf | --program-su | --program-s)
982     ac_prev=program_suffix ;;
983   -program-suffix=* | --program-suffix=* | --program-suffi=* \
984   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985     program_suffix=$ac_optarg ;;
986
987   -program-transform-name | --program-transform-name \
988   | --program-transform-nam | --program-transform-na \
989   | --program-transform-n | --program-transform- \
990   | --program-transform | --program-transfor \
991   | --program-transfo | --program-transf \
992   | --program-trans | --program-tran \
993   | --progr-tra | --program-tr | --program-t)
994     ac_prev=program_transform_name ;;
995   -program-transform-name=* | --program-transform-name=* \
996   | --program-transform-nam=* | --program-transform-na=* \
997   | --program-transform-n=* | --program-transform-=* \
998   | --program-transform=* | --program-transfor=* \
999   | --program-transfo=* | --program-transf=* \
1000   | --program-trans=* | --program-tran=* \
1001   | --progr-tra=* | --program-tr=* | --program-t=*)
1002     program_transform_name=$ac_optarg ;;
1003
1004   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005     ac_prev=pdfdir ;;
1006   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007     pdfdir=$ac_optarg ;;
1008
1009   -psdir | --psdir | --psdi | --psd | --ps)
1010     ac_prev=psdir ;;
1011   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012     psdir=$ac_optarg ;;
1013
1014   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015   | -silent | --silent | --silen | --sile | --sil)
1016     silent=yes ;;
1017
1018   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019     ac_prev=sbindir ;;
1020   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021   | --sbi=* | --sb=*)
1022     sbindir=$ac_optarg ;;
1023
1024   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026   | --sharedst | --shareds | --shared | --share | --shar \
1027   | --sha | --sh)
1028     ac_prev=sharedstatedir ;;
1029   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032   | --sha=* | --sh=*)
1033     sharedstatedir=$ac_optarg ;;
1034
1035   -site | --site | --sit)
1036     ac_prev=site ;;
1037   -site=* | --site=* | --sit=*)
1038     site=$ac_optarg ;;
1039
1040   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041     ac_prev=srcdir ;;
1042   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043     srcdir=$ac_optarg ;;
1044
1045   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046   | --syscon | --sysco | --sysc | --sys | --sy)
1047     ac_prev=sysconfdir ;;
1048   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050     sysconfdir=$ac_optarg ;;
1051
1052   -target | --target | --targe | --targ | --tar | --ta | --t)
1053     ac_prev=target_alias ;;
1054   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055     target_alias=$ac_optarg ;;
1056
1057   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058     verbose=yes ;;
1059
1060   -version | --version | --versio | --versi | --vers | -V)
1061     ac_init_version=: ;;
1062
1063   -with-* | --with-*)
1064     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065     # Reject names that are not valid shell variable names.
1066     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1068    { (exit 1); exit 1; }; }
1069     ac_useropt_orig=$ac_useropt
1070     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071     case $ac_user_opts in
1072       *"
1073 "with_$ac_useropt"
1074 "*) ;;
1075       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1076          ac_unrecognized_sep=', ';;
1077     esac
1078     eval with_$ac_useropt=\$ac_optarg ;;
1079
1080   -without-* | --without-*)
1081     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1085    { (exit 1); exit 1; }; }
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "with_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval with_$ac_useropt=no ;;
1096
1097   --x)
1098     # Obsolete; use --with-x.
1099     with_x=yes ;;
1100
1101   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102   | --x-incl | --x-inc | --x-in | --x-i)
1103     ac_prev=x_includes ;;
1104   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106     x_includes=$ac_optarg ;;
1107
1108   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110     ac_prev=x_libraries ;;
1111   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113     x_libraries=$ac_optarg ;;
1114
1115   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1116 Try \`$0 --help' for more information." >&2
1117    { (exit 1); exit 1; }; }
1118     ;;
1119
1120   *=*)
1121     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1124       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1125    { (exit 1); exit 1; }; }
1126     eval $ac_envvar=\$ac_optarg
1127     export $ac_envvar ;;
1128
1129   *)
1130     # FIXME: should be removed in autoconf 3.0.
1131     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1135     ;;
1136
1137   esac
1138 done
1139
1140 if test -n "$ac_prev"; then
1141   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1143    { (exit 1); exit 1; }; }
1144 fi
1145
1146 if test -n "$ac_unrecognized_opts"; then
1147   case $enable_option_checking in
1148     no) ;;
1149     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1150    { (exit 1); exit 1; }; } ;;
1151     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1152   esac
1153 fi
1154
1155 # Check all directory arguments for consistency.
1156 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1157                 datadir sysconfdir sharedstatedir localstatedir includedir \
1158                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1159                 libdir localedir mandir
1160 do
1161   eval ac_val=\$$ac_var
1162   # Remove trailing slashes.
1163   case $ac_val in
1164     */ )
1165       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1166       eval $ac_var=\$ac_val;;
1167   esac
1168   # Be sure to have absolute directory names.
1169   case $ac_val in
1170     [\\/$]* | ?:[\\/]* )  continue;;
1171     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1172   esac
1173   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1174    { (exit 1); exit 1; }; }
1175 done
1176
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1180 build=$build_alias
1181 host=$host_alias
1182 target=$target_alias
1183
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x; then
1186   if test "x$build_alias" = x; then
1187     cross_compiling=maybe
1188     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1189     If a cross compiler is detected then cross compile mode will be used." >&2
1190   elif test "x$build_alias" != "x$host_alias"; then
1191     cross_compiling=yes
1192   fi
1193 fi
1194
1195 ac_tool_prefix=
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197
1198 test "$silent" = yes && exec 6>/dev/null
1199
1200
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1205    { (exit 1); exit 1; }; }
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1208    { (exit 1); exit 1; }; }
1209
1210
1211 # Find the source files, if location was not specified.
1212 if test -z "$srcdir"; then
1213   ac_srcdir_defaulted=yes
1214   # Try the directory containing this script, then the parent directory.
1215   ac_confdir=`$as_dirname -- "$as_myself" ||
1216 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217          X"$as_myself" : 'X\(//\)[^/]' \| \
1218          X"$as_myself" : 'X\(//\)$' \| \
1219          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220 $as_echo X"$as_myself" |
1221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222             s//\1/
1223             q
1224           }
1225           /^X\(\/\/\)[^/].*/{
1226             s//\1/
1227             q
1228           }
1229           /^X\(\/\/\)$/{
1230             s//\1/
1231             q
1232           }
1233           /^X\(\/\).*/{
1234             s//\1/
1235             q
1236           }
1237           s/.*/./; q'`
1238   srcdir=$ac_confdir
1239   if test ! -r "$srcdir/$ac_unique_file"; then
1240     srcdir=..
1241   fi
1242 else
1243   ac_srcdir_defaulted=no
1244 fi
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1248    { (exit 1); exit 1; }; }
1249 fi
1250 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251 ac_abs_confdir=`(
1252         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1253    { (exit 1); exit 1; }; }
1254         pwd)`
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257   srcdir=.
1258 fi
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1262 case $srcdir in
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 esac
1265 for ac_var in $ac_precious_vars; do
1266   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267   eval ac_env_${ac_var}_value=\$${ac_var}
1268   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 done
1271
1272 #
1273 # Report the --help message.
1274 #
1275 if test "$ac_init_help" = "long"; then
1276   # Omit some internal or obsolete options to make the list less imposing.
1277   # This message is too long to be a string in the A/UX 3.1 sh.
1278   cat <<_ACEOF
1279 \`configure' configures this package to adapt to many kinds of systems.
1280
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE.  See below for descriptions of some of the useful variables.
1285
1286 Defaults for the options are specified in brackets.
1287
1288 Configuration:
1289   -h, --help              display this help and exit
1290       --help=short        display options specific to this package
1291       --help=recursive    display the short help of all the included packages
1292   -V, --version           display version information and exit
1293   -q, --quiet, --silent   do not print \`checking...' messages
1294       --cache-file=FILE   cache test results in FILE [disabled]
1295   -C, --config-cache      alias for \`--cache-file=config.cache'
1296   -n, --no-create         do not create output files
1297       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1298
1299 Installation directories:
1300   --prefix=PREFIX         install architecture-independent files in PREFIX
1301                           [$ac_default_prefix]
1302   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1303                           [PREFIX]
1304
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1309
1310 For better control, use the options below.
1311
1312 Fine tuning of the installation directories:
1313   --bindir=DIR            user executables [EPREFIX/bin]
1314   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1315   --libexecdir=DIR        program executables [EPREFIX/libexec]
1316   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1317   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1318   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1319   --libdir=DIR            object code libraries [EPREFIX/lib]
1320   --includedir=DIR        C header files [PREFIX/include]
1321   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1322   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1323   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1324   --infodir=DIR           info documentation [DATAROOTDIR/info]
1325   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1326   --mandir=DIR            man documentation [DATAROOTDIR/man]
1327   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1328   --htmldir=DIR           html documentation [DOCDIR]
1329   --dvidir=DIR            dvi documentation [DOCDIR]
1330   --pdfdir=DIR            pdf documentation [DOCDIR]
1331   --psdir=DIR             ps documentation [DOCDIR]
1332 _ACEOF
1333
1334   cat <<\_ACEOF
1335
1336 System types:
1337   --build=BUILD     configure for building on BUILD [guessed]
1338   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1339 _ACEOF
1340 fi
1341
1342 if test -n "$ac_init_help"; then
1343
1344   cat <<\_ACEOF
1345
1346 Optional Features:
1347   --disable-option-checking  ignore unrecognized --enable/--with options
1348   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1349   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1350   --enable-gcc-warnings   enable verbose warnings with GCC
1351   --disable-thread-support
1352                           disable support for threading
1353   --disable-malloc-replacement
1354                           disable support for replacing the memory mgt
1355                           functions
1356   --disable-openssl       disable support for openssl encryption
1357   --disable-debug-mode    disable support for running in debug mode
1358   --disable-libevent-install, disable installation of libevent
1359
1360   --disable-libevent-regress, skip regress in make check
1361
1362   --enable-function-sections, make static library allow smaller binaries with --gc-sections
1363
1364
1365 Some influential environment variables:
1366   CC          C compiler command
1367   CFLAGS      C compiler flags
1368   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1369               nonstandard directory <lib dir>
1370   LIBS        libraries to pass to the linker, e.g. -l<library>
1371   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1372               you have headers in a nonstandard directory <include dir>
1373   CPP         C preprocessor
1374
1375 Use these variables to override the choices made by `configure' or to help
1376 it to find libraries and programs with nonstandard names/locations.
1377
1378 _ACEOF
1379 ac_status=$?
1380 fi
1381
1382 if test "$ac_init_help" = "recursive"; then
1383   # If there are subdirs, report their specific --help.
1384   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385     test -d "$ac_dir" ||
1386       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387       continue
1388     ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394   # A ".." for each directory in $ac_dir_suffix.
1395   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396   case $ac_top_builddir_sub in
1397   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399   esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407   .)  # We are building in place.
1408     ac_srcdir=.
1409     ac_top_srcdir=$ac_top_builddir_sub
1410     ac_abs_top_srcdir=$ac_pwd ;;
1411   [\\/]* | ?:[\\/]* )  # Absolute name.
1412     ac_srcdir=$srcdir$ac_dir_suffix;
1413     ac_top_srcdir=$srcdir
1414     ac_abs_top_srcdir=$srcdir ;;
1415   *) # Relative name.
1416     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417     ac_top_srcdir=$ac_top_build_prefix$srcdir
1418     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422     cd "$ac_dir" || { ac_status=$?; continue; }
1423     # Check for guested configure.
1424     if test -f "$ac_srcdir/configure.gnu"; then
1425       echo &&
1426       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427     elif test -f "$ac_srcdir/configure"; then
1428       echo &&
1429       $SHELL "$ac_srcdir/configure" --help=recursive
1430     else
1431       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432     fi || ac_status=$?
1433     cd "$ac_pwd" || { ac_status=$?; break; }
1434   done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439   cat <<\_ACEOF
1440 configure
1441 generated by GNU Autoconf 2.63
1442
1443 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448   exit
1449 fi
1450 cat >config.log <<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1453
1454 It was created by $as_me, which was
1455 generated by GNU Autoconf 2.63.  Invocation command line was
1456
1457   $ $0 $@
1458
1459 _ACEOF
1460 exec 5>>config.log
1461 {
1462 cat <<_ASUNAME
1463 ## --------- ##
1464 ## Platform. ##
1465 ## --------- ##
1466
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1475
1476 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1477 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1480 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1481 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1482 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1483
1484 _ASUNAME
1485
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489   IFS=$as_save_IFS
1490   test -z "$as_dir" && as_dir=.
1491   $as_echo "PATH: $as_dir"
1492 done
1493 IFS=$as_save_IFS
1494
1495 } >&5
1496
1497 cat >&5 <<_ACEOF
1498
1499
1500 ## ----------- ##
1501 ## Core tests. ##
1502 ## ----------- ##
1503
1504 _ACEOF
1505
1506
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_configure_args=
1513 ac_configure_args0=
1514 ac_configure_args1=
1515 ac_must_keep_next=false
1516 for ac_pass in 1 2
1517 do
1518   for ac_arg
1519   do
1520     case $ac_arg in
1521     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523     | -silent | --silent | --silen | --sile | --sil)
1524       continue ;;
1525     *\'*)
1526       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527     esac
1528     case $ac_pass in
1529     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530     2)
1531       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532       if test $ac_must_keep_next = true; then
1533         ac_must_keep_next=false # Got value, back to normal.
1534       else
1535         case $ac_arg in
1536           *=* | --config-cache | -C | -disable-* | --disable-* \
1537           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539           | -with-* | --with-* | -without-* | --without-* | --x)
1540             case "$ac_configure_args0 " in
1541               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542             esac
1543             ;;
1544           -* ) ac_must_keep_next=true ;;
1545         esac
1546       fi
1547       ac_configure_args="$ac_configure_args '$ac_arg'"
1548       ;;
1549     esac
1550   done
1551 done
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log.  We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561   # Save into config.log some information that might help in debugging.
1562   {
1563     echo
1564
1565     cat <<\_ASBOX
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1569 _ASBOX
1570     echo
1571     # The following way of writing the cache mishandles newlines in values,
1572 (
1573   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574     eval ac_val=\$$ac_var
1575     case $ac_val in #(
1576     *${as_nl}*)
1577       case $ac_var in #(
1578       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1580       esac
1581       case $ac_var in #(
1582       _ | IFS | as_nl) ;; #(
1583       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1584       *) $as_unset $ac_var ;;
1585       esac ;;
1586     esac
1587   done
1588   (set) 2>&1 |
1589     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590     *${as_nl}ac_space=\ *)
1591       sed -n \
1592         "s/'\''/'\''\\\\'\'''\''/g;
1593           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594       ;; #(
1595     *)
1596       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1597       ;;
1598     esac |
1599     sort
1600 )
1601     echo
1602
1603     cat <<\_ASBOX
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1607 _ASBOX
1608     echo
1609     for ac_var in $ac_subst_vars
1610     do
1611       eval ac_val=\$$ac_var
1612       case $ac_val in
1613       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614       esac
1615       $as_echo "$ac_var='\''$ac_val'\''"
1616     done | sort
1617     echo
1618
1619     if test -n "$ac_subst_files"; then
1620       cat <<\_ASBOX
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1624 _ASBOX
1625       echo
1626       for ac_var in $ac_subst_files
1627       do
1628         eval ac_val=\$$ac_var
1629         case $ac_val in
1630         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631         esac
1632         $as_echo "$ac_var='\''$ac_val'\''"
1633       done | sort
1634       echo
1635     fi
1636
1637     if test -s confdefs.h; then
1638       cat <<\_ASBOX
1639 ## ----------- ##
1640 ## confdefs.h. ##
1641 ## ----------- ##
1642 _ASBOX
1643       echo
1644       cat confdefs.h
1645       echo
1646     fi
1647     test "$ac_signal" != 0 &&
1648       $as_echo "$as_me: caught signal $ac_signal"
1649     $as_echo "$as_me: exit $exit_status"
1650   } >&5
1651   rm -f core *.core core.conftest.* &&
1652     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653     exit $exit_status
1654 ' 0
1655 for ac_signal in 1 2 13 15; do
1656   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 done
1658 ac_signal=0
1659
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1662
1663 # Predefined preprocessor variables.
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 _ACEOF
1678
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 _ACEOF
1688
1689
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer an explicitly selected file to automatically selected ones.
1692 ac_site_file1=NONE
1693 ac_site_file2=NONE
1694 if test -n "$CONFIG_SITE"; then
1695   ac_site_file1=$CONFIG_SITE
1696 elif test "x$prefix" != xNONE; then
1697   ac_site_file1=$prefix/share/config.site
1698   ac_site_file2=$prefix/etc/config.site
1699 else
1700   ac_site_file1=$ac_default_prefix/share/config.site
1701   ac_site_file2=$ac_default_prefix/etc/config.site
1702 fi
1703 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1704 do
1705   test "x$ac_site_file" = xNONE && continue
1706   if test -r "$ac_site_file"; then
1707     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1709     sed 's/^/| /' "$ac_site_file" >&5
1710     . "$ac_site_file"
1711   fi
1712 done
1713
1714 if test -r "$cache_file"; then
1715   # Some versions of bash will fail to source /dev/null (special
1716   # files actually), so we avoid doing that.
1717   if test -f "$cache_file"; then
1718     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 $as_echo "$as_me: loading cache $cache_file" >&6;}
1720     case $cache_file in
1721       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722       *)                      . "./$cache_file";;
1723     esac
1724   fi
1725 else
1726   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 $as_echo "$as_me: creating cache $cache_file" >&6;}
1728   >$cache_file
1729 fi
1730
1731 # Check that the precious variables saved in the cache have kept the same
1732 # value.
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736   eval ac_new_set=\$ac_env_${ac_var}_set
1737   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738   eval ac_new_val=\$ac_env_${ac_var}_value
1739   case $ac_old_set,$ac_new_set in
1740     set,)
1741       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743       ac_cache_corrupted=: ;;
1744     ,set)
1745       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747       ac_cache_corrupted=: ;;
1748     ,);;
1749     *)
1750       if test "x$ac_old_val" != "x$ac_new_val"; then
1751         # differences in whitespace do not lead to failure.
1752         ac_old_val_w=`echo x $ac_old_val`
1753         ac_new_val_w=`echo x $ac_new_val`
1754         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1755           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757           ac_cache_corrupted=:
1758         else
1759           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1760 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1761           eval $ac_var=\$ac_old_val
1762         fi
1763         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1764 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1765         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1766 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1767       fi;;
1768   esac
1769   # Pass precious variables to config.status.
1770   if test "$ac_new_set" = set; then
1771     case $ac_new_val in
1772     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773     *) ac_arg=$ac_var=$ac_new_val ;;
1774     esac
1775     case " $ac_configure_args " in
1776       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1777       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778     esac
1779   fi
1780 done
1781 if $ac_cache_corrupted; then
1782   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788    { (exit 1); exit 1; }; }
1789 fi
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807 ac_ext=c
1808 ac_cpp='$CPP $CPPFLAGS'
1809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812
1813
1814
1815
1816
1817 AM_INIT_AUTOMAKE(libevent,2.0.17-stable)
1818 AM_CONFIG_HEADER(config.h)
1819
1820 cat >>confdefs.h <<\_ACEOF
1821 #define NUMERIC_VERSION 0x02001100
1822 _ACEOF
1823
1824
1825 if test "$prefix" = "NONE"; then
1826    prefix="/usr/local"
1827 fi
1828
1829 ac_aux_dir=
1830 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1831   if test -f "$ac_dir/install-sh"; then
1832     ac_aux_dir=$ac_dir
1833     ac_install_sh="$ac_aux_dir/install-sh -c"
1834     break
1835   elif test -f "$ac_dir/install.sh"; then
1836     ac_aux_dir=$ac_dir
1837     ac_install_sh="$ac_aux_dir/install.sh -c"
1838     break
1839   elif test -f "$ac_dir/shtool"; then
1840     ac_aux_dir=$ac_dir
1841     ac_install_sh="$ac_aux_dir/shtool install -c"
1842     break
1843   fi
1844 done
1845 if test -z "$ac_aux_dir"; then
1846   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1847 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1848    { (exit 1); exit 1; }; }
1849 fi
1850
1851 # These three variables are undocumented and unsupported,
1852 # and are intended to be withdrawn in a future Autoconf release.
1853 # They can cause serious problems if a builder's source tree is in a directory
1854 # whose full name contains unusual characters.
1855 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1856 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1857 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1858
1859
1860 # Make sure we can run config.sub.
1861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1862   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1863 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1864    { (exit 1); exit 1; }; }
1865
1866 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1867 $as_echo_n "checking build system type... " >&6; }
1868 if test "${ac_cv_build+set}" = set; then
1869   $as_echo_n "(cached) " >&6
1870 else
1871   ac_build_alias=$build_alias
1872 test "x$ac_build_alias" = x &&
1873   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1874 test "x$ac_build_alias" = x &&
1875   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1876 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1877    { (exit 1); exit 1; }; }
1878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1879   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1880 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1881    { (exit 1); exit 1; }; }
1882
1883 fi
1884 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1885 $as_echo "$ac_cv_build" >&6; }
1886 case $ac_cv_build in
1887 *-*-*) ;;
1888 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1889 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1890    { (exit 1); exit 1; }; };;
1891 esac
1892 build=$ac_cv_build
1893 ac_save_IFS=$IFS; IFS='-'
1894 set x $ac_cv_build
1895 shift
1896 build_cpu=$1
1897 build_vendor=$2
1898 shift; shift
1899 # Remember, the first character of IFS is used to create $*,
1900 # except with old shells:
1901 build_os=$*
1902 IFS=$ac_save_IFS
1903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1904
1905
1906 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1907 $as_echo_n "checking host system type... " >&6; }
1908 if test "${ac_cv_host+set}" = set; then
1909   $as_echo_n "(cached) " >&6
1910 else
1911   if test "x$host_alias" = x; then
1912   ac_cv_host=$ac_cv_build
1913 else
1914   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1915     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1916 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1917    { (exit 1); exit 1; }; }
1918 fi
1919
1920 fi
1921 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1922 $as_echo "$ac_cv_host" >&6; }
1923 case $ac_cv_host in
1924 *-*-*) ;;
1925 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1926 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1927    { (exit 1); exit 1; }; };;
1928 esac
1929 host=$ac_cv_host
1930 ac_save_IFS=$IFS; IFS='-'
1931 set x $ac_cv_host
1932 shift
1933 host_cpu=$1
1934 host_vendor=$2
1935 shift; shift
1936 # Remember, the first character of IFS is used to create $*,
1937 # except with old shells:
1938 host_os=$*
1939 IFS=$ac_save_IFS
1940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1941
1942
1943
1944 case "$host_os" in
1945
1946  osf5*)
1947     CFLAGS="$CFLAGS -D_OSF_SOURCE"
1948     ;;
1949 esac
1950
1951 ac_ext=c
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 $as_echo_n "checking for $ac_word... " >&6; }
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962   $as_echo_n "(cached) " >&6
1963 else
1964   if test -n "$CC"; then
1965   ac_cv_prog_CC="$CC" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1974     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1975     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980 IFS=$as_save_IFS
1981
1982 fi
1983 fi
1984 CC=$ac_cv_prog_CC
1985 if test -n "$CC"; then
1986   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1987 $as_echo "$CC" >&6; }
1988 else
1989   { $as_echo "$as_me:$LINENO: result: no" >&5
1990 $as_echo "no" >&6; }
1991 fi
1992
1993
1994 fi
1995 if test -z "$ac_cv_prog_CC"; then
1996   ac_ct_CC=$CC
1997   # Extract the first word of "gcc", so it can be a program name with args.
1998 set dummy gcc; ac_word=$2
1999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 $as_echo_n "checking for $ac_word... " >&6; }
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002   $as_echo_n "(cached) " >&6
2003 else
2004   if test -n "$ac_ct_CC"; then
2005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 else
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014     ac_cv_prog_ac_ct_CC="gcc"
2015     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016     break 2
2017   fi
2018 done
2019 done
2020 IFS=$as_save_IFS
2021
2022 fi
2023 fi
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 $as_echo "$ac_ct_CC" >&6; }
2028 else
2029   { $as_echo "$as_me:$LINENO: result: no" >&5
2030 $as_echo "no" >&6; }
2031 fi
2032
2033   if test "x$ac_ct_CC" = x; then
2034     CC=""
2035   else
2036     case $cross_compiling:$ac_tool_warned in
2037 yes:)
2038 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2040 ac_tool_warned=yes ;;
2041 esac
2042     CC=$ac_ct_CC
2043   fi
2044 else
2045   CC="$ac_cv_prog_CC"
2046 fi
2047
2048 if test -z "$CC"; then
2049           if test -n "$ac_tool_prefix"; then
2050     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}cc; ac_word=$2
2052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 $as_echo_n "checking for $ac_word... " >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   $as_echo_n "(cached) " >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067     ac_cv_prog_CC="${ac_tool_prefix}cc"
2068     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073 IFS=$as_save_IFS
2074
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2080 $as_echo "$CC" >&6; }
2081 else
2082   { $as_echo "$as_me:$LINENO: result: no" >&5
2083 $as_echo "no" >&6; }
2084 fi
2085
2086
2087   fi
2088 fi
2089 if test -z "$CC"; then
2090   # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 $as_echo_n "checking for $ac_word... " >&6; }
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095   $as_echo_n "(cached) " >&6
2096 else
2097   if test -n "$CC"; then
2098   ac_cv_prog_CC="$CC" # Let the user override the test.
2099 else
2100   ac_prog_rejected=no
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2109        ac_prog_rejected=yes
2110        continue
2111      fi
2112     ac_cv_prog_CC="cc"
2113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118 IFS=$as_save_IFS
2119
2120 if test $ac_prog_rejected = yes; then
2121   # We found a bogon in the path, so make sure we never use it.
2122   set dummy $ac_cv_prog_CC
2123   shift
2124   if test $# != 0; then
2125     # We chose a different compiler from the bogus one.
2126     # However, it has the same basename, so the bogon will be chosen
2127     # first if we set CC to just the basename; use the full file name.
2128     shift
2129     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2130   fi
2131 fi
2132 fi
2133 fi
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2137 $as_echo "$CC" >&6; }
2138 else
2139   { $as_echo "$as_me:$LINENO: result: no" >&5
2140 $as_echo "no" >&6; }
2141 fi
2142
2143
2144 fi
2145 if test -z "$CC"; then
2146   if test -n "$ac_tool_prefix"; then
2147   for ac_prog in cl.exe
2148   do
2149     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 $as_echo_n "checking for $ac_word... " >&6; }
2153 if test "${ac_cv_prog_CC+set}" = set; then
2154   $as_echo_n "(cached) " >&6
2155 else
2156   if test -n "$CC"; then
2157   ac_cv_prog_CC="$CC" # Let the user override the test.
2158 else
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164   for ac_exec_ext in '' $ac_executable_extensions; do
2165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2167     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168     break 2
2169   fi
2170 done
2171 done
2172 IFS=$as_save_IFS
2173
2174 fi
2175 fi
2176 CC=$ac_cv_prog_CC
2177 if test -n "$CC"; then
2178   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2179 $as_echo "$CC" >&6; }
2180 else
2181   { $as_echo "$as_me:$LINENO: result: no" >&5
2182 $as_echo "no" >&6; }
2183 fi
2184
2185
2186     test -n "$CC" && break
2187   done
2188 fi
2189 if test -z "$CC"; then
2190   ac_ct_CC=$CC
2191   for ac_prog in cl.exe
2192 do
2193   # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 $as_echo_n "checking for $ac_word... " >&6; }
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198   $as_echo_n "(cached) " >&6
2199 else
2200   if test -n "$ac_ct_CC"; then
2201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210     ac_cv_prog_ac_ct_CC="$ac_prog"
2211     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216 IFS=$as_save_IFS
2217
2218 fi
2219 fi
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 $as_echo "$ac_ct_CC" >&6; }
2224 else
2225   { $as_echo "$as_me:$LINENO: result: no" >&5
2226 $as_echo "no" >&6; }
2227 fi
2228
2229
2230   test -n "$ac_ct_CC" && break
2231 done
2232
2233   if test "x$ac_ct_CC" = x; then
2234     CC=""
2235   else
2236     case $cross_compiling:$ac_tool_warned in
2237 yes:)
2238 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2240 ac_tool_warned=yes ;;
2241 esac
2242     CC=$ac_ct_CC
2243   fi
2244 fi
2245
2246 fi
2247
2248
2249 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&5
2253 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&2;}
2255    { (exit 1); exit 1; }; }; }
2256
2257 # Provide some information about the compiler.
2258 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2259 set X $ac_compile
2260 ac_compiler=$2
2261 { (ac_try="$ac_compiler --version >&5"
2262 case "(($ac_try" in
2263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264   *) ac_try_echo=$ac_try;;
2265 esac
2266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2267 $as_echo "$ac_try_echo") >&5
2268   (eval "$ac_compiler --version >&5") 2>&5
2269   ac_status=$?
2270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }
2272 { (ac_try="$ac_compiler -v >&5"
2273 case "(($ac_try" in
2274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275   *) ac_try_echo=$ac_try;;
2276 esac
2277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2278 $as_echo "$ac_try_echo") >&5
2279   (eval "$ac_compiler -v >&5") 2>&5
2280   ac_status=$?
2281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2284 case "(($ac_try" in
2285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286   *) ac_try_echo=$ac_try;;
2287 esac
2288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2289 $as_echo "$ac_try_echo") >&5
2290   (eval "$ac_compiler -V >&5") 2>&5
2291   ac_status=$?
2292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }
2294
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 $as_echo_n "checking for C compiler default output file name... " >&6; }
2317 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318
2319 # The possible output files:
2320 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2321
2322 ac_rmfiles=
2323 for ac_file in $ac_files
2324 do
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2327     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2328   esac
2329 done
2330 rm -f $ac_rmfiles
2331
2332 if { (ac_try="$ac_link_default"
2333 case "(($ac_try" in
2334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335   *) ac_try_echo=$ac_try;;
2336 esac
2337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2338 $as_echo "$ac_try_echo") >&5
2339   (eval "$ac_link_default") 2>&5
2340   ac_status=$?
2341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; then
2343   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2345 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2346 # so that the user can short-circuit this test for compilers unknown to
2347 # Autoconf.
2348 for ac_file in $ac_files ''
2349 do
2350   test -f "$ac_file" || continue
2351   case $ac_file in
2352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2353         ;;
2354     [ab].out )
2355         # We found the default executable, but exeext='' is most
2356         # certainly right.
2357         break;;
2358     *.* )
2359         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2360         then :; else
2361            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362         fi
2363         # We set ac_cv_exeext here because the later test for it is not
2364         # safe: cross compilers may not add the suffix if given an `-o'
2365         # argument, so we may need to know it at that point already.
2366         # Even if this section looks crufty: it has the advantage of
2367         # actually working.
2368         break;;
2369     * )
2370         break;;
2371   esac
2372 done
2373 test "$ac_cv_exeext" = no && ac_cv_exeext=
2374
2375 else
2376   ac_file=''
2377 fi
2378
2379 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2380 $as_echo "$ac_file" >&6; }
2381 if test -z "$ac_file"; then
2382   $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2388 See \`config.log' for more details." >&5
2389 $as_echo "$as_me: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&2;}
2391    { (exit 77); exit 77; }; }; }
2392 fi
2393
2394 ac_exeext=$ac_cv_exeext
2395
2396 # Check that the compiler produces executables we can run.  If not, either
2397 # the compiler is broken, or we cross compile.
2398 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2399 $as_echo_n "checking whether the C compiler works... " >&6; }
2400 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2401 # If not cross compiling, check that we can run a simple program.
2402 if test "$cross_compiling" != yes; then
2403   if { ac_try='./$ac_file'
2404   { (case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2409 $as_echo "$ac_try_echo") >&5
2410   (eval "$ac_try") 2>&5
2411   ac_status=$?
2412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414     cross_compiling=no
2415   else
2416     if test "$cross_compiling" = maybe; then
2417         cross_compiling=yes
2418     else
2419         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&5
2424 $as_echo "$as_me: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&2;}
2427    { (exit 1); exit 1; }; }; }
2428     fi
2429   fi
2430 fi
2431 { $as_echo "$as_me:$LINENO: result: yes" >&5
2432 $as_echo "yes" >&6; }
2433
2434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2435 ac_clean_files=$ac_clean_files_save
2436 # Check that the compiler produces executables we can run.  If not, either
2437 # the compiler is broken, or we cross compile.
2438 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439 $as_echo_n "checking whether we are cross compiling... " >&6; }
2440 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441 $as_echo "$cross_compiling" >&6; }
2442
2443 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444 $as_echo_n "checking for suffix of executables... " >&6; }
2445 if { (ac_try="$ac_link"
2446 case "(($ac_try" in
2447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448   *) ac_try_echo=$ac_try;;
2449 esac
2450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2451 $as_echo "$ac_try_echo") >&5
2452   (eval "$ac_link") 2>&5
2453   ac_status=$?
2454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; then
2456   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2457 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2458 # work properly (i.e., refer to `conftest.exe'), while it won't with
2459 # `rm'.
2460 for ac_file in conftest.exe conftest conftest.*; do
2461   test -f "$ac_file" || continue
2462   case $ac_file in
2463     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2464     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2465           break;;
2466     * ) break;;
2467   esac
2468 done
2469 else
2470   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2473 See \`config.log' for more details." >&5
2474 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2475 See \`config.log' for more details." >&2;}
2476    { (exit 1); exit 1; }; }; }
2477 fi
2478
2479 rm -f conftest$ac_cv_exeext
2480 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2481 $as_echo "$ac_cv_exeext" >&6; }
2482
2483 rm -f conftest.$ac_ext
2484 EXEEXT=$ac_cv_exeext
2485 ac_exeext=$EXEEXT
2486 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2487 $as_echo_n "checking for suffix of object files... " >&6; }
2488 if test "${ac_cv_objext+set}" = set; then
2489   $as_echo_n "(cached) " >&6
2490 else
2491   cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h.  */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h.  */
2497
2498 int
2499 main ()
2500 {
2501
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.o conftest.obj
2507 if { (ac_try="$ac_compile"
2508 case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2513 $as_echo "$ac_try_echo") >&5
2514   (eval "$ac_compile") 2>&5
2515   ac_status=$?
2516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; then
2518   for ac_file in conftest.o conftest.obj conftest.*; do
2519   test -f "$ac_file" || continue;
2520   case $ac_file in
2521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2522     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523        break;;
2524   esac
2525 done
2526 else
2527   $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2533 See \`config.log' for more details." >&5
2534 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2535 See \`config.log' for more details." >&2;}
2536    { (exit 1); exit 1; }; }; }
2537 fi
2538
2539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2540 fi
2541 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2542 $as_echo "$ac_cv_objext" >&6; }
2543 OBJEXT=$ac_cv_objext
2544 ac_objext=$OBJEXT
2545 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2547 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2548   $as_echo_n "(cached) " >&6
2549 else
2550   cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560 #ifndef __GNUC__
2561        choke me
2562 #endif
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2575 $as_echo "$ac_try_echo") >&5
2576   (eval "$ac_compile") 2>conftest.er1
2577   ac_status=$?
2578   grep -v '^ *+' conftest.er1 >conftest.err
2579   rm -f conftest.er1
2580   cat conftest.err >&5
2581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } && {
2583          test -z "$ac_c_werror_flag" ||
2584          test ! -s conftest.err
2585        } && test -s conftest.$ac_objext; then
2586   ac_compiler_gnu=yes
2587 else
2588   $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591         ac_compiler_gnu=no
2592 fi
2593
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2596
2597 fi
2598 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2599 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2600 if test $ac_compiler_gnu = yes; then
2601   GCC=yes
2602 else
2603   GCC=
2604 fi
2605 ac_test_CFLAGS=${CFLAGS+set}
2606 ac_save_CFLAGS=$CFLAGS
2607 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2608 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2609 if test "${ac_cv_prog_cc_g+set}" = set; then
2610   $as_echo_n "(cached) " >&6
2611 else
2612   ac_save_c_werror_flag=$ac_c_werror_flag
2613    ac_c_werror_flag=yes
2614    ac_cv_prog_cc_g=no
2615    CFLAGS="-g"
2616    cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h.  */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h.  */
2622
2623 int
2624 main ()
2625 {
2626
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (ac_try="$ac_compile"
2633 case "(($ac_try" in
2634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635   *) ac_try_echo=$ac_try;;
2636 esac
2637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2638 $as_echo "$ac_try_echo") >&5
2639   (eval "$ac_compile") 2>conftest.er1
2640   ac_status=$?
2641   grep -v '^ *+' conftest.er1 >conftest.err
2642   rm -f conftest.er1
2643   cat conftest.err >&5
2644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); } && {
2646          test -z "$ac_c_werror_flag" ||
2647          test ! -s conftest.err
2648        } && test -s conftest.$ac_objext; then
2649   ac_cv_prog_cc_g=yes
2650 else
2651   $as_echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654         CFLAGS=""
2655       cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2677 $as_echo "$ac_try_echo") >&5
2678   (eval "$ac_compile") 2>conftest.er1
2679   ac_status=$?
2680   grep -v '^ *+' conftest.er1 >conftest.err
2681   rm -f conftest.er1
2682   cat conftest.err >&5
2683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); } && {
2685          test -z "$ac_c_werror_flag" ||
2686          test ! -s conftest.err
2687        } && test -s conftest.$ac_objext; then
2688   :
2689 else
2690   $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693         ac_c_werror_flag=$ac_save_c_werror_flag
2694          CFLAGS="-g"
2695          cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701
2702 int
2703 main ()
2704 {
2705
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2717 $as_echo "$ac_try_echo") >&5
2718   (eval "$ac_compile") 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } && {
2725          test -z "$ac_c_werror_flag" ||
2726          test ! -s conftest.err
2727        } && test -s conftest.$ac_objext; then
2728   ac_cv_prog_cc_g=yes
2729 else
2730   $as_echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733
2734 fi
2735
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 fi
2738
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743    ac_c_werror_flag=$ac_save_c_werror_flag
2744 fi
2745 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 $as_echo "$ac_cv_prog_cc_g" >&6; }
2747 if test "$ac_test_CFLAGS" = set; then
2748   CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750   if test "$GCC" = yes; then
2751     CFLAGS="-g -O2"
2752   else
2753     CFLAGS="-g"
2754   fi
2755 else
2756   if test "$GCC" = yes; then
2757     CFLAGS="-O2"
2758   else
2759     CFLAGS=
2760   fi
2761 fi
2762 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2764 if test "${ac_cv_prog_cc_c89+set}" = set; then
2765   $as_echo_n "(cached) " >&6
2766 else
2767   ac_cv_prog_cc_c89=no
2768 ac_save_CC=$CC
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #include <stdarg.h>
2776 #include <stdio.h>
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2783      char **p;
2784      int i;
2785 {
2786   return p[i];
2787 }
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2789 {
2790   char *s;
2791   va_list v;
2792   va_start (v,p);
2793   s = g (p, va_arg (v,int));
2794   va_end (v);
2795   return s;
2796 }
2797
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2799    function prototypes and stuff, but not '\xHH' hex character constants.
2800    These don't provoke an error unfortunately, instead are silently treated
2801    as 'x'.  The following induces an error, until -std is added to get
2802    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2803    array size at least.  It's necessary to write '\x00'==0 to get something
2804    that's true only with -std.  */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2806
2807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2808    inside strings and character constants.  */
2809 #define FOO(x) 'x'
2810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2811
2812 int test (int i, double x);
2813 struct s1 {int (*f) (int a);};
2814 struct s2 {int (*f) (double a);};
2815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2816 int argc;
2817 char **argv;
2818 int
2819 main ()
2820 {
2821 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2827         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2828 do
2829   CC="$ac_save_CC $ac_arg"
2830   rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2837 $as_echo "$ac_try_echo") >&5
2838   (eval "$ac_compile") 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } && {
2845          test -z "$ac_c_werror_flag" ||
2846          test ! -s conftest.err
2847        } && test -s conftest.$ac_objext; then
2848   ac_cv_prog_cc_c89=$ac_arg
2849 else
2850   $as_echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853
2854 fi
2855
2856 rm -f core conftest.err conftest.$ac_objext
2857   test "x$ac_cv_prog_cc_c89" != "xno" && break
2858 done
2859 rm -f conftest.$ac_ext
2860 CC=$ac_save_CC
2861
2862 fi
2863 # AC_CACHE_VAL
2864 case "x$ac_cv_prog_cc_c89" in
2865   x)
2866     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2867 $as_echo "none needed" >&6; } ;;
2868   xno)
2869     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2870 $as_echo "unsupported" >&6; } ;;
2871   *)
2872     CC="$CC $ac_cv_prog_cc_c89"
2873     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2875 esac
2876
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884 AM_PROG_CC_C_O
2885 # Find a good install program.  We prefer a C program (faster),
2886 # so one script is as good as another.  But avoid the broken or
2887 # incompatible versions:
2888 # SysV /etc/install, /usr/sbin/install
2889 # SunOS /usr/etc/install
2890 # IRIX /sbin/install
2891 # AIX /bin/install
2892 # AmigaOS /C/install, which installs bootblocks on floppy discs
2893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896 # OS/2's system install, which has a completely different semantic
2897 # ./install, which can be erroneously created by make from ./install.sh.
2898 # Reject install programs that cannot install multiple files.
2899 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2901 if test -z "$INSTALL"; then
2902 if test "${ac_cv_path_install+set}" = set; then
2903   $as_echo_n "(cached) " >&6
2904 else
2905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910   # Account for people who put trailing slashes in PATH elements.
2911 case $as_dir/ in
2912   ./ | .// | /cC/* | \
2913   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2914   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2915   /usr/ucb/* ) ;;
2916   *)
2917     # OSF1 and SCO ODT 3.0 have their own names for install.
2918     # Don't use installbsd from OSF since it installs stuff as root
2919     # by default.
2920     for ac_prog in ginstall scoinst install; do
2921       for ac_exec_ext in '' $ac_executable_extensions; do
2922         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2923           if test $ac_prog = install &&
2924             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925             # AIX install.  It has an incompatible calling convention.
2926             :
2927           elif test $ac_prog = install &&
2928             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2929             # program-specific install script used by HP pwplus--don't use.
2930             :
2931           else
2932             rm -rf conftest.one conftest.two conftest.dir
2933             echo one > conftest.one
2934             echo two > conftest.two
2935             mkdir conftest.dir
2936             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2937               test -s conftest.one && test -s conftest.two &&
2938               test -s conftest.dir/conftest.one &&
2939               test -s conftest.dir/conftest.two
2940             then
2941               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2942               break 3
2943             fi
2944           fi
2945         fi
2946       done
2947     done
2948     ;;
2949 esac
2950
2951 done
2952 IFS=$as_save_IFS
2953
2954 rm -rf conftest.one conftest.two conftest.dir
2955
2956 fi
2957   if test "${ac_cv_path_install+set}" = set; then
2958     INSTALL=$ac_cv_path_install
2959   else
2960     # As a last resort, use the slow shell script.  Don't cache a
2961     # value for INSTALL within a source directory, because that will
2962     # break other packages using the cache if that directory is
2963     # removed, or if the value is a relative name.
2964     INSTALL=$ac_install_sh
2965   fi
2966 fi
2967 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2968 $as_echo "$INSTALL" >&6; }
2969
2970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971 # It thinks the first close brace ends the variable substitution.
2972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2973
2974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2975
2976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2977
2978 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2979 $as_echo_n "checking whether ln -s works... " >&6; }
2980 LN_S=$as_ln_s
2981 if test "$LN_S" = "ln -s"; then
2982   { $as_echo "$as_me:$LINENO: result: yes" >&5
2983 $as_echo "yes" >&6; }
2984 else
2985   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2986 $as_echo "no, using $LN_S" >&6; }
2987 fi
2988
2989 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2990 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2991 if test -z "$MKDIR_P"; then
2992   if test "${ac_cv_path_mkdir+set}" = set; then
2993   $as_echo_n "(cached) " >&6
2994 else
2995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000   for ac_prog in mkdir gmkdir; do
3001          for ac_exec_ext in '' $ac_executable_extensions; do
3002            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3003            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004              'mkdir (GNU coreutils) '* | \
3005              'mkdir (coreutils) '* | \
3006              'mkdir (fileutils) '4.1*)
3007                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3008                break 3;;
3009            esac
3010          done
3011        done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016
3017   if test "${ac_cv_path_mkdir+set}" = set; then
3018     MKDIR_P="$ac_cv_path_mkdir -p"
3019   else
3020     # As a last resort, use the slow shell script.  Don't cache a
3021     # value for MKDIR_P within a source directory, because that will
3022     # break other packages using the cache if that directory is
3023     # removed, or if the value is a relative name.
3024     test -d ./--version && rmdir ./--version
3025     MKDIR_P="$ac_install_sh -d"
3026   fi
3027 fi
3028 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3029 $as_echo "$MKDIR_P" >&6; }
3030
3031
3032
3033 ac_ext=c
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3040 # On Suns, sometimes $CPP names a directory.
3041 if test -n "$CPP" && test -d "$CPP"; then
3042   CPP=
3043 fi
3044 if test -z "$CPP"; then
3045   if test "${ac_cv_prog_CPP+set}" = set; then
3046   $as_echo_n "(cached) " >&6
3047 else
3048       # Double quotes because CPP needs to be expanded
3049     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3050     do
3051       ac_preproc_ok=false
3052 for ac_c_preproc_warn_flag in '' yes
3053 do
3054   # Use a header file that comes with gcc, so configuring glibc
3055   # with a fresh cross-compiler works.
3056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057   # <limits.h> exists even on freestanding compilers.
3058   # On the NeXT, cc -E runs the code through the compiler's parser,
3059   # not just through cpp. "Syntax error" is here to catch this case.
3060   cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066 #ifdef __STDC__
3067 # include <limits.h>
3068 #else
3069 # include <assert.h>
3070 #endif
3071                      Syntax error
3072 _ACEOF
3073 if { (ac_try="$ac_cpp conftest.$ac_ext"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079 $as_echo "$ac_try_echo") >&5
3080   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } >/dev/null && {
3087          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3088          test ! -s conftest.err
3089        }; then
3090   :
3091 else
3092   $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095   # Broken: fails on valid input.
3096 continue
3097 fi
3098
3099 rm -f conftest.err conftest.$ac_ext
3100
3101   # OK, works on sane cases.  Now check whether nonexistent headers
3102   # can be detected and how.
3103   cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109 #include <ac_nonexistent.h>
3110 _ACEOF
3111 if { (ac_try="$ac_cpp conftest.$ac_ext"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } >/dev/null && {
3125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3126          test ! -s conftest.err
3127        }; then
3128   # Broken: success on invalid input.
3129 continue
3130 else
3131   $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134   # Passes both tests.
3135 ac_preproc_ok=:
3136 break
3137 fi
3138
3139 rm -f conftest.err conftest.$ac_ext
3140
3141 done
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3143 rm -f conftest.err conftest.$ac_ext
3144 if $ac_preproc_ok; then
3145   break
3146 fi
3147
3148     done
3149     ac_cv_prog_CPP=$CPP
3150
3151 fi
3152   CPP=$ac_cv_prog_CPP
3153 else
3154   ac_cv_prog_CPP=$CPP
3155 fi
3156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3157 $as_echo "$CPP" >&6; }
3158 ac_preproc_ok=false
3159 for ac_c_preproc_warn_flag in '' yes
3160 do
3161   # Use a header file that comes with gcc, so configuring glibc
3162   # with a fresh cross-compiler works.
3163   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3164   # <limits.h> exists even on freestanding compilers.
3165   # On the NeXT, cc -E runs the code through the compiler's parser,
3166   # not just through cpp. "Syntax error" is here to catch this case.
3167   cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h.  */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h.  */
3173 #ifdef __STDC__
3174 # include <limits.h>
3175 #else
3176 # include <assert.h>
3177 #endif
3178                      Syntax error
3179 _ACEOF
3180 if { (ac_try="$ac_cpp conftest.$ac_ext"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3186 $as_echo "$ac_try_echo") >&5
3187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } >/dev/null && {
3194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3195          test ! -s conftest.err
3196        }; then
3197   :
3198 else
3199   $as_echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202   # Broken: fails on valid input.
3203 continue
3204 fi
3205
3206 rm -f conftest.err conftest.$ac_ext
3207
3208   # OK, works on sane cases.  Now check whether nonexistent headers
3209   # can be detected and how.
3210   cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h.  */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h.  */
3216 #include <ac_nonexistent.h>
3217 _ACEOF
3218 if { (ac_try="$ac_cpp conftest.$ac_ext"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } >/dev/null && {
3232          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3233          test ! -s conftest.err
3234        }; then
3235   # Broken: success on invalid input.
3236 continue
3237 else
3238   $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241   # Passes both tests.
3242 ac_preproc_ok=:
3243 break
3244 fi
3245
3246 rm -f conftest.err conftest.$ac_ext
3247
3248 done
3249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3250 rm -f conftest.err conftest.$ac_ext
3251 if $ac_preproc_ok; then
3252   :
3253 else
3254   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3257 See \`config.log' for more details." >&5
3258 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3259 See \`config.log' for more details." >&2;}
3260    { (exit 1); exit 1; }; }; }
3261 fi
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3272 if test "${ac_cv_path_GREP+set}" = set; then
3273   $as_echo_n "(cached) " >&6
3274 else
3275   if test -z "$GREP"; then
3276   ac_path_GREP_found=false
3277   # Loop through the user's path and test for each of PROGNAME-LIST
3278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283   for ac_prog in grep ggrep; do
3284     for ac_exec_ext in '' $ac_executable_extensions; do
3285       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3286       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3287 # Check for GNU ac_path_GREP and select it if it is found.
3288   # Check for GNU $ac_path_GREP
3289 case `"$ac_path_GREP" --version 2>&1` in
3290 *GNU*)
3291   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3292 *)
3293   ac_count=0
3294   $as_echo_n 0123456789 >"conftest.in"
3295   while :
3296   do
3297     cat "conftest.in" "conftest.in" >"conftest.tmp"
3298     mv "conftest.tmp" "conftest.in"
3299     cp "conftest.in" "conftest.nl"
3300     $as_echo 'GREP' >> "conftest.nl"
3301     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303     ac_count=`expr $ac_count + 1`
3304     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3305       # Best one so far, save it but keep looking for a better one
3306       ac_cv_path_GREP="$ac_path_GREP"
3307       ac_path_GREP_max=$ac_count
3308     fi
3309     # 10*(2^10) chars as input seems more than enough
3310     test $ac_count -gt 10 && break
3311   done
3312   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3313 esac
3314
3315       $ac_path_GREP_found && break 3
3316     done
3317   done
3318 done
3319 IFS=$as_save_IFS
3320   if test -z "$ac_cv_path_GREP"; then
3321     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3322 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3323    { (exit 1); exit 1; }; }
3324   fi
3325 else
3326   ac_cv_path_GREP=$GREP
3327 fi
3328
3329 fi
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3331 $as_echo "$ac_cv_path_GREP" >&6; }
3332  GREP="$ac_cv_path_GREP"
3333
3334
3335 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3336 $as_echo_n "checking for egrep... " >&6; }
3337 if test "${ac_cv_path_EGREP+set}" = set; then
3338   $as_echo_n "(cached) " >&6
3339 else
3340   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3341    then ac_cv_path_EGREP="$GREP -E"
3342    else
3343      if test -z "$EGREP"; then
3344   ac_path_EGREP_found=false
3345   # Loop through the user's path and test for each of PROGNAME-LIST
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_prog in egrep; do
3352     for ac_exec_ext in '' $ac_executable_extensions; do
3353       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3354       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3355 # Check for GNU ac_path_EGREP and select it if it is found.
3356   # Check for GNU $ac_path_EGREP
3357 case `"$ac_path_EGREP" --version 2>&1` in
3358 *GNU*)
3359   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3360 *)
3361   ac_count=0
3362   $as_echo_n 0123456789 >"conftest.in"
3363   while :
3364   do
3365     cat "conftest.in" "conftest.in" >"conftest.tmp"
3366     mv "conftest.tmp" "conftest.in"
3367     cp "conftest.in" "conftest.nl"
3368     $as_echo 'EGREP' >> "conftest.nl"
3369     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3370     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3371     ac_count=`expr $ac_count + 1`
3372     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3373       # Best one so far, save it but keep looking for a better one
3374       ac_cv_path_EGREP="$ac_path_EGREP"
3375       ac_path_EGREP_max=$ac_count
3376     fi
3377     # 10*(2^10) chars as input seems more than enough
3378     test $ac_count -gt 10 && break
3379   done
3380   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3381 esac
3382
3383       $ac_path_EGREP_found && break 3
3384     done
3385   done
3386 done
3387 IFS=$as_save_IFS
3388   if test -z "$ac_cv_path_EGREP"; then
3389     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3390 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3391    { (exit 1); exit 1; }; }
3392   fi
3393 else
3394   ac_cv_path_EGREP=$EGREP
3395 fi
3396
3397    fi
3398 fi
3399 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3400 $as_echo "$ac_cv_path_EGREP" >&6; }
3401  EGREP="$ac_cv_path_EGREP"
3402
3403
3404 if test $ac_cv_c_compiler_gnu = yes; then
3405     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3406 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3407 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3408   $as_echo_n "(cached) " >&6
3409 else
3410     ac_pattern="Autoconf.*'x'"
3411   cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #include <sgtty.h>
3418 Autoconf TIOCGETP
3419 _ACEOF
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3422   ac_cv_prog_gcc_traditional=yes
3423 else
3424   ac_cv_prog_gcc_traditional=no
3425 fi
3426 rm -f conftest*
3427
3428
3429   if test $ac_cv_prog_gcc_traditional = no; then
3430     cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <termio.h>
3437 Autoconf TCGETA
3438 _ACEOF
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3441   ac_cv_prog_gcc_traditional=yes
3442 fi
3443 rm -f conftest*
3444
3445   fi
3446 fi
3447 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3448 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3449   if test $ac_cv_prog_gcc_traditional = yes; then
3450     CC="$CC -traditional"
3451   fi
3452 fi
3453
3454
3455 if test "$GCC" = "yes" ; then
3456         # Enable many gcc warnings by default...
3457         CFLAGS="$CFLAGS -Wall"
3458         # And disable the strict-aliasing optimization, since it breaks
3459         # our sockaddr-handling code in strange ways.
3460         CFLAGS="$CFLAGS -fno-strict-aliasing"
3461 fi
3462
3463 # OS X Lion started deprecating the system openssl. Let's just disable
3464 # all deprecation warnings on OS X.
3465 case "$host_os" in
3466
3467  darwin*)
3468     CFLAGS="$CFLAGS -Wno-deprecated-declarations"
3469     ;;
3470 esac
3471
3472 # Check whether --enable-gcc-warnings was given.
3473 if test "${enable_gcc_warnings+set}" = set; then
3474   enableval=$enable_gcc_warnings;
3475 fi
3476
3477 # Check whether --enable-thread-support was given.
3478 if test "${enable_thread_support+set}" = set; then
3479   enableval=$enable_thread_support;
3480 else
3481   enable_thread_support=yes
3482 fi
3483
3484 # Check whether --enable-malloc-replacement was given.
3485 if test "${enable_malloc_replacement+set}" = set; then
3486   enableval=$enable_malloc_replacement;
3487 else
3488   enable_malloc_replacement=yes
3489 fi
3490
3491 # Check whether --enable-openssl was given.
3492 if test "${enable_openssl+set}" = set; then
3493   enableval=$enable_openssl;
3494 else
3495   enable_openssl=yes
3496 fi
3497
3498 # Check whether --enable-debug-mode was given.
3499 if test "${enable_debug_mode+set}" = set; then
3500   enableval=$enable_debug_mode;
3501 else
3502   enable_debug_mode=yes
3503 fi
3504
3505 # Check whether --enable-libevent-install was given.
3506 if test "${enable_libevent_install+set}" = set; then
3507   enableval=$enable_libevent_install;
3508 else
3509   enable_libevent_install=yes
3510 fi
3511
3512 # Check whether --enable-libevent-regress was given.
3513 if test "${enable_libevent_regress+set}" = set; then
3514   enableval=$enable_libevent_regress;
3515 else
3516   enable_libevent_regress=yes
3517 fi
3518
3519 # Check whether --enable-function-sections was given.
3520 if test "${enable_function_sections+set}" = set; then
3521   enableval=$enable_function_sections;
3522 else
3523   enable_function_sections=no
3524 fi
3525
3526
3527
3528 AC_PROG_LIBTOOL
3529
3530
3531
3532 AM_CONDITIONAL(BUILD_REGRESS, test "$enable_libevent_regress" = "yes")
3533
3534 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
3535 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
3536 if test "${ac_cv_search_inet_ntoa+set}" = set; then
3537   $as_echo_n "(cached) " >&6
3538 else
3539   ac_func_search_save_LIBS=$LIBS
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546
3547 /* Override any GCC internal prototype to avoid an error.
3548    Use char because int might match the return type of a GCC
3549    builtin and then its argument prototype would still apply.  */
3550 #ifdef __cplusplus
3551 extern "C"
3552 #endif
3553 char inet_ntoa ();
3554 int
3555 main ()
3556 {
3557 return inet_ntoa ();
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 for ac_lib in '' nsl; do
3563   if test -z "$ac_lib"; then
3564     ac_res="none required"
3565   else
3566     ac_res=-l$ac_lib
3567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3568   fi
3569   rm -f conftest.$ac_objext conftest$ac_exeext
3570 if { (ac_try="$ac_link"
3571 case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3576 $as_echo "$ac_try_echo") >&5
3577   (eval "$ac_link") 2>conftest.er1
3578   ac_status=$?
3579   grep -v '^ *+' conftest.er1 >conftest.err
3580   rm -f conftest.er1
3581   cat conftest.err >&5
3582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } && {
3584          test -z "$ac_c_werror_flag" ||
3585          test ! -s conftest.err
3586        } && test -s conftest$ac_exeext && {
3587          test "$cross_compiling" = yes ||
3588          $as_test_x conftest$ac_exeext
3589        }; then
3590   ac_cv_search_inet_ntoa=$ac_res
3591 else
3592   $as_echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595
3596 fi
3597
3598 rm -rf conftest.dSYM
3599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3600       conftest$ac_exeext
3601   if test "${ac_cv_search_inet_ntoa+set}" = set; then
3602   break
3603 fi
3604 done
3605 if test "${ac_cv_search_inet_ntoa+set}" = set; then
3606   :
3607 else
3608   ac_cv_search_inet_ntoa=no
3609 fi
3610 rm conftest.$ac_ext
3611 LIBS=$ac_func_search_save_LIBS
3612 fi
3613 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
3614 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
3615 ac_res=$ac_cv_search_inet_ntoa
3616 if test "$ac_res" != no; then
3617   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3618
3619 fi
3620
3621 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
3622 $as_echo_n "checking for library containing socket... " >&6; }
3623 if test "${ac_cv_search_socket+set}" = set; then
3624   $as_echo_n "(cached) " >&6
3625 else
3626   ac_func_search_save_LIBS=$LIBS
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633
3634 /* Override any GCC internal prototype to avoid an error.
3635    Use char because int might match the return type of a GCC
3636    builtin and then its argument prototype would still apply.  */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 char socket ();
3641 int
3642 main ()
3643 {
3644 return socket ();
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 for ac_lib in '' socket; do
3650   if test -z "$ac_lib"; then
3651     ac_res="none required"
3652   else
3653     ac_res=-l$ac_lib
3654     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3655   fi
3656   rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664   (eval "$ac_link") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } && {
3671          test -z "$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest$ac_exeext && {
3674          test "$cross_compiling" = yes ||
3675          $as_test_x conftest$ac_exeext
3676        }; then
3677   ac_cv_search_socket=$ac_res
3678 else
3679   $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682
3683 fi
3684
3685 rm -rf conftest.dSYM
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3687       conftest$ac_exeext
3688   if test "${ac_cv_search_socket+set}" = set; then
3689   break
3690 fi
3691 done
3692 if test "${ac_cv_search_socket+set}" = set; then
3693   :
3694 else
3695   ac_cv_search_socket=no
3696 fi
3697 rm conftest.$ac_ext
3698 LIBS=$ac_func_search_save_LIBS
3699 fi
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
3701 $as_echo "$ac_cv_search_socket" >&6; }
3702 ac_res=$ac_cv_search_socket
3703 if test "$ac_res" != no; then
3704   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3705
3706 fi
3707
3708 { $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
3709 $as_echo_n "checking for library containing inet_aton... " >&6; }
3710 if test "${ac_cv_search_inet_aton+set}" = set; then
3711   $as_echo_n "(cached) " >&6
3712 else
3713   ac_func_search_save_LIBS=$LIBS
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720
3721 /* Override any GCC internal prototype to avoid an error.
3722    Use char because int might match the return type of a GCC
3723    builtin and then its argument prototype would still apply.  */
3724 #ifdef __cplusplus
3725 extern "C"
3726 #endif
3727 char inet_aton ();
3728 int
3729 main ()
3730 {
3731 return inet_aton ();
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 for ac_lib in '' resolv; do
3737   if test -z "$ac_lib"; then
3738     ac_res="none required"
3739   else
3740     ac_res=-l$ac_lib
3741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3742   fi
3743   rm -f conftest.$ac_objext conftest$ac_exeext
3744 if { (ac_try="$ac_link"
3745 case "(($ac_try" in
3746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747   *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3750 $as_echo "$ac_try_echo") >&5
3751   (eval "$ac_link") 2>conftest.er1
3752   ac_status=$?
3753   grep -v '^ *+' conftest.er1 >conftest.err
3754   rm -f conftest.er1
3755   cat conftest.err >&5
3756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } && {
3758          test -z "$ac_c_werror_flag" ||
3759          test ! -s conftest.err
3760        } && test -s conftest$ac_exeext && {
3761          test "$cross_compiling" = yes ||
3762          $as_test_x conftest$ac_exeext
3763        }; then
3764   ac_cv_search_inet_aton=$ac_res
3765 else
3766   $as_echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769
3770 fi
3771
3772 rm -rf conftest.dSYM
3773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3774       conftest$ac_exeext
3775   if test "${ac_cv_search_inet_aton+set}" = set; then
3776   break
3777 fi
3778 done
3779 if test "${ac_cv_search_inet_aton+set}" = set; then
3780   :
3781 else
3782   ac_cv_search_inet_aton=no
3783 fi
3784 rm conftest.$ac_ext
3785 LIBS=$ac_func_search_save_LIBS
3786 fi
3787 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
3788 $as_echo "$ac_cv_search_inet_aton" >&6; }
3789 ac_res=$ac_cv_search_inet_aton
3790 if test "$ac_res" != no; then
3791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3792
3793 fi
3794
3795 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
3796 $as_echo_n "checking for library containing clock_gettime... " >&6; }
3797 if test "${ac_cv_search_clock_gettime+set}" = set; then
3798   $as_echo_n "(cached) " >&6
3799 else
3800   ac_func_search_save_LIBS=$LIBS
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807
3808 /* Override any GCC internal prototype to avoid an error.
3809    Use char because int might match the return type of a GCC
3810    builtin and then its argument prototype would still apply.  */
3811 #ifdef __cplusplus
3812 extern "C"
3813 #endif
3814 char clock_gettime ();
3815 int
3816 main ()
3817 {
3818 return clock_gettime ();
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 for ac_lib in '' rt; do
3824   if test -z "$ac_lib"; then
3825     ac_res="none required"
3826   else
3827     ac_res=-l$ac_lib
3828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3829   fi
3830   rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (ac_try="$ac_link"
3832 case "(($ac_try" in
3833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834   *) ac_try_echo=$ac_try;;
3835 esac
3836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3837 $as_echo "$ac_try_echo") >&5
3838   (eval "$ac_link") 2>conftest.er1
3839   ac_status=$?
3840   grep -v '^ *+' conftest.er1 >conftest.err
3841   rm -f conftest.er1
3842   cat conftest.err >&5
3843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); } && {
3845          test -z "$ac_c_werror_flag" ||
3846          test ! -s conftest.err
3847        } && test -s conftest$ac_exeext && {
3848          test "$cross_compiling" = yes ||
3849          $as_test_x conftest$ac_exeext
3850        }; then
3851   ac_cv_search_clock_gettime=$ac_res
3852 else
3853   $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856
3857 fi
3858
3859 rm -rf conftest.dSYM
3860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3861       conftest$ac_exeext
3862   if test "${ac_cv_search_clock_gettime+set}" = set; then
3863   break
3864 fi
3865 done
3866 if test "${ac_cv_search_clock_gettime+set}" = set; then
3867   :
3868 else
3869   ac_cv_search_clock_gettime=no
3870 fi
3871 rm conftest.$ac_ext
3872 LIBS=$ac_func_search_save_LIBS
3873 fi
3874 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
3875 $as_echo "$ac_cv_search_clock_gettime" >&6; }
3876 ac_res=$ac_cv_search_clock_gettime
3877 if test "$ac_res" != no; then
3878   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3879
3880 fi
3881
3882 { $as_echo "$as_me:$LINENO: checking for library containing sendfile" >&5
3883 $as_echo_n "checking for library containing sendfile... " >&6; }
3884 if test "${ac_cv_search_sendfile+set}" = set; then
3885   $as_echo_n "(cached) " >&6
3886 else
3887   ac_func_search_save_LIBS=$LIBS
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 /* Override any GCC internal prototype to avoid an error.
3896    Use char because int might match the return type of a GCC
3897    builtin and then its argument prototype would still apply.  */
3898 #ifdef __cplusplus
3899 extern "C"
3900 #endif
3901 char sendfile ();
3902 int
3903 main ()
3904 {
3905 return sendfile ();
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 for ac_lib in '' sendfile; do
3911   if test -z "$ac_lib"; then
3912     ac_res="none required"
3913   else
3914     ac_res=-l$ac_lib
3915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3916   fi
3917   rm -f conftest.$ac_objext conftest$ac_exeext
3918 if { (ac_try="$ac_link"
3919 case "(($ac_try" in
3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921   *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924 $as_echo "$ac_try_echo") >&5
3925   (eval "$ac_link") 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } && {
3932          test -z "$ac_c_werror_flag" ||
3933          test ! -s conftest.err
3934        } && test -s conftest$ac_exeext && {
3935          test "$cross_compiling" = yes ||
3936          $as_test_x conftest$ac_exeext
3937        }; then
3938   ac_cv_search_sendfile=$ac_res
3939 else
3940   $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943
3944 fi
3945
3946 rm -rf conftest.dSYM
3947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3948       conftest$ac_exeext
3949   if test "${ac_cv_search_sendfile+set}" = set; then
3950   break
3951 fi
3952 done
3953 if test "${ac_cv_search_sendfile+set}" = set; then
3954   :
3955 else
3956   ac_cv_search_sendfile=no
3957 fi
3958 rm conftest.$ac_ext
3959 LIBS=$ac_func_search_save_LIBS
3960 fi
3961 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sendfile" >&5
3962 $as_echo "$ac_cv_search_sendfile" >&6; }
3963 ac_res=$ac_cv_search_sendfile
3964 if test "$ac_res" != no; then
3965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3966
3967 fi
3968
3969
3970 { $as_echo "$as_me:$LINENO: checking for WIN32" >&5
3971 $as_echo_n "checking for WIN32... " >&6; }
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h.  */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h.  */
3978
3979 int
3980 main ()
3981 {
3982
3983 #ifndef WIN32
3984 die horribly
3985 #endif
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999   (eval "$ac_compile") 2>conftest.er1
4000   ac_status=$?
4001   grep -v '^ *+' conftest.er1 >conftest.err
4002   rm -f conftest.er1
4003   cat conftest.err >&5
4004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); } && {
4006          test -z "$ac_c_werror_flag" ||
4007          test ! -s conftest.err
4008        } && test -s conftest.$ac_objext; then
4009   bwin32=true; { $as_echo "$as_me:$LINENO: result: yes" >&5
4010 $as_echo "yes" >&6; }
4011 else
4012   $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015         bwin32=false; { $as_echo "$as_me:$LINENO: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020
4021 { $as_echo "$as_me:$LINENO: checking for CYGWIN" >&5
4022 $as_echo_n "checking for CYGWIN... " >&6; }
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033
4034 #ifndef __CYGWIN__
4035 die horribly
4036 #endif
4037
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4044 case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4049 $as_echo "$ac_try_echo") >&5
4050   (eval "$ac_compile") 2>conftest.er1
4051   ac_status=$?
4052   grep -v '^ *+' conftest.er1 >conftest.err
4053   rm -f conftest.er1
4054   cat conftest.err >&5
4055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } && {
4057          test -z "$ac_c_werror_flag" ||
4058          test ! -s conftest.err
4059        } && test -s conftest.$ac_objext; then
4060   cygwin=true; { $as_echo "$as_me:$LINENO: result: yes" >&5
4061 $as_echo "yes" >&6; }
4062 else
4063   $as_echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066         cygwin=false; { $as_echo "$as_me:$LINENO: result: no" >&5
4067 $as_echo "no" >&6; }
4068 fi
4069
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071
4072 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073 $as_echo_n "checking for ANSI C header files... " >&6; }
4074 if test "${ac_cv_header_stdc+set}" = set; then
4075   $as_echo_n "(cached) " >&6
4076 else
4077   cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 #include <stdlib.h>
4084 #include <stdarg.h>
4085 #include <string.h>
4086 #include <float.h>
4087
4088 int
4089 main ()
4090 {
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.$ac_objext
4097 if { (ac_try="$ac_compile"
4098 case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103 $as_echo "$ac_try_echo") >&5
4104   (eval "$ac_compile") 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } && {
4111          test -z "$ac_c_werror_flag" ||
4112          test ! -s conftest.err
4113        } && test -s conftest.$ac_objext; then
4114   ac_cv_header_stdc=yes
4115 else
4116   $as_echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119         ac_cv_header_stdc=no
4120 fi
4121
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123
4124 if test $ac_cv_header_stdc = yes; then
4125   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4126   cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132 #include <string.h>
4133
4134 _ACEOF
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136   $EGREP "memchr" >/dev/null 2>&1; then
4137   :
4138 else
4139   ac_cv_header_stdc=no
4140 fi
4141 rm -f conftest*
4142
4143 fi
4144
4145 if test $ac_cv_header_stdc = yes; then
4146   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4147   cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 #include <stdlib.h>
4154
4155 _ACEOF
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157   $EGREP "free" >/dev/null 2>&1; then
4158   :
4159 else
4160   ac_cv_header_stdc=no
4161 fi
4162 rm -f conftest*
4163
4164 fi
4165
4166 if test $ac_cv_header_stdc = yes; then
4167   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4168   if test "$cross_compiling" = yes; then
4169   :
4170 else
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #include <ctype.h>
4178 #include <stdlib.h>
4179 #if ((' ' & 0x0FF) == 0x020)
4180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4182 #else
4183 # define ISLOWER(c) \
4184                    (('a' <= (c) && (c) <= 'i') \
4185                      || ('j' <= (c) && (c) <= 'r') \
4186                      || ('s' <= (c) && (c) <= 'z'))
4187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4188 #endif
4189
4190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4191 int
4192 main ()
4193 {
4194   int i;
4195   for (i = 0; i < 256; i++)
4196     if (XOR (islower (i), ISLOWER (i))
4197         || toupper (i) != TOUPPER (i))
4198       return 2;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest$ac_exeext
4203 if { (ac_try="$ac_link"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4209 $as_echo "$ac_try_echo") >&5
4210   (eval "$ac_link") 2>&5
4211   ac_status=$?
4212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4214   { (case "(($ac_try" in
4215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216   *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4219 $as_echo "$ac_try_echo") >&5
4220   (eval "$ac_try") 2>&5
4221   ac_status=$?
4222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   :
4225 else
4226   $as_echo "$as_me: program exited with status $ac_status" >&5
4227 $as_echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 ( exit $ac_status )
4231 ac_cv_header_stdc=no
4232 fi
4233 rm -rf conftest.dSYM
4234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 fi
4236
4237
4238 fi
4239 fi
4240 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4241 $as_echo "$ac_cv_header_stdc" >&6; }
4242 if test $ac_cv_header_stdc = yes; then
4243
4244 cat >>confdefs.h <<\_ACEOF
4245 #define STDC_HEADERS 1
4246 _ACEOF
4247
4248 fi
4249
4250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4261                   inttypes.h stdint.h unistd.h
4262 do
4263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4265 $as_echo_n "checking for $ac_header... " >&6; }
4266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4267   $as_echo_n "(cached) " >&6
4268 else
4269   cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h.  */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h.  */
4275 $ac_includes_default
4276
4277 #include <$ac_header>
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4281 case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4286 $as_echo "$ac_try_echo") >&5
4287   (eval "$ac_compile") 2>conftest.er1
4288   ac_status=$?
4289   grep -v '^ *+' conftest.er1 >conftest.err
4290   rm -f conftest.er1
4291   cat conftest.err >&5
4292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } && {
4294          test -z "$ac_c_werror_flag" ||
4295          test ! -s conftest.err
4296        } && test -s conftest.$ac_objext; then
4297   eval "$as_ac_Header=yes"
4298 else
4299   $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302         eval "$as_ac_Header=no"
4303 fi
4304
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 ac_res=`eval 'as_val=${'$as_ac_Header'}
4308                  $as_echo "$as_val"'`
4309                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4310 $as_echo "$ac_res" >&6; }
4311 as_val=`eval 'as_val=${'$as_ac_Header'}
4312                  $as_echo "$as_val"'`
4313    if test "x$as_val" = x""yes; then
4314   cat >>confdefs.h <<_ACEOF
4315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 _ACEOF
4317
4318 fi
4319
4320 done
4321
4322
4323
4324 for ac_header in zlib.h
4325 do
4326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4329 $as_echo_n "checking for $ac_header... " >&6; }
4330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4331   $as_echo_n "(cached) " >&6
4332 fi
4333 ac_res=`eval 'as_val=${'$as_ac_Header'}
4334                  $as_echo "$as_val"'`
4335                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4336 $as_echo "$ac_res" >&6; }
4337 else
4338   # Is the header compilable?
4339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4340 $as_echo_n "checking $ac_header usability... " >&6; }
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h.  */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h.  */
4347 $ac_includes_default
4348 #include <$ac_header>
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4352 case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357 $as_echo "$ac_try_echo") >&5
4358   (eval "$ac_compile") 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } && {
4365          test -z "$ac_c_werror_flag" ||
4366          test ! -s conftest.err
4367        } && test -s conftest.$ac_objext; then
4368   ac_header_compiler=yes
4369 else
4370   $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373         ac_header_compiler=no
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4378 $as_echo "$ac_header_compiler" >&6; }
4379
4380 # Is the header present?
4381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4382 $as_echo_n "checking $ac_header presence... " >&6; }
4383 cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389 #include <$ac_header>
4390 _ACEOF
4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
4392 case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4397 $as_echo "$ac_try_echo") >&5
4398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } >/dev/null && {
4405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4406          test ! -s conftest.err
4407        }; then
4408   ac_header_preproc=yes
4409 else
4410   $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413   ac_header_preproc=no
4414 fi
4415
4416 rm -f conftest.err conftest.$ac_ext
4417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4418 $as_echo "$ac_header_preproc" >&6; }
4419
4420 # So?  What about this header?
4421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4422   yes:no: )
4423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4425     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4427     ac_header_preproc=yes
4428     ;;
4429   no:yes:* )
4430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4433 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4437 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4442
4443     ;;
4444 esac
4445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4446 $as_echo_n "checking for $ac_header... " >&6; }
4447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4448   $as_echo_n "(cached) " >&6
4449 else
4450   eval "$as_ac_Header=\$ac_header_preproc"
4451 fi
4452 ac_res=`eval 'as_val=${'$as_ac_Header'}
4453                  $as_echo "$as_val"'`
4454                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4455 $as_echo "$ac_res" >&6; }
4456
4457 fi
4458 as_val=`eval 'as_val=${'$as_ac_Header'}
4459                  $as_echo "$as_val"'`
4460    if test "x$as_val" = x""yes; then
4461   cat >>confdefs.h <<_ACEOF
4462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4463 _ACEOF
4464
4465 fi
4466
4467 done
4468
4469
4470 if test "x$ac_cv_header_zlib_h" = "xyes"; then
4471 save_LIBS="$LIBS"
4472 LIBS=""
4473 ZLIB_LIBS=""
4474 have_zlib=no
4475 { $as_echo "$as_me:$LINENO: checking for library containing inflateEnd" >&5
4476 $as_echo_n "checking for library containing inflateEnd... " >&6; }
4477 if test "${ac_cv_search_inflateEnd+set}" = set; then
4478   $as_echo_n "(cached) " >&6
4479 else
4480   ac_func_search_save_LIBS=$LIBS
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487
4488 /* Override any GCC internal prototype to avoid an error.
4489    Use char because int might match the return type of a GCC
4490    builtin and then its argument prototype would still apply.  */
4491 #ifdef __cplusplus
4492 extern "C"
4493 #endif
4494 char inflateEnd ();
4495 int
4496 main ()
4497 {
4498 return inflateEnd ();
4499   ;
4500   return 0;
4501 }
4502 _ACEOF
4503 for ac_lib in '' z; do
4504   if test -z "$ac_lib"; then
4505     ac_res="none required"
4506   else
4507     ac_res=-l$ac_lib
4508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4509   fi
4510   rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (ac_try="$ac_link"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4517 $as_echo "$ac_try_echo") >&5
4518   (eval "$ac_link") 2>conftest.er1
4519   ac_status=$?
4520   grep -v '^ *+' conftest.er1 >conftest.err
4521   rm -f conftest.er1
4522   cat conftest.err >&5
4523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); } && {
4525          test -z "$ac_c_werror_flag" ||
4526          test ! -s conftest.err
4527        } && test -s conftest$ac_exeext && {
4528          test "$cross_compiling" = yes ||
4529          $as_test_x conftest$ac_exeext
4530        }; then
4531   ac_cv_search_inflateEnd=$ac_res
4532 else
4533   $as_echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536
4537 fi
4538
4539 rm -rf conftest.dSYM
4540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4541       conftest$ac_exeext
4542   if test "${ac_cv_search_inflateEnd+set}" = set; then
4543   break
4544 fi
4545 done
4546 if test "${ac_cv_search_inflateEnd+set}" = set; then
4547   :
4548 else
4549   ac_cv_search_inflateEnd=no
4550 fi
4551 rm conftest.$ac_ext
4552 LIBS=$ac_func_search_save_LIBS
4553 fi
4554 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inflateEnd" >&5
4555 $as_echo "$ac_cv_search_inflateEnd" >&6; }
4556 ac_res=$ac_cv_search_inflateEnd
4557 if test "$ac_res" != no; then
4558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4559   have_zlib=yes
4560         ZLIB_LIBS="$LIBS"
4561
4562 cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_LIBZ 1
4564 _ACEOF
4565
4566 fi
4567
4568 LIBS="$save_LIBS"
4569
4570 fi
4571 AM_CONDITIONAL(ZLIB_REGRESS, test "$have_zlib" = "yes")
4572
4573 if test "$bwin32" = true; then
4574   EV_LIB_WS32=-lws2_32
4575   EV_LIB_GDI=-lgdi32
4576 else
4577   EV_LIB_WS32=
4578   EV_LIB_GDI=
4579 fi
4580
4581
4582
4583
4584 for ac_header in openssl/bio.h
4585 do
4586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4588   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4589 $as_echo_n "checking for $ac_header... " >&6; }
4590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4591   $as_echo_n "(cached) " >&6
4592 fi
4593 ac_res=`eval 'as_val=${'$as_ac_Header'}
4594                  $as_echo "$as_val"'`
4595                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4596 $as_echo "$ac_res" >&6; }
4597 else
4598   # Is the header compilable?
4599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4600 $as_echo_n "checking $ac_header usability... " >&6; }
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607 $ac_includes_default
4608 #include <$ac_header>
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4612 case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617 $as_echo "$ac_try_echo") >&5
4618   (eval "$ac_compile") 2>conftest.er1
4619   ac_status=$?
4620   grep -v '^ *+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } && {
4625          test -z "$ac_c_werror_flag" ||
4626          test ! -s conftest.err
4627        } && test -s conftest.$ac_objext; then
4628   ac_header_compiler=yes
4629 else
4630   $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633         ac_header_compiler=no
4634 fi
4635
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4638 $as_echo "$ac_header_compiler" >&6; }
4639
4640 # Is the header present?
4641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4642 $as_echo_n "checking $ac_header presence... " >&6; }
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 #include <$ac_header>
4650 _ACEOF
4651 if { (ac_try="$ac_cpp conftest.$ac_ext"
4652 case "(($ac_try" in
4653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654   *) ac_try_echo=$ac_try;;
4655 esac
4656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } >/dev/null && {
4665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666          test ! -s conftest.err
4667        }; then
4668   ac_header_preproc=yes
4669 else
4670   $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673   ac_header_preproc=no
4674 fi
4675
4676 rm -f conftest.err conftest.$ac_ext
4677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4678 $as_echo "$ac_header_preproc" >&6; }
4679
4680 # So?  What about this header?
4681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4682   yes:no: )
4683     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4685     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4687     ac_header_preproc=yes
4688     ;;
4689   no:yes:* )
4690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4693 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4697 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4702
4703     ;;
4704 esac
4705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4706 $as_echo_n "checking for $ac_header... " >&6; }
4707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4708   $as_echo_n "(cached) " >&6
4709 else
4710   eval "$as_ac_Header=\$ac_header_preproc"
4711 fi
4712 ac_res=`eval 'as_val=${'$as_ac_Header'}
4713                  $as_echo "$as_val"'`
4714                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4715 $as_echo "$ac_res" >&6; }
4716
4717 fi
4718 as_val=`eval 'as_val=${'$as_ac_Header'}
4719                  $as_echo "$as_val"'`
4720    if test "x$as_val" = x""yes; then
4721   cat >>confdefs.h <<_ACEOF
4722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723 _ACEOF
4724
4725 fi
4726
4727 done
4728
4729
4730 if test "$enable_openssl" = "yes"; then
4731 save_LIBS="$LIBS"
4732 LIBS=""
4733 OPENSSL_LIBS=""
4734 have_openssl=no
4735 { $as_echo "$as_me:$LINENO: checking for library containing SSL_new" >&5
4736 $as_echo_n "checking for library containing SSL_new... " >&6; }
4737 if test "${ac_cv_search_SSL_new+set}" = set; then
4738   $as_echo_n "(cached) " >&6
4739 else
4740   ac_func_search_save_LIBS=$LIBS
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747
4748 /* Override any GCC internal prototype to avoid an error.
4749    Use char because int might match the return type of a GCC
4750    builtin and then its argument prototype would still apply.  */
4751 #ifdef __cplusplus
4752 extern "C"
4753 #endif
4754 char SSL_new ();
4755 int
4756 main ()
4757 {
4758 return SSL_new ();
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 for ac_lib in '' ssl; do
4764   if test -z "$ac_lib"; then
4765     ac_res="none required"
4766   else
4767     ac_res=-l$ac_lib
4768     LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $ac_func_search_save_LIBS"
4769   fi
4770   rm -f conftest.$ac_objext conftest$ac_exeext
4771 if { (ac_try="$ac_link"
4772 case "(($ac_try" in
4773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774   *) ac_try_echo=$ac_try;;
4775 esac
4776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4777 $as_echo "$ac_try_echo") >&5
4778   (eval "$ac_link") 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } && {
4785          test -z "$ac_c_werror_flag" ||
4786          test ! -s conftest.err
4787        } && test -s conftest$ac_exeext && {
4788          test "$cross_compiling" = yes ||
4789          $as_test_x conftest$ac_exeext
4790        }; then
4791   ac_cv_search_SSL_new=$ac_res
4792 else
4793   $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796
4797 fi
4798
4799 rm -rf conftest.dSYM
4800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4801       conftest$ac_exeext
4802   if test "${ac_cv_search_SSL_new+set}" = set; then
4803   break
4804 fi
4805 done
4806 if test "${ac_cv_search_SSL_new+set}" = set; then
4807   :
4808 else
4809   ac_cv_search_SSL_new=no
4810 fi
4811 rm conftest.$ac_ext
4812 LIBS=$ac_func_search_save_LIBS
4813 fi
4814 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_new" >&5
4815 $as_echo "$ac_cv_search_SSL_new" >&6; }
4816 ac_res=$ac_cv_search_SSL_new
4817 if test "$ac_res" != no; then
4818   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4819   have_openssl=yes
4820         OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32"
4821
4822 cat >>confdefs.h <<\_ACEOF
4823 #define HAVE_OPENSSL 1
4824 _ACEOF
4825
4826 else
4827   have_openssl=no
4828 fi
4829
4830 LIBS="$save_LIBS"
4831
4832 fi
4833
4834 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4835 $as_echo_n "checking for ANSI C header files... " >&6; }
4836 if test "${ac_cv_header_stdc+set}" = set; then
4837   $as_echo_n "(cached) " >&6
4838 else
4839   cat >conftest.$ac_ext <<_ACEOF
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <stdlib.h>
4846 #include <stdarg.h>
4847 #include <string.h>
4848 #include <float.h>
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4860 case "(($ac_try" in
4861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862   *) ac_try_echo=$ac_try;;
4863 esac
4864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865 $as_echo "$ac_try_echo") >&5
4866   (eval "$ac_compile") 2>conftest.er1
4867   ac_status=$?
4868   grep -v '^ *+' conftest.er1 >conftest.err
4869   rm -f conftest.er1
4870   cat conftest.err >&5
4871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } && {
4873          test -z "$ac_c_werror_flag" ||
4874          test ! -s conftest.err
4875        } && test -s conftest.$ac_objext; then
4876   ac_cv_header_stdc=yes
4877 else
4878   $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881         ac_cv_header_stdc=no
4882 fi
4883
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885
4886 if test $ac_cv_header_stdc = yes; then
4887   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4888   cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 #include <string.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898   $EGREP "memchr" >/dev/null 2>&1; then
4899   :
4900 else
4901   ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909   cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915 #include <stdlib.h>
4916
4917 _ACEOF
4918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4919   $EGREP "free" >/dev/null 2>&1; then
4920   :
4921 else
4922   ac_cv_header_stdc=no
4923 fi
4924 rm -f conftest*
4925
4926 fi
4927
4928 if test $ac_cv_header_stdc = yes; then
4929   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4930   if test "$cross_compiling" = yes; then
4931   :
4932 else
4933   cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h.  */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h.  */
4939 #include <ctype.h>
4940 #include <stdlib.h>
4941 #if ((' ' & 0x0FF) == 0x020)
4942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4944 #else
4945 # define ISLOWER(c) \
4946                    (('a' <= (c) && (c) <= 'i') \
4947                      || ('j' <= (c) && (c) <= 'r') \
4948                      || ('s' <= (c) && (c) <= 'z'))
4949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4950 #endif
4951
4952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4953 int
4954 main ()
4955 {
4956   int i;
4957   for (i = 0; i < 256; i++)
4958     if (XOR (islower (i), ISLOWER (i))
4959         || toupper (i) != TOUPPER (i))
4960       return 2;
4961   return 0;
4962 }
4963 _ACEOF
4964 rm -f conftest$ac_exeext
4965 if { (ac_try="$ac_link"
4966 case "(($ac_try" in
4967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968   *) ac_try_echo=$ac_try;;
4969 esac
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972   (eval "$ac_link") 2>&5
4973   ac_status=$?
4974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4976   { (case "(($ac_try" in
4977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978   *) ac_try_echo=$ac_try;;
4979 esac
4980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4981 $as_echo "$ac_try_echo") >&5
4982   (eval "$ac_try") 2>&5
4983   ac_status=$?
4984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; }; then
4986   :
4987 else
4988   $as_echo "$as_me: program exited with status $ac_status" >&5
4989 $as_echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ( exit $ac_status )
4993 ac_cv_header_stdc=no
4994 fi
4995 rm -rf conftest.dSYM
4996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4997 fi
4998
4999
5000 fi
5001 fi
5002 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5003 $as_echo "$ac_cv_header_stdc" >&6; }
5004 if test $ac_cv_header_stdc = yes; then
5005
5006 cat >>confdefs.h <<\_ACEOF
5007 #define STDC_HEADERS 1
5008 _ACEOF
5009
5010 fi
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
5039 do
5040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5042   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5043 $as_echo_n "checking for $ac_header... " >&6; }
5044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5045   $as_echo_n "(cached) " >&6
5046 fi
5047 ac_res=`eval 'as_val=${'$as_ac_Header'}
5048                  $as_echo "$as_val"'`
5049                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5050 $as_echo "$ac_res" >&6; }
5051 else
5052   # Is the header compilable?
5053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5054 $as_echo_n "checking $ac_header usability... " >&6; }
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 $ac_includes_default
5062 #include <$ac_header>
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (ac_try="$ac_compile"
5066 case "(($ac_try" in
5067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068   *) ac_try_echo=$ac_try;;
5069 esac
5070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071 $as_echo "$ac_try_echo") >&5
5072   (eval "$ac_compile") 2>conftest.er1
5073   ac_status=$?
5074   grep -v '^ *+' conftest.er1 >conftest.err
5075   rm -f conftest.er1
5076   cat conftest.err >&5
5077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } && {
5079          test -z "$ac_c_werror_flag" ||
5080          test ! -s conftest.err
5081        } && test -s conftest.$ac_objext; then
5082   ac_header_compiler=yes
5083 else
5084   $as_echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087         ac_header_compiler=no
5088 fi
5089
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092 $as_echo "$ac_header_compiler" >&6; }
5093
5094 # Is the header present?
5095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096 $as_echo_n "checking $ac_header presence... " >&6; }
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 #include <$ac_header>
5104 _ACEOF
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5106 case "(($ac_try" in
5107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108   *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } >/dev/null && {
5119          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120          test ! -s conftest.err
5121        }; then
5122   ac_header_preproc=yes
5123 else
5124   $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127   ac_header_preproc=no
5128 fi
5129
5130 rm -f conftest.err conftest.$ac_ext
5131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5132 $as_echo "$ac_header_preproc" >&6; }
5133
5134 # So?  What about this header?
5135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5136   yes:no: )
5137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5141     ac_header_preproc=yes
5142     ;;
5143   no:yes:* )
5144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5146     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5147 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5148     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5150     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5151 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5156
5157     ;;
5158 esac
5159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5160 $as_echo_n "checking for $ac_header... " >&6; }
5161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5162   $as_echo_n "(cached) " >&6
5163 else
5164   eval "$as_ac_Header=\$ac_header_preproc"
5165 fi
5166 ac_res=`eval 'as_val=${'$as_ac_Header'}
5167                  $as_echo "$as_val"'`
5168                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5169 $as_echo "$ac_res" >&6; }
5170
5171 fi
5172 as_val=`eval 'as_val=${'$as_ac_Header'}
5173                  $as_echo "$as_val"'`
5174    if test "x$as_val" = x""yes; then
5175   cat >>confdefs.h <<_ACEOF
5176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5177 _ACEOF
5178
5179 fi
5180
5181 done
5182
5183
5184 for ac_header in sys/sysctl.h
5185 do
5186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5188 $as_echo_n "checking for $ac_header... " >&6; }
5189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5190   $as_echo_n "(cached) " >&6
5191 else
5192   cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198
5199 #ifdef HAVE_SYS_PARAM_H
5200 #include <sys/param.h>
5201 #endif
5202
5203
5204 #include <$ac_header>
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (ac_try="$ac_compile"
5208 case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5213 $as_echo "$ac_try_echo") >&5
5214   (eval "$ac_compile") 2>conftest.er1
5215   ac_status=$?
5216   grep -v '^ *+' conftest.er1 >conftest.err
5217   rm -f conftest.er1
5218   cat conftest.err >&5
5219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); } && {
5221          test -z "$ac_c_werror_flag" ||
5222          test ! -s conftest.err
5223        } && test -s conftest.$ac_objext; then
5224   eval "$as_ac_Header=yes"
5225 else
5226   $as_echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229         eval "$as_ac_Header=no"
5230 fi
5231
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 fi
5234 ac_res=`eval 'as_val=${'$as_ac_Header'}
5235                  $as_echo "$as_val"'`
5236                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5237 $as_echo "$ac_res" >&6; }
5238 as_val=`eval 'as_val=${'$as_ac_Header'}
5239                  $as_echo "$as_val"'`
5240    if test "x$as_val" = x""yes; then
5241   cat >>confdefs.h <<_ACEOF
5242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5243 _ACEOF
5244
5245 fi
5246
5247 done
5248
5249 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
5250         { $as_echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5
5251 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
5252         cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258
5259 #include <sys/queue.h>
5260 #ifdef TAILQ_FOREACH
5261  yes
5262 #endif
5263
5264 _ACEOF
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266   $EGREP "yes" >/dev/null 2>&1; then
5267   { $as_echo "$as_me:$LINENO: result: yes" >&5
5268 $as_echo "yes" >&6; }
5269
5270 cat >>confdefs.h <<\_ACEOF
5271 #define HAVE_TAILQFOREACH 1
5272 _ACEOF
5273
5274 else
5275   { $as_echo "$as_me:$LINENO: result: no" >&5
5276 $as_echo "no" >&6; }
5277
5278 fi
5279 rm -f conftest*
5280
5281 fi
5282
5283 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5284         { $as_echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5
5285 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
5286         cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292
5293 #include <sys/time.h>
5294 #ifdef timeradd
5295  yes
5296 #endif
5297
5298 _ACEOF
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300   $EGREP "yes" >/dev/null 2>&1; then
5301
5302 cat >>confdefs.h <<\_ACEOF
5303 #define HAVE_TIMERADD 1
5304 _ACEOF
5305
5306           { $as_echo "$as_me:$LINENO: result: yes" >&5
5307 $as_echo "yes" >&6; }
5308 else
5309   { $as_echo "$as_me:$LINENO: result: no" >&5
5310 $as_echo "no" >&6; }
5311
5312 fi
5313 rm -f conftest*
5314
5315 fi
5316
5317 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5318         { $as_echo "$as_me:$LINENO: checking for timercmp in sys/time.h" >&5
5319 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
5320         cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h.  */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h.  */
5326
5327 #include <sys/time.h>
5328 #ifdef timercmp
5329  yes
5330 #endif
5331
5332 _ACEOF
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334   $EGREP "yes" >/dev/null 2>&1; then
5335
5336 cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_TIMERCMP 1
5338 _ACEOF
5339
5340           { $as_echo "$as_me:$LINENO: result: yes" >&5
5341 $as_echo "yes" >&6; }
5342 else
5343   { $as_echo "$as_me:$LINENO: result: no" >&5
5344 $as_echo "no" >&6; }
5345
5346 fi
5347 rm -f conftest*
5348
5349 fi
5350
5351 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5352         { $as_echo "$as_me:$LINENO: checking for timerclear in sys/time.h" >&5
5353 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
5354         cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360
5361 #include <sys/time.h>
5362 #ifdef timerclear
5363  yes
5364 #endif
5365
5366 _ACEOF
5367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368   $EGREP "yes" >/dev/null 2>&1; then
5369
5370 cat >>confdefs.h <<\_ACEOF
5371 #define HAVE_TIMERCLEAR 1
5372 _ACEOF
5373
5374           { $as_echo "$as_me:$LINENO: result: yes" >&5
5375 $as_echo "yes" >&6; }
5376 else
5377   { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5379
5380 fi
5381 rm -f conftest*
5382
5383 fi
5384
5385 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5386         { $as_echo "$as_me:$LINENO: checking for timerisset in sys/time.h" >&5
5387 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
5388         cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h.  */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h.  */
5394
5395 #include <sys/time.h>
5396 #ifdef timerisset
5397  yes
5398 #endif
5399
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402   $EGREP "yes" >/dev/null 2>&1; then
5403
5404 cat >>confdefs.h <<\_ACEOF
5405 #define HAVE_TIMERISSET 1
5406 _ACEOF
5407
5408           { $as_echo "$as_me:$LINENO: result: yes" >&5
5409 $as_echo "yes" >&6; }
5410 else
5411   { $as_echo "$as_me:$LINENO: result: no" >&5
5412 $as_echo "no" >&6; }
5413
5414 fi
5415 rm -f conftest*
5416
5417 fi
5418
5419 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
5420         { $as_echo "$as_me:$LINENO: checking whether CTL_KERN is declared" >&5
5421 $as_echo_n "checking whether CTL_KERN is declared... " >&6; }
5422 if test "${ac_cv_have_decl_CTL_KERN+set}" = set; then
5423   $as_echo_n "(cached) " >&6
5424 else
5425   cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 #include <sys/types.h>
5432              #include <sys/sysctl.h>
5433
5434
5435 int
5436 main ()
5437 {
5438 #ifndef CTL_KERN
5439   (void) CTL_KERN;
5440 #endif
5441
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454   (eval "$ac_compile") 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } && {
5461          test -z "$ac_c_werror_flag" ||
5462          test ! -s conftest.err
5463        } && test -s conftest.$ac_objext; then
5464   ac_cv_have_decl_CTL_KERN=yes
5465 else
5466   $as_echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469         ac_cv_have_decl_CTL_KERN=no
5470 fi
5471
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 fi
5474 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_CTL_KERN" >&5
5475 $as_echo "$ac_cv_have_decl_CTL_KERN" >&6; }
5476 if test "x$ac_cv_have_decl_CTL_KERN" = x""yes; then
5477
5478 cat >>confdefs.h <<_ACEOF
5479 #define HAVE_DECL_CTL_KERN 1
5480 _ACEOF
5481
5482
5483 else
5484   cat >>confdefs.h <<_ACEOF
5485 #define HAVE_DECL_CTL_KERN 0
5486 _ACEOF
5487
5488
5489 fi
5490 { $as_echo "$as_me:$LINENO: checking whether KERN_RANDOM is declared" >&5
5491 $as_echo_n "checking whether KERN_RANDOM is declared... " >&6; }
5492 if test "${ac_cv_have_decl_KERN_RANDOM+set}" = set; then
5493   $as_echo_n "(cached) " >&6
5494 else
5495   cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501 #include <sys/types.h>
5502              #include <sys/sysctl.h>
5503
5504
5505 int
5506 main ()
5507 {
5508 #ifndef KERN_RANDOM
5509   (void) KERN_RANDOM;
5510 #endif
5511
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5518 case "(($ac_try" in
5519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520   *) ac_try_echo=$ac_try;;
5521 esac
5522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5523 $as_echo "$ac_try_echo") >&5
5524   (eval "$ac_compile") 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } && {
5531          test -z "$ac_c_werror_flag" ||
5532          test ! -s conftest.err
5533        } && test -s conftest.$ac_objext; then
5534   ac_cv_have_decl_KERN_RANDOM=yes
5535 else
5536   $as_echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539         ac_cv_have_decl_KERN_RANDOM=no
5540 fi
5541
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 fi
5544 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_KERN_RANDOM" >&5
5545 $as_echo "$ac_cv_have_decl_KERN_RANDOM" >&6; }
5546 if test "x$ac_cv_have_decl_KERN_RANDOM" = x""yes; then
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define HAVE_DECL_KERN_RANDOM 1
5550 _ACEOF
5551
5552
5553 else
5554   cat >>confdefs.h <<_ACEOF
5555 #define HAVE_DECL_KERN_RANDOM 0
5556 _ACEOF
5557
5558
5559 fi
5560 { $as_echo "$as_me:$LINENO: checking whether RANDOM_UUID is declared" >&5
5561 $as_echo_n "checking whether RANDOM_UUID is declared... " >&6; }
5562 if test "${ac_cv_have_decl_RANDOM_UUID+set}" = set; then
5563   $as_echo_n "(cached) " >&6
5564 else
5565   cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571 #include <sys/types.h>
5572              #include <sys/sysctl.h>
5573
5574
5575 int
5576 main ()
5577 {
5578 #ifndef RANDOM_UUID
5579   (void) RANDOM_UUID;
5580 #endif
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594   (eval "$ac_compile") 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && {
5601          test -z "$ac_c_werror_flag" ||
5602          test ! -s conftest.err
5603        } && test -s conftest.$ac_objext; then
5604   ac_cv_have_decl_RANDOM_UUID=yes
5605 else
5606   $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609         ac_cv_have_decl_RANDOM_UUID=no
5610 fi
5611
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 fi
5614 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_RANDOM_UUID" >&5
5615 $as_echo "$ac_cv_have_decl_RANDOM_UUID" >&6; }
5616 if test "x$ac_cv_have_decl_RANDOM_UUID" = x""yes; then
5617
5618 cat >>confdefs.h <<_ACEOF
5619 #define HAVE_DECL_RANDOM_UUID 1
5620 _ACEOF
5621
5622
5623 else
5624   cat >>confdefs.h <<_ACEOF
5625 #define HAVE_DECL_RANDOM_UUID 0
5626 _ACEOF
5627
5628
5629 fi
5630 { $as_echo "$as_me:$LINENO: checking whether KERN_ARND is declared" >&5
5631 $as_echo_n "checking whether KERN_ARND is declared... " >&6; }
5632 if test "${ac_cv_have_decl_KERN_ARND+set}" = set; then
5633   $as_echo_n "(cached) " >&6
5634 else
5635   cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 #include <sys/types.h>
5642              #include <sys/sysctl.h>
5643
5644
5645 int
5646 main ()
5647 {
5648 #ifndef KERN_ARND
5649   (void) KERN_ARND;
5650 #endif
5651
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660   *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5663 $as_echo "$ac_try_echo") >&5
5664   (eval "$ac_compile") 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } && {
5671          test -z "$ac_c_werror_flag" ||
5672          test ! -s conftest.err
5673        } && test -s conftest.$ac_objext; then
5674   ac_cv_have_decl_KERN_ARND=yes
5675 else
5676   $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679         ac_cv_have_decl_KERN_ARND=no
5680 fi
5681
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_KERN_ARND" >&5
5685 $as_echo "$ac_cv_have_decl_KERN_ARND" >&6; }
5686 if test "x$ac_cv_have_decl_KERN_ARND" = x""yes; then
5687
5688 cat >>confdefs.h <<_ACEOF
5689 #define HAVE_DECL_KERN_ARND 1
5690 _ACEOF
5691
5692
5693 else
5694   cat >>confdefs.h <<_ACEOF
5695 #define HAVE_DECL_KERN_ARND 0
5696 _ACEOF
5697
5698
5699 fi
5700
5701
5702 fi
5703
5704 AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue)
5705 AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue)
5706 AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue)
5707
5708 if test x$bwin32 = xtrue; then
5709    { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
5710 $as_echo_n "checking for library containing getservbyname... " >&6; }
5711 if test "${ac_cv_search_getservbyname+set}" = set; then
5712   $as_echo_n "(cached) " >&6
5713 else
5714   ac_func_search_save_LIBS=$LIBS
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h.  */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h.  */
5721
5722 /* Override any GCC internal prototype to avoid an error.
5723    Use char because int might match the return type of a GCC
5724    builtin and then its argument prototype would still apply.  */
5725 #ifdef __cplusplus
5726 extern "C"
5727 #endif
5728 char getservbyname ();
5729 int
5730 main ()
5731 {
5732 return getservbyname ();
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 for ac_lib in '' ws2_32; do
5738   if test -z "$ac_lib"; then
5739     ac_res="none required"
5740   else
5741     ac_res=-l$ac_lib
5742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5743   fi
5744   rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (ac_try="$ac_link"
5746 case "(($ac_try" in
5747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748   *) ac_try_echo=$ac_try;;
5749 esac
5750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751 $as_echo "$ac_try_echo") >&5
5752   (eval "$ac_link") 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } && {
5759          test -z "$ac_c_werror_flag" ||
5760          test ! -s conftest.err
5761        } && test -s conftest$ac_exeext && {
5762          test "$cross_compiling" = yes ||
5763          $as_test_x conftest$ac_exeext
5764        }; then
5765   ac_cv_search_getservbyname=$ac_res
5766 else
5767   $as_echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770
5771 fi
5772
5773 rm -rf conftest.dSYM
5774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5775       conftest$ac_exeext
5776   if test "${ac_cv_search_getservbyname+set}" = set; then
5777   break
5778 fi
5779 done
5780 if test "${ac_cv_search_getservbyname+set}" = set; then
5781   :
5782 else
5783   ac_cv_search_getservbyname=no
5784 fi
5785 rm conftest.$ac_ext
5786 LIBS=$ac_func_search_save_LIBS
5787 fi
5788 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
5789 $as_echo "$ac_cv_search_getservbyname" >&6; }
5790 ac_res=$ac_cv_search_getservbyname
5791 if test "$ac_res" != no; then
5792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5793
5794 fi
5795
5796 fi
5797
5798 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5799 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5800 if test "${ac_cv_c_const+set}" = set; then
5801   $as_echo_n "(cached) " >&6
5802 else
5803   cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h.  */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h.  */
5809
5810 int
5811 main ()
5812 {
5813 /* FIXME: Include the comments suggested by Paul. */
5814 #ifndef __cplusplus
5815   /* Ultrix mips cc rejects this.  */
5816   typedef int charset[2];
5817   const charset cs;
5818   /* SunOS 4.1.1 cc rejects this.  */
5819   char const *const *pcpcc;
5820   char **ppc;
5821   /* NEC SVR4.0.2 mips cc rejects this.  */
5822   struct point {int x, y;};
5823   static struct point const zero = {0,0};
5824   /* AIX XL C 1.02.0.0 rejects this.
5825      It does not let you subtract one const X* pointer from another in
5826      an arm of an if-expression whose if-part is not a constant
5827      expression */
5828   const char *g = "string";
5829   pcpcc = &g + (g ? g-g : 0);
5830   /* HPUX 7.0 cc rejects these. */
5831   ++pcpcc;
5832   ppc = (char**) pcpcc;
5833   pcpcc = (char const *const *) ppc;
5834   { /* SCO 3.2v4 cc rejects this.  */
5835     char *t;
5836     char const *s = 0 ? (char *) 0 : (char const *) 0;
5837
5838     *t++ = 0;
5839     if (s) return 0;
5840   }
5841   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5842     int x[] = {25, 17};
5843     const int *foo = &x[0];
5844     ++foo;
5845   }
5846   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5847     typedef const int *iptr;
5848     iptr p = 0;
5849     ++p;
5850   }
5851   { /* AIX XL C 1.02.0.0 rejects this saying
5852        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5853     struct s { int j; const int *ap[3]; };
5854     struct s *b; b->j = 5;
5855   }
5856   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5857     const int foo = 10;
5858     if (!foo) return 0;
5859   }
5860   return !cs[0] && !zero.x;
5861 #endif
5862
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5869 case "(($ac_try" in
5870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871   *) ac_try_echo=$ac_try;;
5872 esac
5873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874 $as_echo "$ac_try_echo") >&5
5875   (eval "$ac_compile") 2>conftest.er1
5876   ac_status=$?
5877   grep -v '^ *+' conftest.er1 >conftest.err
5878   rm -f conftest.er1
5879   cat conftest.err >&5
5880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); } && {
5882          test -z "$ac_c_werror_flag" ||
5883          test ! -s conftest.err
5884        } && test -s conftest.$ac_objext; then
5885   ac_cv_c_const=yes
5886 else
5887   $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890         ac_cv_c_const=no
5891 fi
5892
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 fi
5895 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5896 $as_echo "$ac_cv_c_const" >&6; }
5897 if test $ac_cv_c_const = no; then
5898
5899 cat >>confdefs.h <<\_ACEOF
5900 #define const /**/
5901 _ACEOF
5902
5903 fi
5904
5905 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5906 $as_echo_n "checking for inline... " >&6; }
5907 if test "${ac_cv_c_inline+set}" = set; then
5908   $as_echo_n "(cached) " >&6
5909 else
5910   ac_cv_c_inline=no
5911 for ac_kw in inline __inline__ __inline; do
5912   cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 #ifndef __cplusplus
5919 typedef int foo_t;
5920 static $ac_kw foo_t static_foo () {return 0; }
5921 $ac_kw foo_t foo () {return 0; }
5922 #endif
5923
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5927 case "(($ac_try" in
5928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929   *) ac_try_echo=$ac_try;;
5930 esac
5931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932 $as_echo "$ac_try_echo") >&5
5933   (eval "$ac_compile") 2>conftest.er1
5934   ac_status=$?
5935   grep -v '^ *+' conftest.er1 >conftest.err
5936   rm -f conftest.er1
5937   cat conftest.err >&5
5938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } && {
5940          test -z "$ac_c_werror_flag" ||
5941          test ! -s conftest.err
5942        } && test -s conftest.$ac_objext; then
5943   ac_cv_c_inline=$ac_kw
5944 else
5945   $as_echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952   test "$ac_cv_c_inline" != no && break
5953 done
5954
5955 fi
5956 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5957 $as_echo "$ac_cv_c_inline" >&6; }
5958
5959
5960 case $ac_cv_c_inline in
5961   inline | yes) ;;
5962   *)
5963     case $ac_cv_c_inline in
5964       no) ac_val=;;
5965       *) ac_val=$ac_cv_c_inline;;
5966     esac
5967     cat >>confdefs.h <<_ACEOF
5968 #ifndef __cplusplus
5969 #define inline $ac_val
5970 #endif
5971 _ACEOF
5972     ;;
5973 esac
5974
5975 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5976 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5977 if test "${ac_cv_header_time+set}" = set; then
5978   $as_echo_n "(cached) " >&6
5979 else
5980   cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h.  */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h.  */
5986 #include <sys/types.h>
5987 #include <sys/time.h>
5988 #include <time.h>
5989
5990 int
5991 main ()
5992 {
5993 if ((struct tm *) 0)
5994 return 0;
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007   (eval "$ac_compile") 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } && {
6014          test -z "$ac_c_werror_flag" ||
6015          test ! -s conftest.err
6016        } && test -s conftest.$ac_objext; then
6017   ac_cv_header_time=yes
6018 else
6019   $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022         ac_cv_header_time=no
6023 fi
6024
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 fi
6027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6028 $as_echo "$ac_cv_header_time" >&6; }
6029 if test $ac_cv_header_time = yes; then
6030
6031 cat >>confdefs.h <<\_ACEOF
6032 #define TIME_WITH_SYS_TIME 1
6033 _ACEOF
6034
6035 fi
6036
6037
6038
6039
6040
6041
6042
6043
6044 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
6045 do
6046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6047 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6048 $as_echo_n "checking for $ac_func... " >&6; }
6049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6050   $as_echo_n "(cached) " >&6
6051 else
6052   cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6060 #define $ac_func innocuous_$ac_func
6061
6062 /* System header to define __stub macros and hopefully few prototypes,
6063     which can conflict with char $ac_func (); below.
6064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6065     <limits.h> exists even on freestanding compilers.  */
6066
6067 #ifdef __STDC__
6068 # include <limits.h>
6069 #else
6070 # include <assert.h>
6071 #endif
6072
6073 #undef $ac_func
6074
6075 /* Override any GCC internal prototype to avoid an error.
6076    Use char because int might match the return type of a GCC
6077    builtin and then its argument prototype would still apply.  */
6078 #ifdef __cplusplus
6079 extern "C"
6080 #endif
6081 char $ac_func ();
6082 /* The GNU C library defines this for functions which it implements
6083     to always fail with ENOSYS.  Some functions are actually named
6084     something starting with __ and the normal name is an alias.  */
6085 #if defined __stub_$ac_func || defined __stub___$ac_func
6086 choke me
6087 #endif
6088
6089 int
6090 main ()
6091 {
6092 return $ac_func ();
6093   ;
6094   return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext conftest$ac_exeext
6098 if { (ac_try="$ac_link"
6099 case "(($ac_try" in
6100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101   *) ac_try_echo=$ac_try;;
6102 esac
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105   (eval "$ac_link") 2>conftest.er1
6106   ac_status=$?
6107   grep -v '^ *+' conftest.er1 >conftest.err
6108   rm -f conftest.er1
6109   cat conftest.err >&5
6110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } && {
6112          test -z "$ac_c_werror_flag" ||
6113          test ! -s conftest.err
6114        } && test -s conftest$ac_exeext && {
6115          test "$cross_compiling" = yes ||
6116          $as_test_x conftest$ac_exeext
6117        }; then
6118   eval "$as_ac_var=yes"
6119 else
6120   $as_echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123         eval "$as_ac_var=no"
6124 fi
6125
6126 rm -rf conftest.dSYM
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128       conftest$ac_exeext conftest.$ac_ext
6129 fi
6130 ac_res=`eval 'as_val=${'$as_ac_var'}
6131                  $as_echo "$as_val"'`
6132                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6133 $as_echo "$ac_res" >&6; }
6134 as_val=`eval 'as_val=${'$as_ac_var'}
6135                  $as_echo "$as_val"'`
6136    if test "x$as_val" = x""yes; then
6137   cat >>confdefs.h <<_ACEOF
6138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6139 _ACEOF
6140
6141 fi
6142 done
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
6168 do
6169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6171 $as_echo_n "checking for $ac_func... " >&6; }
6172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6173   $as_echo_n "(cached) " >&6
6174 else
6175   cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6183 #define $ac_func innocuous_$ac_func
6184
6185 /* System header to define __stub macros and hopefully few prototypes,
6186     which can conflict with char $ac_func (); below.
6187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6188     <limits.h> exists even on freestanding compilers.  */
6189
6190 #ifdef __STDC__
6191 # include <limits.h>
6192 #else
6193 # include <assert.h>
6194 #endif
6195
6196 #undef $ac_func
6197
6198 /* Override any GCC internal prototype to avoid an error.
6199    Use char because int might match the return type of a GCC
6200    builtin and then its argument prototype would still apply.  */
6201 #ifdef __cplusplus
6202 extern "C"
6203 #endif
6204 char $ac_func ();
6205 /* The GNU C library defines this for functions which it implements
6206     to always fail with ENOSYS.  Some functions are actually named
6207     something starting with __ and the normal name is an alias.  */
6208 #if defined __stub_$ac_func || defined __stub___$ac_func
6209 choke me
6210 #endif
6211
6212 int
6213 main ()
6214 {
6215 return $ac_func ();
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext conftest$ac_exeext
6221 if { (ac_try="$ac_link"
6222 case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6227 $as_echo "$ac_try_echo") >&5
6228   (eval "$ac_link") 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } && {
6235          test -z "$ac_c_werror_flag" ||
6236          test ! -s conftest.err
6237        } && test -s conftest$ac_exeext && {
6238          test "$cross_compiling" = yes ||
6239          $as_test_x conftest$ac_exeext
6240        }; then
6241   eval "$as_ac_var=yes"
6242 else
6243   $as_echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246         eval "$as_ac_var=no"
6247 fi
6248
6249 rm -rf conftest.dSYM
6250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6251       conftest$ac_exeext conftest.$ac_ext
6252 fi
6253 ac_res=`eval 'as_val=${'$as_ac_var'}
6254                  $as_echo "$as_val"'`
6255                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6256 $as_echo "$ac_res" >&6; }
6257 as_val=`eval 'as_val=${'$as_ac_var'}
6258                  $as_echo "$as_val"'`
6259    if test "x$as_val" = x""yes; then
6260   cat >>confdefs.h <<_ACEOF
6261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6262 _ACEOF
6263
6264 fi
6265 done
6266
6267
6268 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
6269 $as_echo_n "checking for getaddrinfo... " >&6; }
6270 if test "${libevent_cv_getaddrinfo+set}" = set; then
6271   $as_echo_n "(cached) " >&6
6272 else
6273   cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279
6280                 #ifdef HAVE_NETDB_H
6281                 #include <netdb.h>
6282                 #endif
6283
6284 int
6285 main ()
6286 {
6287
6288                 getaddrinfo;
6289
6290
6291   ;
6292   return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext conftest$ac_exeext
6296 if { (ac_try="$ac_link"
6297 case "(($ac_try" in
6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299   *) ac_try_echo=$ac_try;;
6300 esac
6301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6302 $as_echo "$ac_try_echo") >&5
6303   (eval "$ac_link") 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } && {
6310          test -z "$ac_c_werror_flag" ||
6311          test ! -s conftest.err
6312        } && test -s conftest$ac_exeext && {
6313          test "$cross_compiling" = yes ||
6314          $as_test_x conftest$ac_exeext
6315        }; then
6316   libevent_cv_getaddrinfo=yes
6317 else
6318   $as_echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321         libevent_cv_getaddrinfo=no
6322
6323 fi
6324
6325 rm -rf conftest.dSYM
6326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6327       conftest$ac_exeext conftest.$ac_ext
6328
6329 fi
6330 { $as_echo "$as_me:$LINENO: result: $libevent_cv_getaddrinfo" >&5
6331 $as_echo "$libevent_cv_getaddrinfo" >&6; }
6332 if test "$libevent_cv_getaddrinfo" = "yes" ; then
6333
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_GETADDRINFO 1
6336 _ACEOF
6337
6338 else
6339
6340
6341 for ac_func in getservbyname
6342 do
6343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6345 $as_echo_n "checking for $ac_func... " >&6; }
6346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6347   $as_echo_n "(cached) " >&6
6348 else
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6357 #define $ac_func innocuous_$ac_func
6358
6359 /* System header to define __stub macros and hopefully few prototypes,
6360     which can conflict with char $ac_func (); below.
6361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362     <limits.h> exists even on freestanding compilers.  */
6363
6364 #ifdef __STDC__
6365 # include <limits.h>
6366 #else
6367 # include <assert.h>
6368 #endif
6369
6370 #undef $ac_func
6371
6372 /* Override any GCC internal prototype to avoid an error.
6373    Use char because int might match the return type of a GCC
6374    builtin and then its argument prototype would still apply.  */
6375 #ifdef __cplusplus
6376 extern "C"
6377 #endif
6378 char $ac_func ();
6379 /* The GNU C library defines this for functions which it implements
6380     to always fail with ENOSYS.  Some functions are actually named
6381     something starting with __ and the normal name is an alias.  */
6382 #if defined __stub_$ac_func || defined __stub___$ac_func
6383 choke me
6384 #endif
6385
6386 int
6387 main ()
6388 {
6389 return $ac_func ();
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402   (eval "$ac_link") 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } && {
6409          test -z "$ac_c_werror_flag" ||
6410          test ! -s conftest.err
6411        } && test -s conftest$ac_exeext && {
6412          test "$cross_compiling" = yes ||
6413          $as_test_x conftest$ac_exeext
6414        }; then
6415   eval "$as_ac_var=yes"
6416 else
6417   $as_echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6419
6420         eval "$as_ac_var=no"
6421 fi
6422
6423 rm -rf conftest.dSYM
6424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6425       conftest$ac_exeext conftest.$ac_ext
6426 fi
6427 ac_res=`eval 'as_val=${'$as_ac_var'}
6428                  $as_echo "$as_val"'`
6429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6430 $as_echo "$ac_res" >&6; }
6431 as_val=`eval 'as_val=${'$as_ac_var'}
6432                  $as_echo "$as_val"'`
6433    if test "x$as_val" = x""yes; then
6434   cat >>confdefs.h <<_ACEOF
6435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6436 _ACEOF
6437
6438 fi
6439 done
6440
6441 # Check for gethostbyname_r in all its glorious incompatible versions.
6442 #   (This is cut-and-pasted from Tor, which based its logic on
6443 #   Python's configure.in.)
6444
6445
6446
6447 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
6448 $as_echo_n "checking for gethostbyname_r... " >&6; }
6449 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
6450   $as_echo_n "(cached) " >&6
6451 else
6452   cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
6459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6460 #define gethostbyname_r innocuous_gethostbyname_r
6461
6462 /* System header to define __stub macros and hopefully few prototypes,
6463     which can conflict with char gethostbyname_r (); below.
6464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6465     <limits.h> exists even on freestanding compilers.  */
6466
6467 #ifdef __STDC__
6468 # include <limits.h>
6469 #else
6470 # include <assert.h>
6471 #endif
6472
6473 #undef gethostbyname_r
6474
6475 /* Override any GCC internal prototype to avoid an error.
6476    Use char because int might match the return type of a GCC
6477    builtin and then its argument prototype would still apply.  */
6478 #ifdef __cplusplus
6479 extern "C"
6480 #endif
6481 char gethostbyname_r ();
6482 /* The GNU C library defines this for functions which it implements
6483     to always fail with ENOSYS.  Some functions are actually named
6484     something starting with __ and the normal name is an alias.  */
6485 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6486 choke me
6487 #endif
6488
6489 int
6490 main ()
6491 {
6492 return gethostbyname_r ();
6493   ;
6494   return 0;
6495 }
6496 _ACEOF
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (ac_try="$ac_link"
6499 case "(($ac_try" in
6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501   *) ac_try_echo=$ac_try;;
6502 esac
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505   (eval "$ac_link") 2>conftest.er1
6506   ac_status=$?
6507   grep -v '^ *+' conftest.er1 >conftest.err
6508   rm -f conftest.er1
6509   cat conftest.err >&5
6510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } && {
6512          test -z "$ac_c_werror_flag" ||
6513          test ! -s conftest.err
6514        } && test -s conftest$ac_exeext && {
6515          test "$cross_compiling" = yes ||
6516          $as_test_x conftest$ac_exeext
6517        }; then
6518   ac_cv_func_gethostbyname_r=yes
6519 else
6520   $as_echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523         ac_cv_func_gethostbyname_r=no
6524 fi
6525
6526 rm -rf conftest.dSYM
6527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6528       conftest$ac_exeext conftest.$ac_ext
6529 fi
6530 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
6531 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
6532 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
6533
6534   { $as_echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() wants" >&5
6535 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
6536   OLD_CFLAGS=$CFLAGS
6537   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
6538   cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544
6545 #include <netdb.h>
6546
6547 int
6548 main ()
6549 {
6550
6551     char *cp1, *cp2;
6552     struct hostent *h1, *h2;
6553     int i1, i2;
6554     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
6555
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6562 case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568   (eval "$ac_compile") 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } && {
6575          test -z "$ac_c_werror_flag" ||
6576          test ! -s conftest.err
6577        } && test -s conftest.$ac_objext; then
6578
6579     cat >>confdefs.h <<\_ACEOF
6580 #define HAVE_GETHOSTBYNAME_R 1
6581 _ACEOF
6582
6583
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
6586 _ACEOF
6587
6588     { $as_echo "$as_me:$LINENO: result: 6" >&5
6589 $as_echo "6" >&6; }
6590
6591 else
6592   $as_echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6594
6595
6596     cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h.  */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h.  */
6602
6603 #include <netdb.h>
6604
6605 int
6606 main ()
6607 {
6608
6609       char *cp1, *cp2;
6610       struct hostent *h1;
6611       int i1, i2;
6612       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
6613
6614   ;
6615   return 0;
6616 }
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6620 case "(($ac_try" in
6621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622   *) ac_try_echo=$ac_try;;
6623 esac
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626   (eval "$ac_compile") 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } && {
6633          test -z "$ac_c_werror_flag" ||
6634          test ! -s conftest.err
6635        } && test -s conftest.$ac_objext; then
6636
6637       cat >>confdefs.h <<\_ACEOF
6638 #define HAVE_GETHOSTBYNAME_R 1
6639 _ACEOF
6640
6641
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
6644 _ACEOF
6645
6646       { $as_echo "$as_me:$LINENO: result: 5" >&5
6647 $as_echo "5" >&6; }
6648
6649 else
6650   $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653
6654       cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660
6661 #include <netdb.h>
6662
6663 int
6664 main ()
6665 {
6666
6667        char *cp1;
6668        struct hostent *h1;
6669        struct hostent_data hd;
6670        (void) gethostbyname_r(cp1,h1,&hd);
6671
6672   ;
6673   return 0;
6674 }
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6678 case "(($ac_try" in
6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680   *) ac_try_echo=$ac_try;;
6681 esac
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684   (eval "$ac_compile") 2>conftest.er1
6685   ac_status=$?
6686   grep -v '^ *+' conftest.er1 >conftest.err
6687   rm -f conftest.er1
6688   cat conftest.err >&5
6689   $as_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_objext; then
6694
6695        cat >>confdefs.h <<\_ACEOF
6696 #define HAVE_GETHOSTBYNAME_R 1
6697 _ACEOF
6698
6699
6700 cat >>confdefs.h <<\_ACEOF
6701 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
6702 _ACEOF
6703
6704        { $as_echo "$as_me:$LINENO: result: 3" >&5
6705 $as_echo "3" >&6; }
6706
6707 else
6708   $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711
6712        { $as_echo "$as_me:$LINENO: result: 0" >&5
6713 $as_echo "0" >&6; }
6714
6715 fi
6716
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718
6719 fi
6720
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722
6723 fi
6724
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726  CFLAGS=$OLD_CFLAGS
6727
6728 fi
6729
6730
6731 fi
6732
6733 # The cast to long int works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 { $as_echo "$as_me:$LINENO: checking size of long" >&5
6738 $as_echo_n "checking size of long... " >&6; }
6739 if test "${ac_cv_sizeof_long+set}" = set; then
6740   $as_echo_n "(cached) " >&6
6741 else
6742   if test "$cross_compiling" = yes; then
6743   # Depending upon the size, compute the lo and hi bounds.
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h.  */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h.  */
6750 $ac_includes_default
6751 int
6752 main ()
6753 {
6754 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
6755 test_array [0] = 0
6756
6757   ;
6758   return 0;
6759 }
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6763 case "(($ac_try" in
6764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765   *) ac_try_echo=$ac_try;;
6766 esac
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769   (eval "$ac_compile") 2>conftest.er1
6770   ac_status=$?
6771   grep -v '^ *+' conftest.er1 >conftest.err
6772   rm -f conftest.er1
6773   cat conftest.err >&5
6774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); } && {
6776          test -z "$ac_c_werror_flag" ||
6777          test ! -s conftest.err
6778        } && test -s conftest.$ac_objext; then
6779   ac_lo=0 ac_mid=0
6780   while :; do
6781     cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 $ac_includes_default
6788 int
6789 main ()
6790 {
6791 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6792 test_array [0] = 0
6793
6794   ;
6795   return 0;
6796 }
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (ac_try="$ac_compile"
6800 case "(($ac_try" in
6801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802   *) ac_try_echo=$ac_try;;
6803 esac
6804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6805 $as_echo "$ac_try_echo") >&5
6806   (eval "$ac_compile") 2>conftest.er1
6807   ac_status=$?
6808   grep -v '^ *+' conftest.er1 >conftest.err
6809   rm -f conftest.er1
6810   cat conftest.err >&5
6811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); } && {
6813          test -z "$ac_c_werror_flag" ||
6814          test ! -s conftest.err
6815        } && test -s conftest.$ac_objext; then
6816   ac_hi=$ac_mid; break
6817 else
6818   $as_echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821         ac_lo=`expr $ac_mid + 1`
6822                         if test $ac_lo -le $ac_mid; then
6823                           ac_lo= ac_hi=
6824                           break
6825                         fi
6826                         ac_mid=`expr 2 '*' $ac_mid + 1`
6827 fi
6828
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830   done
6831 else
6832   $as_echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6834
6835         cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h.  */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h.  */
6841 $ac_includes_default
6842 int
6843 main ()
6844 {
6845 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
6846 test_array [0] = 0
6847
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (ac_try="$ac_compile"
6854 case "(($ac_try" in
6855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6856   *) ac_try_echo=$ac_try;;
6857 esac
6858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6859 $as_echo "$ac_try_echo") >&5
6860   (eval "$ac_compile") 2>conftest.er1
6861   ac_status=$?
6862   grep -v '^ *+' conftest.er1 >conftest.err
6863   rm -f conftest.er1
6864   cat conftest.err >&5
6865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } && {
6867          test -z "$ac_c_werror_flag" ||
6868          test ! -s conftest.err
6869        } && test -s conftest.$ac_objext; then
6870   ac_hi=-1 ac_mid=-1
6871   while :; do
6872     cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 $ac_includes_default
6879 int
6880 main ()
6881 {
6882 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
6883 test_array [0] = 0
6884
6885   ;
6886   return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (ac_try="$ac_compile"
6891 case "(($ac_try" in
6892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893   *) ac_try_echo=$ac_try;;
6894 esac
6895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6896 $as_echo "$ac_try_echo") >&5
6897   (eval "$ac_compile") 2>conftest.er1
6898   ac_status=$?
6899   grep -v '^ *+' conftest.er1 >conftest.err
6900   rm -f conftest.er1
6901   cat conftest.err >&5
6902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } && {
6904          test -z "$ac_c_werror_flag" ||
6905          test ! -s conftest.err
6906        } && test -s conftest.$ac_objext; then
6907   ac_lo=$ac_mid; break
6908 else
6909   $as_echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912         ac_hi=`expr '(' $ac_mid ')' - 1`
6913                         if test $ac_mid -le $ac_hi; then
6914                           ac_lo= ac_hi=
6915                           break
6916                         fi
6917                         ac_mid=`expr 2 '*' $ac_mid`
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921   done
6922 else
6923   $as_echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926         ac_lo= ac_hi=
6927 fi
6928
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 # Binary search between lo and hi bounds.
6934 while test "x$ac_lo" != "x$ac_hi"; do
6935   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6936   cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 $ac_includes_default
6943 int
6944 main ()
6945 {
6946 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6947 test_array [0] = 0
6948
6949   ;
6950   return 0;
6951 }
6952 _ACEOF
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6955 case "(($ac_try" in
6956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957   *) ac_try_echo=$ac_try;;
6958 esac
6959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960 $as_echo "$ac_try_echo") >&5
6961   (eval "$ac_compile") 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } && {
6968          test -z "$ac_c_werror_flag" ||
6969          test ! -s conftest.err
6970        } && test -s conftest.$ac_objext; then
6971   ac_hi=$ac_mid
6972 else
6973   $as_echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6975
6976         ac_lo=`expr '(' $ac_mid ')' + 1`
6977 fi
6978
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 done
6981 case $ac_lo in
6982 ?*) ac_cv_sizeof_long=$ac_lo;;
6983 '') if test "$ac_cv_type_long" = yes; then
6984      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6986 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6987 See \`config.log' for more details." >&5
6988 $as_echo "$as_me: error: cannot compute sizeof (long)
6989 See \`config.log' for more details." >&2;}
6990    { (exit 77); exit 77; }; }; }
6991    else
6992      ac_cv_sizeof_long=0
6993    fi ;;
6994 esac
6995 else
6996   cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 $ac_includes_default
7003 static long int longval () { return (long int) (sizeof (long)); }
7004 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
7005 #include <stdio.h>
7006 #include <stdlib.h>
7007 int
7008 main ()
7009 {
7010
7011   FILE *f = fopen ("conftest.val", "w");
7012   if (! f)
7013     return 1;
7014   if (((long int) (sizeof (long))) < 0)
7015     {
7016       long int i = longval ();
7017       if (i != ((long int) (sizeof (long))))
7018         return 1;
7019       fprintf (f, "%ld", i);
7020     }
7021   else
7022     {
7023       unsigned long int i = ulongval ();
7024       if (i != ((long int) (sizeof (long))))
7025         return 1;
7026       fprintf (f, "%lu", i);
7027     }
7028   /* Do not output a trailing newline, as this causes \r\n confusion
7029      on some platforms.  */
7030   return ferror (f) || fclose (f) != 0;
7031
7032   ;
7033   return 0;
7034 }
7035 _ACEOF
7036 rm -f conftest$ac_exeext
7037 if { (ac_try="$ac_link"
7038 case "(($ac_try" in
7039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040   *) ac_try_echo=$ac_try;;
7041 esac
7042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7043 $as_echo "$ac_try_echo") >&5
7044   (eval "$ac_link") 2>&5
7045   ac_status=$?
7046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7048   { (case "(($ac_try" in
7049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050   *) ac_try_echo=$ac_try;;
7051 esac
7052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054   (eval "$ac_try") 2>&5
7055   ac_status=$?
7056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; }; then
7058   ac_cv_sizeof_long=`cat conftest.val`
7059 else
7060   $as_echo "$as_me: program exited with status $ac_status" >&5
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064 ( exit $ac_status )
7065 if test "$ac_cv_type_long" = yes; then
7066      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7068 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7069 See \`config.log' for more details." >&5
7070 $as_echo "$as_me: error: cannot compute sizeof (long)
7071 See \`config.log' for more details." >&2;}
7072    { (exit 77); exit 77; }; }; }
7073    else
7074      ac_cv_sizeof_long=0
7075    fi
7076 fi
7077 rm -rf conftest.dSYM
7078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7079 fi
7080 rm -f conftest.val
7081 fi
7082 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7083 $as_echo "$ac_cv_sizeof_long" >&6; }
7084
7085
7086
7087 cat >>confdefs.h <<_ACEOF
7088 #define SIZEOF_LONG $ac_cv_sizeof_long
7089 _ACEOF
7090
7091
7092
7093 { $as_echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5
7094 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h.  */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h.  */
7101
7102 #define _GNU_SOURCE
7103 #include <fcntl.h>
7104 #ifdef F_SETFD
7105 yes
7106 #endif
7107
7108 _ACEOF
7109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110   $EGREP "yes" >/dev/null 2>&1; then
7111
7112 cat >>confdefs.h <<\_ACEOF
7113 #define HAVE_SETFD 1
7114 _ACEOF
7115
7116           { $as_echo "$as_me:$LINENO: result: yes" >&5
7117 $as_echo "yes" >&6; }
7118 else
7119   { $as_echo "$as_me:$LINENO: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122 rm -f conftest*
7123
7124
7125 needsignal=no
7126 haveselect=no
7127 if test x$bwin32 != xtrue; then
7128
7129 for ac_func in select
7130 do
7131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7133 $as_echo_n "checking for $ac_func... " >&6; }
7134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7135   $as_echo_n "(cached) " >&6
7136 else
7137   cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h.  */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h.  */
7143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7145 #define $ac_func innocuous_$ac_func
7146
7147 /* System header to define __stub macros and hopefully few prototypes,
7148     which can conflict with char $ac_func (); below.
7149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7150     <limits.h> exists even on freestanding compilers.  */
7151
7152 #ifdef __STDC__
7153 # include <limits.h>
7154 #else
7155 # include <assert.h>
7156 #endif
7157
7158 #undef $ac_func
7159
7160 /* Override any GCC internal prototype to avoid an error.
7161    Use char because int might match the return type of a GCC
7162    builtin and then its argument prototype would still apply.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 char $ac_func ();
7167 /* The GNU C library defines this for functions which it implements
7168     to always fail with ENOSYS.  Some functions are actually named
7169     something starting with __ and the normal name is an alias.  */
7170 #if defined __stub_$ac_func || defined __stub___$ac_func
7171 choke me
7172 #endif
7173
7174 int
7175 main ()
7176 {
7177 return $ac_func ();
7178   ;
7179   return 0;
7180 }
7181 _ACEOF
7182 rm -f conftest.$ac_objext conftest$ac_exeext
7183 if { (ac_try="$ac_link"
7184 case "(($ac_try" in
7185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186   *) ac_try_echo=$ac_try;;
7187 esac
7188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189 $as_echo "$ac_try_echo") >&5
7190   (eval "$ac_link") 2>conftest.er1
7191   ac_status=$?
7192   grep -v '^ *+' conftest.er1 >conftest.err
7193   rm -f conftest.er1
7194   cat conftest.err >&5
7195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); } && {
7197          test -z "$ac_c_werror_flag" ||
7198          test ! -s conftest.err
7199        } && test -s conftest$ac_exeext && {
7200          test "$cross_compiling" = yes ||
7201          $as_test_x conftest$ac_exeext
7202        }; then
7203   eval "$as_ac_var=yes"
7204 else
7205   $as_echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208         eval "$as_ac_var=no"
7209 fi
7210
7211 rm -rf conftest.dSYM
7212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7213       conftest$ac_exeext conftest.$ac_ext
7214 fi
7215 ac_res=`eval 'as_val=${'$as_ac_var'}
7216                  $as_echo "$as_val"'`
7217                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7218 $as_echo "$ac_res" >&6; }
7219 as_val=`eval 'as_val=${'$as_ac_var'}
7220                  $as_echo "$as_val"'`
7221    if test "x$as_val" = x""yes; then
7222   cat >>confdefs.h <<_ACEOF
7223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7224 _ACEOF
7225  haveselect=yes
7226 fi
7227 done
7228
7229     if test "x$haveselect" = "xyes" ; then
7230         needsignal=yes
7231     fi
7232 fi
7233 AM_CONDITIONAL(SELECT_BACKEND, test "x$haveselect" = "xyes")
7234
7235 havepoll=no
7236
7237 for ac_func in poll
7238 do
7239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7240 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7241 $as_echo_n "checking for $ac_func... " >&6; }
7242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7243   $as_echo_n "(cached) " >&6
7244 else
7245   cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7253 #define $ac_func innocuous_$ac_func
7254
7255 /* System header to define __stub macros and hopefully few prototypes,
7256     which can conflict with char $ac_func (); below.
7257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7258     <limits.h> exists even on freestanding compilers.  */
7259
7260 #ifdef __STDC__
7261 # include <limits.h>
7262 #else
7263 # include <assert.h>
7264 #endif
7265
7266 #undef $ac_func
7267
7268 /* Override any GCC internal prototype to avoid an error.
7269    Use char because int might match the return type of a GCC
7270    builtin and then its argument prototype would still apply.  */
7271 #ifdef __cplusplus
7272 extern "C"
7273 #endif
7274 char $ac_func ();
7275 /* The GNU C library defines this for functions which it implements
7276     to always fail with ENOSYS.  Some functions are actually named
7277     something starting with __ and the normal name is an alias.  */
7278 #if defined __stub_$ac_func || defined __stub___$ac_func
7279 choke me
7280 #endif
7281
7282 int
7283 main ()
7284 {
7285 return $ac_func ();
7286   ;
7287   return 0;
7288 }
7289 _ACEOF
7290 rm -f conftest.$ac_objext conftest$ac_exeext
7291 if { (ac_try="$ac_link"
7292 case "(($ac_try" in
7293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294   *) ac_try_echo=$ac_try;;
7295 esac
7296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7297 $as_echo "$ac_try_echo") >&5
7298   (eval "$ac_link") 2>conftest.er1
7299   ac_status=$?
7300   grep -v '^ *+' conftest.er1 >conftest.err
7301   rm -f conftest.er1
7302   cat conftest.err >&5
7303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); } && {
7305          test -z "$ac_c_werror_flag" ||
7306          test ! -s conftest.err
7307        } && test -s conftest$ac_exeext && {
7308          test "$cross_compiling" = yes ||
7309          $as_test_x conftest$ac_exeext
7310        }; then
7311   eval "$as_ac_var=yes"
7312 else
7313   $as_echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316         eval "$as_ac_var=no"
7317 fi
7318
7319 rm -rf conftest.dSYM
7320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7321       conftest$ac_exeext conftest.$ac_ext
7322 fi
7323 ac_res=`eval 'as_val=${'$as_ac_var'}
7324                  $as_echo "$as_val"'`
7325                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7326 $as_echo "$ac_res" >&6; }
7327 as_val=`eval 'as_val=${'$as_ac_var'}
7328                  $as_echo "$as_val"'`
7329    if test "x$as_val" = x""yes; then
7330   cat >>confdefs.h <<_ACEOF
7331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7332 _ACEOF
7333  havepoll=yes
7334 fi
7335 done
7336
7337 if test "x$havepoll" = "xyes" ; then
7338         needsignal=yes
7339 fi
7340 AM_CONDITIONAL(POLL_BACKEND, test "x$havepoll" = "xyes")
7341
7342 havedevpoll=no
7343 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
7344
7345 cat >>confdefs.h <<\_ACEOF
7346 #define HAVE_DEVPOLL 1
7347 _ACEOF
7348
7349 fi
7350 AM_CONDITIONAL(DEVPOLL_BACKEND, test "x$ac_cv_header_sys_devpoll_h" = "xyes")
7351
7352 havekqueue=no
7353 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
7354
7355 for ac_func in kqueue
7356 do
7357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7359 $as_echo_n "checking for $ac_func... " >&6; }
7360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7361   $as_echo_n "(cached) " >&6
7362 else
7363   cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h.  */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h.  */
7369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7371 #define $ac_func innocuous_$ac_func
7372
7373 /* System header to define __stub macros and hopefully few prototypes,
7374     which can conflict with char $ac_func (); below.
7375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376     <limits.h> exists even on freestanding compilers.  */
7377
7378 #ifdef __STDC__
7379 # include <limits.h>
7380 #else
7381 # include <assert.h>
7382 #endif
7383
7384 #undef $ac_func
7385
7386 /* Override any GCC internal prototype to avoid an error.
7387    Use char because int might match the return type of a GCC
7388    builtin and then its argument prototype would still apply.  */
7389 #ifdef __cplusplus
7390 extern "C"
7391 #endif
7392 char $ac_func ();
7393 /* The GNU C library defines this for functions which it implements
7394     to always fail with ENOSYS.  Some functions are actually named
7395     something starting with __ and the normal name is an alias.  */
7396 #if defined __stub_$ac_func || defined __stub___$ac_func
7397 choke me
7398 #endif
7399
7400 int
7401 main ()
7402 {
7403 return $ac_func ();
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (ac_try="$ac_link"
7410 case "(($ac_try" in
7411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412   *) ac_try_echo=$ac_try;;
7413 esac
7414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415 $as_echo "$ac_try_echo") >&5
7416   (eval "$ac_link") 2>conftest.er1
7417   ac_status=$?
7418   grep -v '^ *+' conftest.er1 >conftest.err
7419   rm -f conftest.er1
7420   cat conftest.err >&5
7421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } && {
7423          test -z "$ac_c_werror_flag" ||
7424          test ! -s conftest.err
7425        } && test -s conftest$ac_exeext && {
7426          test "$cross_compiling" = yes ||
7427          $as_test_x conftest$ac_exeext
7428        }; then
7429   eval "$as_ac_var=yes"
7430 else
7431   $as_echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434         eval "$as_ac_var=no"
7435 fi
7436
7437 rm -rf conftest.dSYM
7438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439       conftest$ac_exeext conftest.$ac_ext
7440 fi
7441 ac_res=`eval 'as_val=${'$as_ac_var'}
7442                  $as_echo "$as_val"'`
7443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7444 $as_echo "$ac_res" >&6; }
7445 as_val=`eval 'as_val=${'$as_ac_var'}
7446                  $as_echo "$as_val"'`
7447    if test "x$as_val" = x""yes; then
7448   cat >>confdefs.h <<_ACEOF
7449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7450 _ACEOF
7451  havekqueue=yes
7452 fi
7453 done
7454
7455         if test "x$havekqueue" = "xyes" ; then
7456                 { $as_echo "$as_me:$LINENO: checking for working kqueue" >&5
7457 $as_echo_n "checking for working kqueue... " >&6; }
7458                 if test "$cross_compiling" = yes; then
7459   { $as_echo "$as_me:$LINENO: result: no" >&5
7460 $as_echo "no" >&6; }
7461 else
7462   cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h.  */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h.  */
7468 #include <sys/types.h>
7469 #include <sys/time.h>
7470 #include <sys/event.h>
7471 #include <stdio.h>
7472 #include <unistd.h>
7473 #include <fcntl.h>
7474
7475 int
7476 main(int argc, char **argv)
7477 {
7478         int kq;
7479         int n;
7480         int fd[2];
7481         struct kevent ev;
7482         struct timespec ts;
7483         char buf[8000];
7484
7485         if (pipe(fd) == -1)
7486                 exit(1);
7487         if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
7488                 exit(1);
7489
7490         while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
7491                 ;
7492
7493         if ((kq = kqueue()) == -1)
7494                 exit(1);
7495
7496         memset(&ev, 0, sizeof(ev));
7497         ev.ident = fd[1];
7498         ev.filter = EVFILT_WRITE;
7499         ev.flags = EV_ADD | EV_ENABLE;
7500         n = kevent(kq, &ev, 1, NULL, 0, NULL);
7501         if (n == -1)
7502                 exit(1);
7503
7504         read(fd[0], buf, sizeof(buf));
7505
7506         ts.tv_sec = 0;
7507         ts.tv_nsec = 0;
7508         n = kevent(kq, NULL, 0, &ev, 1, &ts);
7509         if (n == -1 || n == 0)
7510                 exit(1);
7511
7512         exit(0);
7513 }
7514 _ACEOF
7515 rm -f conftest$ac_exeext
7516 if { (ac_try="$ac_link"
7517 case "(($ac_try" in
7518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519   *) ac_try_echo=$ac_try;;
7520 esac
7521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522 $as_echo "$ac_try_echo") >&5
7523   (eval "$ac_link") 2>&5
7524   ac_status=$?
7525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7527   { (case "(($ac_try" in
7528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529   *) ac_try_echo=$ac_try;;
7530 esac
7531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533   (eval "$ac_try") 2>&5
7534   ac_status=$?
7535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); }; }; then
7537   { $as_echo "$as_me:$LINENO: result: yes" >&5
7538 $as_echo "yes" >&6; }
7539
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_WORKING_KQUEUE 1
7542 _ACEOF
7543
7544     havekqueue=yes
7545
7546 else
7547   $as_echo "$as_me: program exited with status $ac_status" >&5
7548 $as_echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551 ( exit $ac_status )
7552 { $as_echo "$as_me:$LINENO: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555 rm -rf conftest.dSYM
7556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7557 fi
7558
7559
7560         fi
7561 fi
7562 AM_CONDITIONAL(KQUEUE_BACKEND, test "x$havekqueue" = "xyes")
7563
7564 haveepollsyscall=no
7565 haveepoll=no
7566
7567 for ac_func in epoll_ctl
7568 do
7569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7570 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7571 $as_echo_n "checking for $ac_func... " >&6; }
7572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7573   $as_echo_n "(cached) " >&6
7574 else
7575   cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h.  */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h.  */
7581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7583 #define $ac_func innocuous_$ac_func
7584
7585 /* System header to define __stub macros and hopefully few prototypes,
7586     which can conflict with char $ac_func (); below.
7587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7588     <limits.h> exists even on freestanding compilers.  */
7589
7590 #ifdef __STDC__
7591 # include <limits.h>
7592 #else
7593 # include <assert.h>
7594 #endif
7595
7596 #undef $ac_func
7597
7598 /* Override any GCC internal prototype to avoid an error.
7599    Use char because int might match the return type of a GCC
7600    builtin and then its argument prototype would still apply.  */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 char $ac_func ();
7605 /* The GNU C library defines this for functions which it implements
7606     to always fail with ENOSYS.  Some functions are actually named
7607     something starting with __ and the normal name is an alias.  */
7608 #if defined __stub_$ac_func || defined __stub___$ac_func
7609 choke me
7610 #endif
7611
7612 int
7613 main ()
7614 {
7615 return $ac_func ();
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628   (eval "$ac_link") 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } && {
7635          test -z "$ac_c_werror_flag" ||
7636          test ! -s conftest.err
7637        } && test -s conftest$ac_exeext && {
7638          test "$cross_compiling" = yes ||
7639          $as_test_x conftest$ac_exeext
7640        }; then
7641   eval "$as_ac_var=yes"
7642 else
7643   $as_echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646         eval "$as_ac_var=no"
7647 fi
7648
7649 rm -rf conftest.dSYM
7650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7651       conftest$ac_exeext conftest.$ac_ext
7652 fi
7653 ac_res=`eval 'as_val=${'$as_ac_var'}
7654                  $as_echo "$as_val"'`
7655                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7656 $as_echo "$ac_res" >&6; }
7657 as_val=`eval 'as_val=${'$as_ac_var'}
7658                  $as_echo "$as_val"'`
7659    if test "x$as_val" = x""yes; then
7660   cat >>confdefs.h <<_ACEOF
7661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7662 _ACEOF
7663  haveepoll=yes
7664 fi
7665 done
7666
7667 if test "x$haveepoll" = "xyes" ; then
7668
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_EPOLL 1
7671 _ACEOF
7672
7673         needsignal=yes
7674 fi
7675 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7676         if test "x$haveepoll" = "xno" ; then
7677                 { $as_echo "$as_me:$LINENO: checking for epoll system call" >&5
7678 $as_echo_n "checking for epoll system call... " >&6; }
7679                 if test "$cross_compiling" = yes; then
7680   { $as_echo "$as_me:$LINENO: result: no" >&5
7681 $as_echo "no" >&6; }
7682 else
7683   cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689 #include <stdint.h>
7690 #include <sys/param.h>
7691 #include <sys/types.h>
7692 #include <sys/syscall.h>
7693 #include <sys/epoll.h>
7694 #include <unistd.h>
7695
7696 int
7697 epoll_create(int size)
7698 {
7699         return (syscall(__NR_epoll_create, size));
7700 }
7701
7702 int
7703 main(int argc, char **argv)
7704 {
7705         int epfd;
7706
7707         epfd = epoll_create(256);
7708         exit (epfd == -1 ? 1 : 0);
7709 }
7710 _ACEOF
7711 rm -f conftest$ac_exeext
7712 if { (ac_try="$ac_link"
7713 case "(($ac_try" in
7714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715   *) ac_try_echo=$ac_try;;
7716 esac
7717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7718 $as_echo "$ac_try_echo") >&5
7719   (eval "$ac_link") 2>&5
7720   ac_status=$?
7721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7723   { (case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7728 $as_echo "$ac_try_echo") >&5
7729   (eval "$ac_try") 2>&5
7730   ac_status=$?
7731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; }; then
7733   { $as_echo "$as_me:$LINENO: result: yes" >&5
7734 $as_echo "yes" >&6; }
7735
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_EPOLL 1
7738 _ACEOF
7739
7740     needsignal=yes
7741     have_epoll=yes
7742     case " $LIBOBJS " in
7743   *" epoll_sub.$ac_objext "* ) ;;
7744   *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
7745  ;;
7746 esac
7747
7748
7749 else
7750   $as_echo "$as_me: program exited with status $ac_status" >&5
7751 $as_echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ( exit $ac_status )
7755 { $as_echo "$as_me:$LINENO: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758 rm -rf conftest.dSYM
7759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7760 fi
7761
7762
7763         fi
7764 fi
7765 AM_CONDITIONAL(EPOLL_BACKEND, test "x$haveepoll" = "xyes")
7766
7767 haveeventports=no
7768
7769 for ac_func in port_create
7770 do
7771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7772 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7773 $as_echo_n "checking for $ac_func... " >&6; }
7774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7775   $as_echo_n "(cached) " >&6
7776 else
7777   cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7785 #define $ac_func innocuous_$ac_func
7786
7787 /* System header to define __stub macros and hopefully few prototypes,
7788     which can conflict with char $ac_func (); below.
7789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790     <limits.h> exists even on freestanding compilers.  */
7791
7792 #ifdef __STDC__
7793 # include <limits.h>
7794 #else
7795 # include <assert.h>
7796 #endif
7797
7798 #undef $ac_func
7799
7800 /* Override any GCC internal prototype to avoid an error.
7801    Use char because int might match the return type of a GCC
7802    builtin and then its argument prototype would still apply.  */
7803 #ifdef __cplusplus
7804 extern "C"
7805 #endif
7806 char $ac_func ();
7807 /* The GNU C library defines this for functions which it implements
7808     to always fail with ENOSYS.  Some functions are actually named
7809     something starting with __ and the normal name is an alias.  */
7810 #if defined __stub_$ac_func || defined __stub___$ac_func
7811 choke me
7812 #endif
7813
7814 int
7815 main ()
7816 {
7817 return $ac_func ();
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7824 case "(($ac_try" in
7825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826   *) ac_try_echo=$ac_try;;
7827 esac
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830   (eval "$ac_link") 2>conftest.er1
7831   ac_status=$?
7832   grep -v '^ *+' conftest.er1 >conftest.err
7833   rm -f conftest.er1
7834   cat conftest.err >&5
7835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } && {
7837          test -z "$ac_c_werror_flag" ||
7838          test ! -s conftest.err
7839        } && test -s conftest$ac_exeext && {
7840          test "$cross_compiling" = yes ||
7841          $as_test_x conftest$ac_exeext
7842        }; then
7843   eval "$as_ac_var=yes"
7844 else
7845   $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848         eval "$as_ac_var=no"
7849 fi
7850
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853       conftest$ac_exeext conftest.$ac_ext
7854 fi
7855 ac_res=`eval 'as_val=${'$as_ac_var'}
7856                  $as_echo "$as_val"'`
7857                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7858 $as_echo "$ac_res" >&6; }
7859 as_val=`eval 'as_val=${'$as_ac_var'}
7860                  $as_echo "$as_val"'`
7861    if test "x$as_val" = x""yes; then
7862   cat >>confdefs.h <<_ACEOF
7863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7864 _ACEOF
7865  haveeventports=yes
7866 fi
7867 done
7868
7869 if test "x$haveeventports" = "xyes" ; then
7870
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_EVENT_PORTS 1
7873 _ACEOF
7874
7875         needsignal=yes
7876 fi
7877 AM_CONDITIONAL(EVPORT_BACKEND, test "x$haveeventports" = "xyes")
7878
7879 if test "x$bwin32" = "xtrue"; then
7880         needsignal=yes
7881 fi
7882
7883 AM_CONDITIONAL(SIGNAL_SUPPORT, test "x$needsignal" = "xyes")
7884
7885 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7886 $as_echo_n "checking for pid_t... " >&6; }
7887 if test "${ac_cv_type_pid_t+set}" = set; then
7888   $as_echo_n "(cached) " >&6
7889 else
7890   ac_cv_type_pid_t=no
7891 cat >conftest.$ac_ext <<_ACEOF
7892 /* confdefs.h.  */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h.  */
7897 $ac_includes_default
7898 int
7899 main ()
7900 {
7901 if (sizeof (pid_t))
7902        return 0;
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911   *) ac_try_echo=$ac_try;;
7912 esac
7913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7914 $as_echo "$ac_try_echo") >&5
7915   (eval "$ac_compile") 2>conftest.er1
7916   ac_status=$?
7917   grep -v '^ *+' conftest.er1 >conftest.err
7918   rm -f conftest.er1
7919   cat conftest.err >&5
7920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); } && {
7922          test -z "$ac_c_werror_flag" ||
7923          test ! -s conftest.err
7924        } && test -s conftest.$ac_objext; then
7925   cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 $ac_includes_default
7932 int
7933 main ()
7934 {
7935 if (sizeof ((pid_t)))
7936           return 0;
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7943 case "(($ac_try" in
7944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945   *) ac_try_echo=$ac_try;;
7946 esac
7947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7948 $as_echo "$ac_try_echo") >&5
7949   (eval "$ac_compile") 2>conftest.er1
7950   ac_status=$?
7951   grep -v '^ *+' conftest.er1 >conftest.err
7952   rm -f conftest.er1
7953   cat conftest.err >&5
7954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } && {
7956          test -z "$ac_c_werror_flag" ||
7957          test ! -s conftest.err
7958        } && test -s conftest.$ac_objext; then
7959   :
7960 else
7961   $as_echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964         ac_cv_type_pid_t=yes
7965 fi
7966
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 else
7969   $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972
7973 fi
7974
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 fi
7977 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7978 $as_echo "$ac_cv_type_pid_t" >&6; }
7979 if test "x$ac_cv_type_pid_t" = x""yes; then
7980   :
7981 else
7982
7983 cat >>confdefs.h <<_ACEOF
7984 #define pid_t int
7985 _ACEOF
7986
7987 fi
7988
7989 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7990 $as_echo_n "checking for size_t... " >&6; }
7991 if test "${ac_cv_type_size_t+set}" = set; then
7992   $as_echo_n "(cached) " >&6
7993 else
7994   ac_cv_type_size_t=no
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h.  */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h.  */
8001 $ac_includes_default
8002 int
8003 main ()
8004 {
8005 if (sizeof (size_t))
8006        return 0;
8007   ;
8008   return 0;
8009 }
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (ac_try="$ac_compile"
8013 case "(($ac_try" in
8014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015   *) ac_try_echo=$ac_try;;
8016 esac
8017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8018 $as_echo "$ac_try_echo") >&5
8019   (eval "$ac_compile") 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } && {
8026          test -z "$ac_c_werror_flag" ||
8027          test ! -s conftest.err
8028        } && test -s conftest.$ac_objext; then
8029   cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035 $ac_includes_default
8036 int
8037 main ()
8038 {
8039 if (sizeof ((size_t)))
8040           return 0;
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8047 case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8052 $as_echo "$ac_try_echo") >&5
8053   (eval "$ac_compile") 2>conftest.er1
8054   ac_status=$?
8055   grep -v '^ *+' conftest.er1 >conftest.err
8056   rm -f conftest.er1
8057   cat conftest.err >&5
8058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } && {
8060          test -z "$ac_c_werror_flag" ||
8061          test ! -s conftest.err
8062        } && test -s conftest.$ac_objext; then
8063   :
8064 else
8065   $as_echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068         ac_cv_type_size_t=yes
8069 fi
8070
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 else
8073   $as_echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 fi
8081 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8082 $as_echo "$ac_cv_type_size_t" >&6; }
8083 if test "x$ac_cv_type_size_t" = x""yes; then
8084   :
8085 else
8086
8087 cat >>confdefs.h <<_ACEOF
8088 #define size_t unsigned int
8089 _ACEOF
8090
8091 fi
8092
8093 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8094 $as_echo_n "checking for ssize_t... " >&6; }
8095 if test "${ac_cv_type_ssize_t+set}" = set; then
8096   $as_echo_n "(cached) " >&6
8097 else
8098   ac_cv_type_ssize_t=no
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 $ac_includes_default
8106 int
8107 main ()
8108 {
8109 if (sizeof (ssize_t))
8110        return 0;
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119   *) ac_try_echo=$ac_try;;
8120 esac
8121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8122 $as_echo "$ac_try_echo") >&5
8123   (eval "$ac_compile") 2>conftest.er1
8124   ac_status=$?
8125   grep -v '^ *+' conftest.er1 >conftest.err
8126   rm -f conftest.er1
8127   cat conftest.err >&5
8128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } && {
8130          test -z "$ac_c_werror_flag" ||
8131          test ! -s conftest.err
8132        } && test -s conftest.$ac_objext; then
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 $ac_includes_default
8140 int
8141 main ()
8142 {
8143 if (sizeof ((ssize_t)))
8144           return 0;
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153   *) ac_try_echo=$ac_try;;
8154 esac
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156 $as_echo "$ac_try_echo") >&5
8157   (eval "$ac_compile") 2>conftest.er1
8158   ac_status=$?
8159   grep -v '^ *+' conftest.er1 >conftest.err
8160   rm -f conftest.er1
8161   cat conftest.err >&5
8162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } && {
8164          test -z "$ac_c_werror_flag" ||
8165          test ! -s conftest.err
8166        } && test -s conftest.$ac_objext; then
8167   :
8168 else
8169   $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8171
8172         ac_cv_type_ssize_t=yes
8173 fi
8174
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 else
8177   $as_echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180
8181 fi
8182
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 fi
8185 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8186 $as_echo "$ac_cv_type_ssize_t" >&6; }
8187 if test "x$ac_cv_type_ssize_t" = x""yes; then
8188   :
8189 else
8190
8191 cat >>confdefs.h <<_ACEOF
8192 #define ssize_t int
8193 _ACEOF
8194
8195 fi
8196
8197
8198 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
8199 $as_echo_n "checking for uint64_t... " >&6; }
8200 if test "${ac_cv_type_uint64_t+set}" = set; then
8201   $as_echo_n "(cached) " >&6
8202 else
8203   ac_cv_type_uint64_t=no
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210 #ifdef HAVE_STDINT_H
8211 #include <stdint.h>
8212 #elif defined(HAVE_INTTYPES_H)
8213 #include <inttypes.h>
8214 #endif
8215 #ifdef HAVE_SYS_TYPES_H
8216 #include <sys/types.h>
8217 #endif
8218
8219 int
8220 main ()
8221 {
8222 if (sizeof (uint64_t))
8223        return 0;
8224   ;
8225   return 0;
8226 }
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232   *) ac_try_echo=$ac_try;;
8233 esac
8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236   (eval "$ac_compile") 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } && {
8243          test -z "$ac_c_werror_flag" ||
8244          test ! -s conftest.err
8245        } && test -s conftest.$ac_objext; then
8246   cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252 #ifdef HAVE_STDINT_H
8253 #include <stdint.h>
8254 #elif defined(HAVE_INTTYPES_H)
8255 #include <inttypes.h>
8256 #endif
8257 #ifdef HAVE_SYS_TYPES_H
8258 #include <sys/types.h>
8259 #endif
8260
8261 int
8262 main ()
8263 {
8264 if (sizeof ((uint64_t)))
8265           return 0;
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8272 case "(($ac_try" in
8273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274   *) ac_try_echo=$ac_try;;
8275 esac
8276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8277 $as_echo "$ac_try_echo") >&5
8278   (eval "$ac_compile") 2>conftest.er1
8279   ac_status=$?
8280   grep -v '^ *+' conftest.er1 >conftest.err
8281   rm -f conftest.er1
8282   cat conftest.err >&5
8283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); } && {
8285          test -z "$ac_c_werror_flag" ||
8286          test ! -s conftest.err
8287        } && test -s conftest.$ac_objext; then
8288   :
8289 else
8290   $as_echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293         ac_cv_type_uint64_t=yes
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 else
8298   $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 fi
8306 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8307 $as_echo "$ac_cv_type_uint64_t" >&6; }
8308 if test "x$ac_cv_type_uint64_t" = x""yes; then
8309
8310 cat >>confdefs.h <<_ACEOF
8311 #define HAVE_UINT64_T 1
8312 _ACEOF
8313
8314
8315 fi
8316 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8317 $as_echo_n "checking for uint32_t... " >&6; }
8318 if test "${ac_cv_type_uint32_t+set}" = set; then
8319   $as_echo_n "(cached) " >&6
8320 else
8321   ac_cv_type_uint32_t=no
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h.  */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h.  */
8328 #ifdef HAVE_STDINT_H
8329 #include <stdint.h>
8330 #elif defined(HAVE_INTTYPES_H)
8331 #include <inttypes.h>
8332 #endif
8333 #ifdef HAVE_SYS_TYPES_H
8334 #include <sys/types.h>
8335 #endif
8336
8337 int
8338 main ()
8339 {
8340 if (sizeof (uint32_t))
8341        return 0;
8342   ;
8343   return 0;
8344 }
8345 _ACEOF
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8348 case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8353 $as_echo "$ac_try_echo") >&5
8354   (eval "$ac_compile") 2>conftest.er1
8355   ac_status=$?
8356   grep -v '^ *+' conftest.er1 >conftest.err
8357   rm -f conftest.er1
8358   cat conftest.err >&5
8359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } && {
8361          test -z "$ac_c_werror_flag" ||
8362          test ! -s conftest.err
8363        } && test -s conftest.$ac_objext; then
8364   cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 #ifdef HAVE_STDINT_H
8371 #include <stdint.h>
8372 #elif defined(HAVE_INTTYPES_H)
8373 #include <inttypes.h>
8374 #endif
8375 #ifdef HAVE_SYS_TYPES_H
8376 #include <sys/types.h>
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 if (sizeof ((uint32_t)))
8383           return 0;
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8390 case "(($ac_try" in
8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392   *) ac_try_echo=$ac_try;;
8393 esac
8394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8395 $as_echo "$ac_try_echo") >&5
8396   (eval "$ac_compile") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } && {
8403          test -z "$ac_c_werror_flag" ||
8404          test ! -s conftest.err
8405        } && test -s conftest.$ac_objext; then
8406   :
8407 else
8408   $as_echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411         ac_cv_type_uint32_t=yes
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 else
8416   $as_echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419
8420 fi
8421
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8425 $as_echo "$ac_cv_type_uint32_t" >&6; }
8426 if test "x$ac_cv_type_uint32_t" = x""yes; then
8427
8428 cat >>confdefs.h <<_ACEOF
8429 #define HAVE_UINT32_T 1
8430 _ACEOF
8431
8432
8433 fi
8434 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
8435 $as_echo_n "checking for uint16_t... " >&6; }
8436 if test "${ac_cv_type_uint16_t+set}" = set; then
8437   $as_echo_n "(cached) " >&6
8438 else
8439   ac_cv_type_uint16_t=no
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446 #ifdef HAVE_STDINT_H
8447 #include <stdint.h>
8448 #elif defined(HAVE_INTTYPES_H)
8449 #include <inttypes.h>
8450 #endif
8451 #ifdef HAVE_SYS_TYPES_H
8452 #include <sys/types.h>
8453 #endif
8454
8455 int
8456 main ()
8457 {
8458 if (sizeof (uint16_t))
8459        return 0;
8460   ;
8461   return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext
8465 if { (ac_try="$ac_compile"
8466 case "(($ac_try" in
8467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468   *) ac_try_echo=$ac_try;;
8469 esac
8470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8471 $as_echo "$ac_try_echo") >&5
8472   (eval "$ac_compile") 2>conftest.er1
8473   ac_status=$?
8474   grep -v '^ *+' conftest.er1 >conftest.err
8475   rm -f conftest.er1
8476   cat conftest.err >&5
8477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } && {
8479          test -z "$ac_c_werror_flag" ||
8480          test ! -s conftest.err
8481        } && test -s conftest.$ac_objext; then
8482   cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488 #ifdef HAVE_STDINT_H
8489 #include <stdint.h>
8490 #elif defined(HAVE_INTTYPES_H)
8491 #include <inttypes.h>
8492 #endif
8493 #ifdef HAVE_SYS_TYPES_H
8494 #include <sys/types.h>
8495 #endif
8496
8497 int
8498 main ()
8499 {
8500 if (sizeof ((uint16_t)))
8501           return 0;
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510   *) ac_try_echo=$ac_try;;
8511 esac
8512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8513 $as_echo "$ac_try_echo") >&5
8514   (eval "$ac_compile") 2>conftest.er1
8515   ac_status=$?
8516   grep -v '^ *+' conftest.er1 >conftest.err
8517   rm -f conftest.er1
8518   cat conftest.err >&5
8519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); } && {
8521          test -z "$ac_c_werror_flag" ||
8522          test ! -s conftest.err
8523        } && test -s conftest.$ac_objext; then
8524   :
8525 else
8526   $as_echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529         ac_cv_type_uint16_t=yes
8530 fi
8531
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 else
8534   $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537
8538 fi
8539
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 fi
8542 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8543 $as_echo "$ac_cv_type_uint16_t" >&6; }
8544 if test "x$ac_cv_type_uint16_t" = x""yes; then
8545
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_UINT16_T 1
8548 _ACEOF
8549
8550
8551 fi
8552 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
8553 $as_echo_n "checking for uint8_t... " >&6; }
8554 if test "${ac_cv_type_uint8_t+set}" = set; then
8555   $as_echo_n "(cached) " >&6
8556 else
8557   ac_cv_type_uint8_t=no
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564 #ifdef HAVE_STDINT_H
8565 #include <stdint.h>
8566 #elif defined(HAVE_INTTYPES_H)
8567 #include <inttypes.h>
8568 #endif
8569 #ifdef HAVE_SYS_TYPES_H
8570 #include <sys/types.h>
8571 #endif
8572
8573 int
8574 main ()
8575 {
8576 if (sizeof (uint8_t))
8577        return 0;
8578   ;
8579   return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8584 case "(($ac_try" in
8585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586   *) ac_try_echo=$ac_try;;
8587 esac
8588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8589 $as_echo "$ac_try_echo") >&5
8590   (eval "$ac_compile") 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
8594   cat conftest.err >&5
8595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } && {
8597          test -z "$ac_c_werror_flag" ||
8598          test ! -s conftest.err
8599        } && test -s conftest.$ac_objext; then
8600   cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606 #ifdef HAVE_STDINT_H
8607 #include <stdint.h>
8608 #elif defined(HAVE_INTTYPES_H)
8609 #include <inttypes.h>
8610 #endif
8611 #ifdef HAVE_SYS_TYPES_H
8612 #include <sys/types.h>
8613 #endif
8614
8615 int
8616 main ()
8617 {
8618 if (sizeof ((uint8_t)))
8619           return 0;
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632   (eval "$ac_compile") 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } && {
8639          test -z "$ac_c_werror_flag" ||
8640          test ! -s conftest.err
8641        } && test -s conftest.$ac_objext; then
8642   :
8643 else
8644   $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647         ac_cv_type_uint8_t=yes
8648 fi
8649
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 else
8652   $as_echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655
8656 fi
8657
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
8661 $as_echo "$ac_cv_type_uint8_t" >&6; }
8662 if test "x$ac_cv_type_uint8_t" = x""yes; then
8663
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_UINT8_T 1
8666 _ACEOF
8667
8668
8669 fi
8670 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
8671 $as_echo_n "checking for uintptr_t... " >&6; }
8672 if test "${ac_cv_type_uintptr_t+set}" = set; then
8673   $as_echo_n "(cached) " >&6
8674 else
8675   ac_cv_type_uintptr_t=no
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682 #ifdef HAVE_STDINT_H
8683 #include <stdint.h>
8684 #elif defined(HAVE_INTTYPES_H)
8685 #include <inttypes.h>
8686 #endif
8687 #ifdef HAVE_SYS_TYPES_H
8688 #include <sys/types.h>
8689 #endif
8690
8691 int
8692 main ()
8693 {
8694 if (sizeof (uintptr_t))
8695        return 0;
8696   ;
8697   return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (ac_try="$ac_compile"
8702 case "(($ac_try" in
8703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704   *) ac_try_echo=$ac_try;;
8705 esac
8706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8707 $as_echo "$ac_try_echo") >&5
8708   (eval "$ac_compile") 2>conftest.er1
8709   ac_status=$?
8710   grep -v '^ *+' conftest.er1 >conftest.err
8711   rm -f conftest.er1
8712   cat conftest.err >&5
8713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); } && {
8715          test -z "$ac_c_werror_flag" ||
8716          test ! -s conftest.err
8717        } && test -s conftest.$ac_objext; then
8718   cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724 #ifdef HAVE_STDINT_H
8725 #include <stdint.h>
8726 #elif defined(HAVE_INTTYPES_H)
8727 #include <inttypes.h>
8728 #endif
8729 #ifdef HAVE_SYS_TYPES_H
8730 #include <sys/types.h>
8731 #endif
8732
8733 int
8734 main ()
8735 {
8736 if (sizeof ((uintptr_t)))
8737           return 0;
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext
8743 if { (ac_try="$ac_compile"
8744 case "(($ac_try" in
8745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746   *) ac_try_echo=$ac_try;;
8747 esac
8748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749 $as_echo "$ac_try_echo") >&5
8750   (eval "$ac_compile") 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } && {
8757          test -z "$ac_c_werror_flag" ||
8758          test ! -s conftest.err
8759        } && test -s conftest.$ac_objext; then
8760   :
8761 else
8762   $as_echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8764
8765         ac_cv_type_uintptr_t=yes
8766 fi
8767
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 else
8770   $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8772
8773
8774 fi
8775
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 fi
8778 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8779 $as_echo "$ac_cv_type_uintptr_t" >&6; }
8780 if test "x$ac_cv_type_uintptr_t" = x""yes; then
8781
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_UINTPTR_T 1
8784 _ACEOF
8785
8786
8787 fi
8788
8789
8790 { $as_echo "$as_me:$LINENO: checking for fd_mask" >&5
8791 $as_echo_n "checking for fd_mask... " >&6; }
8792 if test "${ac_cv_type_fd_mask+set}" = set; then
8793   $as_echo_n "(cached) " >&6
8794 else
8795   ac_cv_type_fd_mask=no
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 #ifdef HAVE_SYS_TYPES_H
8803 #include <sys/types.h>
8804 #endif
8805 #ifdef HAVE_SYS_SELECT_H
8806 #include <sys/select.h>
8807 #endif
8808
8809 int
8810 main ()
8811 {
8812 if (sizeof (fd_mask))
8813        return 0;
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8820 case "(($ac_try" in
8821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822   *) ac_try_echo=$ac_try;;
8823 esac
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826   (eval "$ac_compile") 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } && {
8833          test -z "$ac_c_werror_flag" ||
8834          test ! -s conftest.err
8835        } && test -s conftest.$ac_objext; then
8836   cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842 #ifdef HAVE_SYS_TYPES_H
8843 #include <sys/types.h>
8844 #endif
8845 #ifdef HAVE_SYS_SELECT_H
8846 #include <sys/select.h>
8847 #endif
8848
8849 int
8850 main ()
8851 {
8852 if (sizeof ((fd_mask)))
8853           return 0;
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (ac_try="$ac_compile"
8860 case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8865 $as_echo "$ac_try_echo") >&5
8866   (eval "$ac_compile") 2>conftest.er1
8867   ac_status=$?
8868   grep -v '^ *+' conftest.er1 >conftest.err
8869   rm -f conftest.er1
8870   cat conftest.err >&5
8871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); } && {
8873          test -z "$ac_c_werror_flag" ||
8874          test ! -s conftest.err
8875        } && test -s conftest.$ac_objext; then
8876   :
8877 else
8878   $as_echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881         ac_cv_type_fd_mask=yes
8882 fi
8883
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 else
8886   $as_echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889
8890 fi
8891
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893 fi
8894 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
8895 $as_echo "$ac_cv_type_fd_mask" >&6; }
8896 if test "x$ac_cv_type_fd_mask" = x""yes; then
8897
8898 cat >>confdefs.h <<_ACEOF
8899 #define HAVE_FD_MASK 1
8900 _ACEOF
8901
8902
8903 fi
8904
8905
8906 # The cast to long int works around a bug in the HP C Compiler
8907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8909 # This bug is HP SR number 8606223364.
8910 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
8911 $as_echo_n "checking size of long long... " >&6; }
8912 if test "${ac_cv_sizeof_long_long+set}" = set; then
8913   $as_echo_n "(cached) " >&6
8914 else
8915   if test "$cross_compiling" = yes; then
8916   # Depending upon the size, compute the lo and hi bounds.
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923 $ac_includes_default
8924 int
8925 main ()
8926 {
8927 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
8928 test_array [0] = 0
8929
8930   ;
8931   return 0;
8932 }
8933 _ACEOF
8934 rm -f conftest.$ac_objext
8935 if { (ac_try="$ac_compile"
8936 case "(($ac_try" in
8937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938   *) ac_try_echo=$ac_try;;
8939 esac
8940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8941 $as_echo "$ac_try_echo") >&5
8942   (eval "$ac_compile") 2>conftest.er1
8943   ac_status=$?
8944   grep -v '^ *+' conftest.er1 >conftest.err
8945   rm -f conftest.er1
8946   cat conftest.err >&5
8947   $as_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_objext; then
8952   ac_lo=0 ac_mid=0
8953   while :; do
8954     cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960 $ac_includes_default
8961 int
8962 main ()
8963 {
8964 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
8965 test_array [0] = 0
8966
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext
8972 if { (ac_try="$ac_compile"
8973 case "(($ac_try" in
8974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975   *) ac_try_echo=$ac_try;;
8976 esac
8977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8978 $as_echo "$ac_try_echo") >&5
8979   (eval "$ac_compile") 2>conftest.er1
8980   ac_status=$?
8981   grep -v '^ *+' conftest.er1 >conftest.err
8982   rm -f conftest.er1
8983   cat conftest.err >&5
8984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } && {
8986          test -z "$ac_c_werror_flag" ||
8987          test ! -s conftest.err
8988        } && test -s conftest.$ac_objext; then
8989   ac_hi=$ac_mid; break
8990 else
8991   $as_echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994         ac_lo=`expr $ac_mid + 1`
8995                         if test $ac_lo -le $ac_mid; then
8996                           ac_lo= ac_hi=
8997                           break
8998                         fi
8999                         ac_mid=`expr 2 '*' $ac_mid + 1`
9000 fi
9001
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003   done
9004 else
9005   $as_echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008         cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014 $ac_includes_default
9015 int
9016 main ()
9017 {
9018 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
9019 test_array [0] = 0
9020
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9027 case "(($ac_try" in
9028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029   *) ac_try_echo=$ac_try;;
9030 esac
9031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9032 $as_echo "$ac_try_echo") >&5
9033   (eval "$ac_compile") 2>conftest.er1
9034   ac_status=$?
9035   grep -v '^ *+' conftest.er1 >conftest.err
9036   rm -f conftest.er1
9037   cat conftest.err >&5
9038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); } && {
9040          test -z "$ac_c_werror_flag" ||
9041          test ! -s conftest.err
9042        } && test -s conftest.$ac_objext; then
9043   ac_hi=-1 ac_mid=-1
9044   while :; do
9045     cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051 $ac_includes_default
9052 int
9053 main ()
9054 {
9055 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
9056 test_array [0] = 0
9057
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9069 $as_echo "$ac_try_echo") >&5
9070   (eval "$ac_compile") 2>conftest.er1
9071   ac_status=$?
9072   grep -v '^ *+' conftest.er1 >conftest.err
9073   rm -f conftest.er1
9074   cat conftest.err >&5
9075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } && {
9077          test -z "$ac_c_werror_flag" ||
9078          test ! -s conftest.err
9079        } && test -s conftest.$ac_objext; then
9080   ac_lo=$ac_mid; break
9081 else
9082   $as_echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085         ac_hi=`expr '(' $ac_mid ')' - 1`
9086                         if test $ac_mid -le $ac_hi; then
9087                           ac_lo= ac_hi=
9088                           break
9089                         fi
9090                         ac_mid=`expr 2 '*' $ac_mid`
9091 fi
9092
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094   done
9095 else
9096   $as_echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099         ac_lo= ac_hi=
9100 fi
9101
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 fi
9104
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 # Binary search between lo and hi bounds.
9107 while test "x$ac_lo" != "x$ac_hi"; do
9108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9109   cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115 $ac_includes_default
9116 int
9117 main ()
9118 {
9119 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
9120 test_array [0] = 0
9121
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext
9127 if { (ac_try="$ac_compile"
9128 case "(($ac_try" in
9129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130   *) ac_try_echo=$ac_try;;
9131 esac
9132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9133 $as_echo "$ac_try_echo") >&5
9134   (eval "$ac_compile") 2>conftest.er1
9135   ac_status=$?
9136   grep -v '^ *+' conftest.er1 >conftest.err
9137   rm -f conftest.er1
9138   cat conftest.err >&5
9139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } && {
9141          test -z "$ac_c_werror_flag" ||
9142          test ! -s conftest.err
9143        } && test -s conftest.$ac_objext; then
9144   ac_hi=$ac_mid
9145 else
9146   $as_echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149         ac_lo=`expr '(' $ac_mid ')' + 1`
9150 fi
9151
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 done
9154 case $ac_lo in
9155 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9156 '') if test "$ac_cv_type_long_long" = yes; then
9157      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9159 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9160 See \`config.log' for more details." >&5
9161 $as_echo "$as_me: error: cannot compute sizeof (long long)
9162 See \`config.log' for more details." >&2;}
9163    { (exit 77); exit 77; }; }; }
9164    else
9165      ac_cv_sizeof_long_long=0
9166    fi ;;
9167 esac
9168 else
9169   cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h.  */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h.  */
9175 $ac_includes_default
9176 static long int longval () { return (long int) (sizeof (long long)); }
9177 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
9178 #include <stdio.h>
9179 #include <stdlib.h>
9180 int
9181 main ()
9182 {
9183
9184   FILE *f = fopen ("conftest.val", "w");
9185   if (! f)
9186     return 1;
9187   if (((long int) (sizeof (long long))) < 0)
9188     {
9189       long int i = longval ();
9190       if (i != ((long int) (sizeof (long long))))
9191         return 1;
9192       fprintf (f, "%ld", i);
9193     }
9194   else
9195     {
9196       unsigned long int i = ulongval ();
9197       if (i != ((long int) (sizeof (long long))))
9198         return 1;
9199       fprintf (f, "%lu", i);
9200     }
9201   /* Do not output a trailing newline, as this causes \r\n confusion
9202      on some platforms.  */
9203   return ferror (f) || fclose (f) != 0;
9204
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 rm -f conftest$ac_exeext
9210 if { (ac_try="$ac_link"
9211 case "(($ac_try" in
9212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213   *) ac_try_echo=$ac_try;;
9214 esac
9215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9216 $as_echo "$ac_try_echo") >&5
9217   (eval "$ac_link") 2>&5
9218   ac_status=$?
9219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9221   { (case "(($ac_try" in
9222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223   *) ac_try_echo=$ac_try;;
9224 esac
9225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9226 $as_echo "$ac_try_echo") >&5
9227   (eval "$ac_try") 2>&5
9228   ac_status=$?
9229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; }; then
9231   ac_cv_sizeof_long_long=`cat conftest.val`
9232 else
9233   $as_echo "$as_me: program exited with status $ac_status" >&5
9234 $as_echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9236
9237 ( exit $ac_status )
9238 if test "$ac_cv_type_long_long" = yes; then
9239      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9241 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9242 See \`config.log' for more details." >&5
9243 $as_echo "$as_me: error: cannot compute sizeof (long long)
9244 See \`config.log' for more details." >&2;}
9245    { (exit 77); exit 77; }; }; }
9246    else
9247      ac_cv_sizeof_long_long=0
9248    fi
9249 fi
9250 rm -rf conftest.dSYM
9251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9252 fi
9253 rm -f conftest.val
9254 fi
9255 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9256 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9257
9258
9259
9260 cat >>confdefs.h <<_ACEOF
9261 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9262 _ACEOF
9263
9264
9265 # The cast to long int works around a bug in the HP C Compiler
9266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9268 # This bug is HP SR number 8606223364.
9269 { $as_echo "$as_me:$LINENO: checking size of long" >&5
9270 $as_echo_n "checking size of long... " >&6; }
9271 if test "${ac_cv_sizeof_long+set}" = set; then
9272   $as_echo_n "(cached) " >&6
9273 else
9274   if test "$cross_compiling" = yes; then
9275   # Depending upon the size, compute the lo and hi bounds.
9276 cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h.  */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h.  */
9282 $ac_includes_default
9283 int
9284 main ()
9285 {
9286 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
9287 test_array [0] = 0
9288
9289   ;
9290   return 0;
9291 }
9292 _ACEOF
9293 rm -f conftest.$ac_objext
9294 if { (ac_try="$ac_compile"
9295 case "(($ac_try" in
9296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297   *) ac_try_echo=$ac_try;;
9298 esac
9299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9300 $as_echo "$ac_try_echo") >&5
9301   (eval "$ac_compile") 2>conftest.er1
9302   ac_status=$?
9303   grep -v '^ *+' conftest.er1 >conftest.err
9304   rm -f conftest.er1
9305   cat conftest.err >&5
9306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); } && {
9308          test -z "$ac_c_werror_flag" ||
9309          test ! -s conftest.err
9310        } && test -s conftest.$ac_objext; then
9311   ac_lo=0 ac_mid=0
9312   while :; do
9313     cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319 $ac_includes_default
9320 int
9321 main ()
9322 {
9323 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
9324 test_array [0] = 0
9325
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9332 case "(($ac_try" in
9333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334   *) ac_try_echo=$ac_try;;
9335 esac
9336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9337 $as_echo "$ac_try_echo") >&5
9338   (eval "$ac_compile") 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } && {
9345          test -z "$ac_c_werror_flag" ||
9346          test ! -s conftest.err
9347        } && test -s conftest.$ac_objext; then
9348   ac_hi=$ac_mid; break
9349 else
9350   $as_echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9352
9353         ac_lo=`expr $ac_mid + 1`
9354                         if test $ac_lo -le $ac_mid; then
9355                           ac_lo= ac_hi=
9356                           break
9357                         fi
9358                         ac_mid=`expr 2 '*' $ac_mid + 1`
9359 fi
9360
9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362   done
9363 else
9364   $as_echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373 $ac_includes_default
9374 int
9375 main ()
9376 {
9377 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
9378 test_array [0] = 0
9379
9380   ;
9381   return 0;
9382 }
9383 _ACEOF
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9391 $as_echo "$ac_try_echo") >&5
9392   (eval "$ac_compile") 2>conftest.er1
9393   ac_status=$?
9394   grep -v '^ *+' conftest.er1 >conftest.err
9395   rm -f conftest.er1
9396   cat conftest.err >&5
9397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } && {
9399          test -z "$ac_c_werror_flag" ||
9400          test ! -s conftest.err
9401        } && test -s conftest.$ac_objext; then
9402   ac_hi=-1 ac_mid=-1
9403   while :; do
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 $ac_includes_default
9411 int
9412 main ()
9413 {
9414 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
9415 test_array [0] = 0
9416
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext
9422 if { (ac_try="$ac_compile"
9423 case "(($ac_try" in
9424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425   *) ac_try_echo=$ac_try;;
9426 esac
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429   (eval "$ac_compile") 2>conftest.er1
9430   ac_status=$?
9431   grep -v '^ *+' conftest.er1 >conftest.err
9432   rm -f conftest.er1
9433   cat conftest.err >&5
9434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } && {
9436          test -z "$ac_c_werror_flag" ||
9437          test ! -s conftest.err
9438        } && test -s conftest.$ac_objext; then
9439   ac_lo=$ac_mid; break
9440 else
9441   $as_echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444         ac_hi=`expr '(' $ac_mid ')' - 1`
9445                         if test $ac_mid -le $ac_hi; then
9446                           ac_lo= ac_hi=
9447                           break
9448                         fi
9449                         ac_mid=`expr 2 '*' $ac_mid`
9450 fi
9451
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453   done
9454 else
9455   $as_echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458         ac_lo= ac_hi=
9459 fi
9460
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9462 fi
9463
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 # Binary search between lo and hi bounds.
9466 while test "x$ac_lo" != "x$ac_hi"; do
9467   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 $ac_includes_default
9475 int
9476 main ()
9477 {
9478 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
9479 test_array [0] = 0
9480
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext
9486 if { (ac_try="$ac_compile"
9487 case "(($ac_try" in
9488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489   *) ac_try_echo=$ac_try;;
9490 esac
9491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9492 $as_echo "$ac_try_echo") >&5
9493   (eval "$ac_compile") 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } && {
9500          test -z "$ac_c_werror_flag" ||
9501          test ! -s conftest.err
9502        } && test -s conftest.$ac_objext; then
9503   ac_hi=$ac_mid
9504 else
9505   $as_echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9507
9508         ac_lo=`expr '(' $ac_mid ')' + 1`
9509 fi
9510
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 done
9513 case $ac_lo in
9514 ?*) ac_cv_sizeof_long=$ac_lo;;
9515 '') if test "$ac_cv_type_long" = yes; then
9516      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9518 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9519 See \`config.log' for more details." >&5
9520 $as_echo "$as_me: error: cannot compute sizeof (long)
9521 See \`config.log' for more details." >&2;}
9522    { (exit 77); exit 77; }; }; }
9523    else
9524      ac_cv_sizeof_long=0
9525    fi ;;
9526 esac
9527 else
9528   cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h.  */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h.  */
9534 $ac_includes_default
9535 static long int longval () { return (long int) (sizeof (long)); }
9536 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
9537 #include <stdio.h>
9538 #include <stdlib.h>
9539 int
9540 main ()
9541 {
9542
9543   FILE *f = fopen ("conftest.val", "w");
9544   if (! f)
9545     return 1;
9546   if (((long int) (sizeof (long))) < 0)
9547     {
9548       long int i = longval ();
9549       if (i != ((long int) (sizeof (long))))
9550         return 1;
9551       fprintf (f, "%ld", i);
9552     }
9553   else
9554     {
9555       unsigned long int i = ulongval ();
9556       if (i != ((long int) (sizeof (long))))
9557         return 1;
9558       fprintf (f, "%lu", i);
9559     }
9560   /* Do not output a trailing newline, as this causes \r\n confusion
9561      on some platforms.  */
9562   return ferror (f) || fclose (f) != 0;
9563
9564   ;
9565   return 0;
9566 }
9567 _ACEOF
9568 rm -f conftest$ac_exeext
9569 if { (ac_try="$ac_link"
9570 case "(($ac_try" in
9571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572   *) ac_try_echo=$ac_try;;
9573 esac
9574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9575 $as_echo "$ac_try_echo") >&5
9576   (eval "$ac_link") 2>&5
9577   ac_status=$?
9578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9580   { (case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9585 $as_echo "$ac_try_echo") >&5
9586   (eval "$ac_try") 2>&5
9587   ac_status=$?
9588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; }; then
9590   ac_cv_sizeof_long=`cat conftest.val`
9591 else
9592   $as_echo "$as_me: program exited with status $ac_status" >&5
9593 $as_echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9595
9596 ( exit $ac_status )
9597 if test "$ac_cv_type_long" = yes; then
9598      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9600 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9601 See \`config.log' for more details." >&5
9602 $as_echo "$as_me: error: cannot compute sizeof (long)
9603 See \`config.log' for more details." >&2;}
9604    { (exit 77); exit 77; }; }; }
9605    else
9606      ac_cv_sizeof_long=0
9607    fi
9608 fi
9609 rm -rf conftest.dSYM
9610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9611 fi
9612 rm -f conftest.val
9613 fi
9614 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9615 $as_echo "$ac_cv_sizeof_long" >&6; }
9616
9617
9618
9619 cat >>confdefs.h <<_ACEOF
9620 #define SIZEOF_LONG $ac_cv_sizeof_long
9621 _ACEOF
9622
9623
9624 # The cast to long int works around a bug in the HP C Compiler
9625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9627 # This bug is HP SR number 8606223364.
9628 { $as_echo "$as_me:$LINENO: checking size of int" >&5
9629 $as_echo_n "checking size of int... " >&6; }
9630 if test "${ac_cv_sizeof_int+set}" = set; then
9631   $as_echo_n "(cached) " >&6
9632 else
9633   if test "$cross_compiling" = yes; then
9634   # Depending upon the size, compute the lo and hi bounds.
9635 cat >conftest.$ac_ext <<_ACEOF
9636 /* confdefs.h.  */
9637 _ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h.  */
9641 $ac_includes_default
9642 int
9643 main ()
9644 {
9645 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
9646 test_array [0] = 0
9647
9648   ;
9649   return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext
9653 if { (ac_try="$ac_compile"
9654 case "(($ac_try" in
9655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656   *) ac_try_echo=$ac_try;;
9657 esac
9658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9659 $as_echo "$ac_try_echo") >&5
9660   (eval "$ac_compile") 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } && {
9667          test -z "$ac_c_werror_flag" ||
9668          test ! -s conftest.err
9669        } && test -s conftest.$ac_objext; then
9670   ac_lo=0 ac_mid=0
9671   while :; do
9672     cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678 $ac_includes_default
9679 int
9680 main ()
9681 {
9682 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
9683 test_array [0] = 0
9684
9685   ;
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9691 case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9696 $as_echo "$ac_try_echo") >&5
9697   (eval "$ac_compile") 2>conftest.er1
9698   ac_status=$?
9699   grep -v '^ *+' conftest.er1 >conftest.err
9700   rm -f conftest.er1
9701   cat conftest.err >&5
9702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); } && {
9704          test -z "$ac_c_werror_flag" ||
9705          test ! -s conftest.err
9706        } && test -s conftest.$ac_objext; then
9707   ac_hi=$ac_mid; break
9708 else
9709   $as_echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712         ac_lo=`expr $ac_mid + 1`
9713                         if test $ac_lo -le $ac_mid; then
9714                           ac_lo= ac_hi=
9715                           break
9716                         fi
9717                         ac_mid=`expr 2 '*' $ac_mid + 1`
9718 fi
9719
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721   done
9722 else
9723   $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726         cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 $ac_includes_default
9733 int
9734 main ()
9735 {
9736 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
9737 test_array [0] = 0
9738
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (ac_try="$ac_compile"
9745 case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750 $as_echo "$ac_try_echo") >&5
9751   (eval "$ac_compile") 2>conftest.er1
9752   ac_status=$?
9753   grep -v '^ *+' conftest.er1 >conftest.err
9754   rm -f conftest.er1
9755   cat conftest.err >&5
9756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } && {
9758          test -z "$ac_c_werror_flag" ||
9759          test ! -s conftest.err
9760        } && test -s conftest.$ac_objext; then
9761   ac_hi=-1 ac_mid=-1
9762   while :; do
9763     cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769 $ac_includes_default
9770 int
9771 main ()
9772 {
9773 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
9774 test_array [0] = 0
9775
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext
9781 if { (ac_try="$ac_compile"
9782 case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9787 $as_echo "$ac_try_echo") >&5
9788   (eval "$ac_compile") 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } && {
9795          test -z "$ac_c_werror_flag" ||
9796          test ! -s conftest.err
9797        } && test -s conftest.$ac_objext; then
9798   ac_lo=$ac_mid; break
9799 else
9800   $as_echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803         ac_hi=`expr '(' $ac_mid ')' - 1`
9804                         if test $ac_mid -le $ac_hi; then
9805                           ac_lo= ac_hi=
9806                           break
9807                         fi
9808                         ac_mid=`expr 2 '*' $ac_mid`
9809 fi
9810
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812   done
9813 else
9814   $as_echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         ac_lo= ac_hi=
9818 fi
9819
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 # Binary search between lo and hi bounds.
9825 while test "x$ac_lo" != "x$ac_hi"; do
9826   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9827   cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833 $ac_includes_default
9834 int
9835 main ()
9836 {
9837 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
9838 test_array [0] = 0
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852   (eval "$ac_compile") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } && {
9859          test -z "$ac_c_werror_flag" ||
9860          test ! -s conftest.err
9861        } && test -s conftest.$ac_objext; then
9862   ac_hi=$ac_mid
9863 else
9864   $as_echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867         ac_lo=`expr '(' $ac_mid ')' + 1`
9868 fi
9869
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 done
9872 case $ac_lo in
9873 ?*) ac_cv_sizeof_int=$ac_lo;;
9874 '') if test "$ac_cv_type_int" = yes; then
9875      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9877 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9878 See \`config.log' for more details." >&5
9879 $as_echo "$as_me: error: cannot compute sizeof (int)
9880 See \`config.log' for more details." >&2;}
9881    { (exit 77); exit 77; }; }; }
9882    else
9883      ac_cv_sizeof_int=0
9884    fi ;;
9885 esac
9886 else
9887   cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893 $ac_includes_default
9894 static long int longval () { return (long int) (sizeof (int)); }
9895 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
9896 #include <stdio.h>
9897 #include <stdlib.h>
9898 int
9899 main ()
9900 {
9901
9902   FILE *f = fopen ("conftest.val", "w");
9903   if (! f)
9904     return 1;
9905   if (((long int) (sizeof (int))) < 0)
9906     {
9907       long int i = longval ();
9908       if (i != ((long int) (sizeof (int))))
9909         return 1;
9910       fprintf (f, "%ld", i);
9911     }
9912   else
9913     {
9914       unsigned long int i = ulongval ();
9915       if (i != ((long int) (sizeof (int))))
9916         return 1;
9917       fprintf (f, "%lu", i);
9918     }
9919   /* Do not output a trailing newline, as this causes \r\n confusion
9920      on some platforms.  */
9921   return ferror (f) || fclose (f) != 0;
9922
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931   *) ac_try_echo=$ac_try;;
9932 esac
9933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9934 $as_echo "$ac_try_echo") >&5
9935   (eval "$ac_link") 2>&5
9936   ac_status=$?
9937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9939   { (case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944 $as_echo "$ac_try_echo") >&5
9945   (eval "$ac_try") 2>&5
9946   ac_status=$?
9947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); }; }; then
9949   ac_cv_sizeof_int=`cat conftest.val`
9950 else
9951   $as_echo "$as_me: program exited with status $ac_status" >&5
9952 $as_echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 ( exit $ac_status )
9956 if test "$ac_cv_type_int" = yes; then
9957      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9959 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9960 See \`config.log' for more details." >&5
9961 $as_echo "$as_me: error: cannot compute sizeof (int)
9962 See \`config.log' for more details." >&2;}
9963    { (exit 77); exit 77; }; }; }
9964    else
9965      ac_cv_sizeof_int=0
9966    fi
9967 fi
9968 rm -rf conftest.dSYM
9969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9970 fi
9971 rm -f conftest.val
9972 fi
9973 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9974 $as_echo "$ac_cv_sizeof_int" >&6; }
9975
9976
9977
9978 cat >>confdefs.h <<_ACEOF
9979 #define SIZEOF_INT $ac_cv_sizeof_int
9980 _ACEOF
9981
9982
9983 # The cast to long int works around a bug in the HP C Compiler
9984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9986 # This bug is HP SR number 8606223364.
9987 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9988 $as_echo_n "checking size of short... " >&6; }
9989 if test "${ac_cv_sizeof_short+set}" = set; then
9990   $as_echo_n "(cached) " >&6
9991 else
9992   if test "$cross_compiling" = yes; then
9993   # Depending upon the size, compute the lo and hi bounds.
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 $ac_includes_default
10001 int
10002 main ()
10003 {
10004 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
10005 test_array [0] = 0
10006
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext
10012 if { (ac_try="$ac_compile"
10013 case "(($ac_try" in
10014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015   *) ac_try_echo=$ac_try;;
10016 esac
10017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10018 $as_echo "$ac_try_echo") >&5
10019   (eval "$ac_compile") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } && {
10026          test -z "$ac_c_werror_flag" ||
10027          test ! -s conftest.err
10028        } && test -s conftest.$ac_objext; then
10029   ac_lo=0 ac_mid=0
10030   while :; do
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 int
10039 main ()
10040 {
10041 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
10042 test_array [0] = 0
10043
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052   *) ac_try_echo=$ac_try;;
10053 esac
10054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10055 $as_echo "$ac_try_echo") >&5
10056   (eval "$ac_compile") 2>conftest.er1
10057   ac_status=$?
10058   grep -v '^ *+' conftest.er1 >conftest.err
10059   rm -f conftest.er1
10060   cat conftest.err >&5
10061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); } && {
10063          test -z "$ac_c_werror_flag" ||
10064          test ! -s conftest.err
10065        } && test -s conftest.$ac_objext; then
10066   ac_hi=$ac_mid; break
10067 else
10068   $as_echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071         ac_lo=`expr $ac_mid + 1`
10072                         if test $ac_lo -le $ac_mid; then
10073                           ac_lo= ac_hi=
10074                           break
10075                         fi
10076                         ac_mid=`expr 2 '*' $ac_mid + 1`
10077 fi
10078
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080   done
10081 else
10082   $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085         cat >conftest.$ac_ext <<_ACEOF
10086 /* confdefs.h.  */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h.  */
10091 $ac_includes_default
10092 int
10093 main ()
10094 {
10095 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
10096 test_array [0] = 0
10097
10098   ;
10099   return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext
10103 if { (ac_try="$ac_compile"
10104 case "(($ac_try" in
10105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106   *) ac_try_echo=$ac_try;;
10107 esac
10108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109 $as_echo "$ac_try_echo") >&5
10110   (eval "$ac_compile") 2>conftest.er1
10111   ac_status=$?
10112   grep -v '^ *+' conftest.er1 >conftest.err
10113   rm -f conftest.er1
10114   cat conftest.err >&5
10115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); } && {
10117          test -z "$ac_c_werror_flag" ||
10118          test ! -s conftest.err
10119        } && test -s conftest.$ac_objext; then
10120   ac_hi=-1 ac_mid=-1
10121   while :; do
10122     cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 $ac_includes_default
10129 int
10130 main ()
10131 {
10132 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
10133 test_array [0] = 0
10134
10135   ;
10136   return 0;
10137 }
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (ac_try="$ac_compile"
10141 case "(($ac_try" in
10142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143   *) ac_try_echo=$ac_try;;
10144 esac
10145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10146 $as_echo "$ac_try_echo") >&5
10147   (eval "$ac_compile") 2>conftest.er1
10148   ac_status=$?
10149   grep -v '^ *+' conftest.er1 >conftest.err
10150   rm -f conftest.er1
10151   cat conftest.err >&5
10152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); } && {
10154          test -z "$ac_c_werror_flag" ||
10155          test ! -s conftest.err
10156        } && test -s conftest.$ac_objext; then
10157   ac_lo=$ac_mid; break
10158 else
10159   $as_echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162         ac_hi=`expr '(' $ac_mid ')' - 1`
10163                         if test $ac_mid -le $ac_hi; then
10164                           ac_lo= ac_hi=
10165                           break
10166                         fi
10167                         ac_mid=`expr 2 '*' $ac_mid`
10168 fi
10169
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171   done
10172 else
10173   $as_echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10175
10176         ac_lo= ac_hi=
10177 fi
10178
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 fi
10181
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 # Binary search between lo and hi bounds.
10184 while test "x$ac_lo" != "x$ac_hi"; do
10185   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10186   cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h.  */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h.  */
10192 $ac_includes_default
10193 int
10194 main ()
10195 {
10196 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
10197 test_array [0] = 0
10198
10199   ;
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext
10204 if { (ac_try="$ac_compile"
10205 case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10210 $as_echo "$ac_try_echo") >&5
10211   (eval "$ac_compile") 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } && {
10218          test -z "$ac_c_werror_flag" ||
10219          test ! -s conftest.err
10220        } && test -s conftest.$ac_objext; then
10221   ac_hi=$ac_mid
10222 else
10223   $as_echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226         ac_lo=`expr '(' $ac_mid ')' + 1`
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 done
10231 case $ac_lo in
10232 ?*) ac_cv_sizeof_short=$ac_lo;;
10233 '') if test "$ac_cv_type_short" = yes; then
10234      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10236 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10237 See \`config.log' for more details." >&5
10238 $as_echo "$as_me: error: cannot compute sizeof (short)
10239 See \`config.log' for more details." >&2;}
10240    { (exit 77); exit 77; }; }; }
10241    else
10242      ac_cv_sizeof_short=0
10243    fi ;;
10244 esac
10245 else
10246   cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 $ac_includes_default
10253 static long int longval () { return (long int) (sizeof (short)); }
10254 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
10255 #include <stdio.h>
10256 #include <stdlib.h>
10257 int
10258 main ()
10259 {
10260
10261   FILE *f = fopen ("conftest.val", "w");
10262   if (! f)
10263     return 1;
10264   if (((long int) (sizeof (short))) < 0)
10265     {
10266       long int i = longval ();
10267       if (i != ((long int) (sizeof (short))))
10268         return 1;
10269       fprintf (f, "%ld", i);
10270     }
10271   else
10272     {
10273       unsigned long int i = ulongval ();
10274       if (i != ((long int) (sizeof (short))))
10275         return 1;
10276       fprintf (f, "%lu", i);
10277     }
10278   /* Do not output a trailing newline, as this causes \r\n confusion
10279      on some platforms.  */
10280   return ferror (f) || fclose (f) != 0;
10281
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290   *) ac_try_echo=$ac_try;;
10291 esac
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294   (eval "$ac_link") 2>&5
10295   ac_status=$?
10296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10298   { (case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304   (eval "$ac_try") 2>&5
10305   ac_status=$?
10306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; }; then
10308   ac_cv_sizeof_short=`cat conftest.val`
10309 else
10310   $as_echo "$as_me: program exited with status $ac_status" >&5
10311 $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ( exit $ac_status )
10315 if test "$ac_cv_type_short" = yes; then
10316      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10318 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10319 See \`config.log' for more details." >&5
10320 $as_echo "$as_me: error: cannot compute sizeof (short)
10321 See \`config.log' for more details." >&2;}
10322    { (exit 77); exit 77; }; }; }
10323    else
10324      ac_cv_sizeof_short=0
10325    fi
10326 fi
10327 rm -rf conftest.dSYM
10328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10329 fi
10330 rm -f conftest.val
10331 fi
10332 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10333 $as_echo "$ac_cv_sizeof_short" >&6; }
10334
10335
10336
10337 cat >>confdefs.h <<_ACEOF
10338 #define SIZEOF_SHORT $ac_cv_sizeof_short
10339 _ACEOF
10340
10341
10342 # The cast to long int works around a bug in the HP C Compiler
10343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10345 # This bug is HP SR number 8606223364.
10346 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10347 $as_echo_n "checking size of size_t... " >&6; }
10348 if test "${ac_cv_sizeof_size_t+set}" = set; then
10349   $as_echo_n "(cached) " >&6
10350 else
10351   if test "$cross_compiling" = yes; then
10352   # Depending upon the size, compute the lo and hi bounds.
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h.  */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h.  */
10359 $ac_includes_default
10360 int
10361 main ()
10362 {
10363 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
10364 test_array [0] = 0
10365
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374   *) ac_try_echo=$ac_try;;
10375 esac
10376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10377 $as_echo "$ac_try_echo") >&5
10378   (eval "$ac_compile") 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } && {
10385          test -z "$ac_c_werror_flag" ||
10386          test ! -s conftest.err
10387        } && test -s conftest.$ac_objext; then
10388   ac_lo=0 ac_mid=0
10389   while :; do
10390     cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396 $ac_includes_default
10397 int
10398 main ()
10399 {
10400 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10401 test_array [0] = 0
10402
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411   *) ac_try_echo=$ac_try;;
10412 esac
10413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10414 $as_echo "$ac_try_echo") >&5
10415   (eval "$ac_compile") 2>conftest.er1
10416   ac_status=$?
10417   grep -v '^ *+' conftest.er1 >conftest.err
10418   rm -f conftest.er1
10419   cat conftest.err >&5
10420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } && {
10422          test -z "$ac_c_werror_flag" ||
10423          test ! -s conftest.err
10424        } && test -s conftest.$ac_objext; then
10425   ac_hi=$ac_mid; break
10426 else
10427   $as_echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430         ac_lo=`expr $ac_mid + 1`
10431                         if test $ac_lo -le $ac_mid; then
10432                           ac_lo= ac_hi=
10433                           break
10434                         fi
10435                         ac_mid=`expr 2 '*' $ac_mid + 1`
10436 fi
10437
10438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439   done
10440 else
10441   $as_echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444         cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 $ac_includes_default
10451 int
10452 main ()
10453 {
10454 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
10455 test_array [0] = 0
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465   *) ac_try_echo=$ac_try;;
10466 esac
10467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10468 $as_echo "$ac_try_echo") >&5
10469   (eval "$ac_compile") 2>conftest.er1
10470   ac_status=$?
10471   grep -v '^ *+' conftest.er1 >conftest.err
10472   rm -f conftest.er1
10473   cat conftest.err >&5
10474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } && {
10476          test -z "$ac_c_werror_flag" ||
10477          test ! -s conftest.err
10478        } && test -s conftest.$ac_objext; then
10479   ac_hi=-1 ac_mid=-1
10480   while :; do
10481     cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h.  */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h.  */
10487 $ac_includes_default
10488 int
10489 main ()
10490 {
10491 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
10492 test_array [0] = 0
10493
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (ac_try="$ac_compile"
10500 case "(($ac_try" in
10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502   *) ac_try_echo=$ac_try;;
10503 esac
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506   (eval "$ac_compile") 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } && {
10513          test -z "$ac_c_werror_flag" ||
10514          test ! -s conftest.err
10515        } && test -s conftest.$ac_objext; then
10516   ac_lo=$ac_mid; break
10517 else
10518   $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521         ac_hi=`expr '(' $ac_mid ')' - 1`
10522                         if test $ac_mid -le $ac_hi; then
10523                           ac_lo= ac_hi=
10524                           break
10525                         fi
10526                         ac_mid=`expr 2 '*' $ac_mid`
10527 fi
10528
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530   done
10531 else
10532   $as_echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535         ac_lo= ac_hi=
10536 fi
10537
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 fi
10540
10541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 # Binary search between lo and hi bounds.
10543 while test "x$ac_lo" != "x$ac_hi"; do
10544   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10545   cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h.  */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h.  */
10551 $ac_includes_default
10552 int
10553 main ()
10554 {
10555 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10556 test_array [0] = 0
10557
10558   ;
10559   return 0;
10560 }
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (ac_try="$ac_compile"
10564 case "(($ac_try" in
10565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566   *) ac_try_echo=$ac_try;;
10567 esac
10568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10569 $as_echo "$ac_try_echo") >&5
10570   (eval "$ac_compile") 2>conftest.er1
10571   ac_status=$?
10572   grep -v '^ *+' conftest.er1 >conftest.err
10573   rm -f conftest.er1
10574   cat conftest.err >&5
10575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); } && {
10577          test -z "$ac_c_werror_flag" ||
10578          test ! -s conftest.err
10579        } && test -s conftest.$ac_objext; then
10580   ac_hi=$ac_mid
10581 else
10582   $as_echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585         ac_lo=`expr '(' $ac_mid ')' + 1`
10586 fi
10587
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589 done
10590 case $ac_lo in
10591 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10592 '') if test "$ac_cv_type_size_t" = yes; then
10593      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10595 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10596 See \`config.log' for more details." >&5
10597 $as_echo "$as_me: error: cannot compute sizeof (size_t)
10598 See \`config.log' for more details." >&2;}
10599    { (exit 77); exit 77; }; }; }
10600    else
10601      ac_cv_sizeof_size_t=0
10602    fi ;;
10603 esac
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 $ac_includes_default
10612 static long int longval () { return (long int) (sizeof (size_t)); }
10613 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
10614 #include <stdio.h>
10615 #include <stdlib.h>
10616 int
10617 main ()
10618 {
10619
10620   FILE *f = fopen ("conftest.val", "w");
10621   if (! f)
10622     return 1;
10623   if (((long int) (sizeof (size_t))) < 0)
10624     {
10625       long int i = longval ();
10626       if (i != ((long int) (sizeof (size_t))))
10627         return 1;
10628       fprintf (f, "%ld", i);
10629     }
10630   else
10631     {
10632       unsigned long int i = ulongval ();
10633       if (i != ((long int) (sizeof (size_t))))
10634         return 1;
10635       fprintf (f, "%lu", i);
10636     }
10637   /* Do not output a trailing newline, as this causes \r\n confusion
10638      on some platforms.  */
10639   return ferror (f) || fclose (f) != 0;
10640
10641   ;
10642   return 0;
10643 }
10644 _ACEOF
10645 rm -f conftest$ac_exeext
10646 if { (ac_try="$ac_link"
10647 case "(($ac_try" in
10648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649   *) ac_try_echo=$ac_try;;
10650 esac
10651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10652 $as_echo "$ac_try_echo") >&5
10653   (eval "$ac_link") 2>&5
10654   ac_status=$?
10655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10657   { (case "(($ac_try" in
10658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659   *) ac_try_echo=$ac_try;;
10660 esac
10661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663   (eval "$ac_try") 2>&5
10664   ac_status=$?
10665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; }; then
10667   ac_cv_sizeof_size_t=`cat conftest.val`
10668 else
10669   $as_echo "$as_me: program exited with status $ac_status" >&5
10670 $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ( exit $ac_status )
10674 if test "$ac_cv_type_size_t" = yes; then
10675      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10677 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10678 See \`config.log' for more details." >&5
10679 $as_echo "$as_me: error: cannot compute sizeof (size_t)
10680 See \`config.log' for more details." >&2;}
10681    { (exit 77); exit 77; }; }; }
10682    else
10683      ac_cv_sizeof_size_t=0
10684    fi
10685 fi
10686 rm -rf conftest.dSYM
10687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10688 fi
10689 rm -f conftest.val
10690 fi
10691 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10692 $as_echo "$ac_cv_sizeof_size_t" >&6; }
10693
10694
10695
10696 cat >>confdefs.h <<_ACEOF
10697 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10698 _ACEOF
10699
10700
10701 # The cast to long int works around a bug in the HP C Compiler
10702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10704 # This bug is HP SR number 8606223364.
10705 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
10706 $as_echo_n "checking size of void *... " >&6; }
10707 if test "${ac_cv_sizeof_void_p+set}" = set; then
10708   $as_echo_n "(cached) " >&6
10709 else
10710   if test "$cross_compiling" = yes; then
10711   # Depending upon the size, compute the lo and hi bounds.
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 $ac_includes_default
10719 int
10720 main ()
10721 {
10722 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
10723 test_array [0] = 0
10724
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest.$ac_objext
10730 if { (ac_try="$ac_compile"
10731 case "(($ac_try" in
10732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733   *) ac_try_echo=$ac_try;;
10734 esac
10735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736 $as_echo "$ac_try_echo") >&5
10737   (eval "$ac_compile") 2>conftest.er1
10738   ac_status=$?
10739   grep -v '^ *+' conftest.er1 >conftest.err
10740   rm -f conftest.er1
10741   cat conftest.err >&5
10742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } && {
10744          test -z "$ac_c_werror_flag" ||
10745          test ! -s conftest.err
10746        } && test -s conftest.$ac_objext; then
10747   ac_lo=0 ac_mid=0
10748   while :; do
10749     cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h.  */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h.  */
10755 $ac_includes_default
10756 int
10757 main ()
10758 {
10759 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
10760 test_array [0] = 0
10761
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext
10767 if { (ac_try="$ac_compile"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774   (eval "$ac_compile") 2>conftest.er1
10775   ac_status=$?
10776   grep -v '^ *+' conftest.er1 >conftest.err
10777   rm -f conftest.er1
10778   cat conftest.err >&5
10779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } && {
10781          test -z "$ac_c_werror_flag" ||
10782          test ! -s conftest.err
10783        } && test -s conftest.$ac_objext; then
10784   ac_hi=$ac_mid; break
10785 else
10786   $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789         ac_lo=`expr $ac_mid + 1`
10790                         if test $ac_lo -le $ac_mid; then
10791                           ac_lo= ac_hi=
10792                           break
10793                         fi
10794                         ac_mid=`expr 2 '*' $ac_mid + 1`
10795 fi
10796
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798   done
10799 else
10800   $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803         cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809 $ac_includes_default
10810 int
10811 main ()
10812 {
10813 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
10814 test_array [0] = 0
10815
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (ac_try="$ac_compile"
10822 case "(($ac_try" in
10823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824   *) ac_try_echo=$ac_try;;
10825 esac
10826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10827 $as_echo "$ac_try_echo") >&5
10828   (eval "$ac_compile") 2>conftest.er1
10829   ac_status=$?
10830   grep -v '^ *+' conftest.er1 >conftest.err
10831   rm -f conftest.er1
10832   cat conftest.err >&5
10833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } && {
10835          test -z "$ac_c_werror_flag" ||
10836          test ! -s conftest.err
10837        } && test -s conftest.$ac_objext; then
10838   ac_hi=-1 ac_mid=-1
10839   while :; do
10840     cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846 $ac_includes_default
10847 int
10848 main ()
10849 {
10850 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
10851 test_array [0] = 0
10852
10853   ;
10854   return 0;
10855 }
10856 _ACEOF
10857 rm -f conftest.$ac_objext
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861   *) ac_try_echo=$ac_try;;
10862 esac
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865   (eval "$ac_compile") 2>conftest.er1
10866   ac_status=$?
10867   grep -v '^ *+' conftest.er1 >conftest.err
10868   rm -f conftest.er1
10869   cat conftest.err >&5
10870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } && {
10872          test -z "$ac_c_werror_flag" ||
10873          test ! -s conftest.err
10874        } && test -s conftest.$ac_objext; then
10875   ac_lo=$ac_mid; break
10876 else
10877   $as_echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880         ac_hi=`expr '(' $ac_mid ')' - 1`
10881                         if test $ac_mid -le $ac_hi; then
10882                           ac_lo= ac_hi=
10883                           break
10884                         fi
10885                         ac_mid=`expr 2 '*' $ac_mid`
10886 fi
10887
10888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889   done
10890 else
10891   $as_echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10893
10894         ac_lo= ac_hi=
10895 fi
10896
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 # Binary search between lo and hi bounds.
10902 while test "x$ac_lo" != "x$ac_hi"; do
10903   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10904   cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h.  */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h.  */
10910 $ac_includes_default
10911 int
10912 main ()
10913 {
10914 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
10915 test_array [0] = 0
10916
10917   ;
10918   return 0;
10919 }
10920 _ACEOF
10921 rm -f conftest.$ac_objext
10922 if { (ac_try="$ac_compile"
10923 case "(($ac_try" in
10924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925   *) ac_try_echo=$ac_try;;
10926 esac
10927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10928 $as_echo "$ac_try_echo") >&5
10929   (eval "$ac_compile") 2>conftest.er1
10930   ac_status=$?
10931   grep -v '^ *+' conftest.er1 >conftest.err
10932   rm -f conftest.er1
10933   cat conftest.err >&5
10934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); } && {
10936          test -z "$ac_c_werror_flag" ||
10937          test ! -s conftest.err
10938        } && test -s conftest.$ac_objext; then
10939   ac_hi=$ac_mid
10940 else
10941   $as_echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944         ac_lo=`expr '(' $ac_mid ')' + 1`
10945 fi
10946
10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 done
10949 case $ac_lo in
10950 ?*) ac_cv_sizeof_void_p=$ac_lo;;
10951 '') if test "$ac_cv_type_void_p" = yes; then
10952      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10954 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
10955 See \`config.log' for more details." >&5
10956 $as_echo "$as_me: error: cannot compute sizeof (void *)
10957 See \`config.log' for more details." >&2;}
10958    { (exit 77); exit 77; }; }; }
10959    else
10960      ac_cv_sizeof_void_p=0
10961    fi ;;
10962 esac
10963 else
10964   cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 $ac_includes_default
10971 static long int longval () { return (long int) (sizeof (void *)); }
10972 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
10973 #include <stdio.h>
10974 #include <stdlib.h>
10975 int
10976 main ()
10977 {
10978
10979   FILE *f = fopen ("conftest.val", "w");
10980   if (! f)
10981     return 1;
10982   if (((long int) (sizeof (void *))) < 0)
10983     {
10984       long int i = longval ();
10985       if (i != ((long int) (sizeof (void *))))
10986         return 1;
10987       fprintf (f, "%ld", i);
10988     }
10989   else
10990     {
10991       unsigned long int i = ulongval ();
10992       if (i != ((long int) (sizeof (void *))))
10993         return 1;
10994       fprintf (f, "%lu", i);
10995     }
10996   /* Do not output a trailing newline, as this causes \r\n confusion
10997      on some platforms.  */
10998   return ferror (f) || fclose (f) != 0;
10999
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 rm -f conftest$ac_exeext
11005 if { (ac_try="$ac_link"
11006 case "(($ac_try" in
11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008   *) ac_try_echo=$ac_try;;
11009 esac
11010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11011 $as_echo "$ac_try_echo") >&5
11012   (eval "$ac_link") 2>&5
11013   ac_status=$?
11014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11016   { (case "(($ac_try" in
11017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018   *) ac_try_echo=$ac_try;;
11019 esac
11020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11021 $as_echo "$ac_try_echo") >&5
11022   (eval "$ac_try") 2>&5
11023   ac_status=$?
11024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; }; then
11026   ac_cv_sizeof_void_p=`cat conftest.val`
11027 else
11028   $as_echo "$as_me: program exited with status $ac_status" >&5
11029 $as_echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ( exit $ac_status )
11033 if test "$ac_cv_type_void_p" = yes; then
11034      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11036 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11037 See \`config.log' for more details." >&5
11038 $as_echo "$as_me: error: cannot compute sizeof (void *)
11039 See \`config.log' for more details." >&2;}
11040    { (exit 77); exit 77; }; }; }
11041    else
11042      ac_cv_sizeof_void_p=0
11043    fi
11044 fi
11045 rm -rf conftest.dSYM
11046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11047 fi
11048 rm -f conftest.val
11049 fi
11050 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
11051 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11052
11053
11054
11055 cat >>confdefs.h <<_ACEOF
11056 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11057 _ACEOF
11058
11059
11060
11061 { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
11062 $as_echo_n "checking for struct in6_addr... " >&6; }
11063 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
11064   $as_echo_n "(cached) " >&6
11065 else
11066   ac_cv_type_struct_in6_addr=no
11067 cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h.  */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h.  */
11073 #define _GNU_SOURCE
11074 #include <sys/types.h>
11075 #ifdef HAVE_NETINET_IN_H
11076 #include <netinet/in.h>
11077 #endif
11078 #ifdef HAVE_NETINET_IN6_H
11079 #include <netinet/in6.h>
11080 #endif
11081 #ifdef HAVE_SYS_SOCKET_H
11082 #include <sys/socket.h>
11083 #endif
11084 #ifdef HAVE_NETDB_H
11085 #include <netdb.h>
11086 #endif
11087 #ifdef WIN32
11088 #define WIN32_WINNT 0x400
11089 #define _WIN32_WINNT 0x400
11090 #define WIN32_LEAN_AND_MEAN
11091 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11092 #include <winsock.h>
11093 #else
11094 #include <winsock2.h>
11095 #include <ws2tcpip.h>
11096 #endif
11097 #endif
11098
11099
11100 int
11101 main ()
11102 {
11103 if (sizeof (struct in6_addr))
11104        return 0;
11105   ;
11106   return 0;
11107 }
11108 _ACEOF
11109 rm -f conftest.$ac_objext
11110 if { (ac_try="$ac_compile"
11111 case "(($ac_try" in
11112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113   *) ac_try_echo=$ac_try;;
11114 esac
11115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11116 $as_echo "$ac_try_echo") >&5
11117   (eval "$ac_compile") 2>conftest.er1
11118   ac_status=$?
11119   grep -v '^ *+' conftest.er1 >conftest.err
11120   rm -f conftest.er1
11121   cat conftest.err >&5
11122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } && {
11124          test -z "$ac_c_werror_flag" ||
11125          test ! -s conftest.err
11126        } && test -s conftest.$ac_objext; then
11127   cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 #define _GNU_SOURCE
11134 #include <sys/types.h>
11135 #ifdef HAVE_NETINET_IN_H
11136 #include <netinet/in.h>
11137 #endif
11138 #ifdef HAVE_NETINET_IN6_H
11139 #include <netinet/in6.h>
11140 #endif
11141 #ifdef HAVE_SYS_SOCKET_H
11142 #include <sys/socket.h>
11143 #endif
11144 #ifdef HAVE_NETDB_H
11145 #include <netdb.h>
11146 #endif
11147 #ifdef WIN32
11148 #define WIN32_WINNT 0x400
11149 #define _WIN32_WINNT 0x400
11150 #define WIN32_LEAN_AND_MEAN
11151 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11152 #include <winsock.h>
11153 #else
11154 #include <winsock2.h>
11155 #include <ws2tcpip.h>
11156 #endif
11157 #endif
11158
11159
11160 int
11161 main ()
11162 {
11163 if (sizeof ((struct in6_addr)))
11164           return 0;
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (ac_try="$ac_compile"
11171 case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11176 $as_echo "$ac_try_echo") >&5
11177   (eval "$ac_compile") 2>conftest.er1
11178   ac_status=$?
11179   grep -v '^ *+' conftest.er1 >conftest.err
11180   rm -f conftest.er1
11181   cat conftest.err >&5
11182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); } && {
11184          test -z "$ac_c_werror_flag" ||
11185          test ! -s conftest.err
11186        } && test -s conftest.$ac_objext; then
11187   :
11188 else
11189   $as_echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192         ac_cv_type_struct_in6_addr=yes
11193 fi
11194
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 else
11197   $as_echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200
11201 fi
11202
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 fi
11205 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
11206 $as_echo "$ac_cv_type_struct_in6_addr" >&6; }
11207 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then
11208
11209 cat >>confdefs.h <<_ACEOF
11210 #define HAVE_STRUCT_IN6_ADDR 1
11211 _ACEOF
11212
11213
11214 fi
11215 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11216 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
11217 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11218   $as_echo_n "(cached) " >&6
11219 else
11220   ac_cv_type_struct_sockaddr_in6=no
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 #define _GNU_SOURCE
11228 #include <sys/types.h>
11229 #ifdef HAVE_NETINET_IN_H
11230 #include <netinet/in.h>
11231 #endif
11232 #ifdef HAVE_NETINET_IN6_H
11233 #include <netinet/in6.h>
11234 #endif
11235 #ifdef HAVE_SYS_SOCKET_H
11236 #include <sys/socket.h>
11237 #endif
11238 #ifdef HAVE_NETDB_H
11239 #include <netdb.h>
11240 #endif
11241 #ifdef WIN32
11242 #define WIN32_WINNT 0x400
11243 #define _WIN32_WINNT 0x400
11244 #define WIN32_LEAN_AND_MEAN
11245 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11246 #include <winsock.h>
11247 #else
11248 #include <winsock2.h>
11249 #include <ws2tcpip.h>
11250 #endif
11251 #endif
11252
11253
11254 int
11255 main ()
11256 {
11257 if (sizeof (struct sockaddr_in6))
11258        return 0;
11259   ;
11260   return 0;
11261 }
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (ac_try="$ac_compile"
11265 case "(($ac_try" in
11266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267   *) ac_try_echo=$ac_try;;
11268 esac
11269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11270 $as_echo "$ac_try_echo") >&5
11271   (eval "$ac_compile") 2>conftest.er1
11272   ac_status=$?
11273   grep -v '^ *+' conftest.er1 >conftest.err
11274   rm -f conftest.er1
11275   cat conftest.err >&5
11276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } && {
11278          test -z "$ac_c_werror_flag" ||
11279          test ! -s conftest.err
11280        } && test -s conftest.$ac_objext; then
11281   cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 #define _GNU_SOURCE
11288 #include <sys/types.h>
11289 #ifdef HAVE_NETINET_IN_H
11290 #include <netinet/in.h>
11291 #endif
11292 #ifdef HAVE_NETINET_IN6_H
11293 #include <netinet/in6.h>
11294 #endif
11295 #ifdef HAVE_SYS_SOCKET_H
11296 #include <sys/socket.h>
11297 #endif
11298 #ifdef HAVE_NETDB_H
11299 #include <netdb.h>
11300 #endif
11301 #ifdef WIN32
11302 #define WIN32_WINNT 0x400
11303 #define _WIN32_WINNT 0x400
11304 #define WIN32_LEAN_AND_MEAN
11305 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11306 #include <winsock.h>
11307 #else
11308 #include <winsock2.h>
11309 #include <ws2tcpip.h>
11310 #endif
11311 #endif
11312
11313
11314 int
11315 main ()
11316 {
11317 if (sizeof ((struct sockaddr_in6)))
11318           return 0;
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331   (eval "$ac_compile") 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } && {
11338          test -z "$ac_c_werror_flag" ||
11339          test ! -s conftest.err
11340        } && test -s conftest.$ac_objext; then
11341   :
11342 else
11343   $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346         ac_cv_type_struct_sockaddr_in6=yes
11347 fi
11348
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 else
11351   $as_echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 fi
11359 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11360 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
11361 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
11362
11363 cat >>confdefs.h <<_ACEOF
11364 #define HAVE_STRUCT_SOCKADDR_IN6 1
11365 _ACEOF
11366
11367
11368 fi
11369 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
11370 $as_echo_n "checking for sa_family_t... " >&6; }
11371 if test "${ac_cv_type_sa_family_t+set}" = set; then
11372   $as_echo_n "(cached) " >&6
11373 else
11374   ac_cv_type_sa_family_t=no
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h.  */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h.  */
11381 #define _GNU_SOURCE
11382 #include <sys/types.h>
11383 #ifdef HAVE_NETINET_IN_H
11384 #include <netinet/in.h>
11385 #endif
11386 #ifdef HAVE_NETINET_IN6_H
11387 #include <netinet/in6.h>
11388 #endif
11389 #ifdef HAVE_SYS_SOCKET_H
11390 #include <sys/socket.h>
11391 #endif
11392 #ifdef HAVE_NETDB_H
11393 #include <netdb.h>
11394 #endif
11395 #ifdef WIN32
11396 #define WIN32_WINNT 0x400
11397 #define _WIN32_WINNT 0x400
11398 #define WIN32_LEAN_AND_MEAN
11399 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11400 #include <winsock.h>
11401 #else
11402 #include <winsock2.h>
11403 #include <ws2tcpip.h>
11404 #endif
11405 #endif
11406
11407
11408 int
11409 main ()
11410 {
11411 if (sizeof (sa_family_t))
11412        return 0;
11413   ;
11414   return 0;
11415 }
11416 _ACEOF
11417 rm -f conftest.$ac_objext
11418 if { (ac_try="$ac_compile"
11419 case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11424 $as_echo "$ac_try_echo") >&5
11425   (eval "$ac_compile") 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } && {
11432          test -z "$ac_c_werror_flag" ||
11433          test ! -s conftest.err
11434        } && test -s conftest.$ac_objext; then
11435   cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441 #define _GNU_SOURCE
11442 #include <sys/types.h>
11443 #ifdef HAVE_NETINET_IN_H
11444 #include <netinet/in.h>
11445 #endif
11446 #ifdef HAVE_NETINET_IN6_H
11447 #include <netinet/in6.h>
11448 #endif
11449 #ifdef HAVE_SYS_SOCKET_H
11450 #include <sys/socket.h>
11451 #endif
11452 #ifdef HAVE_NETDB_H
11453 #include <netdb.h>
11454 #endif
11455 #ifdef WIN32
11456 #define WIN32_WINNT 0x400
11457 #define _WIN32_WINNT 0x400
11458 #define WIN32_LEAN_AND_MEAN
11459 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11460 #include <winsock.h>
11461 #else
11462 #include <winsock2.h>
11463 #include <ws2tcpip.h>
11464 #endif
11465 #endif
11466
11467
11468 int
11469 main ()
11470 {
11471 if (sizeof ((sa_family_t)))
11472           return 0;
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481   *) ac_try_echo=$ac_try;;
11482 esac
11483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11484 $as_echo "$ac_try_echo") >&5
11485   (eval "$ac_compile") 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } && {
11492          test -z "$ac_c_werror_flag" ||
11493          test ! -s conftest.err
11494        } && test -s conftest.$ac_objext; then
11495   :
11496 else
11497   $as_echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500         ac_cv_type_sa_family_t=yes
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 else
11505   $as_echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508
11509 fi
11510
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 fi
11513 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
11514 $as_echo "$ac_cv_type_sa_family_t" >&6; }
11515 if test "x$ac_cv_type_sa_family_t" = x""yes; then
11516
11517 cat >>confdefs.h <<_ACEOF
11518 #define HAVE_SA_FAMILY_T 1
11519 _ACEOF
11520
11521
11522 fi
11523 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11524 $as_echo_n "checking for struct addrinfo... " >&6; }
11525 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11526   $as_echo_n "(cached) " >&6
11527 else
11528   ac_cv_type_struct_addrinfo=no
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535 #define _GNU_SOURCE
11536 #include <sys/types.h>
11537 #ifdef HAVE_NETINET_IN_H
11538 #include <netinet/in.h>
11539 #endif
11540 #ifdef HAVE_NETINET_IN6_H
11541 #include <netinet/in6.h>
11542 #endif
11543 #ifdef HAVE_SYS_SOCKET_H
11544 #include <sys/socket.h>
11545 #endif
11546 #ifdef HAVE_NETDB_H
11547 #include <netdb.h>
11548 #endif
11549 #ifdef WIN32
11550 #define WIN32_WINNT 0x400
11551 #define _WIN32_WINNT 0x400
11552 #define WIN32_LEAN_AND_MEAN
11553 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11554 #include <winsock.h>
11555 #else
11556 #include <winsock2.h>
11557 #include <ws2tcpip.h>
11558 #endif
11559 #endif
11560
11561
11562 int
11563 main ()
11564 {
11565 if (sizeof (struct addrinfo))
11566        return 0;
11567   ;
11568   return 0;
11569 }
11570 _ACEOF
11571 rm -f conftest.$ac_objext
11572 if { (ac_try="$ac_compile"
11573 case "(($ac_try" in
11574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575   *) ac_try_echo=$ac_try;;
11576 esac
11577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11578 $as_echo "$ac_try_echo") >&5
11579   (eval "$ac_compile") 2>conftest.er1
11580   ac_status=$?
11581   grep -v '^ *+' conftest.er1 >conftest.err
11582   rm -f conftest.er1
11583   cat conftest.err >&5
11584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); } && {
11586          test -z "$ac_c_werror_flag" ||
11587          test ! -s conftest.err
11588        } && test -s conftest.$ac_objext; then
11589   cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h.  */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h.  */
11595 #define _GNU_SOURCE
11596 #include <sys/types.h>
11597 #ifdef HAVE_NETINET_IN_H
11598 #include <netinet/in.h>
11599 #endif
11600 #ifdef HAVE_NETINET_IN6_H
11601 #include <netinet/in6.h>
11602 #endif
11603 #ifdef HAVE_SYS_SOCKET_H
11604 #include <sys/socket.h>
11605 #endif
11606 #ifdef HAVE_NETDB_H
11607 #include <netdb.h>
11608 #endif
11609 #ifdef WIN32
11610 #define WIN32_WINNT 0x400
11611 #define _WIN32_WINNT 0x400
11612 #define WIN32_LEAN_AND_MEAN
11613 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11614 #include <winsock.h>
11615 #else
11616 #include <winsock2.h>
11617 #include <ws2tcpip.h>
11618 #endif
11619 #endif
11620
11621
11622 int
11623 main ()
11624 {
11625 if (sizeof ((struct addrinfo)))
11626           return 0;
11627   ;
11628   return 0;
11629 }
11630 _ACEOF
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635   *) ac_try_echo=$ac_try;;
11636 esac
11637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11638 $as_echo "$ac_try_echo") >&5
11639   (eval "$ac_compile") 2>conftest.er1
11640   ac_status=$?
11641   grep -v '^ *+' conftest.er1 >conftest.err
11642   rm -f conftest.er1
11643   cat conftest.err >&5
11644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); } && {
11646          test -z "$ac_c_werror_flag" ||
11647          test ! -s conftest.err
11648        } && test -s conftest.$ac_objext; then
11649   :
11650 else
11651   $as_echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654         ac_cv_type_struct_addrinfo=yes
11655 fi
11656
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 else
11659   $as_echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662
11663 fi
11664
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 fi
11667 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11668 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
11669 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
11670
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_STRUCT_ADDRINFO 1
11673 _ACEOF
11674
11675
11676 fi
11677 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11678 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
11679 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11680   $as_echo_n "(cached) " >&6
11681 else
11682   ac_cv_type_struct_sockaddr_storage=no
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 #define _GNU_SOURCE
11690 #include <sys/types.h>
11691 #ifdef HAVE_NETINET_IN_H
11692 #include <netinet/in.h>
11693 #endif
11694 #ifdef HAVE_NETINET_IN6_H
11695 #include <netinet/in6.h>
11696 #endif
11697 #ifdef HAVE_SYS_SOCKET_H
11698 #include <sys/socket.h>
11699 #endif
11700 #ifdef HAVE_NETDB_H
11701 #include <netdb.h>
11702 #endif
11703 #ifdef WIN32
11704 #define WIN32_WINNT 0x400
11705 #define _WIN32_WINNT 0x400
11706 #define WIN32_LEAN_AND_MEAN
11707 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11708 #include <winsock.h>
11709 #else
11710 #include <winsock2.h>
11711 #include <ws2tcpip.h>
11712 #endif
11713 #endif
11714
11715
11716 int
11717 main ()
11718 {
11719 if (sizeof (struct sockaddr_storage))
11720        return 0;
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 rm -f conftest.$ac_objext
11726 if { (ac_try="$ac_compile"
11727 case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11732 $as_echo "$ac_try_echo") >&5
11733   (eval "$ac_compile") 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } && {
11740          test -z "$ac_c_werror_flag" ||
11741          test ! -s conftest.err
11742        } && test -s conftest.$ac_objext; then
11743   cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 #define _GNU_SOURCE
11750 #include <sys/types.h>
11751 #ifdef HAVE_NETINET_IN_H
11752 #include <netinet/in.h>
11753 #endif
11754 #ifdef HAVE_NETINET_IN6_H
11755 #include <netinet/in6.h>
11756 #endif
11757 #ifdef HAVE_SYS_SOCKET_H
11758 #include <sys/socket.h>
11759 #endif
11760 #ifdef HAVE_NETDB_H
11761 #include <netdb.h>
11762 #endif
11763 #ifdef WIN32
11764 #define WIN32_WINNT 0x400
11765 #define _WIN32_WINNT 0x400
11766 #define WIN32_LEAN_AND_MEAN
11767 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11768 #include <winsock.h>
11769 #else
11770 #include <winsock2.h>
11771 #include <ws2tcpip.h>
11772 #endif
11773 #endif
11774
11775
11776 int
11777 main ()
11778 {
11779 if (sizeof ((struct sockaddr_storage)))
11780           return 0;
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793   (eval "$ac_compile") 2>conftest.er1
11794   ac_status=$?
11795   grep -v '^ *+' conftest.er1 >conftest.err
11796   rm -f conftest.er1
11797   cat conftest.err >&5
11798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); } && {
11800          test -z "$ac_c_werror_flag" ||
11801          test ! -s conftest.err
11802        } && test -s conftest.$ac_objext; then
11803   :
11804 else
11805   $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808         ac_cv_type_struct_sockaddr_storage=yes
11809 fi
11810
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 else
11813   $as_echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816
11817 fi
11818
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 fi
11821 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11822 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
11823 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
11824
11825 cat >>confdefs.h <<_ACEOF
11826 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11827 _ACEOF
11828
11829
11830 fi
11831
11832 { $as_echo "$as_me:$LINENO: checking for struct in6_addr.s6_addr32" >&5
11833 $as_echo_n "checking for struct in6_addr.s6_addr32... " >&6; }
11834 if test "${ac_cv_member_struct_in6_addr_s6_addr32+set}" = set; then
11835   $as_echo_n "(cached) " >&6
11836 else
11837   cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843 #include <sys/types.h>
11844 #ifdef HAVE_NETINET_IN_H
11845 #include <netinet/in.h>
11846 #endif
11847 #ifdef HAVE_NETINET_IN6_H
11848 #include <netinet/in6.h>
11849 #endif
11850 #ifdef HAVE_SYS_SOCKET_H
11851 #include <sys/socket.h>
11852 #endif
11853 #ifdef WIN32
11854 #define WIN32_WINNT 0x400
11855 #define _WIN32_WINNT 0x400
11856 #define WIN32_LEAN_AND_MEAN
11857 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11858 #include <winsock.h>
11859 #else
11860 #include <winsock2.h>
11861 #include <ws2tcpip.h>
11862 #endif
11863 #endif
11864
11865
11866 int
11867 main ()
11868 {
11869 static struct in6_addr ac_aggr;
11870 if (ac_aggr.s6_addr32)
11871 return 0;
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext
11877 if { (ac_try="$ac_compile"
11878 case "(($ac_try" in
11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880   *) ac_try_echo=$ac_try;;
11881 esac
11882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11883 $as_echo "$ac_try_echo") >&5
11884   (eval "$ac_compile") 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } && {
11891          test -z "$ac_c_werror_flag" ||
11892          test ! -s conftest.err
11893        } && test -s conftest.$ac_objext; then
11894   ac_cv_member_struct_in6_addr_s6_addr32=yes
11895 else
11896   $as_echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899         cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905 #include <sys/types.h>
11906 #ifdef HAVE_NETINET_IN_H
11907 #include <netinet/in.h>
11908 #endif
11909 #ifdef HAVE_NETINET_IN6_H
11910 #include <netinet/in6.h>
11911 #endif
11912 #ifdef HAVE_SYS_SOCKET_H
11913 #include <sys/socket.h>
11914 #endif
11915 #ifdef WIN32
11916 #define WIN32_WINNT 0x400
11917 #define _WIN32_WINNT 0x400
11918 #define WIN32_LEAN_AND_MEAN
11919 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11920 #include <winsock.h>
11921 #else
11922 #include <winsock2.h>
11923 #include <ws2tcpip.h>
11924 #endif
11925 #endif
11926
11927
11928 int
11929 main ()
11930 {
11931 static struct in6_addr ac_aggr;
11932 if (sizeof ac_aggr.s6_addr32)
11933 return 0;
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext
11939 if { (ac_try="$ac_compile"
11940 case "(($ac_try" in
11941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942   *) ac_try_echo=$ac_try;;
11943 esac
11944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946   (eval "$ac_compile") 2>conftest.er1
11947   ac_status=$?
11948   grep -v '^ *+' conftest.er1 >conftest.err
11949   rm -f conftest.er1
11950   cat conftest.err >&5
11951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); } && {
11953          test -z "$ac_c_werror_flag" ||
11954          test ! -s conftest.err
11955        } && test -s conftest.$ac_objext; then
11956   ac_cv_member_struct_in6_addr_s6_addr32=yes
11957 else
11958   $as_echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961         ac_cv_member_struct_in6_addr_s6_addr32=no
11962 fi
11963
11964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11965 fi
11966
11967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 fi
11969 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_in6_addr_s6_addr32" >&5
11970 $as_echo "$ac_cv_member_struct_in6_addr_s6_addr32" >&6; }
11971 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = x""yes; then
11972
11973 cat >>confdefs.h <<_ACEOF
11974 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
11975 _ACEOF
11976
11977
11978 fi
11979 { $as_echo "$as_me:$LINENO: checking for struct in6_addr.s6_addr16" >&5
11980 $as_echo_n "checking for struct in6_addr.s6_addr16... " >&6; }
11981 if test "${ac_cv_member_struct_in6_addr_s6_addr16+set}" = set; then
11982   $as_echo_n "(cached) " >&6
11983 else
11984   cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 #include <sys/types.h>
11991 #ifdef HAVE_NETINET_IN_H
11992 #include <netinet/in.h>
11993 #endif
11994 #ifdef HAVE_NETINET_IN6_H
11995 #include <netinet/in6.h>
11996 #endif
11997 #ifdef HAVE_SYS_SOCKET_H
11998 #include <sys/socket.h>
11999 #endif
12000 #ifdef WIN32
12001 #define WIN32_WINNT 0x400
12002 #define _WIN32_WINNT 0x400
12003 #define WIN32_LEAN_AND_MEAN
12004 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12005 #include <winsock.h>
12006 #else
12007 #include <winsock2.h>
12008 #include <ws2tcpip.h>
12009 #endif
12010 #endif
12011
12012
12013 int
12014 main ()
12015 {
12016 static struct in6_addr ac_aggr;
12017 if (ac_aggr.s6_addr16)
12018 return 0;
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (ac_try="$ac_compile"
12025 case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12030 $as_echo "$ac_try_echo") >&5
12031   (eval "$ac_compile") 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } && {
12038          test -z "$ac_c_werror_flag" ||
12039          test ! -s conftest.err
12040        } && test -s conftest.$ac_objext; then
12041   ac_cv_member_struct_in6_addr_s6_addr16=yes
12042 else
12043   $as_echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046         cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 #include <sys/types.h>
12053 #ifdef HAVE_NETINET_IN_H
12054 #include <netinet/in.h>
12055 #endif
12056 #ifdef HAVE_NETINET_IN6_H
12057 #include <netinet/in6.h>
12058 #endif
12059 #ifdef HAVE_SYS_SOCKET_H
12060 #include <sys/socket.h>
12061 #endif
12062 #ifdef WIN32
12063 #define WIN32_WINNT 0x400
12064 #define _WIN32_WINNT 0x400
12065 #define WIN32_LEAN_AND_MEAN
12066 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12067 #include <winsock.h>
12068 #else
12069 #include <winsock2.h>
12070 #include <ws2tcpip.h>
12071 #endif
12072 #endif
12073
12074
12075 int
12076 main ()
12077 {
12078 static struct in6_addr ac_aggr;
12079 if (sizeof ac_aggr.s6_addr16)
12080 return 0;
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext
12086 if { (ac_try="$ac_compile"
12087 case "(($ac_try" in
12088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089   *) ac_try_echo=$ac_try;;
12090 esac
12091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12092 $as_echo "$ac_try_echo") >&5
12093   (eval "$ac_compile") 2>conftest.er1
12094   ac_status=$?
12095   grep -v '^ *+' conftest.er1 >conftest.err
12096   rm -f conftest.er1
12097   cat conftest.err >&5
12098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } && {
12100          test -z "$ac_c_werror_flag" ||
12101          test ! -s conftest.err
12102        } && test -s conftest.$ac_objext; then
12103   ac_cv_member_struct_in6_addr_s6_addr16=yes
12104 else
12105   $as_echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108         ac_cv_member_struct_in6_addr_s6_addr16=no
12109 fi
12110
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 fi
12113
12114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115 fi
12116 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_in6_addr_s6_addr16" >&5
12117 $as_echo "$ac_cv_member_struct_in6_addr_s6_addr16" >&6; }
12118 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = x""yes; then
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
12122 _ACEOF
12123
12124
12125 fi
12126 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
12127 $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
12128 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
12129   $as_echo_n "(cached) " >&6
12130 else
12131   cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h.  */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h.  */
12137 #include <sys/types.h>
12138 #ifdef HAVE_NETINET_IN_H
12139 #include <netinet/in.h>
12140 #endif
12141 #ifdef HAVE_NETINET_IN6_H
12142 #include <netinet/in6.h>
12143 #endif
12144 #ifdef HAVE_SYS_SOCKET_H
12145 #include <sys/socket.h>
12146 #endif
12147 #ifdef WIN32
12148 #define WIN32_WINNT 0x400
12149 #define _WIN32_WINNT 0x400
12150 #define WIN32_LEAN_AND_MEAN
12151 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12152 #include <winsock.h>
12153 #else
12154 #include <winsock2.h>
12155 #include <ws2tcpip.h>
12156 #endif
12157 #endif
12158
12159
12160 int
12161 main ()
12162 {
12163 static struct sockaddr_in ac_aggr;
12164 if (ac_aggr.sin_len)
12165 return 0;
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174   *) ac_try_echo=$ac_try;;
12175 esac
12176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12177 $as_echo "$ac_try_echo") >&5
12178   (eval "$ac_compile") 2>conftest.er1
12179   ac_status=$?
12180   grep -v '^ *+' conftest.er1 >conftest.err
12181   rm -f conftest.er1
12182   cat conftest.err >&5
12183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } && {
12185          test -z "$ac_c_werror_flag" ||
12186          test ! -s conftest.err
12187        } && test -s conftest.$ac_objext; then
12188   ac_cv_member_struct_sockaddr_in_sin_len=yes
12189 else
12190   $as_echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193         cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h.  */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h.  */
12199 #include <sys/types.h>
12200 #ifdef HAVE_NETINET_IN_H
12201 #include <netinet/in.h>
12202 #endif
12203 #ifdef HAVE_NETINET_IN6_H
12204 #include <netinet/in6.h>
12205 #endif
12206 #ifdef HAVE_SYS_SOCKET_H
12207 #include <sys/socket.h>
12208 #endif
12209 #ifdef WIN32
12210 #define WIN32_WINNT 0x400
12211 #define _WIN32_WINNT 0x400
12212 #define WIN32_LEAN_AND_MEAN
12213 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12214 #include <winsock.h>
12215 #else
12216 #include <winsock2.h>
12217 #include <ws2tcpip.h>
12218 #endif
12219 #endif
12220
12221
12222 int
12223 main ()
12224 {
12225 static struct sockaddr_in ac_aggr;
12226 if (sizeof ac_aggr.sin_len)
12227 return 0;
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236   *) ac_try_echo=$ac_try;;
12237 esac
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240   (eval "$ac_compile") 2>conftest.er1
12241   ac_status=$?
12242   grep -v '^ *+' conftest.er1 >conftest.err
12243   rm -f conftest.er1
12244   cat conftest.err >&5
12245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246   (exit $ac_status); } && {
12247          test -z "$ac_c_werror_flag" ||
12248          test ! -s conftest.err
12249        } && test -s conftest.$ac_objext; then
12250   ac_cv_member_struct_sockaddr_in_sin_len=yes
12251 else
12252   $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255         ac_cv_member_struct_sockaddr_in_sin_len=no
12256 fi
12257
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 fi
12260
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262 fi
12263 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
12264 $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
12265 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
12266
12267 cat >>confdefs.h <<_ACEOF
12268 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12269 _ACEOF
12270
12271
12272 fi
12273 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_len" >&5
12274 $as_echo_n "checking for struct sockaddr_in6.sin6_len... " >&6; }
12275 if test "${ac_cv_member_struct_sockaddr_in6_sin6_len+set}" = set; then
12276   $as_echo_n "(cached) " >&6
12277 else
12278   cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 #include <sys/types.h>
12285 #ifdef HAVE_NETINET_IN_H
12286 #include <netinet/in.h>
12287 #endif
12288 #ifdef HAVE_NETINET_IN6_H
12289 #include <netinet/in6.h>
12290 #endif
12291 #ifdef HAVE_SYS_SOCKET_H
12292 #include <sys/socket.h>
12293 #endif
12294 #ifdef WIN32
12295 #define WIN32_WINNT 0x400
12296 #define _WIN32_WINNT 0x400
12297 #define WIN32_LEAN_AND_MEAN
12298 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12299 #include <winsock.h>
12300 #else
12301 #include <winsock2.h>
12302 #include <ws2tcpip.h>
12303 #endif
12304 #endif
12305
12306
12307 int
12308 main ()
12309 {
12310 static struct sockaddr_in6 ac_aggr;
12311 if (ac_aggr.sin6_len)
12312 return 0;
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext
12318 if { (ac_try="$ac_compile"
12319 case "(($ac_try" in
12320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321   *) ac_try_echo=$ac_try;;
12322 esac
12323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12324 $as_echo "$ac_try_echo") >&5
12325   (eval "$ac_compile") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } && {
12332          test -z "$ac_c_werror_flag" ||
12333          test ! -s conftest.err
12334        } && test -s conftest.$ac_objext; then
12335   ac_cv_member_struct_sockaddr_in6_sin6_len=yes
12336 else
12337   $as_echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340         cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 #include <sys/types.h>
12347 #ifdef HAVE_NETINET_IN_H
12348 #include <netinet/in.h>
12349 #endif
12350 #ifdef HAVE_NETINET_IN6_H
12351 #include <netinet/in6.h>
12352 #endif
12353 #ifdef HAVE_SYS_SOCKET_H
12354 #include <sys/socket.h>
12355 #endif
12356 #ifdef WIN32
12357 #define WIN32_WINNT 0x400
12358 #define _WIN32_WINNT 0x400
12359 #define WIN32_LEAN_AND_MEAN
12360 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12361 #include <winsock.h>
12362 #else
12363 #include <winsock2.h>
12364 #include <ws2tcpip.h>
12365 #endif
12366 #endif
12367
12368
12369 int
12370 main ()
12371 {
12372 static struct sockaddr_in6 ac_aggr;
12373 if (sizeof ac_aggr.sin6_len)
12374 return 0;
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext
12380 if { (ac_try="$ac_compile"
12381 case "(($ac_try" in
12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383   *) ac_try_echo=$ac_try;;
12384 esac
12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386 $as_echo "$ac_try_echo") >&5
12387   (eval "$ac_compile") 2>conftest.er1
12388   ac_status=$?
12389   grep -v '^ *+' conftest.er1 >conftest.err
12390   rm -f conftest.er1
12391   cat conftest.err >&5
12392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } && {
12394          test -z "$ac_c_werror_flag" ||
12395          test ! -s conftest.err
12396        } && test -s conftest.$ac_objext; then
12397   ac_cv_member_struct_sockaddr_in6_sin6_len=yes
12398 else
12399   $as_echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402         ac_cv_member_struct_sockaddr_in6_sin6_len=no
12403 fi
12404
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 fi
12407
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_len" >&5
12411 $as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_len" >&6; }
12412 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = x""yes; then
12413
12414 cat >>confdefs.h <<_ACEOF
12415 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
12416 _ACEOF
12417
12418
12419 fi
12420 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
12421 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
12422 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
12423   $as_echo_n "(cached) " >&6
12424 else
12425   cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 #include <sys/types.h>
12432 #ifdef HAVE_NETINET_IN_H
12433 #include <netinet/in.h>
12434 #endif
12435 #ifdef HAVE_NETINET_IN6_H
12436 #include <netinet/in6.h>
12437 #endif
12438 #ifdef HAVE_SYS_SOCKET_H
12439 #include <sys/socket.h>
12440 #endif
12441 #ifdef WIN32
12442 #define WIN32_WINNT 0x400
12443 #define _WIN32_WINNT 0x400
12444 #define WIN32_LEAN_AND_MEAN
12445 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12446 #include <winsock.h>
12447 #else
12448 #include <winsock2.h>
12449 #include <ws2tcpip.h>
12450 #endif
12451 #endif
12452
12453
12454 int
12455 main ()
12456 {
12457 static struct sockaddr_storage ac_aggr;
12458 if (ac_aggr.ss_family)
12459 return 0;
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (ac_try="$ac_compile"
12466 case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471 $as_echo "$ac_try_echo") >&5
12472   (eval "$ac_compile") 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } && {
12479          test -z "$ac_c_werror_flag" ||
12480          test ! -s conftest.err
12481        } && test -s conftest.$ac_objext; then
12482   ac_cv_member_struct_sockaddr_storage_ss_family=yes
12483 else
12484   $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487         cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493 #include <sys/types.h>
12494 #ifdef HAVE_NETINET_IN_H
12495 #include <netinet/in.h>
12496 #endif
12497 #ifdef HAVE_NETINET_IN6_H
12498 #include <netinet/in6.h>
12499 #endif
12500 #ifdef HAVE_SYS_SOCKET_H
12501 #include <sys/socket.h>
12502 #endif
12503 #ifdef WIN32
12504 #define WIN32_WINNT 0x400
12505 #define _WIN32_WINNT 0x400
12506 #define WIN32_LEAN_AND_MEAN
12507 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12508 #include <winsock.h>
12509 #else
12510 #include <winsock2.h>
12511 #include <ws2tcpip.h>
12512 #endif
12513 #endif
12514
12515
12516 int
12517 main ()
12518 {
12519 static struct sockaddr_storage ac_aggr;
12520 if (sizeof ac_aggr.ss_family)
12521 return 0;
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (ac_try="$ac_compile"
12528 case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534   (eval "$ac_compile") 2>conftest.er1
12535   ac_status=$?
12536   grep -v '^ *+' conftest.er1 >conftest.err
12537   rm -f conftest.er1
12538   cat conftest.err >&5
12539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } && {
12541          test -z "$ac_c_werror_flag" ||
12542          test ! -s conftest.err
12543        } && test -s conftest.$ac_objext; then
12544   ac_cv_member_struct_sockaddr_storage_ss_family=yes
12545 else
12546   $as_echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549         ac_cv_member_struct_sockaddr_storage_ss_family=no
12550 fi
12551
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 fi
12554
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 fi
12557 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
12558 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
12559 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
12560
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12563 _ACEOF
12564
12565
12566 fi
12567 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
12568 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
12569 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
12570   $as_echo_n "(cached) " >&6
12571 else
12572   cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h.  */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h.  */
12578 #include <sys/types.h>
12579 #ifdef HAVE_NETINET_IN_H
12580 #include <netinet/in.h>
12581 #endif
12582 #ifdef HAVE_NETINET_IN6_H
12583 #include <netinet/in6.h>
12584 #endif
12585 #ifdef HAVE_SYS_SOCKET_H
12586 #include <sys/socket.h>
12587 #endif
12588 #ifdef WIN32
12589 #define WIN32_WINNT 0x400
12590 #define _WIN32_WINNT 0x400
12591 #define WIN32_LEAN_AND_MEAN
12592 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12593 #include <winsock.h>
12594 #else
12595 #include <winsock2.h>
12596 #include <ws2tcpip.h>
12597 #endif
12598 #endif
12599
12600
12601 int
12602 main ()
12603 {
12604 static struct sockaddr_storage ac_aggr;
12605 if (ac_aggr.__ss_family)
12606 return 0;
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (ac_try="$ac_compile"
12613 case "(($ac_try" in
12614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615   *) ac_try_echo=$ac_try;;
12616 esac
12617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12618 $as_echo "$ac_try_echo") >&5
12619   (eval "$ac_compile") 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } && {
12626          test -z "$ac_c_werror_flag" ||
12627          test ! -s conftest.err
12628        } && test -s conftest.$ac_objext; then
12629   ac_cv_member_struct_sockaddr_storage___ss_family=yes
12630 else
12631   $as_echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634         cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h.  */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h.  */
12640 #include <sys/types.h>
12641 #ifdef HAVE_NETINET_IN_H
12642 #include <netinet/in.h>
12643 #endif
12644 #ifdef HAVE_NETINET_IN6_H
12645 #include <netinet/in6.h>
12646 #endif
12647 #ifdef HAVE_SYS_SOCKET_H
12648 #include <sys/socket.h>
12649 #endif
12650 #ifdef WIN32
12651 #define WIN32_WINNT 0x400
12652 #define _WIN32_WINNT 0x400
12653 #define WIN32_LEAN_AND_MEAN
12654 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12655 #include <winsock.h>
12656 #else
12657 #include <winsock2.h>
12658 #include <ws2tcpip.h>
12659 #endif
12660 #endif
12661
12662
12663 int
12664 main ()
12665 {
12666 static struct sockaddr_storage ac_aggr;
12667 if (sizeof ac_aggr.__ss_family)
12668 return 0;
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680 $as_echo "$ac_try_echo") >&5
12681   (eval "$ac_compile") 2>conftest.er1
12682   ac_status=$?
12683   grep -v '^ *+' conftest.er1 >conftest.err
12684   rm -f conftest.er1
12685   cat conftest.err >&5
12686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } && {
12688          test -z "$ac_c_werror_flag" ||
12689          test ! -s conftest.err
12690        } && test -s conftest.$ac_objext; then
12691   ac_cv_member_struct_sockaddr_storage___ss_family=yes
12692 else
12693   $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696         ac_cv_member_struct_sockaddr_storage___ss_family=no
12697 fi
12698
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 fi
12701
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703 fi
12704 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12705 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
12706 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
12707
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12710 _ACEOF
12711
12712
12713 fi
12714
12715
12716 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
12717 $as_echo_n "checking for socklen_t... " >&6; }
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h.  */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h.  */
12724
12725  #include <sys/types.h>
12726  #include <sys/socket.h>
12727 int
12728 main ()
12729 {
12730 socklen_t x;
12731   ;
12732   return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext
12736 if { (ac_try="$ac_compile"
12737 case "(($ac_try" in
12738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739   *) ac_try_echo=$ac_try;;
12740 esac
12741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12742 $as_echo "$ac_try_echo") >&5
12743   (eval "$ac_compile") 2>conftest.er1
12744   ac_status=$?
12745   grep -v '^ *+' conftest.er1 >conftest.err
12746   rm -f conftest.er1
12747   cat conftest.err >&5
12748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); } && {
12750          test -z "$ac_c_werror_flag" ||
12751          test ! -s conftest.err
12752        } && test -s conftest.$ac_objext; then
12753   { $as_echo "$as_me:$LINENO: result: yes" >&5
12754 $as_echo "yes" >&6; }
12755 else
12756   $as_echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759         { $as_echo "$as_me:$LINENO: result: no" >&5
12760 $as_echo "no" >&6; }
12761
12762 cat >>confdefs.h <<\_ACEOF
12763 #define socklen_t unsigned int
12764 _ACEOF
12765
12766
12767 fi
12768
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770
12771 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
12772 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
12773 cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h.  */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h.  */
12779
12780 int
12781 main ()
12782 {
12783  const char *cp = __func__;
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12795 $as_echo "$ac_try_echo") >&5
12796   (eval "$ac_compile") 2>conftest.er1
12797   ac_status=$?
12798   grep -v '^ *+' conftest.er1 >conftest.err
12799   rm -f conftest.er1
12800   cat conftest.err >&5
12801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); } && {
12803          test -z "$ac_c_werror_flag" ||
12804          test ! -s conftest.err
12805        } && test -s conftest.$ac_objext; then
12806   { $as_echo "$as_me:$LINENO: result: yes" >&5
12807 $as_echo "yes" >&6; }
12808 else
12809   $as_echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812         { $as_echo "$as_me:$LINENO: result: no" >&5
12813 $as_echo "no" >&6; }
12814  { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
12815 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
12816  cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822
12823 int
12824 main ()
12825 {
12826  const char *cp = __FUNCTION__;
12827   ;
12828   return 0;
12829 }
12830 _ACEOF
12831 rm -f conftest.$ac_objext
12832 if { (ac_try="$ac_compile"
12833 case "(($ac_try" in
12834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835   *) ac_try_echo=$ac_try;;
12836 esac
12837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12838 $as_echo "$ac_try_echo") >&5
12839   (eval "$ac_compile") 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } && {
12846          test -z "$ac_c_werror_flag" ||
12847          test ! -s conftest.err
12848        } && test -s conftest.$ac_objext; then
12849   { $as_echo "$as_me:$LINENO: result: yes" >&5
12850 $as_echo "yes" >&6; }
12851
12852 cat >>confdefs.h <<\_ACEOF
12853 #define __func__ __FUNCTION__
12854 _ACEOF
12855
12856 else
12857   $as_echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860         { $as_echo "$as_me:$LINENO: result: no" >&5
12861 $as_echo "no" >&6; }
12862
12863 cat >>confdefs.h <<\_ACEOF
12864 #define __func__ __FILE__
12865 _ACEOF
12866
12867 fi
12868
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 fi
12871
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873
12874
12875 # check if we can compile with pthreads
12876 have_pthreads=no
12877 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
12878   ACX_PTHREAD(
12879         AC_DEFINE(HAVE_PTHREADS, 1,
12880                 [Define if we have pthreads on this system])
12881         have_pthreads=yes)
12882   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12883   # The cast to long int works around a bug in the HP C Compiler
12884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12886 # This bug is HP SR number 8606223364.
12887 { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
12888 $as_echo_n "checking size of pthread_t... " >&6; }
12889 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12890   $as_echo_n "(cached) " >&6
12891 else
12892   if test "$cross_compiling" = yes; then
12893   # Depending upon the size, compute the lo and hi bounds.
12894 cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900 $ac_includes_default
12901       #include <pthread.h>
12902
12903
12904 int
12905 main ()
12906 {
12907 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= 0)];
12908 test_array [0] = 0
12909
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 rm -f conftest.$ac_objext
12915 if { (ac_try="$ac_compile"
12916 case "(($ac_try" in
12917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918   *) ac_try_echo=$ac_try;;
12919 esac
12920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12921 $as_echo "$ac_try_echo") >&5
12922   (eval "$ac_compile") 2>conftest.er1
12923   ac_status=$?
12924   grep -v '^ *+' conftest.er1 >conftest.err
12925   rm -f conftest.er1
12926   cat conftest.err >&5
12927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); } && {
12929          test -z "$ac_c_werror_flag" ||
12930          test ! -s conftest.err
12931        } && test -s conftest.$ac_objext; then
12932   ac_lo=0 ac_mid=0
12933   while :; do
12934     cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h.  */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h.  */
12940 $ac_includes_default
12941       #include <pthread.h>
12942
12943
12944 int
12945 main ()
12946 {
12947 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
12948 test_array [0] = 0
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958   *) ac_try_echo=$ac_try;;
12959 esac
12960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962   (eval "$ac_compile") 2>conftest.er1
12963   ac_status=$?
12964   grep -v '^ *+' conftest.er1 >conftest.err
12965   rm -f conftest.er1
12966   cat conftest.err >&5
12967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); } && {
12969          test -z "$ac_c_werror_flag" ||
12970          test ! -s conftest.err
12971        } && test -s conftest.$ac_objext; then
12972   ac_hi=$ac_mid; break
12973 else
12974   $as_echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977         ac_lo=`expr $ac_mid + 1`
12978                         if test $ac_lo -le $ac_mid; then
12979                           ac_lo= ac_hi=
12980                           break
12981                         fi
12982                         ac_mid=`expr 2 '*' $ac_mid + 1`
12983 fi
12984
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12986   done
12987 else
12988   $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991         cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h.  */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h.  */
12997 $ac_includes_default
12998       #include <pthread.h>
12999
13000
13001 int
13002 main ()
13003 {
13004 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) < 0)];
13005 test_array [0] = 0
13006
13007   ;
13008   return 0;
13009 }
13010 _ACEOF
13011 rm -f conftest.$ac_objext
13012 if { (ac_try="$ac_compile"
13013 case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018 $as_echo "$ac_try_echo") >&5
13019   (eval "$ac_compile") 2>conftest.er1
13020   ac_status=$?
13021   grep -v '^ *+' conftest.er1 >conftest.err
13022   rm -f conftest.er1
13023   cat conftest.err >&5
13024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); } && {
13026          test -z "$ac_c_werror_flag" ||
13027          test ! -s conftest.err
13028        } && test -s conftest.$ac_objext; then
13029   ac_hi=-1 ac_mid=-1
13030   while :; do
13031     cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h.  */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h.  */
13037 $ac_includes_default
13038       #include <pthread.h>
13039
13040
13041 int
13042 main ()
13043 {
13044 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= $ac_mid)];
13045 test_array [0] = 0
13046
13047   ;
13048   return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (ac_try="$ac_compile"
13053 case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058 $as_echo "$ac_try_echo") >&5
13059   (eval "$ac_compile") 2>conftest.er1
13060   ac_status=$?
13061   grep -v '^ *+' conftest.er1 >conftest.err
13062   rm -f conftest.er1
13063   cat conftest.err >&5
13064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } && {
13066          test -z "$ac_c_werror_flag" ||
13067          test ! -s conftest.err
13068        } && test -s conftest.$ac_objext; then
13069   ac_lo=$ac_mid; break
13070 else
13071   $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074         ac_hi=`expr '(' $ac_mid ')' - 1`
13075                         if test $ac_mid -le $ac_hi; then
13076                           ac_lo= ac_hi=
13077                           break
13078                         fi
13079                         ac_mid=`expr 2 '*' $ac_mid`
13080 fi
13081
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083   done
13084 else
13085   $as_echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13087
13088         ac_lo= ac_hi=
13089 fi
13090
13091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13092 fi
13093
13094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095 # Binary search between lo and hi bounds.
13096 while test "x$ac_lo" != "x$ac_hi"; do
13097   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13098   cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104 $ac_includes_default
13105       #include <pthread.h>
13106
13107
13108 int
13109 main ()
13110 {
13111 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
13112 test_array [0] = 0
13113
13114   ;
13115   return 0;
13116 }
13117 _ACEOF
13118 rm -f conftest.$ac_objext
13119 if { (ac_try="$ac_compile"
13120 case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13125 $as_echo "$ac_try_echo") >&5
13126   (eval "$ac_compile") 2>conftest.er1
13127   ac_status=$?
13128   grep -v '^ *+' conftest.er1 >conftest.err
13129   rm -f conftest.er1
13130   cat conftest.err >&5
13131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); } && {
13133          test -z "$ac_c_werror_flag" ||
13134          test ! -s conftest.err
13135        } && test -s conftest.$ac_objext; then
13136   ac_hi=$ac_mid
13137 else
13138   $as_echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141         ac_lo=`expr '(' $ac_mid ')' + 1`
13142 fi
13143
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 done
13146 case $ac_lo in
13147 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
13148 '') if test "$ac_cv_type_pthread_t" = yes; then
13149      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13151 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
13152 See \`config.log' for more details." >&5
13153 $as_echo "$as_me: error: cannot compute sizeof (pthread_t)
13154 See \`config.log' for more details." >&2;}
13155    { (exit 77); exit 77; }; }; }
13156    else
13157      ac_cv_sizeof_pthread_t=0
13158    fi ;;
13159 esac
13160 else
13161   cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h.  */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h.  */
13167 $ac_includes_default
13168       #include <pthread.h>
13169
13170
13171 static long int longval () { return (long int) (sizeof (pthread_t)); }
13172 static unsigned long int ulongval () { return (long int) (sizeof (pthread_t)); }
13173 #include <stdio.h>
13174 #include <stdlib.h>
13175 int
13176 main ()
13177 {
13178
13179   FILE *f = fopen ("conftest.val", "w");
13180   if (! f)
13181     return 1;
13182   if (((long int) (sizeof (pthread_t))) < 0)
13183     {
13184       long int i = longval ();
13185       if (i != ((long int) (sizeof (pthread_t))))
13186         return 1;
13187       fprintf (f, "%ld", i);
13188     }
13189   else
13190     {
13191       unsigned long int i = ulongval ();
13192       if (i != ((long int) (sizeof (pthread_t))))
13193         return 1;
13194       fprintf (f, "%lu", i);
13195     }
13196   /* Do not output a trailing newline, as this causes \r\n confusion
13197      on some platforms.  */
13198   return ferror (f) || fclose (f) != 0;
13199
13200   ;
13201   return 0;
13202 }
13203 _ACEOF
13204 rm -f conftest$ac_exeext
13205 if { (ac_try="$ac_link"
13206 case "(($ac_try" in
13207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208   *) ac_try_echo=$ac_try;;
13209 esac
13210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13211 $as_echo "$ac_try_echo") >&5
13212   (eval "$ac_link") 2>&5
13213   ac_status=$?
13214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13216   { (case "(($ac_try" in
13217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218   *) ac_try_echo=$ac_try;;
13219 esac
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222   (eval "$ac_try") 2>&5
13223   ac_status=$?
13224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; }; then
13226   ac_cv_sizeof_pthread_t=`cat conftest.val`
13227 else
13228   $as_echo "$as_me: program exited with status $ac_status" >&5
13229 $as_echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ( exit $ac_status )
13233 if test "$ac_cv_type_pthread_t" = yes; then
13234      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13236 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
13237 See \`config.log' for more details." >&5
13238 $as_echo "$as_me: error: cannot compute sizeof (pthread_t)
13239 See \`config.log' for more details." >&2;}
13240    { (exit 77); exit 77; }; }; }
13241    else
13242      ac_cv_sizeof_pthread_t=0
13243    fi
13244 fi
13245 rm -rf conftest.dSYM
13246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13247 fi
13248 rm -f conftest.val
13249 fi
13250 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13251 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
13252
13253
13254
13255 cat >>confdefs.h <<_ACEOF
13256 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13257 _ACEOF
13258
13259
13260 fi
13261 AM_CONDITIONAL(PTHREADS, test "$have_pthreads" != "no" && test "$enable_thread_support" != "no")
13262
13263 # check if we should compile locking into the library
13264 if test x$enable_thread_support = xno; then
13265
13266 cat >>confdefs.h <<\_ACEOF
13267 #define DISABLE_THREAD_SUPPORT 1
13268 _ACEOF
13269
13270 fi
13271
13272 # check if we should hard-code the mm functions.
13273 if test x$enable_malloc_replacement = xno; then
13274
13275 cat >>confdefs.h <<\_ACEOF
13276 #define DISABLE_MM_REPLACEMENT 1
13277 _ACEOF
13278
13279 fi
13280
13281 # check if we should hard-code debugging out
13282 if test x$enable_debug_mode = xno; then
13283
13284 cat >>confdefs.h <<\_ACEOF
13285 #define DISABLE_DEBUG_MODE 1
13286 _ACEOF
13287
13288 fi
13289
13290 # check if we have and should use openssl
13291 AM_CONDITIONAL(OPENSSL, test "$enable_openssl" != "no" && test "$have_openssl" = "yes")
13292
13293 # Add some more warnings which we use in development but not in the
13294 # released versions.  (Some relevant gcc versions can't handle these.)
13295 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
13296
13297   cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303
13304 int
13305 main ()
13306 {
13307
13308 #if !defined(__GNUC__) || (__GNUC__ < 4)
13309 #error
13310 #endif
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13322 $as_echo "$ac_try_echo") >&5
13323   (eval "$ac_compile") 2>conftest.er1
13324   ac_status=$?
13325   grep -v '^ *+' conftest.er1 >conftest.err
13326   rm -f conftest.er1
13327   cat conftest.err >&5
13328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); } && {
13330          test -z "$ac_c_werror_flag" ||
13331          test ! -s conftest.err
13332        } && test -s conftest.$ac_objext; then
13333   have_gcc4=yes
13334 else
13335   $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338         have_gcc4=no
13339 fi
13340
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342
13343   cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350 int
13351 main ()
13352 {
13353
13354 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
13355 #error
13356 #endif
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13368 $as_echo "$ac_try_echo") >&5
13369   (eval "$ac_compile") 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } && {
13376          test -z "$ac_c_werror_flag" ||
13377          test ! -s conftest.err
13378        } && test -s conftest.$ac_objext; then
13379   have_gcc42=yes
13380 else
13381   $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384         have_gcc42=no
13385 fi
13386
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388
13389   cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395
13396 int
13397 main ()
13398 {
13399
13400 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
13401 #error
13402 #endif
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest.$ac_objext
13408 if { (ac_try="$ac_compile"
13409 case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13414 $as_echo "$ac_try_echo") >&5
13415   (eval "$ac_compile") 2>conftest.er1
13416   ac_status=$?
13417   grep -v '^ *+' conftest.er1 >conftest.err
13418   rm -f conftest.er1
13419   cat conftest.err >&5
13420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } && {
13422          test -z "$ac_c_werror_flag" ||
13423          test ! -s conftest.err
13424        } && test -s conftest.$ac_objext; then
13425   have_gcc45=yes
13426 else
13427   $as_echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430         have_gcc45=no
13431 fi
13432
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434
13435   cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h.  */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h.  */
13441
13442 int
13443 main ()
13444 {
13445
13446 #if !defined(__clang__)
13447 #error
13448 #endif
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457   *) ac_try_echo=$ac_try;;
13458 esac
13459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13460 $as_echo "$ac_try_echo") >&5
13461   (eval "$ac_compile") 2>conftest.er1
13462   ac_status=$?
13463   grep -v '^ *+' conftest.er1 >conftest.err
13464   rm -f conftest.er1
13465   cat conftest.err >&5
13466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } && {
13468          test -z "$ac_c_werror_flag" ||
13469          test ! -s conftest.err
13470        } && test -s conftest.$ac_objext; then
13471   have_clang=yes
13472 else
13473   $as_echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476         have_clang=no
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480
13481   cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487
13488 int
13489 main ()
13490 {
13491
13492 #if !defined(__clang__) || (__clang_major__ > 2) || (__clang_major__ == 2 && __clang_minor__ > 9)
13493 #error
13494 #endif
13495   ;
13496   return 0;
13497 }
13498 _ACEOF
13499 rm -f conftest.$ac_objext
13500 if { (ac_try="$ac_compile"
13501 case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507   (eval "$ac_compile") 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } && {
13514          test -z "$ac_c_werror_flag" ||
13515          test ! -s conftest.err
13516        } && test -s conftest.$ac_objext; then
13517   have_clang29orlower=yes
13518 else
13519   $as_echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522         have_clang29orlower=no
13523 fi
13524
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526
13527   CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
13528   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
13529
13530   if test x$have_gcc4 = xyes ; then
13531     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
13532     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
13533     #CFLAGS="$CFLAGS -Wold-style-definition"
13534   fi
13535
13536   if test x$have_gcc42 = xyes ; then
13537     # These warnings break gcc 4.0.2 and work on gcc 4.2
13538     CFLAGS="$CFLAGS -Waddress"
13539   fi
13540
13541   if test x$have_gcc42 = xyes && test x$have_clang29orlower = xno; then
13542     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
13543     # We only disable these for clang 2.9 and lower, in case they are
13544     # supported in later versions.
13545     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
13546   fi
13547
13548   if test x$have_gcc45 = xyes ; then
13549     # These warnings work on gcc 4.5
13550     CFLAGS="$CFLAGS -Wlogical-op"
13551   fi
13552
13553   if test x$have_clang = xyes; then
13554     # Disable the unused-function warnings, because these trigger
13555     # for minheap-internal.h related code.
13556     CFLAGS="$CFLAGS -Wno-unused-function"
13557   fi
13558
13559 ##This will break the world on some 64-bit architectures
13560 # CFLAGS="$CFLAGS -Winline"
13561
13562 fi
13563
13564 LIBEVENT_GC_SECTIONS=
13565 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
13566     { $as_echo "$as_me:$LINENO: checking if linker supports omitting unused code and data" >&5
13567 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
13568 if test "${libevent_cv_gc_sections_runs+set}" = set; then
13569   $as_echo_n "(cached) " >&6
13570 else
13571
13572                                                                                             origCFLAGS="$CFLAGS"
13573             CFLAGS="$CFLAGS -Wl,--gc-sections"
13574             cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580
13581                         #include <stdlib.h>
13582                         #include <stdio.h>
13583
13584 int
13585 main ()
13586 {
13587
13588                         FILE *  fpC;
13589                         char    buf[32];
13590                         size_t  cch;
13591                         int     read_success_once;
13592
13593                         fpC = fopen("conftest.c", "r");
13594                         if (NULL == fpC)
13595                                 exit(1);
13596                         do {
13597                                 cch = fread(buf, sizeof(buf), 1, fpC);
13598                                 read_success_once |= (0 != cch);
13599                         } while (0 != cch);
13600                         if (!read_success_once)
13601                                 exit(2);
13602                         if (!feof(fpC))
13603                                 exit(3);
13604                         if (0 != fclose(fpC))
13605                                 exit(4);
13606
13607                         exit(EXIT_SUCCESS);
13608
13609
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618   *) ac_try_echo=$ac_try;;
13619 esac
13620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13621 $as_echo "$ac_try_echo") >&5
13622   (eval "$ac_link") 2>conftest.er1
13623   ac_status=$?
13624   grep -v '^ *+' conftest.er1 >conftest.err
13625   rm -f conftest.er1
13626   cat conftest.err >&5
13627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } && {
13629          test -z "$ac_c_werror_flag" ||
13630          test ! -s conftest.err
13631        } && test -s conftest$ac_exeext && {
13632          test "$cross_compiling" = yes ||
13633          $as_test_x conftest$ac_exeext
13634        }; then
13635
13636                                                                             if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
13637                         libevent_cv_gc_sections_runs=no
13638                     else
13639                         libevent_cv_gc_sections_runs=no
13640                         ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
13641                     fi
13642
13643 else
13644   $as_echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13646
13647         libevent_cv_gc_sections_runs=no
13648
13649 fi
13650
13651 rm -rf conftest.dSYM
13652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13653       conftest$ac_exeext conftest.$ac_ext
13654             CFLAGS="$origCFLAGS"
13655             $as_unset origCFLAGS || test "${origCFLAGS+set}" != set || { origCFLAGS=; export origCFLAGS; }
13656
13657
13658 fi
13659 { $as_echo "$as_me:$LINENO: result: $libevent_cv_gc_sections_runs" >&5
13660 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
13661     case "$libevent_cv_gc_sections_runs" in
13662      yes)
13663         CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
13664         LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
13665         ;;
13666     esac
13667 fi
13668
13669
13670 AM_CONDITIONAL(INSTALL_LIBEVENT, test "$enable_libevent_install" = "yes")
13671
13672 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
13673
13674 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
13675
13676 cat >confcache <<\_ACEOF
13677 # This file is a shell script that caches the results of configure
13678 # tests run on this system so they can be shared between configure
13679 # scripts and configure runs, see configure's option --config-cache.
13680 # It is not useful on other systems.  If it contains results you don't
13681 # want to keep, you may remove or edit it.
13682 #
13683 # config.status only pays attention to the cache file if you give it
13684 # the --recheck option to rerun configure.
13685 #
13686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13688 # following values.
13689
13690 _ACEOF
13691
13692 # The following way of writing the cache mishandles newlines in values,
13693 # but we know of no workaround that is simple, portable, and efficient.
13694 # So, we kill variables containing newlines.
13695 # Ultrix sh set writes to stderr and can't be redirected directly,
13696 # and sets the high bit in the cache file unless we assign to the vars.
13697 (
13698   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13699     eval ac_val=\$$ac_var
13700     case $ac_val in #(
13701     *${as_nl}*)
13702       case $ac_var in #(
13703       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13705       esac
13706       case $ac_var in #(
13707       _ | IFS | as_nl) ;; #(
13708       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13709       *) $as_unset $ac_var ;;
13710       esac ;;
13711     esac
13712   done
13713
13714   (set) 2>&1 |
13715     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13716     *${as_nl}ac_space=\ *)
13717       # `set' does not quote correctly, so add quotes (double-quote
13718       # substitution turns \\\\ into \\, and sed turns \\ into \).
13719       sed -n \
13720         "s/'/'\\\\''/g;
13721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13722       ;; #(
13723     *)
13724       # `set' quotes correctly as required by POSIX, so do not add quotes.
13725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13726       ;;
13727     esac |
13728     sort
13729 ) |
13730   sed '
13731      /^ac_cv_env_/b end
13732      t clear
13733      :clear
13734      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13735      t end
13736      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13737      :end' >>confcache
13738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13739   if test -w "$cache_file"; then
13740     test "x$cache_file" != "x/dev/null" &&
13741       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13742 $as_echo "$as_me: updating cache $cache_file" >&6;}
13743     cat confcache >$cache_file
13744   else
13745     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13747   fi
13748 fi
13749 rm -f confcache
13750
13751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13752 # Let make expand exec_prefix.
13753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13754
13755 # Transform confdefs.h into DEFS.
13756 # Protect against shell expansion while executing Makefile rules.
13757 # Protect against Makefile macro expansion.
13758 #
13759 # If the first sed substitution is executed (which looks for macros that
13760 # take arguments), then branch to the quote section.  Otherwise,
13761 # look for a macro that doesn't take arguments.
13762 ac_script='
13763 :mline
13764 /\\$/{
13765  N
13766  s,\\\n,,
13767  b mline
13768 }
13769 t clear
13770 :clear
13771 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
13772 t quote
13773 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
13774 t quote
13775 b any
13776 :quote
13777 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13778 s/\[/\\&/g
13779 s/\]/\\&/g
13780 s/\$/$$/g
13781 H
13782 :any
13783 ${
13784         g
13785         s/^\n//
13786         s/\n/ /g
13787         p
13788 }
13789 '
13790 DEFS=`sed -n "$ac_script" confdefs.h`
13791
13792
13793 ac_libobjs=
13794 ac_ltlibobjs=
13795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13796   # 1. Remove the extension, and $U if already installed.
13797   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13798   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13799   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13800   #    will be set to the directory where LIBOBJS objects are built.
13801   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13802   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13803 done
13804 LIBOBJS=$ac_libobjs
13805
13806 LTLIBOBJS=$ac_ltlibobjs
13807
13808
13809
13810 : ${CONFIG_STATUS=./config.status}
13811 ac_write_fail=0
13812 ac_clean_files_save=$ac_clean_files
13813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13814 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13815 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13816 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13817 #! $SHELL
13818 # Generated by $as_me.
13819 # Run this file to recreate the current configuration.
13820 # Compiler output produced by configure, useful for debugging
13821 # configure, is in config.log if it exists.
13822
13823 debug=false
13824 ac_cs_recheck=false
13825 ac_cs_silent=false
13826 SHELL=\${CONFIG_SHELL-$SHELL}
13827 _ACEOF
13828
13829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13830 ## --------------------- ##
13831 ## M4sh Initialization.  ##
13832 ## --------------------- ##
13833
13834 # Be more Bourne compatible
13835 DUALCASE=1; export DUALCASE # for MKS sh
13836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13837   emulate sh
13838   NULLCMD=:
13839   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13840   # is contrary to our usage.  Disable this feature.
13841   alias -g '${1+"$@"}'='"$@"'
13842   setopt NO_GLOB_SUBST
13843 else
13844   case `(set -o) 2>/dev/null` in
13845   *posix*) set -o posix ;;
13846 esac
13847
13848 fi
13849
13850
13851
13852
13853 # PATH needs CR
13854 # Avoid depending upon Character Ranges.
13855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13858 as_cr_digits='0123456789'
13859 as_cr_alnum=$as_cr_Letters$as_cr_digits
13860
13861 as_nl='
13862 '
13863 export as_nl
13864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13868 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13869   as_echo='printf %s\n'
13870   as_echo_n='printf %s'
13871 else
13872   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13873     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13874     as_echo_n='/usr/ucb/echo -n'
13875   else
13876     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13877     as_echo_n_body='eval
13878       arg=$1;
13879       case $arg in
13880       *"$as_nl"*)
13881         expr "X$arg" : "X\\(.*\\)$as_nl";
13882         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13883       esac;
13884       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13885     '
13886     export as_echo_n_body
13887     as_echo_n='sh -c $as_echo_n_body as_echo'
13888   fi
13889   export as_echo_body
13890   as_echo='sh -c $as_echo_body as_echo'
13891 fi
13892
13893 # The user is always right.
13894 if test "${PATH_SEPARATOR+set}" != set; then
13895   PATH_SEPARATOR=:
13896   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13897     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13898       PATH_SEPARATOR=';'
13899   }
13900 fi
13901
13902 # Support unset when possible.
13903 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13904   as_unset=unset
13905 else
13906   as_unset=false
13907 fi
13908
13909
13910 # IFS
13911 # We need space, tab and new line, in precisely that order.  Quoting is
13912 # there to prevent editors from complaining about space-tab.
13913 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13914 # splitting by setting IFS to empty value.)
13915 IFS=" ""        $as_nl"
13916
13917 # Find who we are.  Look in the path if we contain no directory separator.
13918 case $0 in
13919   *[\\/]* ) as_myself=$0 ;;
13920   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13922 do
13923   IFS=$as_save_IFS
13924   test -z "$as_dir" && as_dir=.
13925   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13926 done
13927 IFS=$as_save_IFS
13928
13929      ;;
13930 esac
13931 # We did not find ourselves, most probably we were run as `sh COMMAND'
13932 # in which case we are not to be found in the path.
13933 if test "x$as_myself" = x; then
13934   as_myself=$0
13935 fi
13936 if test ! -f "$as_myself"; then
13937   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13938   { (exit 1); exit 1; }
13939 fi
13940
13941 # Work around bugs in pre-3.0 UWIN ksh.
13942 for as_var in ENV MAIL MAILPATH
13943 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13944 done
13945 PS1='$ '
13946 PS2='> '
13947 PS4='+ '
13948
13949 # NLS nuisances.
13950 LC_ALL=C
13951 export LC_ALL
13952 LANGUAGE=C
13953 export LANGUAGE
13954
13955 # Required to use basename.
13956 if expr a : '\(a\)' >/dev/null 2>&1 &&
13957    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13958   as_expr=expr
13959 else
13960   as_expr=false
13961 fi
13962
13963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13964   as_basename=basename
13965 else
13966   as_basename=false
13967 fi
13968
13969
13970 # Name of the executable.
13971 as_me=`$as_basename -- "$0" ||
13972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13973          X"$0" : 'X\(//\)$' \| \
13974          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13975 $as_echo X/"$0" |
13976     sed '/^.*\/\([^/][^/]*\)\/*$/{
13977             s//\1/
13978             q
13979           }
13980           /^X\/\(\/\/\)$/{
13981             s//\1/
13982             q
13983           }
13984           /^X\/\(\/\).*/{
13985             s//\1/
13986             q
13987           }
13988           s/.*/./; q'`
13989
13990 # CDPATH.
13991 $as_unset CDPATH
13992
13993
13994
13995   as_lineno_1=$LINENO
13996   as_lineno_2=$LINENO
13997   test "x$as_lineno_1" != "x$as_lineno_2" &&
13998   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13999
14000   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14001   # uniformly replaced by the line number.  The first 'sed' inserts a
14002   # line-number line after each line using $LINENO; the second 'sed'
14003   # does the real work.  The second script uses 'N' to pair each
14004   # line-number line with the line containing $LINENO, and appends
14005   # trailing '-' during substitution so that $LINENO is not a special
14006   # case at line end.
14007   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14008   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14009   # E. McMahon (1931-1989) for sed's syntax.  :-)
14010   sed -n '
14011     p
14012     /[$]LINENO/=
14013   ' <$as_myself |
14014     sed '
14015       s/[$]LINENO.*/&-/
14016       t lineno
14017       b
14018       :lineno
14019       N
14020       :loop
14021       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14022       t loop
14023       s/-\n.*//
14024     ' >$as_me.lineno &&
14025   chmod +x "$as_me.lineno" ||
14026     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14027    { (exit 1); exit 1; }; }
14028
14029   # Don't try to exec as it changes $[0], causing all sort of problems
14030   # (the dirname of $[0] is not the place where we might find the
14031   # original and so on.  Autoconf is especially sensitive to this).
14032   . "./$as_me.lineno"
14033   # Exit status is that of the last command.
14034   exit
14035 }
14036
14037
14038 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14039   as_dirname=dirname
14040 else
14041   as_dirname=false
14042 fi
14043
14044 ECHO_C= ECHO_N= ECHO_T=
14045 case `echo -n x` in
14046 -n*)
14047   case `echo 'x\c'` in
14048   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14049   *)   ECHO_C='\c';;
14050   esac;;
14051 *)
14052   ECHO_N='-n';;
14053 esac
14054 if expr a : '\(a\)' >/dev/null 2>&1 &&
14055    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14056   as_expr=expr
14057 else
14058   as_expr=false
14059 fi
14060
14061 rm -f conf$$ conf$$.exe conf$$.file
14062 if test -d conf$$.dir; then
14063   rm -f conf$$.dir/conf$$.file
14064 else
14065   rm -f conf$$.dir
14066   mkdir conf$$.dir 2>/dev/null
14067 fi
14068 if (echo >conf$$.file) 2>/dev/null; then
14069   if ln -s conf$$.file conf$$ 2>/dev/null; then
14070     as_ln_s='ln -s'
14071     # ... but there are two gotchas:
14072     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14073     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14074     # In both cases, we have to default to `cp -p'.
14075     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14076       as_ln_s='cp -p'
14077   elif ln conf$$.file conf$$ 2>/dev/null; then
14078     as_ln_s=ln
14079   else
14080     as_ln_s='cp -p'
14081   fi
14082 else
14083   as_ln_s='cp -p'
14084 fi
14085 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14086 rmdir conf$$.dir 2>/dev/null
14087
14088 if mkdir -p . 2>/dev/null; then
14089   as_mkdir_p=:
14090 else
14091   test -d ./-p && rmdir ./-p
14092   as_mkdir_p=false
14093 fi
14094
14095 if test -x / >/dev/null 2>&1; then
14096   as_test_x='test -x'
14097 else
14098   if ls -dL / >/dev/null 2>&1; then
14099     as_ls_L_option=L
14100   else
14101     as_ls_L_option=
14102   fi
14103   as_test_x='
14104     eval sh -c '\''
14105       if test -d "$1"; then
14106         test -d "$1/.";
14107       else
14108         case $1 in
14109         -*)set "./$1";;
14110         esac;
14111         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14112         ???[sx]*):;;*)false;;esac;fi
14113     '\'' sh
14114   '
14115 fi
14116 as_executable_p=$as_test_x
14117
14118 # Sed expression to map a string onto a valid CPP name.
14119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14120
14121 # Sed expression to map a string onto a valid variable name.
14122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14123
14124
14125 exec 6>&1
14126
14127 # Save the log message, to keep $[0] and so on meaningful, and to
14128 # report actual input values of CONFIG_FILES etc. instead of their
14129 # values after options handling.
14130 ac_log="
14131 This file was extended by $as_me, which was
14132 generated by GNU Autoconf 2.63.  Invocation command line was
14133
14134   CONFIG_FILES    = $CONFIG_FILES
14135   CONFIG_HEADERS  = $CONFIG_HEADERS
14136   CONFIG_LINKS    = $CONFIG_LINKS
14137   CONFIG_COMMANDS = $CONFIG_COMMANDS
14138   $ $0 $@
14139
14140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14141 "
14142
14143 _ACEOF
14144
14145 case $ac_config_files in *"
14146 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14147 esac
14148
14149
14150
14151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14152 # Files that config.status was made for.
14153 config_files="$ac_config_files"
14154
14155 _ACEOF
14156
14157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158 ac_cs_usage="\
14159 \`$as_me' instantiates files from templates according to the
14160 current configuration.
14161
14162 Usage: $0 [OPTION]... [FILE]...
14163
14164   -h, --help       print this help, then exit
14165   -V, --version    print version number and configuration settings, then exit
14166   -q, --quiet, --silent
14167                    do not print progress messages
14168   -d, --debug      don't remove temporary files
14169       --recheck    update $as_me by reconfiguring in the same conditions
14170       --file=FILE[:TEMPLATE]
14171                    instantiate the configuration file FILE
14172
14173 Configuration files:
14174 $config_files
14175
14176 Report bugs to <bug-autoconf@gnu.org>."
14177
14178 _ACEOF
14179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14180 ac_cs_version="\\
14181 config.status
14182 configured by $0, generated by GNU Autoconf 2.63,
14183   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14184
14185 Copyright (C) 2008 Free Software Foundation, Inc.
14186 This config.status script is free software; the Free Software Foundation
14187 gives unlimited permission to copy, distribute and modify it."
14188
14189 ac_pwd='$ac_pwd'
14190 srcdir='$srcdir'
14191 INSTALL='$INSTALL'
14192 MKDIR_P='$MKDIR_P'
14193 test -n "\$AWK" || AWK=awk
14194 _ACEOF
14195
14196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14197 # The default lists apply if the user does not specify any file.
14198 ac_need_defaults=:
14199 while test $# != 0
14200 do
14201   case $1 in
14202   --*=*)
14203     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14204     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14205     ac_shift=:
14206     ;;
14207   *)
14208     ac_option=$1
14209     ac_optarg=$2
14210     ac_shift=shift
14211     ;;
14212   esac
14213
14214   case $ac_option in
14215   # Handling of the options.
14216   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14217     ac_cs_recheck=: ;;
14218   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14219     $as_echo "$ac_cs_version"; exit ;;
14220   --debug | --debu | --deb | --de | --d | -d )
14221     debug=: ;;
14222   --file | --fil | --fi | --f )
14223     $ac_shift
14224     case $ac_optarg in
14225     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14226     esac
14227     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14228     ac_need_defaults=false;;
14229   --he | --h |  --help | --hel | -h )
14230     $as_echo "$ac_cs_usage"; exit ;;
14231   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14232   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14233     ac_cs_silent=: ;;
14234
14235   # This is an error.
14236   -*) { $as_echo "$as_me: error: unrecognized option: $1
14237 Try \`$0 --help' for more information." >&2
14238    { (exit 1); exit 1; }; } ;;
14239
14240   *) ac_config_targets="$ac_config_targets $1"
14241      ac_need_defaults=false ;;
14242
14243   esac
14244   shift
14245 done
14246
14247 ac_configure_extra_args=
14248
14249 if $ac_cs_silent; then
14250   exec 6>/dev/null
14251   ac_configure_extra_args="$ac_configure_extra_args --silent"
14252 fi
14253
14254 _ACEOF
14255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14256 if \$ac_cs_recheck; then
14257   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14258   shift
14259   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14260   CONFIG_SHELL='$SHELL'
14261   export CONFIG_SHELL
14262   exec "\$@"
14263 fi
14264
14265 _ACEOF
14266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14267 exec 5>>config.log
14268 {
14269   echo
14270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14271 ## Running $as_me. ##
14272 _ASBOX
14273   $as_echo "$ac_log"
14274 } >&5
14275
14276 _ACEOF
14277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14278 _ACEOF
14279
14280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14281
14282 # Handling of arguments.
14283 for ac_config_target in $ac_config_targets
14284 do
14285   case $ac_config_target in
14286     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
14287     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
14288     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
14289     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14290     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14291     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14292     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
14293
14294   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14295 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14296    { (exit 1); exit 1; }; };;
14297   esac
14298 done
14299
14300
14301 # If the user did not use the arguments to specify the items to instantiate,
14302 # then the envvar interface is used.  Set only those that are not.
14303 # We use the long form for the default assignment because of an extremely
14304 # bizarre bug on SunOS 4.1.3.
14305 if $ac_need_defaults; then
14306   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14307 fi
14308
14309 # Have a temporary directory for convenience.  Make it in the build tree
14310 # simply because there is no reason against having it here, and in addition,
14311 # creating and moving files from /tmp can sometimes cause problems.
14312 # Hook for its removal unless debugging.
14313 # Note that there is a small window in which the directory will not be cleaned:
14314 # after its creation but before its name has been assigned to `$tmp'.
14315 $debug ||
14316 {
14317   tmp=
14318   trap 'exit_status=$?
14319   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14320 ' 0
14321   trap '{ (exit 1); exit 1; }' 1 2 13 15
14322 }
14323 # Create a (secure) tmp directory for tmp files.
14324
14325 {
14326   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14327   test -n "$tmp" && test -d "$tmp"
14328 }  ||
14329 {
14330   tmp=./conf$$-$RANDOM
14331   (umask 077 && mkdir "$tmp")
14332 } ||
14333 {
14334    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14335    { (exit 1); exit 1; }
14336 }
14337
14338 # Set up the scripts for CONFIG_FILES section.
14339 # No need to generate them if there are no CONFIG_FILES.
14340 # This happens for instance with `./config.status config.h'.
14341 if test -n "$CONFIG_FILES"; then
14342
14343
14344 ac_cr='\r'
14345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14347   ac_cs_awk_cr='\\r'
14348 else
14349   ac_cs_awk_cr=$ac_cr
14350 fi
14351
14352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14353 _ACEOF
14354
14355
14356 {
14357   echo "cat >conf$$subs.awk <<_ACEOF" &&
14358   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14359   echo "_ACEOF"
14360 } >conf$$subs.sh ||
14361   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14362 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14363    { (exit 1); exit 1; }; }
14364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14365 ac_delim='%!_!# '
14366 for ac_last_try in false false false false false :; do
14367   . ./conf$$subs.sh ||
14368     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14369 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14370    { (exit 1); exit 1; }; }
14371
14372   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14373   if test $ac_delim_n = $ac_delim_num; then
14374     break
14375   elif $ac_last_try; then
14376     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14377 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14378    { (exit 1); exit 1; }; }
14379   else
14380     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14381   fi
14382 done
14383 rm -f conf$$subs.sh
14384
14385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14386 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14387 _ACEOF
14388 sed -n '
14389 h
14390 s/^/S["/; s/!.*/"]=/
14391 p
14392 g
14393 s/^[^!]*!//
14394 :repl
14395 t repl
14396 s/'"$ac_delim"'$//
14397 t delim
14398 :nl
14399 h
14400 s/\(.\{148\}\).*/\1/
14401 t more1
14402 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14403 p
14404 n
14405 b repl
14406 :more1
14407 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14408 p
14409 g
14410 s/.\{148\}//
14411 t nl
14412 :delim
14413 h
14414 s/\(.\{148\}\).*/\1/
14415 t more2
14416 s/["\\]/\\&/g; s/^/"/; s/$/"/
14417 p
14418 b
14419 :more2
14420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14421 p
14422 g
14423 s/.\{148\}//
14424 t delim
14425 ' <conf$$subs.awk | sed '
14426 /^[^""]/{
14427   N
14428   s/\n//
14429 }
14430 ' >>$CONFIG_STATUS || ac_write_fail=1
14431 rm -f conf$$subs.awk
14432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14433 _ACAWK
14434 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14435   for (key in S) S_is_set[key] = 1
14436   FS = "\a"
14437
14438 }
14439 {
14440   line = $ 0
14441   nfields = split(line, field, "@")
14442   substed = 0
14443   len = length(field[1])
14444   for (i = 2; i < nfields; i++) {
14445     key = field[i]
14446     keylen = length(key)
14447     if (S_is_set[key]) {
14448       value = S[key]
14449       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14450       len += length(value) + length(field[++i])
14451       substed = 1
14452     } else
14453       len += 1 + keylen
14454   }
14455
14456   print line
14457 }
14458
14459 _ACAWK
14460 _ACEOF
14461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14463   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14464 else
14465   cat
14466 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14467   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14468 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14469    { (exit 1); exit 1; }; }
14470 _ACEOF
14471
14472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14474 # trailing colons and then remove the whole line if VPATH becomes empty
14475 # (actually we leave an empty line to preserve line numbers).
14476 if test "x$srcdir" = x.; then
14477   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14478 s/:*\$(srcdir):*/:/
14479 s/:*\${srcdir}:*/:/
14480 s/:*@srcdir@:*/:/
14481 s/^\([^=]*=[     ]*\):*/\1/
14482 s/:*$//
14483 s/^[^=]*=[       ]*$//
14484 }'
14485 fi
14486
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488 fi # test -n "$CONFIG_FILES"
14489
14490
14491 eval set X "  :F $CONFIG_FILES      "
14492 shift
14493 for ac_tag
14494 do
14495   case $ac_tag in
14496   :[FHLC]) ac_mode=$ac_tag; continue;;
14497   esac
14498   case $ac_mode$ac_tag in
14499   :[FHL]*:*);;
14500   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14501 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14502    { (exit 1); exit 1; }; };;
14503   :[FH]-) ac_tag=-:-;;
14504   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14505   esac
14506   ac_save_IFS=$IFS
14507   IFS=:
14508   set x $ac_tag
14509   IFS=$ac_save_IFS
14510   shift
14511   ac_file=$1
14512   shift
14513
14514   case $ac_mode in
14515   :L) ac_source=$1;;
14516   :[FH])
14517     ac_file_inputs=
14518     for ac_f
14519     do
14520       case $ac_f in
14521       -) ac_f="$tmp/stdin";;
14522       *) # Look for the file first in the build tree, then in the source tree
14523          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14524          # because $ac_f cannot contain `:'.
14525          test -f "$ac_f" ||
14526            case $ac_f in
14527            [\\/$]*) false;;
14528            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14529            esac ||
14530            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14531 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14532    { (exit 1); exit 1; }; };;
14533       esac
14534       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14535       ac_file_inputs="$ac_file_inputs '$ac_f'"
14536     done
14537
14538     # Let's still pretend it is `configure' which instantiates (i.e., don't
14539     # use $as_me), people would be surprised to read:
14540     #    /* config.h.  Generated by config.status.  */
14541     configure_input='Generated from '`
14542           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14543         `' by configure.'
14544     if test x"$ac_file" != x-; then
14545       configure_input="$ac_file.  $configure_input"
14546       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14547 $as_echo "$as_me: creating $ac_file" >&6;}
14548     fi
14549     # Neutralize special characters interpreted by sed in replacement strings.
14550     case $configure_input in #(
14551     *\&* | *\|* | *\\* )
14552        ac_sed_conf_input=`$as_echo "$configure_input" |
14553        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14554     *) ac_sed_conf_input=$configure_input;;
14555     esac
14556
14557     case $ac_tag in
14558     *:-:* | *:-) cat >"$tmp/stdin" \
14559       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14560 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14561    { (exit 1); exit 1; }; } ;;
14562     esac
14563     ;;
14564   esac
14565
14566   ac_dir=`$as_dirname -- "$ac_file" ||
14567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568          X"$ac_file" : 'X\(//\)[^/]' \| \
14569          X"$ac_file" : 'X\(//\)$' \| \
14570          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14571 $as_echo X"$ac_file" |
14572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14573             s//\1/
14574             q
14575           }
14576           /^X\(\/\/\)[^/].*/{
14577             s//\1/
14578             q
14579           }
14580           /^X\(\/\/\)$/{
14581             s//\1/
14582             q
14583           }
14584           /^X\(\/\).*/{
14585             s//\1/
14586             q
14587           }
14588           s/.*/./; q'`
14589   { as_dir="$ac_dir"
14590   case $as_dir in #(
14591   -*) as_dir=./$as_dir;;
14592   esac
14593   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14594     as_dirs=
14595     while :; do
14596       case $as_dir in #(
14597       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14598       *) as_qdir=$as_dir;;
14599       esac
14600       as_dirs="'$as_qdir' $as_dirs"
14601       as_dir=`$as_dirname -- "$as_dir" ||
14602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603          X"$as_dir" : 'X\(//\)[^/]' \| \
14604          X"$as_dir" : 'X\(//\)$' \| \
14605          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14606 $as_echo X"$as_dir" |
14607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14608             s//\1/
14609             q
14610           }
14611           /^X\(\/\/\)[^/].*/{
14612             s//\1/
14613             q
14614           }
14615           /^X\(\/\/\)$/{
14616             s//\1/
14617             q
14618           }
14619           /^X\(\/\).*/{
14620             s//\1/
14621             q
14622           }
14623           s/.*/./; q'`
14624       test -d "$as_dir" && break
14625     done
14626     test -z "$as_dirs" || eval "mkdir $as_dirs"
14627   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14628 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14629    { (exit 1); exit 1; }; }; }
14630   ac_builddir=.
14631
14632 case "$ac_dir" in
14633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14634 *)
14635   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14636   # A ".." for each directory in $ac_dir_suffix.
14637   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14638   case $ac_top_builddir_sub in
14639   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14640   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14641   esac ;;
14642 esac
14643 ac_abs_top_builddir=$ac_pwd
14644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14645 # for backward compatibility:
14646 ac_top_builddir=$ac_top_build_prefix
14647
14648 case $srcdir in
14649   .)  # We are building in place.
14650     ac_srcdir=.
14651     ac_top_srcdir=$ac_top_builddir_sub
14652     ac_abs_top_srcdir=$ac_pwd ;;
14653   [\\/]* | ?:[\\/]* )  # Absolute name.
14654     ac_srcdir=$srcdir$ac_dir_suffix;
14655     ac_top_srcdir=$srcdir
14656     ac_abs_top_srcdir=$srcdir ;;
14657   *) # Relative name.
14658     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14659     ac_top_srcdir=$ac_top_build_prefix$srcdir
14660     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14661 esac
14662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14663
14664
14665   case $ac_mode in
14666   :F)
14667   #
14668   # CONFIG_FILE
14669   #
14670
14671   case $INSTALL in
14672   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14673   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14674   esac
14675   ac_MKDIR_P=$MKDIR_P
14676   case $MKDIR_P in
14677   [\\/$]* | ?:[\\/]* ) ;;
14678   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14679   esac
14680 _ACEOF
14681
14682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14683 # If the template does not know about datarootdir, expand it.
14684 # FIXME: This hack should be removed a few years after 2.60.
14685 ac_datarootdir_hack=; ac_datarootdir_seen=
14686
14687 ac_sed_dataroot='
14688 /datarootdir/ {
14689   p
14690   q
14691 }
14692 /@datadir@/p
14693 /@docdir@/p
14694 /@infodir@/p
14695 /@localedir@/p
14696 /@mandir@/p
14697 '
14698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14699 *datarootdir*) ac_datarootdir_seen=yes;;
14700 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14701   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14703 _ACEOF
14704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14705   ac_datarootdir_hack='
14706   s&@datadir@&$datadir&g
14707   s&@docdir@&$docdir&g
14708   s&@infodir@&$infodir&g
14709   s&@localedir@&$localedir&g
14710   s&@mandir@&$mandir&g
14711     s&\\\${datarootdir}&$datarootdir&g' ;;
14712 esac
14713 _ACEOF
14714
14715 # Neutralize VPATH when `$srcdir' = `.'.
14716 # Shell code in configure.ac might set extrasub.
14717 # FIXME: do we really want to maintain this feature?
14718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14719 ac_sed_extra="$ac_vpsub
14720 $extrasub
14721 _ACEOF
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723 :t
14724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14725 s|@configure_input@|$ac_sed_conf_input|;t t
14726 s&@top_builddir@&$ac_top_builddir_sub&;t t
14727 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14728 s&@srcdir@&$ac_srcdir&;t t
14729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14730 s&@top_srcdir@&$ac_top_srcdir&;t t
14731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14732 s&@builddir@&$ac_builddir&;t t
14733 s&@abs_builddir@&$ac_abs_builddir&;t t
14734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14735 s&@INSTALL@&$ac_INSTALL&;t t
14736 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14737 $ac_datarootdir_hack
14738 "
14739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14740   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14741 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14742    { (exit 1); exit 1; }; }
14743
14744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14745   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14746   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14747   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14748 which seems to be undefined.  Please make sure it is defined." >&5
14749 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14750 which seems to be undefined.  Please make sure it is defined." >&2;}
14751
14752   rm -f "$tmp/stdin"
14753   case $ac_file in
14754   -) cat "$tmp/out" && rm -f "$tmp/out";;
14755   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14756   esac \
14757   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14758 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14759    { (exit 1); exit 1; }; }
14760  ;;
14761
14762
14763
14764   esac
14765
14766 done # for ac_tag
14767
14768
14769 { (exit 0); exit 0; }
14770 _ACEOF
14771 chmod +x $CONFIG_STATUS
14772 ac_clean_files=$ac_clean_files_save
14773
14774 test $ac_write_fail = 0 ||
14775   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14776 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14777    { (exit 1); exit 1; }; }
14778
14779
14780 # configure is writing to config.log, and then calls config.status.
14781 # config.status does its own redirection, appending to config.log.
14782 # Unfortunately, on DOS this fails, as config.log is still kept open
14783 # by configure, so config.status won't be able to write to it; its
14784 # output is simply discarded.  So we exec the FD to /dev/null,
14785 # effectively closing config.log, so it can be properly (re)opened and
14786 # appended to by config.status.  When coming back to configure, we
14787 # need to make the FD available again.
14788 if test "$no_create" != yes; then
14789   ac_cs_success=:
14790   ac_config_status_args=
14791   test "$silent" = yes &&
14792     ac_config_status_args="$ac_config_status_args --quiet"
14793   exec 5>/dev/null
14794   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14795   exec 5>>config.log
14796   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14797   # would make configure fail if this is the last instruction.
14798   $ac_cs_success || { (exit 1); exit 1; }
14799 fi
14800 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14801   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14802 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14803 fi
14804