ircu2.10.12 pk910 fork
[ircu2.10.12-pk.git] / autom4te.cache / output.1
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
4 @%:@ 
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359     
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIB@&t@OBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="ircd/ircd.c"
580 ac_default_prefix=$HOME
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CPP
670 GREP
671 EGREP
672 AWK
673 SET_MAKE
674 INSTALL_PROGRAM
675 INSTALL_SCRIPT
676 INSTALL_DATA
677 LN_S
678 RMPROG
679 SHPROG
680 LEX
681 LEX_OUTPUT_ROOT
682 LEXLIB
683 YACC
684 YFLAGS
685 ENGINE_C
686 INSTALL_RULE
687 SYMLINK
688 IRCDMODE
689 IRCDOWN
690 IRCDGRP
691 DPATH
692 LIB@&t@OBJS
693 LTLIBOBJS'
694 ac_subst_files=''
695       ac_precious_vars='build_alias
696 host_alias
697 target_alias
698 CC
699 CFLAGS
700 LDFLAGS
701 LIBS
702 CPPFLAGS
703 CPP
704 YACC
705 YFLAGS'
706
707
708 # Initialize some variables set by options.
709 ac_init_help=
710 ac_init_version=false
711 # The variables have the same names as the options, with
712 # dashes changed to underlines.
713 cache_file=/dev/null
714 exec_prefix=NONE
715 no_create=
716 no_recursion=
717 prefix=NONE
718 program_prefix=NONE
719 program_suffix=NONE
720 program_transform_name=s,x,x,
721 silent=
722 site=
723 srcdir=
724 verbose=
725 x_includes=NONE
726 x_libraries=NONE
727
728 # Installation directory options.
729 # These are left unexpanded so users can "make install exec_prefix=/foo"
730 # and all the variables that are supposed to be based on exec_prefix
731 # by default will actually change.
732 # Use braces instead of parens because sh, perl, etc. also accept them.
733 # (The list follows the same order as the GNU Coding Standards.)
734 bindir='${exec_prefix}/bin'
735 sbindir='${exec_prefix}/sbin'
736 libexecdir='${exec_prefix}/libexec'
737 datarootdir='${prefix}/share'
738 datadir='${datarootdir}'
739 sysconfdir='${prefix}/etc'
740 sharedstatedir='${prefix}/com'
741 localstatedir='${prefix}/var'
742 includedir='${prefix}/include'
743 oldincludedir='/usr/include'
744 docdir='${datarootdir}/doc/${PACKAGE}'
745 infodir='${datarootdir}/info'
746 htmldir='${docdir}'
747 dvidir='${docdir}'
748 pdfdir='${docdir}'
749 psdir='${docdir}'
750 libdir='${exec_prefix}/lib'
751 localedir='${datarootdir}/locale'
752 mandir='${datarootdir}/man'
753
754 ac_prev=
755 ac_dashdash=
756 for ac_option
757 do
758   # If the previous option needs an argument, assign it.
759   if test -n "$ac_prev"; then
760     eval $ac_prev=\$ac_option
761     ac_prev=
762     continue
763   fi
764
765   case $ac_option in
766   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
767   *)    ac_optarg=yes ;;
768   esac
769
770   # Accept the important Cygnus configure options, so we can diagnose typos.
771
772   case $ac_dashdash$ac_option in
773   --)
774     ac_dashdash=yes ;;
775
776   -bindir | --bindir | --bindi | --bind | --bin | --bi)
777     ac_prev=bindir ;;
778   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
779     bindir=$ac_optarg ;;
780
781   -build | --build | --buil | --bui | --bu)
782     ac_prev=build_alias ;;
783   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784     build_alias=$ac_optarg ;;
785
786   -cache-file | --cache-file | --cache-fil | --cache-fi \
787   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788     ac_prev=cache_file ;;
789   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791     cache_file=$ac_optarg ;;
792
793   --config-cache | -C)
794     cache_file=config.cache ;;
795
796   -datadir | --datadir | --datadi | --datad)
797     ac_prev=datadir ;;
798   -datadir=* | --datadir=* | --datadi=* | --datad=*)
799     datadir=$ac_optarg ;;
800
801   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802   | --dataroo | --dataro | --datar)
803     ac_prev=datarootdir ;;
804   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806     datarootdir=$ac_optarg ;;
807
808   -disable-* | --disable-*)
809     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810     # Reject names that are not valid shell variable names.
811     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
813    { (exit 1); exit 1; }; }
814     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
815     eval enable_$ac_feature=no ;;
816
817   -docdir | --docdir | --docdi | --doc | --do)
818     ac_prev=docdir ;;
819   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820     docdir=$ac_optarg ;;
821
822   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823     ac_prev=dvidir ;;
824   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825     dvidir=$ac_optarg ;;
826
827   -enable-* | --enable-*)
828     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829     # Reject names that are not valid shell variable names.
830     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832    { (exit 1); exit 1; }; }
833     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834     eval enable_$ac_feature=\$ac_optarg ;;
835
836   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838   | --exec | --exe | --ex)
839     ac_prev=exec_prefix ;;
840   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842   | --exec=* | --exe=* | --ex=*)
843     exec_prefix=$ac_optarg ;;
844
845   -gas | --gas | --ga | --g)
846     # Obsolete; use --with-gas.
847     with_gas=yes ;;
848
849   -help | --help | --hel | --he | -h)
850     ac_init_help=long ;;
851   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852     ac_init_help=recursive ;;
853   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854     ac_init_help=short ;;
855
856   -host | --host | --hos | --ho)
857     ac_prev=host_alias ;;
858   -host=* | --host=* | --hos=* | --ho=*)
859     host_alias=$ac_optarg ;;
860
861   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
862     ac_prev=htmldir ;;
863   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
864   | --ht=*)
865     htmldir=$ac_optarg ;;
866
867   -includedir | --includedir | --includedi | --included | --include \
868   | --includ | --inclu | --incl | --inc)
869     ac_prev=includedir ;;
870   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871   | --includ=* | --inclu=* | --incl=* | --inc=*)
872     includedir=$ac_optarg ;;
873
874   -infodir | --infodir | --infodi | --infod | --info | --inf)
875     ac_prev=infodir ;;
876   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877     infodir=$ac_optarg ;;
878
879   -libdir | --libdir | --libdi | --libd)
880     ac_prev=libdir ;;
881   -libdir=* | --libdir=* | --libdi=* | --libd=*)
882     libdir=$ac_optarg ;;
883
884   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885   | --libexe | --libex | --libe)
886     ac_prev=libexecdir ;;
887   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888   | --libexe=* | --libex=* | --libe=*)
889     libexecdir=$ac_optarg ;;
890
891   -localedir | --localedir | --localedi | --localed | --locale)
892     ac_prev=localedir ;;
893   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894     localedir=$ac_optarg ;;
895
896   -localstatedir | --localstatedir | --localstatedi | --localstated \
897   | --localstate | --localstat | --localsta | --localst | --locals)
898     ac_prev=localstatedir ;;
899   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901     localstatedir=$ac_optarg ;;
902
903   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
904     ac_prev=mandir ;;
905   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
906     mandir=$ac_optarg ;;
907
908   -nfp | --nfp | --nf)
909     # Obsolete; use --without-fp.
910     with_fp=no ;;
911
912   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913   | --no-cr | --no-c | -n)
914     no_create=yes ;;
915
916   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
918     no_recursion=yes ;;
919
920   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922   | --oldin | --oldi | --old | --ol | --o)
923     ac_prev=oldincludedir ;;
924   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927     oldincludedir=$ac_optarg ;;
928
929   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
930     ac_prev=prefix ;;
931   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
932     prefix=$ac_optarg ;;
933
934   -program-prefix | --program-prefix | --program-prefi | --program-pref \
935   | --program-pre | --program-pr | --program-p)
936     ac_prev=program_prefix ;;
937   -program-prefix=* | --program-prefix=* | --program-prefi=* \
938   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939     program_prefix=$ac_optarg ;;
940
941   -program-suffix | --program-suffix | --program-suffi | --program-suff \
942   | --program-suf | --program-su | --program-s)
943     ac_prev=program_suffix ;;
944   -program-suffix=* | --program-suffix=* | --program-suffi=* \
945   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946     program_suffix=$ac_optarg ;;
947
948   -program-transform-name | --program-transform-name \
949   | --program-transform-nam | --program-transform-na \
950   | --program-transform-n | --program-transform- \
951   | --program-transform | --program-transfor \
952   | --program-transfo | --program-transf \
953   | --program-trans | --program-tran \
954   | --progr-tra | --program-tr | --program-t)
955     ac_prev=program_transform_name ;;
956   -program-transform-name=* | --program-transform-name=* \
957   | --program-transform-nam=* | --program-transform-na=* \
958   | --program-transform-n=* | --program-transform-=* \
959   | --program-transform=* | --program-transfor=* \
960   | --program-transfo=* | --program-transf=* \
961   | --program-trans=* | --program-tran=* \
962   | --progr-tra=* | --program-tr=* | --program-t=*)
963     program_transform_name=$ac_optarg ;;
964
965   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
966     ac_prev=pdfdir ;;
967   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
968     pdfdir=$ac_optarg ;;
969
970   -psdir | --psdir | --psdi | --psd | --ps)
971     ac_prev=psdir ;;
972   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
973     psdir=$ac_optarg ;;
974
975   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976   | -silent | --silent | --silen | --sile | --sil)
977     silent=yes ;;
978
979   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
980     ac_prev=sbindir ;;
981   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
982   | --sbi=* | --sb=*)
983     sbindir=$ac_optarg ;;
984
985   -sharedstatedir | --sharedstatedir | --sharedstatedi \
986   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987   | --sharedst | --shareds | --shared | --share | --shar \
988   | --sha | --sh)
989     ac_prev=sharedstatedir ;;
990   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
993   | --sha=* | --sh=*)
994     sharedstatedir=$ac_optarg ;;
995
996   -site | --site | --sit)
997     ac_prev=site ;;
998   -site=* | --site=* | --sit=*)
999     site=$ac_optarg ;;
1000
1001   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1002     ac_prev=srcdir ;;
1003   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004     srcdir=$ac_optarg ;;
1005
1006   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007   | --syscon | --sysco | --sysc | --sys | --sy)
1008     ac_prev=sysconfdir ;;
1009   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011     sysconfdir=$ac_optarg ;;
1012
1013   -target | --target | --targe | --targ | --tar | --ta | --t)
1014     ac_prev=target_alias ;;
1015   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016     target_alias=$ac_optarg ;;
1017
1018   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1019     verbose=yes ;;
1020
1021   -version | --version | --versio | --versi | --vers | -V)
1022     ac_init_version=: ;;
1023
1024   -with-* | --with-*)
1025     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028       { echo "$as_me: error: invalid package name: $ac_package" >&2
1029    { (exit 1); exit 1; }; }
1030     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1031     eval with_$ac_package=\$ac_optarg ;;
1032
1033   -without-* | --without-*)
1034     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037       { echo "$as_me: error: invalid package name: $ac_package" >&2
1038    { (exit 1); exit 1; }; }
1039     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1040     eval with_$ac_package=no ;;
1041
1042   --x)
1043     # Obsolete; use --with-x.
1044     with_x=yes ;;
1045
1046   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1047   | --x-incl | --x-inc | --x-in | --x-i)
1048     ac_prev=x_includes ;;
1049   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1050   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1051     x_includes=$ac_optarg ;;
1052
1053   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1054   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1055     ac_prev=x_libraries ;;
1056   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1057   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1058     x_libraries=$ac_optarg ;;
1059
1060   -*) { echo "$as_me: error: unrecognized option: $ac_option
1061 Try \`$0 --help' for more information." >&2
1062    { (exit 1); exit 1; }; }
1063     ;;
1064
1065   *=*)
1066     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1069       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1070    { (exit 1); exit 1; }; }
1071     eval $ac_envvar=\$ac_optarg
1072     export $ac_envvar ;;
1073
1074   *)
1075     # FIXME: should be removed in autoconf 3.0.
1076     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1077     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1079     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1080     ;;
1081
1082   esac
1083 done
1084
1085 if test -n "$ac_prev"; then
1086   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1087   { echo "$as_me: error: missing argument to $ac_option" >&2
1088    { (exit 1); exit 1; }; }
1089 fi
1090
1091 # Be sure to have absolute directory names.
1092 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1093                 datadir sysconfdir sharedstatedir localstatedir includedir \
1094                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1095                 libdir localedir mandir
1096 do
1097   eval ac_val=\$$ac_var
1098   case $ac_val in
1099     [\\/$]* | ?:[\\/]* )  continue;;
1100     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1101   esac
1102   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1103    { (exit 1); exit 1; }; }
1104 done
1105
1106 # There might be people who depend on the old broken behavior: `$host'
1107 # used to hold the argument of --host etc.
1108 # FIXME: To remove some day.
1109 build=$build_alias
1110 host=$host_alias
1111 target=$target_alias
1112
1113 # FIXME: To remove some day.
1114 if test "x$host_alias" != x; then
1115   if test "x$build_alias" = x; then
1116     cross_compiling=maybe
1117     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1118     If a cross compiler is detected then cross compile mode will be used." >&2
1119   elif test "x$build_alias" != "x$host_alias"; then
1120     cross_compiling=yes
1121   fi
1122 fi
1123
1124 ac_tool_prefix=
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1126
1127 test "$silent" = yes && exec 6>/dev/null
1128
1129
1130 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1131 ac_ls_di=`ls -di .` &&
1132 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1133   { echo "$as_me: error: Working directory cannot be determined" >&2
1134    { (exit 1); exit 1; }; }
1135 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1136   { echo "$as_me: error: pwd does not report name of working directory" >&2
1137    { (exit 1); exit 1; }; }
1138
1139
1140 # Find the source files, if location was not specified.
1141 if test -z "$srcdir"; then
1142   ac_srcdir_defaulted=yes
1143   # Try the directory containing this script, then the parent directory.
1144   ac_confdir=`$as_dirname -- "$0" ||
1145 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1146          X"$0" : 'X\(//\)[^/]' \| \
1147          X"$0" : 'X\(//\)$' \| \
1148          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1149 echo X"$0" |
1150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1151             s//\1/
1152             q
1153           }
1154           /^X\(\/\/\)[^/].*/{
1155             s//\1/
1156             q
1157           }
1158           /^X\(\/\/\)$/{
1159             s//\1/
1160             q
1161           }
1162           /^X\(\/\).*/{
1163             s//\1/
1164             q
1165           }
1166           s/.*/./; q'`
1167   srcdir=$ac_confdir
1168   if test ! -r "$srcdir/$ac_unique_file"; then
1169     srcdir=..
1170   fi
1171 else
1172   ac_srcdir_defaulted=no
1173 fi
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1176   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1177    { (exit 1); exit 1; }; }
1178 fi
1179 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1180 ac_abs_confdir=`(
1181         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1182    { (exit 1); exit 1; }; }
1183         pwd)`
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
1186   srcdir=.
1187 fi
1188 # Remove unnecessary trailing slashes from srcdir.
1189 # Double slashes in file names in object file debugging info
1190 # mess up M-x gdb in Emacs.
1191 case $srcdir in
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 esac
1194 for ac_var in $ac_precious_vars; do
1195   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196   eval ac_env_${ac_var}_value=\$${ac_var}
1197   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199 done
1200
1201 #
1202 # Report the --help message.
1203 #
1204 if test "$ac_init_help" = "long"; then
1205   # Omit some internal or obsolete options to make the list less imposing.
1206   # This message is too long to be a string in the A/UX 3.1 sh.
1207   cat <<_ACEOF
1208 \`configure' configures this package to adapt to many kinds of systems.
1209
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
1211
1212 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 VAR=VALUE.  See below for descriptions of some of the useful variables.
1214
1215 Defaults for the options are specified in brackets.
1216
1217 Configuration:
1218   -h, --help              display this help and exit
1219       --help=short        display options specific to this package
1220       --help=recursive    display the short help of all the included packages
1221   -V, --version           display version information and exit
1222   -q, --quiet, --silent   do not print \`checking...' messages
1223       --cache-file=FILE   cache test results in FILE [disabled]
1224   -C, --config-cache      alias for \`--cache-file=config.cache'
1225   -n, --no-create         do not create output files
1226       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1227
1228 Installation directories:
1229   --prefix=PREFIX         install architecture-independent files in PREFIX
1230                           [$ac_default_prefix]
1231   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1232                           [PREFIX]
1233
1234 By default, \`make install' will install all the files in
1235 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1236 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 for instance \`--prefix=\$HOME'.
1238
1239 For better control, use the options below.
1240
1241 Fine tuning of the installation directories:
1242   --bindir=DIR           user executables [EPREFIX/bin]
1243   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1244   --libexecdir=DIR       program executables [EPREFIX/libexec]
1245   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1246   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1247   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1248   --libdir=DIR           object code libraries [EPREFIX/lib]
1249   --includedir=DIR       C header files [PREFIX/include]
1250   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1251   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1252   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1253   --infodir=DIR          info documentation [DATAROOTDIR/info]
1254   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1255   --mandir=DIR           man documentation [DATAROOTDIR/man]
1256   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1257   --htmldir=DIR          html documentation [DOCDIR]
1258   --dvidir=DIR           dvi documentation [DOCDIR]
1259   --pdfdir=DIR           pdf documentation [DOCDIR]
1260   --psdir=DIR            ps documentation [DOCDIR]
1261 _ACEOF
1262
1263   cat <<\_ACEOF
1264
1265 System types:
1266   --build=BUILD     configure for building on BUILD [guessed]
1267   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1268 _ACEOF
1269 fi
1270
1271 if test -n "$ac_init_help"; then
1272
1273   cat <<\_ACEOF
1274
1275 Optional Features:
1276   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1277   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1278   --enable-poll           Force poll to be used regardless of whether or not
1279                           it is a system call
1280   --enable-debug          Turn on debugging mode
1281   --disable-asserts       Disable assertion checking
1282   --enable-profile        Enable profiling support (add -pg to CFLAGS and LDFLAGS)
1283   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
1284   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
1285   --disable-inlines       Disable inlining for a few critical functions
1286   --disable-devpoll       Disable the /dev/poll-based engine
1287   --disable-kqueue        Disable the kqueue-based engine
1288   --disable-epoll         Disable the epoll-based engine
1289   --enable-compat          Enables OGN-compat mode.
1290   --enable-unstable          Enables unstable features.
1291   --enable-gnutls          Enables GnuTLS ssl backend.
1292   --enable-openssl          Enables OpenSSL ssl backend.
1293
1294 Optional Packages:
1295   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1296   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1297   --with-leak-detect          Turn on the leak detector(requires patched boehm)
1298   --without-ipv6          disable IPv6 support (default is autodetect)
1299   --with-symlink=name     Name to give the symlink; if name is "no," no
1300                           symlink will be created.
1301   --with-mode=mode        Permissions (in octal) to give the binary
1302   --with-owner=owner      Specify owner of the installed binary
1303   --with-group=group      Specify group owner of the installed binary
1304   --with-domain=domain    Domain name to use in local statistics gathering
1305   --with-chroot=dir       Specify that the server will be operated under
1306                           a different root directory given by dir.  See
1307                           doc/readme.chroot for more information.
1308   --with-dpath=dir        Directory for all server data files
1309   --with-cpath=file       Set server configuration file
1310   --with-lpath=file       Set the debugging log file
1311   --with-maxcon=maxcon    Maximum number of connections server will accept
1312
1313 Some influential environment variables:
1314   CC          C compiler command
1315   CFLAGS      C compiler flags
1316   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1317               nonstandard directory <lib dir>
1318   LIBS        libraries to pass to the linker, e.g. -l<library>
1319   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1320               you have headers in a nonstandard directory <include dir>
1321   CPP         C preprocessor
1322   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1323               the first program found out of: `bison -y', `byacc', `yacc'.
1324   YFLAGS      The list of arguments that will be passed by default to $YACC.
1325               This script will default YFLAGS to the empty string to avoid a
1326               default value of `-d' given by some make applications.
1327
1328 Use these variables to override the choices made by `configure' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1330
1331 _ACEOF
1332 ac_status=$?
1333 fi
1334
1335 if test "$ac_init_help" = "recursive"; then
1336   # If there are subdirs, report their specific --help.
1337   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1338     test -d "$ac_dir" || continue
1339     ac_builddir=.
1340
1341 case "$ac_dir" in
1342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 *)
1344   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1345   # A ".." for each directory in $ac_dir_suffix.
1346   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1347   case $ac_top_builddir_sub in
1348   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1350   esac ;;
1351 esac
1352 ac_abs_top_builddir=$ac_pwd
1353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1354 # for backward compatibility:
1355 ac_top_builddir=$ac_top_build_prefix
1356
1357 case $srcdir in
1358   .)  # We are building in place.
1359     ac_srcdir=.
1360     ac_top_srcdir=$ac_top_builddir_sub
1361     ac_abs_top_srcdir=$ac_pwd ;;
1362   [\\/]* | ?:[\\/]* )  # Absolute name.
1363     ac_srcdir=$srcdir$ac_dir_suffix;
1364     ac_top_srcdir=$srcdir
1365     ac_abs_top_srcdir=$srcdir ;;
1366   *) # Relative name.
1367     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1368     ac_top_srcdir=$ac_top_build_prefix$srcdir
1369     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1370 esac
1371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372
1373     cd "$ac_dir" || { ac_status=$?; continue; }
1374     # Check for guested configure.
1375     if test -f "$ac_srcdir/configure.gnu"; then
1376       echo &&
1377       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1378     elif test -f "$ac_srcdir/configure"; then
1379       echo &&
1380       $SHELL "$ac_srcdir/configure" --help=recursive
1381     else
1382       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1383     fi || ac_status=$?
1384     cd "$ac_pwd" || { ac_status=$?; break; }
1385   done
1386 fi
1387
1388 test -n "$ac_init_help" && exit $ac_status
1389 if $ac_init_version; then
1390   cat <<\_ACEOF
1391 configure
1392 generated by GNU Autoconf 2.61
1393
1394 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1395 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1396 This configure script is free software; the Free Software Foundation
1397 gives unlimited permission to copy, distribute and modify it.
1398 _ACEOF
1399   exit
1400 fi
1401 cat >config.log <<_ACEOF
1402 This file contains any messages produced by compilers while
1403 running configure, to aid debugging if configure makes a mistake.
1404
1405 It was created by $as_me, which was
1406 generated by GNU Autoconf 2.61.  Invocation command line was
1407
1408   $ $0 $@
1409
1410 _ACEOF
1411 exec 5>>config.log
1412 {
1413 cat <<_ASUNAME
1414 @%:@@%:@ --------- @%:@@%:@
1415 @%:@@%:@ Platform. @%:@@%:@
1416 @%:@@%:@ --------- @%:@@%:@
1417
1418 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1419 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1420 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1421 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1422 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1423
1424 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1425 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1426
1427 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1428 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1429 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1430 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1431 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1432 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1433 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1434
1435 _ASUNAME
1436
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1439 do
1440   IFS=$as_save_IFS
1441   test -z "$as_dir" && as_dir=.
1442   echo "PATH: $as_dir"
1443 done
1444 IFS=$as_save_IFS
1445
1446 } >&5
1447
1448 cat >&5 <<_ACEOF
1449
1450
1451 @%:@@%:@ ----------- @%:@@%:@
1452 @%:@@%:@ Core tests. @%:@@%:@
1453 @%:@@%:@ ----------- @%:@@%:@
1454
1455 _ACEOF
1456
1457
1458 # Keep a trace of the command line.
1459 # Strip out --no-create and --no-recursion so they do not pile up.
1460 # Strip out --silent because we don't want to record it for future runs.
1461 # Also quote any args containing shell meta-characters.
1462 # Make two passes to allow for proper duplicate-argument suppression.
1463 ac_configure_args=
1464 ac_configure_args0=
1465 ac_configure_args1=
1466 ac_must_keep_next=false
1467 for ac_pass in 1 2
1468 do
1469   for ac_arg
1470   do
1471     case $ac_arg in
1472     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1473     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1474     | -silent | --silent | --silen | --sile | --sil)
1475       continue ;;
1476     *\'*)
1477       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     esac
1479     case $ac_pass in
1480     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1481     2)
1482       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1483       if test $ac_must_keep_next = true; then
1484         ac_must_keep_next=false # Got value, back to normal.
1485       else
1486         case $ac_arg in
1487           *=* | --config-cache | -C | -disable-* | --disable-* \
1488           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1489           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1490           | -with-* | --with-* | -without-* | --without-* | --x)
1491             case "$ac_configure_args0 " in
1492               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1493             esac
1494             ;;
1495           -* ) ac_must_keep_next=true ;;
1496         esac
1497       fi
1498       ac_configure_args="$ac_configure_args '$ac_arg'"
1499       ;;
1500     esac
1501   done
1502 done
1503 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1504 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1505
1506 # When interrupted or exit'd, cleanup temporary files, and complete
1507 # config.log.  We remove comments because anyway the quotes in there
1508 # would cause problems or look ugly.
1509 # WARNING: Use '\'' to represent an apostrophe within the trap.
1510 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1511 trap 'exit_status=$?
1512   # Save into config.log some information that might help in debugging.
1513   {
1514     echo
1515
1516     cat <<\_ASBOX
1517 @%:@@%:@ ---------------- @%:@@%:@
1518 @%:@@%:@ Cache variables. @%:@@%:@
1519 @%:@@%:@ ---------------- @%:@@%:@
1520 _ASBOX
1521     echo
1522     # The following way of writing the cache mishandles newlines in values,
1523 (
1524   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1525     eval ac_val=\$$ac_var
1526     case $ac_val in #(
1527     *${as_nl}*)
1528       case $ac_var in #(
1529       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1530 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1531       esac
1532       case $ac_var in #(
1533       _ | IFS | as_nl) ;; #(
1534       *) $as_unset $ac_var ;;
1535       esac ;;
1536     esac
1537   done
1538   (set) 2>&1 |
1539     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1540     *${as_nl}ac_space=\ *)
1541       sed -n \
1542         "s/'\''/'\''\\\\'\'''\''/g;
1543           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1544       ;; #(
1545     *)
1546       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1547       ;;
1548     esac |
1549     sort
1550 )
1551     echo
1552
1553     cat <<\_ASBOX
1554 @%:@@%:@ ----------------- @%:@@%:@
1555 @%:@@%:@ Output variables. @%:@@%:@
1556 @%:@@%:@ ----------------- @%:@@%:@
1557 _ASBOX
1558     echo
1559     for ac_var in $ac_subst_vars
1560     do
1561       eval ac_val=\$$ac_var
1562       case $ac_val in
1563       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1564       esac
1565       echo "$ac_var='\''$ac_val'\''"
1566     done | sort
1567     echo
1568
1569     if test -n "$ac_subst_files"; then
1570       cat <<\_ASBOX
1571 @%:@@%:@ ------------------- @%:@@%:@
1572 @%:@@%:@ File substitutions. @%:@@%:@
1573 @%:@@%:@ ------------------- @%:@@%:@
1574 _ASBOX
1575       echo
1576       for ac_var in $ac_subst_files
1577       do
1578         eval ac_val=\$$ac_var
1579         case $ac_val in
1580         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1581         esac
1582         echo "$ac_var='\''$ac_val'\''"
1583       done | sort
1584       echo
1585     fi
1586
1587     if test -s confdefs.h; then
1588       cat <<\_ASBOX
1589 @%:@@%:@ ----------- @%:@@%:@
1590 @%:@@%:@ confdefs.h. @%:@@%:@
1591 @%:@@%:@ ----------- @%:@@%:@
1592 _ASBOX
1593       echo
1594       cat confdefs.h
1595       echo
1596     fi
1597     test "$ac_signal" != 0 &&
1598       echo "$as_me: caught signal $ac_signal"
1599     echo "$as_me: exit $exit_status"
1600   } >&5
1601   rm -f core *.core core.conftest.* &&
1602     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1603     exit $exit_status
1604 ' 0
1605 for ac_signal in 1 2 13 15; do
1606   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1607 done
1608 ac_signal=0
1609
1610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1611 rm -f -r conftest* confdefs.h
1612
1613 # Predefined preprocessor variables.
1614
1615 cat >>confdefs.h <<_ACEOF
1616 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1617 _ACEOF
1618
1619
1620 cat >>confdefs.h <<_ACEOF
1621 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1622 _ACEOF
1623
1624
1625 cat >>confdefs.h <<_ACEOF
1626 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1627 _ACEOF
1628
1629
1630 cat >>confdefs.h <<_ACEOF
1631 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1632 _ACEOF
1633
1634
1635 cat >>confdefs.h <<_ACEOF
1636 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1637 _ACEOF
1638
1639
1640 # Let the site file select an alternate cache file if it wants to.
1641 # Prefer explicitly selected file to automatically selected ones.
1642 if test -n "$CONFIG_SITE"; then
1643   set x "$CONFIG_SITE"
1644 elif test "x$prefix" != xNONE; then
1645   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1646 else
1647   set x "$ac_default_prefix/share/config.site" \
1648         "$ac_default_prefix/etc/config.site"
1649 fi
1650 shift
1651 for ac_site_file
1652 do
1653   if test -r "$ac_site_file"; then
1654     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1655 echo "$as_me: loading site script $ac_site_file" >&6;}
1656     sed 's/^/| /' "$ac_site_file" >&5
1657     . "$ac_site_file"
1658   fi
1659 done
1660
1661 if test -r "$cache_file"; then
1662   # Some versions of bash will fail to source /dev/null (special
1663   # files actually), so we avoid doing that.
1664   if test -f "$cache_file"; then
1665     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1666 echo "$as_me: loading cache $cache_file" >&6;}
1667     case $cache_file in
1668       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1669       *)                      . "./$cache_file";;
1670     esac
1671   fi
1672 else
1673   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1674 echo "$as_me: creating cache $cache_file" >&6;}
1675   >$cache_file
1676 fi
1677
1678 # Check that the precious variables saved in the cache have kept the same
1679 # value.
1680 ac_cache_corrupted=false
1681 for ac_var in $ac_precious_vars; do
1682   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1683   eval ac_new_set=\$ac_env_${ac_var}_set
1684   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1685   eval ac_new_val=\$ac_env_${ac_var}_value
1686   case $ac_old_set,$ac_new_set in
1687     set,)
1688       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1689 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1690       ac_cache_corrupted=: ;;
1691     ,set)
1692       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1693 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1694       ac_cache_corrupted=: ;;
1695     ,);;
1696     *)
1697       if test "x$ac_old_val" != "x$ac_new_val"; then
1698         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1699 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1700         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1701 echo "$as_me:   former value:  $ac_old_val" >&2;}
1702         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1703 echo "$as_me:   current value: $ac_new_val" >&2;}
1704         ac_cache_corrupted=:
1705       fi;;
1706   esac
1707   # Pass precious variables to config.status.
1708   if test "$ac_new_set" = set; then
1709     case $ac_new_val in
1710     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1711     *) ac_arg=$ac_var=$ac_new_val ;;
1712     esac
1713     case " $ac_configure_args " in
1714       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1715       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1716     esac
1717   fi
1718 done
1719 if $ac_cache_corrupted; then
1720   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1721 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1722   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1723 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1724    { (exit 1); exit 1; }; }
1725 fi
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743 ac_ext=c
1744 ac_cpp='$CPP $CPPFLAGS'
1745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1748
1749
1750
1751
1752 { echo "$as_me:$LINENO: checking for installation prefix" >&5
1753 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6; }
1754 if test "${unet_cv_prefix+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   unet_cv_prefix=$HOME
1758 fi
1759
1760 if test x"$prefix" != xNONE; then
1761     unet_cv_prefix=$prefix
1762 fi
1763 { echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1764 echo "${ECHO_T}$unet_cv_prefix" >&6; }
1765 ac_default_prefix=$unet_cv_prefix
1766
1767 ac_config_headers="$ac_config_headers config.h"
1768
1769
1770
1771
1772 ac_aux_dir=
1773 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1774   if test -f "$ac_dir/install-sh"; then
1775     ac_aux_dir=$ac_dir
1776     ac_install_sh="$ac_aux_dir/install-sh -c"
1777     break
1778   elif test -f "$ac_dir/install.sh"; then
1779     ac_aux_dir=$ac_dir
1780     ac_install_sh="$ac_aux_dir/install.sh -c"
1781     break
1782   elif test -f "$ac_dir/shtool"; then
1783     ac_aux_dir=$ac_dir
1784     ac_install_sh="$ac_aux_dir/shtool install -c"
1785     break
1786   fi
1787 done
1788 if test -z "$ac_aux_dir"; then
1789   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1790 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1791    { (exit 1); exit 1; }; }
1792 fi
1793
1794 # These three variables are undocumented and unsupported,
1795 # and are intended to be withdrawn in a future Autoconf release.
1796 # They can cause serious problems if a builder's source tree is in a directory
1797 # whose full name contains unusual characters.
1798 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1799 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1800 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1801
1802
1803 # Make sure we can run config.sub.
1804 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1805   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1806 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1807    { (exit 1); exit 1; }; }
1808
1809 { echo "$as_me:$LINENO: checking build system type" >&5
1810 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1811 if test "${ac_cv_build+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   ac_build_alias=$build_alias
1815 test "x$ac_build_alias" = x &&
1816   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1817 test "x$ac_build_alias" = x &&
1818   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1819 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1820    { (exit 1); exit 1; }; }
1821 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1822   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1823 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1824    { (exit 1); exit 1; }; }
1825
1826 fi
1827 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1828 echo "${ECHO_T}$ac_cv_build" >&6; }
1829 case $ac_cv_build in
1830 *-*-*) ;;
1831 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1832 echo "$as_me: error: invalid value of canonical build" >&2;}
1833    { (exit 1); exit 1; }; };;
1834 esac
1835 build=$ac_cv_build
1836 ac_save_IFS=$IFS; IFS='-'
1837 set x $ac_cv_build
1838 shift
1839 build_cpu=$1
1840 build_vendor=$2
1841 shift; shift
1842 # Remember, the first character of IFS is used to create $*,
1843 # except with old shells:
1844 build_os=$*
1845 IFS=$ac_save_IFS
1846 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1847
1848
1849 { echo "$as_me:$LINENO: checking host system type" >&5
1850 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1851 if test "${ac_cv_host+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test "x$host_alias" = x; then
1855   ac_cv_host=$ac_cv_build
1856 else
1857   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1858     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1859 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1860    { (exit 1); exit 1; }; }
1861 fi
1862
1863 fi
1864 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1865 echo "${ECHO_T}$ac_cv_host" >&6; }
1866 case $ac_cv_host in
1867 *-*-*) ;;
1868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1869 echo "$as_me: error: invalid value of canonical host" >&2;}
1870    { (exit 1); exit 1; }; };;
1871 esac
1872 host=$ac_cv_host
1873 ac_save_IFS=$IFS; IFS='-'
1874 set x $ac_cv_host
1875 shift
1876 host_cpu=$1
1877 host_vendor=$2
1878 shift; shift
1879 # Remember, the first character of IFS is used to create $*,
1880 # except with old shells:
1881 host_os=$*
1882 IFS=$ac_save_IFS
1883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1884
1885
1886
1887 ac_ext=c
1888 ac_cpp='$CPP $CPPFLAGS'
1889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892 if test -n "$ac_tool_prefix"; then
1893   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898   echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900   if test -n "$CC"; then
1901   ac_cv_prog_CC="$CC" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906   IFS=$as_save_IFS
1907   test -z "$as_dir" && as_dir=.
1908   for ac_exec_ext in '' $ac_executable_extensions; do
1909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1910     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912     break 2
1913   fi
1914 done
1915 done
1916 IFS=$as_save_IFS
1917
1918 fi
1919 fi
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922   { echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6; }
1924 else
1925   { echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6; }
1927 fi
1928
1929
1930 fi
1931 if test -z "$ac_cv_prog_CC"; then
1932   ac_ct_CC=$CC
1933   # Extract the first word of "gcc", so it can be a program name with args.
1934 set dummy gcc; ac_word=$2
1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$ac_ct_CC"; then
1941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1950     ac_cv_prog_ac_ct_CC="gcc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956 IFS=$as_save_IFS
1957
1958 fi
1959 fi
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6; }
1964 else
1965   { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1967 fi
1968
1969   if test "x$ac_ct_CC" = x; then
1970     CC=""
1971   else
1972     case $cross_compiling:$ac_tool_warned in
1973 yes:)
1974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1975 whose name does not start with the host triplet.  If you think this
1976 configuration is useful to you, please write to autoconf@gnu.org." >&5
1977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1978 whose name does not start with the host triplet.  If you think this
1979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1980 ac_tool_warned=yes ;;
1981 esac
1982     CC=$ac_ct_CC
1983   fi
1984 else
1985   CC="$ac_cv_prog_CC"
1986 fi
1987
1988 if test -z "$CC"; then
1989           if test -n "$ac_tool_prefix"; then
1990     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1991 set dummy ${ac_tool_prefix}cc; ac_word=$2
1992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   if test -n "$CC"; then
1998   ac_cv_prog_CC="$CC" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003   IFS=$as_save_IFS
2004   test -z "$as_dir" && as_dir=.
2005   for ac_exec_ext in '' $ac_executable_extensions; do
2006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007     ac_cv_prog_CC="${ac_tool_prefix}cc"
2008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009     break 2
2010   fi
2011 done
2012 done
2013 IFS=$as_save_IFS
2014
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019   { echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6; }
2021 else
2022   { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2024 fi
2025
2026
2027   fi
2028 fi
2029 if test -z "$CC"; then
2030   # Extract the first word of "cc", so it can be a program name with args.
2031 set dummy cc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$CC"; then
2038   ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040   ac_prog_rejected=no
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2048     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2049        ac_prog_rejected=yes
2050        continue
2051      fi
2052     ac_cv_prog_CC="cc"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058 IFS=$as_save_IFS
2059
2060 if test $ac_prog_rejected = yes; then
2061   # We found a bogon in the path, so make sure we never use it.
2062   set dummy $ac_cv_prog_CC
2063   shift
2064   if test $@%:@ != 0; then
2065     # We chose a different compiler from the bogus one.
2066     # However, it has the same basename, so the bogon will be chosen
2067     # first if we set CC to just the basename; use the full file name.
2068     shift
2069     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2070   fi
2071 fi
2072 fi
2073 fi
2074 CC=$ac_cv_prog_CC
2075 if test -n "$CC"; then
2076   { echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6; }
2078 else
2079   { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2082
2083
2084 fi
2085 if test -z "$CC"; then
2086   if test -n "$ac_tool_prefix"; then
2087   for ac_prog in cl.exe
2088   do
2089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$CC"; then
2097   ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112 IFS=$as_save_IFS
2113
2114 fi
2115 fi
2116 CC=$ac_cv_prog_CC
2117 if test -n "$CC"; then
2118   { echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6; }
2120 else
2121   { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2123 fi
2124
2125
2126     test -n "$CC" && break
2127   done
2128 fi
2129 if test -z "$CC"; then
2130   ac_ct_CC=$CC
2131   for ac_prog in cl.exe
2132 do
2133   # Extract the first word of "$ac_prog", so it can be a program name with args.
2134 set dummy $ac_prog; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$ac_ct_CC"; then
2141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150     ac_cv_prog_ac_ct_CC="$ac_prog"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156 IFS=$as_save_IFS
2157
2158 fi
2159 fi
2160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6; }
2164 else
2165   { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2167 fi
2168
2169
2170   test -n "$ac_ct_CC" && break
2171 done
2172
2173   if test "x$ac_ct_CC" = x; then
2174     CC=""
2175   else
2176     case $cross_compiling:$ac_tool_warned in
2177 yes:)
2178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet.  If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&5
2181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2182 whose name does not start with the host triplet.  If you think this
2183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2184 ac_tool_warned=yes ;;
2185 esac
2186     CC=$ac_ct_CC
2187   fi
2188 fi
2189
2190 fi
2191
2192
2193 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: no acceptable C compiler found in \$PATH
2196 See \`config.log' for more details." >&2;}
2197    { (exit 1); exit 1; }; }
2198
2199 # Provide some information about the compiler.
2200 echo "$as_me:$LINENO: checking for C compiler version" >&5
2201 ac_compiler=`set X $ac_compile; echo $2`
2202 { (ac_try="$ac_compiler --version >&5"
2203 case "(($ac_try" in
2204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205   *) ac_try_echo=$ac_try;;
2206 esac
2207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208   (eval "$ac_compiler --version >&5") 2>&5
2209   ac_status=$?
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); }
2212 { (ac_try="$ac_compiler -v >&5"
2213 case "(($ac_try" in
2214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215   *) ac_try_echo=$ac_try;;
2216 esac
2217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2218   (eval "$ac_compiler -v >&5") 2>&5
2219   ac_status=$?
2220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221   (exit $ac_status); }
2222 { (ac_try="$ac_compiler -V >&5"
2223 case "(($ac_try" in
2224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225   *) ac_try_echo=$ac_try;;
2226 esac
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228   (eval "$ac_compiler -V >&5") 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }
2232
2233 cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h.  */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h.  */
2239
2240 int
2241 main ()
2242 {
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 ac_clean_files_save=$ac_clean_files
2249 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2250 # Try to create an executable without -o first, disregard a.out.
2251 # It will help us diagnose broken compilers, and finding out an intuition
2252 # of exeext.
2253 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2254 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2255 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2256 #
2257 # List of possible output files, starting from the most likely.
2258 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2259 # only as a last resort.  b.out is created by i960 compilers.
2260 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2261 #
2262 # The IRIX 6 linker writes into existing files which may not be
2263 # executable, retaining their permissions.  Remove them first so a
2264 # subsequent execution test works.
2265 ac_rmfiles=
2266 for ac_file in $ac_files
2267 do
2268   case $ac_file in
2269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2270     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2271   esac
2272 done
2273 rm -f $ac_rmfiles
2274
2275 if { (ac_try="$ac_link_default"
2276 case "(($ac_try" in
2277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278   *) ac_try_echo=$ac_try;;
2279 esac
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281   (eval "$ac_link_default") 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; then
2285   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2287 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2288 # so that the user can short-circuit this test for compilers unknown to
2289 # Autoconf.
2290 for ac_file in $ac_files ''
2291 do
2292   test -f "$ac_file" || continue
2293   case $ac_file in
2294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2295         ;;
2296     [ab].out )
2297         # We found the default executable, but exeext='' is most
2298         # certainly right.
2299         break;;
2300     *.* )
2301         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2302         then :; else
2303            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304         fi
2305         # We set ac_cv_exeext here because the later test for it is not
2306         # safe: cross compilers may not add the suffix if given an `-o'
2307         # argument, so we may need to know it at that point already.
2308         # Even if this section looks crufty: it has the advantage of
2309         # actually working.
2310         break;;
2311     * )
2312         break;;
2313   esac
2314 done
2315 test "$ac_cv_exeext" = no && ac_cv_exeext=
2316
2317 else
2318   ac_file=''
2319 fi
2320
2321 { echo "$as_me:$LINENO: result: $ac_file" >&5
2322 echo "${ECHO_T}$ac_file" >&6; }
2323 if test -z "$ac_file"; then
2324   echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: C compiler cannot create executables
2330 See \`config.log' for more details." >&2;}
2331    { (exit 77); exit 77; }; }
2332 fi
2333
2334 ac_exeext=$ac_cv_exeext
2335
2336 # Check that the compiler produces executables we can run.  If not, either
2337 # the compiler is broken, or we cross compile.
2338 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2339 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2340 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2341 # If not cross compiling, check that we can run a simple program.
2342 if test "$cross_compiling" != yes; then
2343   if { ac_try='./$ac_file'
2344   { (case "(($ac_try" in
2345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346   *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349   (eval "$ac_try") 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353     cross_compiling=no
2354   else
2355     if test "$cross_compiling" = maybe; then
2356         cross_compiling=yes
2357     else
2358         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2359 If you meant to cross compile, use \`--host'.
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot run C compiled programs.
2362 If you meant to cross compile, use \`--host'.
2363 See \`config.log' for more details." >&2;}
2364    { (exit 1); exit 1; }; }
2365     fi
2366   fi
2367 fi
2368 { echo "$as_me:$LINENO: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6; }
2370
2371 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2372 ac_clean_files=$ac_clean_files_save
2373 # Check that the compiler produces executables we can run.  If not, either
2374 # the compiler is broken, or we cross compile.
2375 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2376 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2377 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2378 echo "${ECHO_T}$cross_compiling" >&6; }
2379
2380 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2381 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2382 if { (ac_try="$ac_link"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388   (eval "$ac_link") 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; then
2392   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2393 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2394 # work properly (i.e., refer to `conftest.exe'), while it won't with
2395 # `rm'.
2396 for ac_file in conftest.exe conftest conftest.*; do
2397   test -f "$ac_file" || continue
2398   case $ac_file in
2399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2400     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401           break;;
2402     * ) break;;
2403   esac
2404 done
2405 else
2406   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409 See \`config.log' for more details." >&2;}
2410    { (exit 1); exit 1; }; }
2411 fi
2412
2413 rm -f conftest$ac_cv_exeext
2414 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2416
2417 rm -f conftest.$ac_ext
2418 EXEEXT=$ac_cv_exeext
2419 ac_exeext=$EXEEXT
2420 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2421 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2422 if test "${ac_cv_objext+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431
2432 int
2433 main ()
2434 {
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.o conftest.obj
2441 if { (ac_try="$ac_compile"
2442 case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447   (eval "$ac_compile") 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; then
2451   for ac_file in conftest.o conftest.obj conftest.*; do
2452   test -f "$ac_file" || continue;
2453   case $ac_file in
2454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2455     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2456        break;;
2457   esac
2458 done
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2466 See \`config.log' for more details." >&2;}
2467    { (exit 1); exit 1; }; }
2468 fi
2469
2470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2471 fi
2472 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2473 echo "${ECHO_T}$ac_cv_objext" >&6; }
2474 OBJEXT=$ac_cv_objext
2475 ac_objext=$OBJEXT
2476 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2477 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2478 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491 #ifndef __GNUC__
2492        choke me
2493 #endif
2494
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (ac_try="$ac_compile"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506   (eval "$ac_compile") 2>conftest.er1
2507   ac_status=$?
2508   grep -v '^ *+' conftest.er1 >conftest.err
2509   rm -f conftest.er1
2510   cat conftest.err >&5
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } && {
2513          test -z "$ac_c_werror_flag" ||
2514          test ! -s conftest.err
2515        } && test -s conftest.$ac_objext; then
2516   ac_compiler_gnu=yes
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521         ac_compiler_gnu=no
2522 fi
2523
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2526
2527 fi
2528 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2529 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2530 GCC=`test $ac_compiler_gnu = yes && echo yes`
2531 ac_test_CFLAGS=${CFLAGS+set}
2532 ac_save_CFLAGS=$CFLAGS
2533 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2534 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_cc_g+set}" = set; then
2536   echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538   ac_save_c_werror_flag=$ac_c_werror_flag
2539    ac_c_werror_flag=yes
2540    ac_cv_prog_cc_g=no
2541    CFLAGS="-g"
2542    cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } && {
2571          test -z "$ac_c_werror_flag" ||
2572          test ! -s conftest.err
2573        } && test -s conftest.$ac_objext; then
2574   ac_cv_prog_cc_g=yes
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579         CFLAGS=""
2580       cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590
2591   ;
2592   return 0;
2593 }
2594 _ACEOF
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2597 case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_compile") 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } && {
2609          test -z "$ac_c_werror_flag" ||
2610          test ! -s conftest.err
2611        } && test -s conftest.$ac_objext; then
2612   :
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617         ac_c_werror_flag=$ac_save_c_werror_flag
2618          CFLAGS="-g"
2619          cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h.  */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h.  */
2625
2626 int
2627 main ()
2628 {
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2636 case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_compile") 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } && {
2648          test -z "$ac_c_werror_flag" ||
2649          test ! -s conftest.err
2650        } && test -s conftest.$ac_objext; then
2651   ac_cv_prog_cc_g=yes
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656         
2657 fi
2658
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 fi
2661
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 fi
2664
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666    ac_c_werror_flag=$ac_save_c_werror_flag
2667 fi
2668 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2670 if test "$ac_test_CFLAGS" = set; then
2671   CFLAGS=$ac_save_CFLAGS
2672 elif test $ac_cv_prog_cc_g = yes; then
2673   if test "$GCC" = yes; then
2674     CFLAGS="-g -O2"
2675   else
2676     CFLAGS="-g"
2677   fi
2678 else
2679   if test "$GCC" = yes; then
2680     CFLAGS="-O2"
2681   else
2682     CFLAGS=
2683   fi
2684 fi
2685 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2686 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_cc_c89+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   ac_cv_prog_cc_c89=no
2691 ac_save_CC=$CC
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698 #include <stdarg.h>
2699 #include <stdio.h>
2700 #include <sys/types.h>
2701 #include <sys/stat.h>
2702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2703 struct buf { int x; };
2704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2705 static char *e (p, i)
2706      char **p;
2707      int i;
2708 {
2709   return p[i];
2710 }
2711 static char *f (char * (*g) (char **, int), char **p, ...)
2712 {
2713   char *s;
2714   va_list v;
2715   va_start (v,p);
2716   s = g (p, va_arg (v,int));
2717   va_end (v);
2718   return s;
2719 }
2720
2721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2722    function prototypes and stuff, but not '\xHH' hex character constants.
2723    These don't provoke an error unfortunately, instead are silently treated
2724    as 'x'.  The following induces an error, until -std is added to get
2725    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2726    array size at least.  It's necessary to write '\x00'==0 to get something
2727    that's true only with -std.  */
2728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2729
2730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2731    inside strings and character constants.  */
2732 #define FOO(x) 'x'
2733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2734
2735 int test (int i, double x);
2736 struct s1 {int (*f) (int a);};
2737 struct s2 {int (*f) (double a);};
2738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2739 int argc;
2740 char **argv;
2741 int
2742 main ()
2743 {
2744 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2745   ;
2746   return 0;
2747 }
2748 _ACEOF
2749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2750         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2751 do
2752   CC="$ac_save_CC $ac_arg"
2753   rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compile") 2>conftest.er1
2761   ac_status=$?
2762   grep -v '^ *+' conftest.er1 >conftest.err
2763   rm -f conftest.er1
2764   cat conftest.err >&5
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } && {
2767          test -z "$ac_c_werror_flag" ||
2768          test ! -s conftest.err
2769        } && test -s conftest.$ac_objext; then
2770   ac_cv_prog_cc_c89=$ac_arg
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775         
2776 fi
2777
2778 rm -f core conftest.err conftest.$ac_objext 
2779   test "x$ac_cv_prog_cc_c89" != "xno" && break
2780 done
2781 rm -f conftest.$ac_ext
2782 CC=$ac_save_CC
2783
2784 fi
2785 # AC_CACHE_VAL
2786 case "x$ac_cv_prog_cc_c89" in
2787   x)
2788     { echo "$as_me:$LINENO: result: none needed" >&5
2789 echo "${ECHO_T}none needed" >&6; } ;;
2790   xno)
2791     { echo "$as_me:$LINENO: result: unsupported" >&5
2792 echo "${ECHO_T}unsupported" >&6; } ;;
2793   *)
2794     CC="$CC $ac_cv_prog_cc_c89"
2795     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2797 esac
2798
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806
2807 ac_ext=c
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812 if test -n "$ac_tool_prefix"; then
2813   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$CC"; then
2821   ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842   { echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6; }
2844 else
2845   { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2847 fi
2848
2849
2850 fi
2851 if test -z "$ac_cv_prog_CC"; then
2852   ac_ct_CC=$CC
2853   # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CC"; then
2861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_CC="gcc"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2881 if test -n "$ac_ct_CC"; then
2882   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2883 echo "${ECHO_T}$ac_ct_CC" >&6; }
2884 else
2885   { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2887 fi
2888
2889   if test "x$ac_ct_CC" = x; then
2890     CC=""
2891   else
2892     case $cross_compiling:$ac_tool_warned in
2893 yes:)
2894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet.  If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&5
2897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2898 whose name does not start with the host triplet.  If you think this
2899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2900 ac_tool_warned=yes ;;
2901 esac
2902     CC=$ac_ct_CC
2903   fi
2904 else
2905   CC="$ac_cv_prog_CC"
2906 fi
2907
2908 if test -z "$CC"; then
2909           if test -n "$ac_tool_prefix"; then
2910     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}cc; ac_word=$2
2912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   if test -n "$CC"; then
2918   ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925   for ac_exec_ext in '' $ac_executable_extensions; do
2926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927     ac_cv_prog_CC="${ac_tool_prefix}cc"
2928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939   { echo "$as_me:$LINENO: result: $CC" >&5
2940 echo "${ECHO_T}$CC" >&6; }
2941 else
2942   { echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6; }
2944 fi
2945
2946
2947   fi
2948 fi
2949 if test -z "$CC"; then
2950   # Extract the first word of "cc", so it can be a program name with args.
2951 set dummy cc; ac_word=$2
2952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   if test -n "$CC"; then
2958   ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960   ac_prog_rejected=no
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966   for ac_exec_ext in '' $ac_executable_extensions; do
2967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2969        ac_prog_rejected=yes
2970        continue
2971      fi
2972     ac_cv_prog_CC="cc"
2973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 if test $ac_prog_rejected = yes; then
2981   # We found a bogon in the path, so make sure we never use it.
2982   set dummy $ac_cv_prog_CC
2983   shift
2984   if test $@%:@ != 0; then
2985     # We chose a different compiler from the bogus one.
2986     # However, it has the same basename, so the bogon will be chosen
2987     # first if we set CC to just the basename; use the full file name.
2988     shift
2989     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2990   fi
2991 fi
2992 fi
2993 fi
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996   { echo "$as_me:$LINENO: result: $CC" >&5
2997 echo "${ECHO_T}$CC" >&6; }
2998 else
2999   { echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6; }
3001 fi
3002
3003
3004 fi
3005 if test -z "$CC"; then
3006   if test -n "$ac_tool_prefix"; then
3007   for ac_prog in cl.exe
3008   do
3009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   if test -n "$CC"; then
3017   ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022   IFS=$as_save_IFS
3023   test -z "$as_dir" && as_dir=.
3024   for ac_exec_ext in '' $ac_executable_extensions; do
3025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028     break 2
3029   fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038   { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3040 else
3041   { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3043 fi
3044
3045
3046     test -n "$CC" && break
3047   done
3048 fi
3049 if test -z "$CC"; then
3050   ac_ct_CC=$CC
3051   for ac_prog in cl.exe
3052 do
3053   # Extract the first word of "$ac_prog", so it can be a program name with args.
3054 set dummy $ac_prog; ac_word=$2
3055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3057 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3058   echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060   if test -n "$ac_ct_CC"; then
3061   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066   IFS=$as_save_IFS
3067   test -z "$as_dir" && as_dir=.
3068   for ac_exec_ext in '' $ac_executable_extensions; do
3069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070     ac_cv_prog_ac_ct_CC="$ac_prog"
3071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072     break 2
3073   fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3083 echo "${ECHO_T}$ac_ct_CC" >&6; }
3084 else
3085   { echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6; }
3087 fi
3088
3089
3090   test -n "$ac_ct_CC" && break
3091 done
3092
3093   if test "x$ac_ct_CC" = x; then
3094     CC=""
3095   else
3096     case $cross_compiling:$ac_tool_warned in
3097 yes:)
3098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3099 whose name does not start with the host triplet.  If you think this
3100 configuration is useful to you, please write to autoconf@gnu.org." >&5
3101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet.  If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3104 ac_tool_warned=yes ;;
3105 esac
3106     CC=$ac_ct_CC
3107   fi
3108 fi
3109
3110 fi
3111
3112
3113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&2;}
3117    { (exit 1); exit 1; }; }
3118
3119 # Provide some information about the compiler.
3120 echo "$as_me:$LINENO: checking for C compiler version" >&5
3121 ac_compiler=`set X $ac_compile; echo $2`
3122 { (ac_try="$ac_compiler --version >&5"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compiler --version >&5") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }
3132 { (ac_try="$ac_compiler -v >&5"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compiler -v >&5") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }
3142 { (ac_try="$ac_compiler -V >&5"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_compiler -V >&5") 2>&5
3149   ac_status=$?
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }
3152
3153 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168 #ifndef __GNUC__
3169        choke me
3170 #endif
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_compiler_gnu=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198         ac_compiler_gnu=no
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_g+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   ac_save_c_werror_flag=$ac_c_werror_flag
3216    ac_c_werror_flag=yes
3217    ac_cv_prog_cc_g=no
3218    CFLAGS="-g"
3219    cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } && {
3248          test -z "$ac_c_werror_flag" ||
3249          test ! -s conftest.err
3250        } && test -s conftest.$ac_objext; then
3251   ac_cv_prog_cc_g=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256         CFLAGS=""
3257       cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_compile") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } && {
3286          test -z "$ac_c_werror_flag" ||
3287          test ! -s conftest.err
3288        } && test -s conftest.$ac_objext; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294         ac_c_werror_flag=$ac_save_c_werror_flag
3295          CFLAGS="-g"
3296          cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } && {
3325          test -z "$ac_c_werror_flag" ||
3326          test ! -s conftest.err
3327        } && test -s conftest.$ac_objext; then
3328   ac_cv_prog_cc_g=yes
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333         
3334 fi
3335
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 fi
3338
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343    ac_c_werror_flag=$ac_save_c_werror_flag
3344 fi
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3347 if test "$ac_test_CFLAGS" = set; then
3348   CFLAGS=$ac_save_CFLAGS
3349 elif test $ac_cv_prog_cc_g = yes; then
3350   if test "$GCC" = yes; then
3351     CFLAGS="-g -O2"
3352   else
3353     CFLAGS="-g"
3354   fi
3355 else
3356   if test "$GCC" = yes; then
3357     CFLAGS="-O2"
3358   else
3359     CFLAGS=
3360   fi
3361 fi
3362 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3363 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_c89+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   ac_cv_prog_cc_c89=no
3368 ac_save_CC=$CC
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <stdarg.h>
3376 #include <stdio.h>
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3383      char **p;
3384      int i;
3385 {
3386   return p[i];
3387 }
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3389 {
3390   char *s;
3391   va_list v;
3392   va_start (v,p);
3393   s = g (p, va_arg (v,int));
3394   va_end (v);
3395   return s;
3396 }
3397
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3399    function prototypes and stuff, but not '\xHH' hex character constants.
3400    These don't provoke an error unfortunately, instead are silently treated
3401    as 'x'.  The following induces an error, until -std is added to get
3402    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3403    array size at least.  It's necessary to write '\x00'==0 to get something
3404    that's true only with -std.  */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3406
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408    inside strings and character constants.  */
3409 #define FOO(x) 'x'
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3411
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3416 int argc;
3417 char **argv;
3418 int
3419 main ()
3420 {
3421 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 do
3429   CC="$ac_save_CC $ac_arg"
3430   rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437   (eval "$ac_compile") 2>conftest.er1
3438   ac_status=$?
3439   grep -v '^ *+' conftest.er1 >conftest.err
3440   rm -f conftest.er1
3441   cat conftest.err >&5
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); } && {
3444          test -z "$ac_c_werror_flag" ||
3445          test ! -s conftest.err
3446        } && test -s conftest.$ac_objext; then
3447   ac_cv_prog_cc_c89=$ac_arg
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452         
3453 fi
3454
3455 rm -f core conftest.err conftest.$ac_objext 
3456   test "x$ac_cv_prog_cc_c89" != "xno" && break
3457 done
3458 rm -f conftest.$ac_ext
3459 CC=$ac_save_CC
3460
3461 fi
3462 # AC_CACHE_VAL
3463 case "x$ac_cv_prog_cc_c89" in
3464   x)
3465     { echo "$as_me:$LINENO: result: none needed" >&5
3466 echo "${ECHO_T}none needed" >&6; } ;;
3467   xno)
3468     { echo "$as_me:$LINENO: result: unsupported" >&5
3469 echo "${ECHO_T}unsupported" >&6; } ;;
3470   *)
3471     CC="$CC $ac_cv_prog_cc_c89"
3472     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3474 esac
3475
3476
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483
3484 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3485
3486
3487
3488
3489 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
3490 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
3491 if test "${ac_cv_search_crypt+set}" = set; then
3492   echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494   ac_func_search_save_LIBS=$LIBS
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501
3502 /* Override any GCC internal prototype to avoid an error.
3503    Use char because int might match the return type of a GCC
3504    builtin and then its argument prototype would still apply.  */
3505 #ifdef __cplusplus
3506 extern "C"
3507 #endif
3508 char crypt ();
3509 int
3510 main ()
3511 {
3512 return crypt ();
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 for ac_lib in '' descrypt crypt; do
3518   if test -z "$ac_lib"; then
3519     ac_res="none required"
3520   else
3521     ac_res=-l$ac_lib
3522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3523   fi
3524   rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (ac_try="$ac_link"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531   (eval "$ac_link") 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } && {
3538          test -z "$ac_c_werror_flag" ||
3539          test ! -s conftest.err
3540        } && test -s conftest$ac_exeext &&
3541        $as_test_x conftest$ac_exeext; then
3542   ac_cv_search_crypt=$ac_res
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547         
3548 fi
3549
3550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3551       conftest$ac_exeext 
3552   if test "${ac_cv_search_crypt+set}" = set; then
3553   break
3554 fi
3555 done
3556 if test "${ac_cv_search_crypt+set}" = set; then
3557   :
3558 else
3559   ac_cv_search_crypt=no
3560 fi
3561 rm conftest.$ac_ext
3562 LIBS=$ac_func_search_save_LIBS
3563 fi
3564 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3565 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
3566 ac_res=$ac_cv_search_crypt
3567 if test "$ac_res" != no; then
3568   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3569   
3570 else
3571   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3572 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3573    { (exit 1); exit 1; }; }
3574 fi
3575
3576
3577
3578    # Most operating systems have gethostbyname() in the default searched
3579    # libraries (i.e. libc):
3580    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
3581 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
3582 if test "${ac_cv_func_gethostbyname+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3593 #define gethostbyname innocuous_gethostbyname
3594
3595 /* System header to define __stub macros and hopefully few prototypes,
3596     which can conflict with char gethostbyname (); below.
3597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598     <limits.h> exists even on freestanding compilers.  */
3599
3600 #ifdef __STDC__
3601 # include <limits.h>
3602 #else
3603 # include <assert.h>
3604 #endif
3605
3606 #undef gethostbyname
3607
3608 /* Override any GCC internal prototype to avoid an error.
3609    Use char because int might match the return type of a GCC
3610    builtin and then its argument prototype would still apply.  */
3611 #ifdef __cplusplus
3612 extern "C"
3613 #endif
3614 char gethostbyname ();
3615 /* The GNU C library defines this for functions which it implements
3616     to always fail with ENOSYS.  Some functions are actually named
3617     something starting with __ and the normal name is an alias.  */
3618 #if defined __stub_gethostbyname || defined __stub___gethostbyname
3619 choke me
3620 #endif
3621
3622 int
3623 main ()
3624 {
3625 return gethostbyname ();
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.$ac_objext conftest$ac_exeext
3631 if { (ac_try="$ac_link"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637   (eval "$ac_link") 2>conftest.er1
3638   ac_status=$?
3639   grep -v '^ *+' conftest.er1 >conftest.err
3640   rm -f conftest.er1
3641   cat conftest.err >&5
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } && {
3644          test -z "$ac_c_werror_flag" ||
3645          test ! -s conftest.err
3646        } && test -s conftest$ac_exeext &&
3647        $as_test_x conftest$ac_exeext; then
3648   ac_cv_func_gethostbyname=yes
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653         ac_cv_func_gethostbyname=no
3654 fi
3655
3656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3657       conftest$ac_exeext conftest.$ac_ext
3658 fi
3659 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3660 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3661 if test $ac_cv_func_gethostbyname = yes; then
3662   :
3663 else
3664   # Some OSes (eg. Solaris) place it in libnsl:
3665      
3666 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3667 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3668 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   ac_check_lib_save_LIBS=$LIBS
3672 LIBS="-lnsl  $LIBS"
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h.  */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h.  */
3679
3680 /* Override any GCC internal prototype to avoid an error.
3681    Use char because int might match the return type of a GCC
3682    builtin and then its argument prototype would still apply.  */
3683 #ifdef __cplusplus
3684 extern "C"
3685 #endif
3686 char gethostbyname ();
3687 int
3688 main ()
3689 {
3690 return gethostbyname ();
3691   ;
3692   return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest.$ac_objext conftest$ac_exeext
3696 if { (ac_try="$ac_link"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_link") 2>conftest.er1
3703   ac_status=$?
3704   grep -v '^ *+' conftest.er1 >conftest.err
3705   rm -f conftest.er1
3706   cat conftest.err >&5
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } && {
3709          test -z "$ac_c_werror_flag" ||
3710          test ! -s conftest.err
3711        } && test -s conftest$ac_exeext &&
3712        $as_test_x conftest$ac_exeext; then
3713   ac_cv_lib_nsl_gethostbyname=yes
3714 else
3715   echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718         ac_cv_lib_nsl_gethostbyname=no
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3722       conftest$ac_exeext conftest.$ac_ext
3723 LIBS=$ac_check_lib_save_LIBS
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3726 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3727 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3728   cat >>confdefs.h <<_ACEOF
3729 @%:@define HAVE_LIBNSL 1
3730 _ACEOF
3731
3732   LIBS="-lnsl $LIBS"
3733
3734 else
3735   # Some strange OSes (SINIX) have it in libsocket:
3736        
3737 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3738 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3739 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   ac_check_lib_save_LIBS=$LIBS
3743 LIBS="-lsocket  $LIBS"
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750
3751 /* Override any GCC internal prototype to avoid an error.
3752    Use char because int might match the return type of a GCC
3753    builtin and then its argument prototype would still apply.  */
3754 #ifdef __cplusplus
3755 extern "C"
3756 #endif
3757 char gethostbyname ();
3758 int
3759 main ()
3760 {
3761 return gethostbyname ();
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 rm -f conftest.$ac_objext conftest$ac_exeext
3767 if { (ac_try="$ac_link"
3768 case "(($ac_try" in
3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770   *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773   (eval "$ac_link") 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && {
3780          test -z "$ac_c_werror_flag" ||
3781          test ! -s conftest.err
3782        } && test -s conftest$ac_exeext &&
3783        $as_test_x conftest$ac_exeext; then
3784   ac_cv_lib_socket_gethostbyname=yes
3785 else
3786   echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789         ac_cv_lib_socket_gethostbyname=no
3790 fi
3791
3792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3793       conftest$ac_exeext conftest.$ac_ext
3794 LIBS=$ac_check_lib_save_LIBS
3795 fi
3796 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3797 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3798 if test $ac_cv_lib_socket_gethostbyname = yes; then
3799   cat >>confdefs.h <<_ACEOF
3800 @%:@define HAVE_LIBSOCKET 1
3801 _ACEOF
3802
3803   LIBS="-lsocket $LIBS"
3804
3805 else
3806   # Unfortunately libsocket sometimes depends on libnsl.
3807           # AC_CHECK_LIB's API is essentially broken so the following
3808           # ugliness is necessary:
3809           { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3810 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3811 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   ac_check_lib_save_LIBS=$LIBS
3815 LIBS="-lsocket -lnsl $LIBS"
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822
3823 /* Override any GCC internal prototype to avoid an error.
3824    Use char because int might match the return type of a GCC
3825    builtin and then its argument prototype would still apply.  */
3826 #ifdef __cplusplus
3827 extern "C"
3828 #endif
3829 char gethostbyname ();
3830 int
3831 main ()
3832 {
3833 return gethostbyname ();
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext conftest$ac_exeext
3839 if { (ac_try="$ac_link"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845   (eval "$ac_link") 2>conftest.er1
3846   ac_status=$?
3847   grep -v '^ *+' conftest.er1 >conftest.err
3848   rm -f conftest.er1
3849   cat conftest.err >&5
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); } && {
3852          test -z "$ac_c_werror_flag" ||
3853          test ! -s conftest.err
3854        } && test -s conftest$ac_exeext &&
3855        $as_test_x conftest$ac_exeext; then
3856   ac_cv_lib_socket_gethostbyname=yes
3857 else
3858   echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861         ac_cv_lib_socket_gethostbyname=no
3862 fi
3863
3864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3865       conftest$ac_exeext conftest.$ac_ext
3866 LIBS=$ac_check_lib_save_LIBS
3867 fi
3868 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3869 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3870 if test $ac_cv_lib_socket_gethostbyname = yes; then
3871   LIBS="-lsocket -lnsl $LIBS"
3872 else
3873   
3874 { echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3875 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6; }
3876 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   ac_check_lib_save_LIBS=$LIBS
3880 LIBS="-lresolv  $LIBS"
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887
3888 /* Override any GCC internal prototype to avoid an error.
3889    Use char because int might match the return type of a GCC
3890    builtin and then its argument prototype would still apply.  */
3891 #ifdef __cplusplus
3892 extern "C"
3893 #endif
3894 char gethostbyname ();
3895 int
3896 main ()
3897 {
3898 return gethostbyname ();
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext conftest$ac_exeext
3904 if { (ac_try="$ac_link"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_link") 2>conftest.er1
3911   ac_status=$?
3912   grep -v '^ *+' conftest.er1 >conftest.err
3913   rm -f conftest.er1
3914   cat conftest.err >&5
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } && {
3917          test -z "$ac_c_werror_flag" ||
3918          test ! -s conftest.err
3919        } && test -s conftest$ac_exeext &&
3920        $as_test_x conftest$ac_exeext; then
3921   ac_cv_lib_resolv_gethostbyname=yes
3922 else
3923   echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926         ac_cv_lib_resolv_gethostbyname=no
3927 fi
3928
3929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3930       conftest$ac_exeext conftest.$ac_ext
3931 LIBS=$ac_check_lib_save_LIBS
3932 fi
3933 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3934 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6; }
3935 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3936   cat >>confdefs.h <<_ACEOF
3937 @%:@define HAVE_LIBRESOLV 1
3938 _ACEOF
3939
3940   LIBS="-lresolv $LIBS"
3941
3942 fi
3943
3944 fi
3945
3946        
3947 fi
3948
3949      
3950 fi
3951
3952    
3953 fi
3954
3955   { echo "$as_me:$LINENO: checking for socket" >&5
3956 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
3957 if test "${ac_cv_func_socket+set}" = set; then
3958   echo $ECHO_N "(cached) $ECHO_C" >&6
3959 else
3960   cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h.  */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h.  */
3966 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3968 #define socket innocuous_socket
3969
3970 /* System header to define __stub macros and hopefully few prototypes,
3971     which can conflict with char socket (); below.
3972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973     <limits.h> exists even on freestanding compilers.  */
3974
3975 #ifdef __STDC__
3976 # include <limits.h>
3977 #else
3978 # include <assert.h>
3979 #endif
3980
3981 #undef socket
3982
3983 /* Override any GCC internal prototype to avoid an error.
3984    Use char because int might match the return type of a GCC
3985    builtin and then its argument prototype would still apply.  */
3986 #ifdef __cplusplus
3987 extern "C"
3988 #endif
3989 char socket ();
3990 /* The GNU C library defines this for functions which it implements
3991     to always fail with ENOSYS.  Some functions are actually named
3992     something starting with __ and the normal name is an alias.  */
3993 #if defined __stub_socket || defined __stub___socket
3994 choke me
3995 #endif
3996
3997 int
3998 main ()
3999 {
4000 return socket ();
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.$ac_objext conftest$ac_exeext
4006 if { (ac_try="$ac_link"
4007 case "(($ac_try" in
4008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009   *) ac_try_echo=$ac_try;;
4010 esac
4011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012   (eval "$ac_link") 2>conftest.er1
4013   ac_status=$?
4014   grep -v '^ *+' conftest.er1 >conftest.err
4015   rm -f conftest.er1
4016   cat conftest.err >&5
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); } && {
4019          test -z "$ac_c_werror_flag" ||
4020          test ! -s conftest.err
4021        } && test -s conftest$ac_exeext &&
4022        $as_test_x conftest$ac_exeext; then
4023   ac_cv_func_socket=yes
4024 else
4025   echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028         ac_cv_func_socket=no
4029 fi
4030
4031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4032       conftest$ac_exeext conftest.$ac_ext
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4035 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4036 if test $ac_cv_func_socket = yes; then
4037   :
4038 else
4039   
4040 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4041 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4042 if test "${ac_cv_lib_socket_socket+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   ac_check_lib_save_LIBS=$LIBS
4046 LIBS="-lsocket  $LIBS"
4047 cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053
4054 /* Override any GCC internal prototype to avoid an error.
4055    Use char because int might match the return type of a GCC
4056    builtin and then its argument prototype would still apply.  */
4057 #ifdef __cplusplus
4058 extern "C"
4059 #endif
4060 char socket ();
4061 int
4062 main ()
4063 {
4064 return socket ();
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (ac_try="$ac_link"
4071 case "(($ac_try" in
4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073   *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076   (eval "$ac_link") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } && {
4083          test -z "$ac_c_werror_flag" ||
4084          test ! -s conftest.err
4085        } && test -s conftest$ac_exeext &&
4086        $as_test_x conftest$ac_exeext; then
4087   ac_cv_lib_socket_socket=yes
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092         ac_cv_lib_socket_socket=no
4093 fi
4094
4095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4096       conftest$ac_exeext conftest.$ac_ext
4097 LIBS=$ac_check_lib_save_LIBS
4098 fi
4099 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4100 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4101 if test $ac_cv_lib_socket_socket = yes; then
4102   cat >>confdefs.h <<_ACEOF
4103 @%:@define HAVE_LIBSOCKET 1
4104 _ACEOF
4105
4106   LIBS="-lsocket $LIBS"
4107
4108 else
4109   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4110 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4111 if test "${ac_cv_lib_socket_socket+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   ac_check_lib_save_LIBS=$LIBS
4115 LIBS="-lsocket -lnsl $LIBS"
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122
4123 /* Override any GCC internal prototype to avoid an error.
4124    Use char because int might match the return type of a GCC
4125    builtin and then its argument prototype would still apply.  */
4126 #ifdef __cplusplus
4127 extern "C"
4128 #endif
4129 char socket ();
4130 int
4131 main ()
4132 {
4133 return socket ();
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.$ac_objext conftest$ac_exeext
4139 if { (ac_try="$ac_link"
4140 case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145   (eval "$ac_link") 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } && {
4152          test -z "$ac_c_werror_flag" ||
4153          test ! -s conftest.err
4154        } && test -s conftest$ac_exeext &&
4155        $as_test_x conftest$ac_exeext; then
4156   ac_cv_lib_socket_socket=yes
4157 else
4158   echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161         ac_cv_lib_socket_socket=no
4162 fi
4163
4164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4165       conftest$ac_exeext conftest.$ac_ext
4166 LIBS=$ac_check_lib_save_LIBS
4167 fi
4168 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4169 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4170 if test $ac_cv_lib_socket_socket = yes; then
4171   LIBS="-lsocket -lnsl $LIBS"
4172 fi
4173
4174 fi
4175
4176 fi
4177
4178   
4179
4180 ac_ext=c
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4189   CPP=
4190 fi
4191 if test -z "$CPP"; then
4192   if test "${ac_cv_prog_CPP+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195       # Double quotes because CPP needs to be expanded
4196     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4197     do
4198       ac_preproc_ok=false
4199 for ac_c_preproc_warn_flag in '' yes
4200 do
4201   # Use a header file that comes with gcc, so configuring glibc
4202   # with a fresh cross-compiler works.
4203   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204   # <limits.h> exists even on freestanding compilers.
4205   # On the NeXT, cc -E runs the code through the compiler's parser,
4206   # not just through cpp. "Syntax error" is here to catch this case.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213 @%:@ifdef __STDC__
4214 @%:@ include <limits.h>
4215 @%:@else
4216 @%:@ include <assert.h>
4217 @%:@endif
4218                      Syntax error
4219 _ACEOF
4220 if { (ac_try="$ac_cpp conftest.$ac_ext"
4221 case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } >/dev/null && {
4233          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4234          test ! -s conftest.err
4235        }; then
4236   :
4237 else
4238   echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241   # Broken: fails on valid input.
4242 continue
4243 fi
4244
4245 rm -f conftest.err conftest.$ac_ext
4246
4247   # OK, works on sane cases.  Now check whether nonexistent headers
4248   # can be detected and how.
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 @%:@include <ac_nonexistent.h>
4256 _ACEOF
4257 if { (ac_try="$ac_cpp conftest.$ac_ext"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } >/dev/null && {
4270          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4271          test ! -s conftest.err
4272        }; then
4273   # Broken: success on invalid input.
4274 continue
4275 else
4276   echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279   # Passes both tests.
4280 ac_preproc_ok=:
4281 break
4282 fi
4283
4284 rm -f conftest.err conftest.$ac_ext
4285
4286 done
4287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4288 rm -f conftest.err conftest.$ac_ext
4289 if $ac_preproc_ok; then
4290   break
4291 fi
4292
4293     done
4294     ac_cv_prog_CPP=$CPP
4295   
4296 fi
4297   CPP=$ac_cv_prog_CPP
4298 else
4299   ac_cv_prog_CPP=$CPP
4300 fi
4301 { echo "$as_me:$LINENO: result: $CPP" >&5
4302 echo "${ECHO_T}$CPP" >&6; }
4303 ac_preproc_ok=false
4304 for ac_c_preproc_warn_flag in '' yes
4305 do
4306   # Use a header file that comes with gcc, so configuring glibc
4307   # with a fresh cross-compiler works.
4308   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309   # <limits.h> exists even on freestanding compilers.
4310   # On the NeXT, cc -E runs the code through the compiler's parser,
4311   # not just through cpp. "Syntax error" is here to catch this case.
4312   cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 @%:@ifdef __STDC__
4319 @%:@ include <limits.h>
4320 @%:@else
4321 @%:@ include <assert.h>
4322 @%:@endif
4323                      Syntax error
4324 _ACEOF
4325 if { (ac_try="$ac_cpp conftest.$ac_ext"
4326 case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4332   ac_status=$?
4333   grep -v '^ *+' conftest.er1 >conftest.err
4334   rm -f conftest.er1
4335   cat conftest.err >&5
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); } >/dev/null && {
4338          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4339          test ! -s conftest.err
4340        }; then
4341   :
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346   # Broken: fails on valid input.
4347 continue
4348 fi
4349
4350 rm -f conftest.err conftest.$ac_ext
4351
4352   # OK, works on sane cases.  Now check whether nonexistent headers
4353   # can be detected and how.
4354   cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h.  */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h.  */
4360 @%:@include <ac_nonexistent.h>
4361 _ACEOF
4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
4363 case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } >/dev/null && {
4375          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376          test ! -s conftest.err
4377        }; then
4378   # Broken: success on invalid input.
4379 continue
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384   # Passes both tests.
4385 ac_preproc_ok=:
4386 break
4387 fi
4388
4389 rm -f conftest.err conftest.$ac_ext
4390
4391 done
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.$ac_ext
4394 if $ac_preproc_ok; then
4395   :
4396 else
4397   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4398 See \`config.log' for more details." >&5
4399 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4400 See \`config.log' for more details." >&2;}
4401    { (exit 1); exit 1; }; }
4402 fi
4403
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410
4411 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4412 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_GREP+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   # Extract the first word of "grep ggrep" to use in msg output
4417 if test -z "$GREP"; then
4418 set dummy grep ggrep; ac_prog_name=$2
4419 if test "${ac_cv_path_GREP+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   ac_path_GREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_prog in grep ggrep; do
4430   for ac_exec_ext in '' $ac_executable_extensions; do
4431     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4432     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4433     # Check for GNU ac_path_GREP and select it if it is found.
4434   # Check for GNU $ac_path_GREP
4435 case `"$ac_path_GREP" --version 2>&1` in
4436 *GNU*)
4437   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4438 *)
4439   ac_count=0
4440   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4441   while :
4442   do
4443     cat "conftest.in" "conftest.in" >"conftest.tmp"
4444     mv "conftest.tmp" "conftest.in"
4445     cp "conftest.in" "conftest.nl"
4446     echo 'GREP' >> "conftest.nl"
4447     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449     ac_count=`expr $ac_count + 1`
4450     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4451       # Best one so far, save it but keep looking for a better one
4452       ac_cv_path_GREP="$ac_path_GREP"
4453       ac_path_GREP_max=$ac_count
4454     fi
4455     # 10*(2^10) chars as input seems more than enough
4456     test $ac_count -gt 10 && break
4457   done
4458   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459 esac
4460
4461
4462     $ac_path_GREP_found && break 3
4463   done
4464 done
4465
4466 done
4467 IFS=$as_save_IFS
4468
4469
4470 fi
4471
4472 GREP="$ac_cv_path_GREP"
4473 if test -z "$GREP"; then
4474   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4475 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4476    { (exit 1); exit 1; }; }
4477 fi
4478
4479 else
4480   ac_cv_path_GREP=$GREP
4481 fi
4482
4483
4484 fi
4485 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4486 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4487  GREP="$ac_cv_path_GREP"
4488  
4489
4490 { echo "$as_me:$LINENO: checking for egrep" >&5
4491 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_EGREP+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4496    then ac_cv_path_EGREP="$GREP -E"
4497    else
4498      # Extract the first word of "egrep" to use in msg output
4499 if test -z "$EGREP"; then
4500 set dummy egrep; ac_prog_name=$2
4501 if test "${ac_cv_path_EGREP+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   ac_path_EGREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_prog in egrep; do
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4514     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4515     # Check for GNU ac_path_EGREP and select it if it is found.
4516   # Check for GNU $ac_path_EGREP
4517 case `"$ac_path_EGREP" --version 2>&1` in
4518 *GNU*)
4519   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4520 *)
4521   ac_count=0
4522   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4523   while :
4524   do
4525     cat "conftest.in" "conftest.in" >"conftest.tmp"
4526     mv "conftest.tmp" "conftest.in"
4527     cp "conftest.in" "conftest.nl"
4528     echo 'EGREP' >> "conftest.nl"
4529     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531     ac_count=`expr $ac_count + 1`
4532     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533       # Best one so far, save it but keep looking for a better one
4534       ac_cv_path_EGREP="$ac_path_EGREP"
4535       ac_path_EGREP_max=$ac_count
4536     fi
4537     # 10*(2^10) chars as input seems more than enough
4538     test $ac_count -gt 10 && break
4539   done
4540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 esac
4542
4543
4544     $ac_path_EGREP_found && break 3
4545   done
4546 done
4547
4548 done
4549 IFS=$as_save_IFS
4550
4551
4552 fi
4553
4554 EGREP="$ac_cv_path_EGREP"
4555 if test -z "$EGREP"; then
4556   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4557 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4558    { (exit 1); exit 1; }; }
4559 fi
4560
4561 else
4562   ac_cv_path_EGREP=$EGREP
4563 fi
4564
4565
4566    fi
4567 fi
4568 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4569 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4570  EGREP="$ac_cv_path_EGREP"
4571  
4572
4573 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4574 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4575 if test "${ac_cv_header_stdc+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584 #include <stdlib.h>
4585 #include <stdarg.h>
4586 #include <string.h>
4587 #include <float.h>
4588
4589 int
4590 main ()
4591 {
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } && {
4611          test -z "$ac_c_werror_flag" ||
4612          test ! -s conftest.err
4613        } && test -s conftest.$ac_objext; then
4614   ac_cv_header_stdc=yes
4615 else
4616   echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619         ac_cv_header_stdc=no
4620 fi
4621
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623
4624 if test $ac_cv_header_stdc = yes; then
4625   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626   cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632 #include <string.h>
4633
4634 _ACEOF
4635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4636   $EGREP "memchr" >/dev/null 2>&1; then
4637   :
4638 else
4639   ac_cv_header_stdc=no
4640 fi
4641 rm -f conftest*
4642
4643 fi
4644
4645 if test $ac_cv_header_stdc = yes; then
4646   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4647   cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653 #include <stdlib.h>
4654
4655 _ACEOF
4656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657   $EGREP "free" >/dev/null 2>&1; then
4658   :
4659 else
4660   ac_cv_header_stdc=no
4661 fi
4662 rm -f conftest*
4663
4664 fi
4665
4666 if test $ac_cv_header_stdc = yes; then
4667   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4668   if test "$cross_compiling" = yes; then
4669   :
4670 else
4671   cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 #include <ctype.h>
4678 #include <stdlib.h>
4679 #if ((' ' & 0x0FF) == 0x020)
4680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4682 #else
4683 # define ISLOWER(c) \
4684                    (('a' <= (c) && (c) <= 'i') \
4685                      || ('j' <= (c) && (c) <= 'r') \
4686                      || ('s' <= (c) && (c) <= 'z'))
4687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688 #endif
4689
4690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691 int
4692 main ()
4693 {
4694   int i;
4695   for (i = 0; i < 256; i++)
4696     if (XOR (islower (i), ISLOWER (i))
4697         || toupper (i) != TOUPPER (i))
4698       return 2;
4699   return 0;
4700 }
4701 _ACEOF
4702 rm -f conftest$ac_exeext
4703 if { (ac_try="$ac_link"
4704 case "(($ac_try" in
4705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706   *) ac_try_echo=$ac_try;;
4707 esac
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709   (eval "$ac_link") 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4713   { (case "(($ac_try" in
4714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715   *) ac_try_echo=$ac_try;;
4716 esac
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718   (eval "$ac_try") 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   :
4723 else
4724   echo "$as_me: program exited with status $ac_status" >&5
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ( exit $ac_status )
4729 ac_cv_header_stdc=no
4730 fi
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 fi
4733
4734
4735 fi
4736 fi
4737 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4738 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4739 if test $ac_cv_header_stdc = yes; then
4740   
4741 cat >>confdefs.h <<\_ACEOF
4742 @%:@define STDC_HEADERS 1
4743 _ACEOF
4744
4745 fi
4746
4747 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4758                   inttypes.h stdint.h unistd.h
4759 do
4760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h.  */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h.  */
4772 $ac_includes_default
4773
4774 @%:@include <$ac_header>
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (ac_try="$ac_compile"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783   (eval "$ac_compile") 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } && {
4790          test -z "$ac_c_werror_flag" ||
4791          test ! -s conftest.err
4792        } && test -s conftest.$ac_objext; then
4793   eval "$as_ac_Header=yes"
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798         eval "$as_ac_Header=no"
4799 fi
4800
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803 ac_res=`eval echo '${'$as_ac_Header'}'`
4804                { echo "$as_me:$LINENO: result: $ac_res" >&5
4805 echo "${ECHO_T}$ac_res" >&6; }
4806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4807   cat >>confdefs.h <<_ACEOF
4808 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4809 _ACEOF
4810  
4811 fi
4812
4813 done
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4827 do
4828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4830   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 fi
4835 ac_res=`eval echo '${'$as_ac_Header'}'`
4836                { echo "$as_me:$LINENO: result: $ac_res" >&5
4837 echo "${ECHO_T}$ac_res" >&6; }
4838 else
4839   # Is the header compilable?
4840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 $ac_includes_default
4849 @%:@include <$ac_header>
4850 _ACEOF
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4853 case "(($ac_try" in
4854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855   *) ac_try_echo=$ac_try;;
4856 esac
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858   (eval "$ac_compile") 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } && {
4865          test -z "$ac_c_werror_flag" ||
4866          test ! -s conftest.err
4867        } && test -s conftest.$ac_objext; then
4868   ac_header_compiler=yes
4869 else
4870   echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873         ac_header_compiler=no
4874 fi
4875
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 echo "${ECHO_T}$ac_header_compiler" >&6; }
4879
4880 # Is the header present?
4881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 @%:@include <$ac_header>
4890 _ACEOF
4891 if { (ac_try="$ac_cpp conftest.$ac_ext"
4892 case "(($ac_try" in
4893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894   *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4898   ac_status=$?
4899   grep -v '^ *+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } >/dev/null && {
4904          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4905          test ! -s conftest.err
4906        }; then
4907   ac_header_preproc=yes
4908 else
4909   echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912   ac_header_preproc=no
4913 fi
4914
4915 rm -f conftest.err conftest.$ac_ext
4916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 echo "${ECHO_T}$ac_header_preproc" >&6; }
4918
4919 # So?  What about this header?
4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4921   yes:no: )
4922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4926     ac_header_preproc=yes
4927     ;;
4928   no:yes:* )
4929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4941     
4942     ;;
4943 esac
4944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   eval "$as_ac_Header=\$ac_header_preproc"
4950 fi
4951 ac_res=`eval echo '${'$as_ac_Header'}'`
4952                { echo "$as_me:$LINENO: result: $ac_res" >&5
4953 echo "${ECHO_T}$ac_res" >&6; }
4954
4955 fi
4956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4957   cat >>confdefs.h <<_ACEOF
4958 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4959 _ACEOF
4960  
4961 fi
4962
4963 done
4964
4965
4966 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4967 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4968 if test "${ac_cv_c_bigendian+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   # See if sys/param.h defines the BYTE_ORDER macro.
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h.  */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h.  */
4978 #include <sys/types.h>
4979 #include <sys/param.h>
4980
4981 int
4982 main ()
4983 {
4984 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4985         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4986  bogus endian macros
4987 #endif
4988
4989   ;
4990   return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (ac_try="$ac_compile"
4995 case "(($ac_try" in
4996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997   *) ac_try_echo=$ac_try;;
4998 esac
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000   (eval "$ac_compile") 2>conftest.er1
5001   ac_status=$?
5002   grep -v '^ *+' conftest.er1 >conftest.err
5003   rm -f conftest.er1
5004   cat conftest.err >&5
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); } && {
5007          test -z "$ac_c_werror_flag" ||
5008          test ! -s conftest.err
5009        } && test -s conftest.$ac_objext; then
5010   # It does; now see whether it defined to BIG_ENDIAN or not.
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 #include <sys/types.h>
5018 #include <sys/param.h>
5019
5020 int
5021 main ()
5022 {
5023 #if BYTE_ORDER != BIG_ENDIAN
5024  not big endian
5025 #endif
5026
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (ac_try="$ac_compile"
5033 case "(($ac_try" in
5034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035   *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038   (eval "$ac_compile") 2>conftest.er1
5039   ac_status=$?
5040   grep -v '^ *+' conftest.er1 >conftest.err
5041   rm -f conftest.er1
5042   cat conftest.err >&5
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } && {
5045          test -z "$ac_c_werror_flag" ||
5046          test ! -s conftest.err
5047        } && test -s conftest.$ac_objext; then
5048   ac_cv_c_bigendian=yes
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053         ac_cv_c_bigendian=no
5054 fi
5055
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061         # It does not; compile a test program.
5062 if test "$cross_compiling" = yes; then
5063   # try to guess the endianness by grepping values into an object file
5064   ac_cv_c_bigendian=unknown
5065   cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h.  */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h.  */
5071 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5072 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5073 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5074 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5075 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5076 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5077 int
5078 main ()
5079 {
5080  _ascii (); _ebcdic (); 
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5087 case "(($ac_try" in
5088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089   *) ac_try_echo=$ac_try;;
5090 esac
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092   (eval "$ac_compile") 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && {
5099          test -z "$ac_c_werror_flag" ||
5100          test ! -s conftest.err
5101        } && test -s conftest.$ac_objext; then
5102   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5103   ac_cv_c_bigendian=yes
5104 fi
5105 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5106   if test "$ac_cv_c_bigendian" = unknown; then
5107     ac_cv_c_bigendian=no
5108   else
5109     # finding both strings is unlikely to happen, but who knows?
5110     ac_cv_c_bigendian=unknown
5111   fi
5112 fi
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117         
5118 fi
5119
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121 else
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 $ac_includes_default
5129 int
5130 main ()
5131 {
5132
5133   /* Are we little or big endian?  From Harbison&Steele.  */
5134   union
5135   {
5136     long int l;
5137     char c[sizeof (long int)];
5138   } u;
5139   u.l = 1;
5140   return u.c[sizeof (long int) - 1] == 1;
5141
5142   ;
5143   return 0;
5144 }
5145 _ACEOF
5146 rm -f conftest$ac_exeext
5147 if { (ac_try="$ac_link"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_link") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5157   { (case "(($ac_try" in
5158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159   *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162   (eval "$ac_try") 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; }; then
5166   ac_cv_c_bigendian=no
5167 else
5168   echo "$as_me: program exited with status $ac_status" >&5
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172 ( exit $ac_status )
5173 ac_cv_c_bigendian=yes
5174 fi
5175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5176 fi
5177
5178
5179 fi
5180
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 fi
5183 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5184 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5185 case $ac_cv_c_bigendian in
5186   yes)
5187     
5188 cat >>confdefs.h <<\_ACEOF
5189 @%:@define WORDS_BIGENDIAN 1
5190 _ACEOF
5191  ;;
5192   no)
5193      ;;
5194   *)
5195     { { echo "$as_me:$LINENO: error: unknown endianness
5196 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5197 echo "$as_me: error: unknown endianness
5198 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5199    { (exit 1); exit 1; }; } ;;
5200 esac
5201
5202 { echo "$as_me:$LINENO: checking for size_t" >&5
5203 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5204 if test "${ac_cv_type_size_t+set}" = set; then
5205   echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207   cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h.  */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h.  */
5213 $ac_includes_default
5214 typedef size_t ac__type_new_;
5215 int
5216 main ()
5217 {
5218 if ((ac__type_new_ *) 0)
5219   return 0;
5220 if (sizeof (ac__type_new_))
5221   return 0;
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (ac_try="$ac_compile"
5228 case "(($ac_try" in
5229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230   *) ac_try_echo=$ac_try;;
5231 esac
5232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233   (eval "$ac_compile") 2>conftest.er1
5234   ac_status=$?
5235   grep -v '^ *+' conftest.er1 >conftest.err
5236   rm -f conftest.er1
5237   cat conftest.err >&5
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); } && {
5240          test -z "$ac_c_werror_flag" ||
5241          test ! -s conftest.err
5242        } && test -s conftest.$ac_objext; then
5243   ac_cv_type_size_t=yes
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248         ac_cv_type_size_t=no
5249 fi
5250
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 fi
5253 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5254 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5255 if test $ac_cv_type_size_t = yes; then
5256   :
5257 else
5258   
5259 cat >>confdefs.h <<_ACEOF
5260 @%:@define size_t unsigned int
5261 _ACEOF
5262
5263 fi
5264
5265 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5266 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5267 if test "${ac_cv_header_time+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h.  */
5276 #include <sys/types.h>
5277 #include <sys/time.h>
5278 #include <time.h>
5279
5280 int
5281 main ()
5282 {
5283 if ((struct tm *) 0)
5284 return 0;
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (ac_try="$ac_compile"
5291 case "(($ac_try" in
5292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293   *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296   (eval "$ac_compile") 2>conftest.er1
5297   ac_status=$?
5298   grep -v '^ *+' conftest.er1 >conftest.err
5299   rm -f conftest.er1
5300   cat conftest.err >&5
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); } && {
5303          test -z "$ac_c_werror_flag" ||
5304          test ! -s conftest.err
5305        } && test -s conftest.$ac_objext; then
5306   ac_cv_header_time=yes
5307 else
5308   echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311         ac_cv_header_time=no
5312 fi
5313
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 fi
5316 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5317 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5318 if test $ac_cv_header_time = yes; then
5319   
5320 cat >>confdefs.h <<\_ACEOF
5321 @%:@define TIME_WITH_SYS_TIME 1
5322 _ACEOF
5323
5324 fi
5325
5326 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5327 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5328 if test "${ac_cv_struct_tm+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 #include <sys/types.h>
5338 #include <time.h>
5339
5340 int
5341 main ()
5342 {
5343 struct tm tm;
5344                                      int *p = &tm.tm_sec;
5345                                      return !p;
5346   ;
5347   return 0;
5348 }
5349 _ACEOF
5350 rm -f conftest.$ac_objext
5351 if { (ac_try="$ac_compile"
5352 case "(($ac_try" in
5353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354   *) ac_try_echo=$ac_try;;
5355 esac
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357   (eval "$ac_compile") 2>conftest.er1
5358   ac_status=$?
5359   grep -v '^ *+' conftest.er1 >conftest.err
5360   rm -f conftest.er1
5361   cat conftest.err >&5
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); } && {
5364          test -z "$ac_c_werror_flag" ||
5365          test ! -s conftest.err
5366        } && test -s conftest.$ac_objext; then
5367   ac_cv_struct_tm=time.h
5368 else
5369   echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372         ac_cv_struct_tm=sys/time.h
5373 fi
5374
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 fi
5377 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5378 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5379 if test $ac_cv_struct_tm = sys/time.h; then
5380   
5381 cat >>confdefs.h <<\_ACEOF
5382 @%:@define TM_IN_SYS_TIME 1
5383 _ACEOF
5384
5385 fi
5386
5387 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5388 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5389 if test "${ac_cv_type_uid_t+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h.  */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h.  */
5398 #include <sys/types.h>
5399
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402   $EGREP "uid_t" >/dev/null 2>&1; then
5403   ac_cv_type_uid_t=yes
5404 else
5405   ac_cv_type_uid_t=no
5406 fi
5407 rm -f conftest*
5408
5409 fi
5410 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5411 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5412 if test $ac_cv_type_uid_t = no; then
5413   
5414 cat >>confdefs.h <<\_ACEOF
5415 @%:@define uid_t int
5416 _ACEOF
5417
5418   
5419 cat >>confdefs.h <<\_ACEOF
5420 @%:@define gid_t int
5421 _ACEOF
5422
5423 fi
5424
5425 { echo "$as_me:$LINENO: checking for short" >&5
5426 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5427 if test "${ac_cv_type_short+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 typedef short ac__type_new_;
5438 int
5439 main ()
5440 {
5441 if ((ac__type_new_ *) 0)
5442   return 0;
5443 if (sizeof (ac__type_new_))
5444   return 0;
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5451 case "(($ac_try" in
5452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453   *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456   (eval "$ac_compile") 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } && {
5463          test -z "$ac_c_werror_flag" ||
5464          test ! -s conftest.err
5465        } && test -s conftest.$ac_objext; then
5466   ac_cv_type_short=yes
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471         ac_cv_type_short=no
5472 fi
5473
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5477 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5478
5479 # The cast to long int works around a bug in the HP C Compiler
5480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5482 # This bug is HP SR number 8606223364.
5483 { echo "$as_me:$LINENO: checking size of short" >&5
5484 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5485 if test "${ac_cv_sizeof_short+set}" = set; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   if test "$cross_compiling" = yes; then
5489   # Depending upon the size, compute the lo and hi bounds.
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496 $ac_includes_default
5497    typedef short ac__type_sizeof_;
5498 int
5499 main ()
5500 {
5501 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
5502 test_array @<:@0@:>@ = 0
5503
5504   ;
5505   return 0;
5506 }
5507 _ACEOF
5508 rm -f conftest.$ac_objext
5509 if { (ac_try="$ac_compile"
5510 case "(($ac_try" in
5511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512   *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515   (eval "$ac_compile") 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } && {
5522          test -z "$ac_c_werror_flag" ||
5523          test ! -s conftest.err
5524        } && test -s conftest.$ac_objext; then
5525   ac_lo=0 ac_mid=0
5526   while :; do
5527     cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h.  */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h.  */
5533 $ac_includes_default
5534    typedef short ac__type_sizeof_;
5535 int
5536 main ()
5537 {
5538 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
5539 test_array @<:@0@:>@ = 0
5540
5541   ;
5542   return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5547 case "(($ac_try" in
5548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549   *) ac_try_echo=$ac_try;;
5550 esac
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552   (eval "$ac_compile") 2>conftest.er1
5553   ac_status=$?
5554   grep -v '^ *+' conftest.er1 >conftest.err
5555   rm -f conftest.er1
5556   cat conftest.err >&5
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); } && {
5559          test -z "$ac_c_werror_flag" ||
5560          test ! -s conftest.err
5561        } && test -s conftest.$ac_objext; then
5562   ac_hi=$ac_mid; break
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567         ac_lo=`expr $ac_mid + 1`
5568                         if test $ac_lo -le $ac_mid; then
5569                           ac_lo= ac_hi=
5570                           break
5571                         fi
5572                         ac_mid=`expr 2 '*' $ac_mid + 1`
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576   done
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581         cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 $ac_includes_default
5588    typedef short ac__type_sizeof_;
5589 int
5590 main ()
5591 {
5592 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
5593 test_array @<:@0@:>@ = 0
5594
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_compile") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } && {
5613          test -z "$ac_c_werror_flag" ||
5614          test ! -s conftest.err
5615        } && test -s conftest.$ac_objext; then
5616   ac_hi=-1 ac_mid=-1
5617   while :; do
5618     cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h.  */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h.  */
5624 $ac_includes_default
5625    typedef short ac__type_sizeof_;
5626 int
5627 main ()
5628 {
5629 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
5630 test_array @<:@0@:>@ = 0
5631
5632   ;
5633   return 0;
5634 }
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (ac_try="$ac_compile"
5638 case "(($ac_try" in
5639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640   *) ac_try_echo=$ac_try;;
5641 esac
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643   (eval "$ac_compile") 2>conftest.er1
5644   ac_status=$?
5645   grep -v '^ *+' conftest.er1 >conftest.err
5646   rm -f conftest.er1
5647   cat conftest.err >&5
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); } && {
5650          test -z "$ac_c_werror_flag" ||
5651          test ! -s conftest.err
5652        } && test -s conftest.$ac_objext; then
5653   ac_lo=$ac_mid; break
5654 else
5655   echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5657
5658         ac_hi=`expr '(' $ac_mid ')' - 1`
5659                         if test $ac_mid -le $ac_hi; then
5660                           ac_lo= ac_hi=
5661                           break
5662                         fi
5663                         ac_mid=`expr 2 '*' $ac_mid`
5664 fi
5665
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667   done
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672         ac_lo= ac_hi=
5673 fi
5674
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 fi
5677
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 # Binary search between lo and hi bounds.
5680 while test "x$ac_lo" != "x$ac_hi"; do
5681   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5682   cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h.  */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h.  */
5688 $ac_includes_default
5689    typedef short ac__type_sizeof_;
5690 int
5691 main ()
5692 {
5693 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
5694 test_array @<:@0@:>@ = 0
5695
5696   ;
5697   return 0;
5698 }
5699 _ACEOF
5700 rm -f conftest.$ac_objext
5701 if { (ac_try="$ac_compile"
5702 case "(($ac_try" in
5703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704   *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707   (eval "$ac_compile") 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } && {
5714          test -z "$ac_c_werror_flag" ||
5715          test ! -s conftest.err
5716        } && test -s conftest.$ac_objext; then
5717   ac_hi=$ac_mid
5718 else
5719   echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722         ac_lo=`expr '(' $ac_mid ')' + 1`
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 done
5727 case $ac_lo in
5728 ?*) ac_cv_sizeof_short=$ac_lo;;
5729 '') if test "$ac_cv_type_short" = yes; then
5730      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5731 See \`config.log' for more details." >&5
5732 echo "$as_me: error: cannot compute sizeof (short)
5733 See \`config.log' for more details." >&2;}
5734    { (exit 77); exit 77; }; }
5735    else
5736      ac_cv_sizeof_short=0
5737    fi ;;
5738 esac
5739 else
5740   cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 $ac_includes_default
5747    typedef short ac__type_sizeof_;
5748 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5749 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5750 @%:@include <stdio.h>
5751 @%:@include <stdlib.h>
5752 int
5753 main ()
5754 {
5755
5756   FILE *f = fopen ("conftest.val", "w");
5757   if (! f)
5758     return 1;
5759   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5760     {
5761       long int i = longval ();
5762       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5763         return 1;
5764       fprintf (f, "%ld\n", i);
5765     }
5766   else
5767     {
5768       unsigned long int i = ulongval ();
5769       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5770         return 1;
5771       fprintf (f, "%lu\n", i);
5772     }
5773   return ferror (f) || fclose (f) != 0;
5774
5775   ;
5776   return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest$ac_exeext
5780 if { (ac_try="$ac_link"
5781 case "(($ac_try" in
5782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783   *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786   (eval "$ac_link") 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5790   { (case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_try") 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; }; then
5799   ac_cv_sizeof_short=`cat conftest.val`
5800 else
5801   echo "$as_me: program exited with status $ac_status" >&5
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 ( exit $ac_status )
5806 if test "$ac_cv_type_short" = yes; then
5807      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5808 See \`config.log' for more details." >&5
5809 echo "$as_me: error: cannot compute sizeof (short)
5810 See \`config.log' for more details." >&2;}
5811    { (exit 77); exit 77; }; }
5812    else
5813      ac_cv_sizeof_short=0
5814    fi
5815 fi
5816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5817 fi
5818 rm -f conftest.val
5819 fi
5820 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5821 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5822
5823
5824
5825 cat >>confdefs.h <<_ACEOF
5826 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
5827 _ACEOF
5828
5829
5830 { echo "$as_me:$LINENO: checking for int" >&5
5831 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5832 if test "${ac_cv_type_int+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 $ac_includes_default
5842 typedef int ac__type_new_;
5843 int
5844 main ()
5845 {
5846 if ((ac__type_new_ *) 0)
5847   return 0;
5848 if (sizeof (ac__type_new_))
5849   return 0;
5850   ;
5851   return 0;
5852 }
5853 _ACEOF
5854 rm -f conftest.$ac_objext
5855 if { (ac_try="$ac_compile"
5856 case "(($ac_try" in
5857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858   *) ac_try_echo=$ac_try;;
5859 esac
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861   (eval "$ac_compile") 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } && {
5868          test -z "$ac_c_werror_flag" ||
5869          test ! -s conftest.err
5870        } && test -s conftest.$ac_objext; then
5871   ac_cv_type_int=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876         ac_cv_type_int=no
5877 fi
5878
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5882 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5883
5884 # The cast to long int works around a bug in the HP C Compiler
5885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5887 # This bug is HP SR number 8606223364.
5888 { echo "$as_me:$LINENO: checking size of int" >&5
5889 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5890 if test "${ac_cv_sizeof_int+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   if test "$cross_compiling" = yes; then
5894   # Depending upon the size, compute the lo and hi bounds.
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 $ac_includes_default
5902    typedef int ac__type_sizeof_;
5903 int
5904 main ()
5905 {
5906 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
5907 test_array @<:@0@:>@ = 0
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5915 case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_compile") 2>conftest.er1
5921   ac_status=$?
5922   grep -v '^ *+' conftest.er1 >conftest.err
5923   rm -f conftest.er1
5924   cat conftest.err >&5
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } && {
5927          test -z "$ac_c_werror_flag" ||
5928          test ! -s conftest.err
5929        } && test -s conftest.$ac_objext; then
5930   ac_lo=0 ac_mid=0
5931   while :; do
5932     cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h.  */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h.  */
5938 $ac_includes_default
5939    typedef int ac__type_sizeof_;
5940 int
5941 main ()
5942 {
5943 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
5944 test_array @<:@0@:>@ = 0
5945
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_compile") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && {
5964          test -z "$ac_c_werror_flag" ||
5965          test ! -s conftest.err
5966        } && test -s conftest.$ac_objext; then
5967   ac_hi=$ac_mid; break
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972         ac_lo=`expr $ac_mid + 1`
5973                         if test $ac_lo -le $ac_mid; then
5974                           ac_lo= ac_hi=
5975                           break
5976                         fi
5977                         ac_mid=`expr 2 '*' $ac_mid + 1`
5978 fi
5979
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981   done
5982 else
5983   echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986         cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 $ac_includes_default
5993    typedef int ac__type_sizeof_;
5994 int
5995 main ()
5996 {
5997 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
5998 test_array @<:@0@:>@ = 0
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (ac_try="$ac_compile"
6006 case "(($ac_try" in
6007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008   *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011   (eval "$ac_compile") 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } && {
6018          test -z "$ac_c_werror_flag" ||
6019          test ! -s conftest.err
6020        } && test -s conftest.$ac_objext; then
6021   ac_hi=-1 ac_mid=-1
6022   while :; do
6023     cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 $ac_includes_default
6030    typedef int ac__type_sizeof_;
6031 int
6032 main ()
6033 {
6034 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
6035 test_array @<:@0@:>@ = 0
6036
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_compile") 2>conftest.er1
6049   ac_status=$?
6050   grep -v '^ *+' conftest.er1 >conftest.err
6051   rm -f conftest.er1
6052   cat conftest.err >&5
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } && {
6055          test -z "$ac_c_werror_flag" ||
6056          test ! -s conftest.err
6057        } && test -s conftest.$ac_objext; then
6058   ac_lo=$ac_mid; break
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063         ac_hi=`expr '(' $ac_mid ')' - 1`
6064                         if test $ac_mid -le $ac_hi; then
6065                           ac_lo= ac_hi=
6066                           break
6067                         fi
6068                         ac_mid=`expr 2 '*' $ac_mid`
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072   done
6073 else
6074   echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077         ac_lo= ac_hi=
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 # Binary search between lo and hi bounds.
6085 while test "x$ac_lo" != "x$ac_hi"; do
6086   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6087   cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093 $ac_includes_default
6094    typedef int ac__type_sizeof_;
6095 int
6096 main ()
6097 {
6098 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6099 test_array @<:@0@:>@ = 0
6100
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_compile") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } && {
6119          test -z "$ac_c_werror_flag" ||
6120          test ! -s conftest.err
6121        } && test -s conftest.$ac_objext; then
6122   ac_hi=$ac_mid
6123 else
6124   echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.$ac_ext >&5
6126
6127         ac_lo=`expr '(' $ac_mid ')' + 1`
6128 fi
6129
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 done
6132 case $ac_lo in
6133 ?*) ac_cv_sizeof_int=$ac_lo;;
6134 '') if test "$ac_cv_type_int" = yes; then
6135      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6136 See \`config.log' for more details." >&5
6137 echo "$as_me: error: cannot compute sizeof (int)
6138 See \`config.log' for more details." >&2;}
6139    { (exit 77); exit 77; }; }
6140    else
6141      ac_cv_sizeof_int=0
6142    fi ;;
6143 esac
6144 else
6145   cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 $ac_includes_default
6152    typedef int ac__type_sizeof_;
6153 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6154 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6155 @%:@include <stdio.h>
6156 @%:@include <stdlib.h>
6157 int
6158 main ()
6159 {
6160
6161   FILE *f = fopen ("conftest.val", "w");
6162   if (! f)
6163     return 1;
6164   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6165     {
6166       long int i = longval ();
6167       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6168         return 1;
6169       fprintf (f, "%ld\n", i);
6170     }
6171   else
6172     {
6173       unsigned long int i = ulongval ();
6174       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6175         return 1;
6176       fprintf (f, "%lu\n", i);
6177     }
6178   return ferror (f) || fclose (f) != 0;
6179
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 rm -f conftest$ac_exeext
6185 if { (ac_try="$ac_link"
6186 case "(($ac_try" in
6187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188   *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191   (eval "$ac_link") 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6195   { (case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200   (eval "$ac_try") 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_sizeof_int=`cat conftest.val`
6205 else
6206   echo "$as_me: program exited with status $ac_status" >&5
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ( exit $ac_status )
6211 if test "$ac_cv_type_int" = yes; then
6212      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6213 See \`config.log' for more details." >&5
6214 echo "$as_me: error: cannot compute sizeof (int)
6215 See \`config.log' for more details." >&2;}
6216    { (exit 77); exit 77; }; }
6217    else
6218      ac_cv_sizeof_int=0
6219    fi
6220 fi
6221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6222 fi
6223 rm -f conftest.val
6224 fi
6225 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6226 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6227
6228
6229
6230 cat >>confdefs.h <<_ACEOF
6231 @%:@define SIZEOF_INT $ac_cv_sizeof_int
6232 _ACEOF
6233
6234
6235 { echo "$as_me:$LINENO: checking for long" >&5
6236 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6237 if test "${ac_cv_type_long+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 $ac_includes_default
6247 typedef long ac__type_new_;
6248 int
6249 main ()
6250 {
6251 if ((ac__type_new_ *) 0)
6252   return 0;
6253 if (sizeof (ac__type_new_))
6254   return 0;
6255   ;
6256   return 0;
6257 }
6258 _ACEOF
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6261 case "(($ac_try" in
6262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263   *) ac_try_echo=$ac_try;;
6264 esac
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266   (eval "$ac_compile") 2>conftest.er1
6267   ac_status=$?
6268   grep -v '^ *+' conftest.er1 >conftest.err
6269   rm -f conftest.er1
6270   cat conftest.err >&5
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } && {
6273          test -z "$ac_c_werror_flag" ||
6274          test ! -s conftest.err
6275        } && test -s conftest.$ac_objext; then
6276   ac_cv_type_long=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6280
6281         ac_cv_type_long=no
6282 fi
6283
6284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 fi
6286 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6287 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6288
6289 # The cast to long int works around a bug in the HP C Compiler
6290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6292 # This bug is HP SR number 8606223364.
6293 { echo "$as_me:$LINENO: checking size of long" >&5
6294 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6295 if test "${ac_cv_sizeof_long+set}" = set; then
6296   echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298   if test "$cross_compiling" = yes; then
6299   # Depending upon the size, compute the lo and hi bounds.
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306 $ac_includes_default
6307    typedef long ac__type_sizeof_;
6308 int
6309 main ()
6310 {
6311 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
6312 test_array @<:@0@:>@ = 0
6313
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (ac_try="$ac_compile"
6320 case "(($ac_try" in
6321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322   *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325   (eval "$ac_compile") 2>conftest.er1
6326   ac_status=$?
6327   grep -v '^ *+' conftest.er1 >conftest.err
6328   rm -f conftest.er1
6329   cat conftest.err >&5
6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331   (exit $ac_status); } && {
6332          test -z "$ac_c_werror_flag" ||
6333          test ! -s conftest.err
6334        } && test -s conftest.$ac_objext; then
6335   ac_lo=0 ac_mid=0
6336   while :; do
6337     cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343 $ac_includes_default
6344    typedef long ac__type_sizeof_;
6345 int
6346 main ()
6347 {
6348 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6349 test_array @<:@0@:>@ = 0
6350
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext
6356 if { (ac_try="$ac_compile"
6357 case "(($ac_try" in
6358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359   *) ac_try_echo=$ac_try;;
6360 esac
6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362   (eval "$ac_compile") 2>conftest.er1
6363   ac_status=$?
6364   grep -v '^ *+' conftest.er1 >conftest.err
6365   rm -f conftest.er1
6366   cat conftest.err >&5
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } && {
6369          test -z "$ac_c_werror_flag" ||
6370          test ! -s conftest.err
6371        } && test -s conftest.$ac_objext; then
6372   ac_hi=$ac_mid; break
6373 else
6374   echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377         ac_lo=`expr $ac_mid + 1`
6378                         if test $ac_lo -le $ac_mid; then
6379                           ac_lo= ac_hi=
6380                           break
6381                         fi
6382                         ac_mid=`expr 2 '*' $ac_mid + 1`
6383 fi
6384
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386   done
6387 else
6388   echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6390
6391         cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h.  */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h.  */
6397 $ac_includes_default
6398    typedef long ac__type_sizeof_;
6399 int
6400 main ()
6401 {
6402 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
6403 test_array @<:@0@:>@ = 0
6404
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6411 case "(($ac_try" in
6412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413   *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416   (eval "$ac_compile") 2>conftest.er1
6417   ac_status=$?
6418   grep -v '^ *+' conftest.er1 >conftest.err
6419   rm -f conftest.er1
6420   cat conftest.err >&5
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } && {
6423          test -z "$ac_c_werror_flag" ||
6424          test ! -s conftest.err
6425        } && test -s conftest.$ac_objext; then
6426   ac_hi=-1 ac_mid=-1
6427   while :; do
6428     cat >conftest.$ac_ext <<_ACEOF
6429 /* confdefs.h.  */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h.  */
6434 $ac_includes_default
6435    typedef long ac__type_sizeof_;
6436 int
6437 main ()
6438 {
6439 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
6440 test_array @<:@0@:>@ = 0
6441
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450   *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453   (eval "$ac_compile") 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } && {
6460          test -z "$ac_c_werror_flag" ||
6461          test ! -s conftest.err
6462        } && test -s conftest.$ac_objext; then
6463   ac_lo=$ac_mid; break
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468         ac_hi=`expr '(' $ac_mid ')' - 1`
6469                         if test $ac_mid -le $ac_hi; then
6470                           ac_lo= ac_hi=
6471                           break
6472                         fi
6473                         ac_mid=`expr 2 '*' $ac_mid`
6474 fi
6475
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477   done
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482         ac_lo= ac_hi=
6483 fi
6484
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486 fi
6487
6488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489 # Binary search between lo and hi bounds.
6490 while test "x$ac_lo" != "x$ac_hi"; do
6491   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6492   cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498 $ac_includes_default
6499    typedef long ac__type_sizeof_;
6500 int
6501 main ()
6502 {
6503 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6504 test_array @<:@0@:>@ = 0
6505
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6512 case "(($ac_try" in
6513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514   *) ac_try_echo=$ac_try;;
6515 esac
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517   (eval "$ac_compile") 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } && {
6524          test -z "$ac_c_werror_flag" ||
6525          test ! -s conftest.err
6526        } && test -s conftest.$ac_objext; then
6527   ac_hi=$ac_mid
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532         ac_lo=`expr '(' $ac_mid ')' + 1`
6533 fi
6534
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 done
6537 case $ac_lo in
6538 ?*) ac_cv_sizeof_long=$ac_lo;;
6539 '') if test "$ac_cv_type_long" = yes; then
6540      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6541 See \`config.log' for more details." >&5
6542 echo "$as_me: error: cannot compute sizeof (long)
6543 See \`config.log' for more details." >&2;}
6544    { (exit 77); exit 77; }; }
6545    else
6546      ac_cv_sizeof_long=0
6547    fi ;;
6548 esac
6549 else
6550   cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556 $ac_includes_default
6557    typedef long ac__type_sizeof_;
6558 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6559 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6560 @%:@include <stdio.h>
6561 @%:@include <stdlib.h>
6562 int
6563 main ()
6564 {
6565
6566   FILE *f = fopen ("conftest.val", "w");
6567   if (! f)
6568     return 1;
6569   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6570     {
6571       long int i = longval ();
6572       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6573         return 1;
6574       fprintf (f, "%ld\n", i);
6575     }
6576   else
6577     {
6578       unsigned long int i = ulongval ();
6579       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6580         return 1;
6581       fprintf (f, "%lu\n", i);
6582     }
6583   return ferror (f) || fclose (f) != 0;
6584
6585   ;
6586   return 0;
6587 }
6588 _ACEOF
6589 rm -f conftest$ac_exeext
6590 if { (ac_try="$ac_link"
6591 case "(($ac_try" in
6592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593   *) ac_try_echo=$ac_try;;
6594 esac
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596   (eval "$ac_link") 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6600   { (case "(($ac_try" in
6601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602   *) ac_try_echo=$ac_try;;
6603 esac
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605   (eval "$ac_try") 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609   ac_cv_sizeof_long=`cat conftest.val`
6610 else
6611   echo "$as_me: program exited with status $ac_status" >&5
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 ( exit $ac_status )
6616 if test "$ac_cv_type_long" = yes; then
6617      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6618 See \`config.log' for more details." >&5
6619 echo "$as_me: error: cannot compute sizeof (long)
6620 See \`config.log' for more details." >&2;}
6621    { (exit 77); exit 77; }; }
6622    else
6623      ac_cv_sizeof_long=0
6624    fi
6625 fi
6626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6627 fi
6628 rm -f conftest.val
6629 fi
6630 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6631 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6632
6633
6634
6635 cat >>confdefs.h <<_ACEOF
6636 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
6637 _ACEOF
6638
6639
6640 { echo "$as_me:$LINENO: checking for void *" >&5
6641 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6642 if test "${ac_cv_type_void_p+set}" = set; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h.  */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h.  */
6651 $ac_includes_default
6652 typedef void * ac__type_new_;
6653 int
6654 main ()
6655 {
6656 if ((ac__type_new_ *) 0)
6657   return 0;
6658 if (sizeof (ac__type_new_))
6659   return 0;
6660   ;
6661   return 0;
6662 }
6663 _ACEOF
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6666 case "(($ac_try" in
6667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668   *) ac_try_echo=$ac_try;;
6669 esac
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671   (eval "$ac_compile") 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } && {
6678          test -z "$ac_c_werror_flag" ||
6679          test ! -s conftest.err
6680        } && test -s conftest.$ac_objext; then
6681   ac_cv_type_void_p=yes
6682 else
6683   echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6685
6686         ac_cv_type_void_p=no
6687 fi
6688
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 fi
6691 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6692 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
6693
6694 # The cast to long int works around a bug in the HP C Compiler
6695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6697 # This bug is HP SR number 8606223364.
6698 { echo "$as_me:$LINENO: checking size of void *" >&5
6699 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
6700 if test "${ac_cv_sizeof_void_p+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   if test "$cross_compiling" = yes; then
6704   # Depending upon the size, compute the lo and hi bounds.
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h.  */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h.  */
6711 $ac_includes_default
6712    typedef void * ac__type_sizeof_;
6713 int
6714 main ()
6715 {
6716 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
6717 test_array @<:@0@:>@ = 0
6718
6719   ;
6720   return 0;
6721 }
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727   *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730   (eval "$ac_compile") 2>conftest.er1
6731   ac_status=$?
6732   grep -v '^ *+' conftest.er1 >conftest.err
6733   rm -f conftest.er1
6734   cat conftest.err >&5
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } && {
6737          test -z "$ac_c_werror_flag" ||
6738          test ! -s conftest.err
6739        } && test -s conftest.$ac_objext; then
6740   ac_lo=0 ac_mid=0
6741   while :; do
6742     cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748 $ac_includes_default
6749    typedef void * ac__type_sizeof_;
6750 int
6751 main ()
6752 {
6753 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6754 test_array @<:@0@:>@ = 0
6755
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6762 case "(($ac_try" in
6763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764   *) ac_try_echo=$ac_try;;
6765 esac
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767   (eval "$ac_compile") 2>conftest.er1
6768   ac_status=$?
6769   grep -v '^ *+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); } && {
6774          test -z "$ac_c_werror_flag" ||
6775          test ! -s conftest.err
6776        } && test -s conftest.$ac_objext; then
6777   ac_hi=$ac_mid; break
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782         ac_lo=`expr $ac_mid + 1`
6783                         if test $ac_lo -le $ac_mid; then
6784                           ac_lo= ac_hi=
6785                           break
6786                         fi
6787                         ac_mid=`expr 2 '*' $ac_mid + 1`
6788 fi
6789
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791   done
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796         cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 $ac_includes_default
6803    typedef void * ac__type_sizeof_;
6804 int
6805 main ()
6806 {
6807 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
6808 test_array @<:@0@:>@ = 0
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818   *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821   (eval "$ac_compile") 2>conftest.er1
6822   ac_status=$?
6823   grep -v '^ *+' conftest.er1 >conftest.err
6824   rm -f conftest.er1
6825   cat conftest.err >&5
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } && {
6828          test -z "$ac_c_werror_flag" ||
6829          test ! -s conftest.err
6830        } && test -s conftest.$ac_objext; then
6831   ac_hi=-1 ac_mid=-1
6832   while :; do
6833     cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 $ac_includes_default
6840    typedef void * ac__type_sizeof_;
6841 int
6842 main ()
6843 {
6844 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
6845 test_array @<:@0@:>@ = 0
6846
6847   ;
6848   return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext
6852 if { (ac_try="$ac_compile"
6853 case "(($ac_try" in
6854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855   *) ac_try_echo=$ac_try;;
6856 esac
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858   (eval "$ac_compile") 2>conftest.er1
6859   ac_status=$?
6860   grep -v '^ *+' conftest.er1 >conftest.err
6861   rm -f conftest.er1
6862   cat conftest.err >&5
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } && {
6865          test -z "$ac_c_werror_flag" ||
6866          test ! -s conftest.err
6867        } && test -s conftest.$ac_objext; then
6868   ac_lo=$ac_mid; break
6869 else
6870   echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6872
6873         ac_hi=`expr '(' $ac_mid ')' - 1`
6874                         if test $ac_mid -le $ac_hi; then
6875                           ac_lo= ac_hi=
6876                           break
6877                         fi
6878                         ac_mid=`expr 2 '*' $ac_mid`
6879 fi
6880
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882   done
6883 else
6884   echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887         ac_lo= ac_hi=
6888 fi
6889
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 fi
6892
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 # Binary search between lo and hi bounds.
6895 while test "x$ac_lo" != "x$ac_hi"; do
6896   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6897   cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903 $ac_includes_default
6904    typedef void * ac__type_sizeof_;
6905 int
6906 main ()
6907 {
6908 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
6909 test_array @<:@0@:>@ = 0
6910
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6917 case "(($ac_try" in
6918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919   *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922   (eval "$ac_compile") 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } && {
6929          test -z "$ac_c_werror_flag" ||
6930          test ! -s conftest.err
6931        } && test -s conftest.$ac_objext; then
6932   ac_hi=$ac_mid
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937         ac_lo=`expr '(' $ac_mid ')' + 1`
6938 fi
6939
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 done
6942 case $ac_lo in
6943 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6944 '') if test "$ac_cv_type_void_p" = yes; then
6945      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6946 See \`config.log' for more details." >&5
6947 echo "$as_me: error: cannot compute sizeof (void *)
6948 See \`config.log' for more details." >&2;}
6949    { (exit 77); exit 77; }; }
6950    else
6951      ac_cv_sizeof_void_p=0
6952    fi ;;
6953 esac
6954 else
6955   cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h.  */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h.  */
6961 $ac_includes_default
6962    typedef void * ac__type_sizeof_;
6963 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6964 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6965 @%:@include <stdio.h>
6966 @%:@include <stdlib.h>
6967 int
6968 main ()
6969 {
6970
6971   FILE *f = fopen ("conftest.val", "w");
6972   if (! f)
6973     return 1;
6974   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6975     {
6976       long int i = longval ();
6977       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6978         return 1;
6979       fprintf (f, "%ld\n", i);
6980     }
6981   else
6982     {
6983       unsigned long int i = ulongval ();
6984       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6985         return 1;
6986       fprintf (f, "%lu\n", i);
6987     }
6988   return ferror (f) || fclose (f) != 0;
6989
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest$ac_exeext
6995 if { (ac_try="$ac_link"
6996 case "(($ac_try" in
6997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998   *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001   (eval "$ac_link") 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7005   { (case "(($ac_try" in
7006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007   *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010   (eval "$ac_try") 2>&5
7011   ac_status=$?
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); }; }; then
7014   ac_cv_sizeof_void_p=`cat conftest.val`
7015 else
7016   echo "$as_me: program exited with status $ac_status" >&5
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ( exit $ac_status )
7021 if test "$ac_cv_type_void_p" = yes; then
7022      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7023 See \`config.log' for more details." >&5
7024 echo "$as_me: error: cannot compute sizeof (void *)
7025 See \`config.log' for more details." >&2;}
7026    { (exit 77); exit 77; }; }
7027    else
7028      ac_cv_sizeof_void_p=0
7029    fi
7030 fi
7031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 rm -f conftest.val
7034 fi
7035 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7036 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7037
7038
7039
7040 cat >>confdefs.h <<_ACEOF
7041 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7042 _ACEOF
7043
7044
7045 { echo "$as_me:$LINENO: checking for int64_t" >&5
7046 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_int64_t+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 $ac_includes_default
7057 typedef int64_t ac__type_new_;
7058 int
7059 main ()
7060 {
7061 if ((ac__type_new_ *) 0)
7062   return 0;
7063 if (sizeof (ac__type_new_))
7064   return 0;
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 rm -f conftest.$ac_objext
7070 if { (ac_try="$ac_compile"
7071 case "(($ac_try" in
7072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073   *) ac_try_echo=$ac_try;;
7074 esac
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076   (eval "$ac_compile") 2>conftest.er1
7077   ac_status=$?
7078   grep -v '^ *+' conftest.er1 >conftest.err
7079   rm -f conftest.er1
7080   cat conftest.err >&5
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); } && {
7083          test -z "$ac_c_werror_flag" ||
7084          test ! -s conftest.err
7085        } && test -s conftest.$ac_objext; then
7086   ac_cv_type_int64_t=yes
7087 else
7088   echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7090
7091         ac_cv_type_int64_t=no
7092 fi
7093
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 fi
7096 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7097 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7098
7099 # The cast to long int works around a bug in the HP C Compiler
7100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7102 # This bug is HP SR number 8606223364.
7103 { echo "$as_me:$LINENO: checking size of int64_t" >&5
7104 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
7105 if test "${ac_cv_sizeof_int64_t+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   if test "$cross_compiling" = yes; then
7109   # Depending upon the size, compute the lo and hi bounds.
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h.  */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h.  */
7116 $ac_includes_default
7117    typedef int64_t ac__type_sizeof_;
7118 int
7119 main ()
7120 {
7121 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
7122 test_array @<:@0@:>@ = 0
7123
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132   *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135   (eval "$ac_compile") 2>conftest.er1
7136   ac_status=$?
7137   grep -v '^ *+' conftest.er1 >conftest.err
7138   rm -f conftest.er1
7139   cat conftest.err >&5
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); } && {
7142          test -z "$ac_c_werror_flag" ||
7143          test ! -s conftest.err
7144        } && test -s conftest.$ac_objext; then
7145   ac_lo=0 ac_mid=0
7146   while :; do
7147     cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153 $ac_includes_default
7154    typedef int64_t ac__type_sizeof_;
7155 int
7156 main ()
7157 {
7158 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7159 test_array @<:@0@:>@ = 0
7160
7161   ;
7162   return 0;
7163 }
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7167 case "(($ac_try" in
7168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169   *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172   (eval "$ac_compile") 2>conftest.er1
7173   ac_status=$?
7174   grep -v '^ *+' conftest.er1 >conftest.err
7175   rm -f conftest.er1
7176   cat conftest.err >&5
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } && {
7179          test -z "$ac_c_werror_flag" ||
7180          test ! -s conftest.err
7181        } && test -s conftest.$ac_objext; then
7182   ac_hi=$ac_mid; break
7183 else
7184   echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7186
7187         ac_lo=`expr $ac_mid + 1`
7188                         if test $ac_lo -le $ac_mid; then
7189                           ac_lo= ac_hi=
7190                           break
7191                         fi
7192                         ac_mid=`expr 2 '*' $ac_mid + 1`
7193 fi
7194
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196   done
7197 else
7198   echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7200
7201         cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h.  */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h.  */
7207 $ac_includes_default
7208    typedef int64_t ac__type_sizeof_;
7209 int
7210 main ()
7211 {
7212 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
7213 test_array @<:@0@:>@ = 0
7214
7215   ;
7216   return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223   *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226   (eval "$ac_compile") 2>conftest.er1
7227   ac_status=$?
7228   grep -v '^ *+' conftest.er1 >conftest.err
7229   rm -f conftest.er1
7230   cat conftest.err >&5
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); } && {
7233          test -z "$ac_c_werror_flag" ||
7234          test ! -s conftest.err
7235        } && test -s conftest.$ac_objext; then
7236   ac_hi=-1 ac_mid=-1
7237   while :; do
7238     cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244 $ac_includes_default
7245    typedef int64_t ac__type_sizeof_;
7246 int
7247 main ()
7248 {
7249 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
7250 test_array @<:@0@:>@ = 0
7251
7252   ;
7253   return 0;
7254 }
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (ac_try="$ac_compile"
7258 case "(($ac_try" in
7259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260   *) ac_try_echo=$ac_try;;
7261 esac
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263   (eval "$ac_compile") 2>conftest.er1
7264   ac_status=$?
7265   grep -v '^ *+' conftest.er1 >conftest.err
7266   rm -f conftest.er1
7267   cat conftest.err >&5
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } && {
7270          test -z "$ac_c_werror_flag" ||
7271          test ! -s conftest.err
7272        } && test -s conftest.$ac_objext; then
7273   ac_lo=$ac_mid; break
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278         ac_hi=`expr '(' $ac_mid ')' - 1`
7279                         if test $ac_mid -le $ac_hi; then
7280                           ac_lo= ac_hi=
7281                           break
7282                         fi
7283                         ac_mid=`expr 2 '*' $ac_mid`
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287   done
7288 else
7289   echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7291
7292         ac_lo= ac_hi=
7293 fi
7294
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 fi
7297
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 # Binary search between lo and hi bounds.
7300 while test "x$ac_lo" != "x$ac_hi"; do
7301   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7302   cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h.  */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h.  */
7308 $ac_includes_default
7309    typedef int64_t ac__type_sizeof_;
7310 int
7311 main ()
7312 {
7313 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7314 test_array @<:@0@:>@ = 0
7315
7316   ;
7317   return 0;
7318 }
7319 _ACEOF
7320 rm -f conftest.$ac_objext
7321 if { (ac_try="$ac_compile"
7322 case "(($ac_try" in
7323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324   *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327   (eval "$ac_compile") 2>conftest.er1
7328   ac_status=$?
7329   grep -v '^ *+' conftest.er1 >conftest.err
7330   rm -f conftest.er1
7331   cat conftest.err >&5
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); } && {
7334          test -z "$ac_c_werror_flag" ||
7335          test ! -s conftest.err
7336        } && test -s conftest.$ac_objext; then
7337   ac_hi=$ac_mid
7338 else
7339   echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342         ac_lo=`expr '(' $ac_mid ')' + 1`
7343 fi
7344
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 done
7347 case $ac_lo in
7348 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7349 '') if test "$ac_cv_type_int64_t" = yes; then
7350      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7351 See \`config.log' for more details." >&5
7352 echo "$as_me: error: cannot compute sizeof (int64_t)
7353 See \`config.log' for more details." >&2;}
7354    { (exit 77); exit 77; }; }
7355    else
7356      ac_cv_sizeof_int64_t=0
7357    fi ;;
7358 esac
7359 else
7360   cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366 $ac_includes_default
7367    typedef int64_t ac__type_sizeof_;
7368 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7369 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7370 @%:@include <stdio.h>
7371 @%:@include <stdlib.h>
7372 int
7373 main ()
7374 {
7375
7376   FILE *f = fopen ("conftest.val", "w");
7377   if (! f)
7378     return 1;
7379   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7380     {
7381       long int i = longval ();
7382       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7383         return 1;
7384       fprintf (f, "%ld\n", i);
7385     }
7386   else
7387     {
7388       unsigned long int i = ulongval ();
7389       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7390         return 1;
7391       fprintf (f, "%lu\n", i);
7392     }
7393   return ferror (f) || fclose (f) != 0;
7394
7395   ;
7396   return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7401 case "(($ac_try" in
7402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403   *) ac_try_echo=$ac_try;;
7404 esac
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406   (eval "$ac_link") 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410   { (case "(($ac_try" in
7411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412   *) ac_try_echo=$ac_try;;
7413 esac
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415   (eval "$ac_try") 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); }; }; then
7419   ac_cv_sizeof_int64_t=`cat conftest.val`
7420 else
7421   echo "$as_me: program exited with status $ac_status" >&5
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425 ( exit $ac_status )
7426 if test "$ac_cv_type_int64_t" = yes; then
7427      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7428 See \`config.log' for more details." >&5
7429 echo "$as_me: error: cannot compute sizeof (int64_t)
7430 See \`config.log' for more details." >&2;}
7431    { (exit 77); exit 77; }; }
7432    else
7433      ac_cv_sizeof_int64_t=0
7434    fi
7435 fi
7436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7437 fi
7438 rm -f conftest.val
7439 fi
7440 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7441 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
7442
7443
7444
7445 cat >>confdefs.h <<_ACEOF
7446 @%:@define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7447 _ACEOF
7448
7449
7450 { echo "$as_me:$LINENO: checking for long long" >&5
7451 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7452 if test "${ac_cv_type_long_long+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461 $ac_includes_default
7462 typedef long long ac__type_new_;
7463 int
7464 main ()
7465 {
7466 if ((ac__type_new_ *) 0)
7467   return 0;
7468 if (sizeof (ac__type_new_))
7469   return 0;
7470   ;
7471   return 0;
7472 }
7473 _ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (ac_try="$ac_compile"
7476 case "(($ac_try" in
7477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478   *) ac_try_echo=$ac_try;;
7479 esac
7480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7481   (eval "$ac_compile") 2>conftest.er1
7482   ac_status=$?
7483   grep -v '^ *+' conftest.er1 >conftest.err
7484   rm -f conftest.er1
7485   cat conftest.err >&5
7486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487   (exit $ac_status); } && {
7488          test -z "$ac_c_werror_flag" ||
7489          test ! -s conftest.err
7490        } && test -s conftest.$ac_objext; then
7491   ac_cv_type_long_long=yes
7492 else
7493   echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7495
7496         ac_cv_type_long_long=no
7497 fi
7498
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 fi
7501 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7502 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7503
7504 # The cast to long int works around a bug in the HP C Compiler
7505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7507 # This bug is HP SR number 8606223364.
7508 { echo "$as_me:$LINENO: checking size of long long" >&5
7509 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7510 if test "${ac_cv_sizeof_long_long+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   if test "$cross_compiling" = yes; then
7514   # Depending upon the size, compute the lo and hi bounds.
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h.  */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h.  */
7521 $ac_includes_default
7522    typedef long long ac__type_sizeof_;
7523 int
7524 main ()
7525 {
7526 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
7527 test_array @<:@0@:>@ = 0
7528
7529   ;
7530   return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7535 case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540   (eval "$ac_compile") 2>conftest.er1
7541   ac_status=$?
7542   grep -v '^ *+' conftest.er1 >conftest.err
7543   rm -f conftest.er1
7544   cat conftest.err >&5
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); } && {
7547          test -z "$ac_c_werror_flag" ||
7548          test ! -s conftest.err
7549        } && test -s conftest.$ac_objext; then
7550   ac_lo=0 ac_mid=0
7551   while :; do
7552     cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h.  */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h.  */
7558 $ac_includes_default
7559    typedef long long ac__type_sizeof_;
7560 int
7561 main ()
7562 {
7563 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7564 test_array @<:@0@:>@ = 0
7565
7566   ;
7567   return 0;
7568 }
7569 _ACEOF
7570 rm -f conftest.$ac_objext
7571 if { (ac_try="$ac_compile"
7572 case "(($ac_try" in
7573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574   *) ac_try_echo=$ac_try;;
7575 esac
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577   (eval "$ac_compile") 2>conftest.er1
7578   ac_status=$?
7579   grep -v '^ *+' conftest.er1 >conftest.err
7580   rm -f conftest.er1
7581   cat conftest.err >&5
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } && {
7584          test -z "$ac_c_werror_flag" ||
7585          test ! -s conftest.err
7586        } && test -s conftest.$ac_objext; then
7587   ac_hi=$ac_mid; break
7588 else
7589   echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7591
7592         ac_lo=`expr $ac_mid + 1`
7593                         if test $ac_lo -le $ac_mid; then
7594                           ac_lo= ac_hi=
7595                           break
7596                         fi
7597                         ac_mid=`expr 2 '*' $ac_mid + 1`
7598 fi
7599
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601   done
7602 else
7603   echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606         cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 $ac_includes_default
7613    typedef long long ac__type_sizeof_;
7614 int
7615 main ()
7616 {
7617 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
7618 test_array @<:@0@:>@ = 0
7619
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (ac_try="$ac_compile"
7626 case "(($ac_try" in
7627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7628   *) ac_try_echo=$ac_try;;
7629 esac
7630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7631   (eval "$ac_compile") 2>conftest.er1
7632   ac_status=$?
7633   grep -v '^ *+' conftest.er1 >conftest.err
7634   rm -f conftest.er1
7635   cat conftest.err >&5
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); } && {
7638          test -z "$ac_c_werror_flag" ||
7639          test ! -s conftest.err
7640        } && test -s conftest.$ac_objext; then
7641   ac_hi=-1 ac_mid=-1
7642   while :; do
7643     cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h.  */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h.  */
7649 $ac_includes_default
7650    typedef long long ac__type_sizeof_;
7651 int
7652 main ()
7653 {
7654 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
7655 test_array @<:@0@:>@ = 0
7656
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665   *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668   (eval "$ac_compile") 2>conftest.er1
7669   ac_status=$?
7670   grep -v '^ *+' conftest.er1 >conftest.err
7671   rm -f conftest.er1
7672   cat conftest.err >&5
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } && {
7675          test -z "$ac_c_werror_flag" ||
7676          test ! -s conftest.err
7677        } && test -s conftest.$ac_objext; then
7678   ac_lo=$ac_mid; break
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683         ac_hi=`expr '(' $ac_mid ')' - 1`
7684                         if test $ac_mid -le $ac_hi; then
7685                           ac_lo= ac_hi=
7686                           break
7687                         fi
7688                         ac_mid=`expr 2 '*' $ac_mid`
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692   done
7693 else
7694   echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697         ac_lo= ac_hi=
7698 fi
7699
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 fi
7702
7703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 # Binary search between lo and hi bounds.
7705 while test "x$ac_lo" != "x$ac_hi"; do
7706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7707   cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h.  */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h.  */
7713 $ac_includes_default
7714    typedef long long ac__type_sizeof_;
7715 int
7716 main ()
7717 {
7718 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7719 test_array @<:@0@:>@ = 0
7720
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (ac_try="$ac_compile"
7727 case "(($ac_try" in
7728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729   *) ac_try_echo=$ac_try;;
7730 esac
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732   (eval "$ac_compile") 2>conftest.er1
7733   ac_status=$?
7734   grep -v '^ *+' conftest.er1 >conftest.err
7735   rm -f conftest.er1
7736   cat conftest.err >&5
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } && {
7739          test -z "$ac_c_werror_flag" ||
7740          test ! -s conftest.err
7741        } && test -s conftest.$ac_objext; then
7742   ac_hi=$ac_mid
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747         ac_lo=`expr '(' $ac_mid ')' + 1`
7748 fi
7749
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 done
7752 case $ac_lo in
7753 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7754 '') if test "$ac_cv_type_long_long" = yes; then
7755      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7756 See \`config.log' for more details." >&5
7757 echo "$as_me: error: cannot compute sizeof (long long)
7758 See \`config.log' for more details." >&2;}
7759    { (exit 77); exit 77; }; }
7760    else
7761      ac_cv_sizeof_long_long=0
7762    fi ;;
7763 esac
7764 else
7765   cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771 $ac_includes_default
7772    typedef long long ac__type_sizeof_;
7773 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7774 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7775 @%:@include <stdio.h>
7776 @%:@include <stdlib.h>
7777 int
7778 main ()
7779 {
7780
7781   FILE *f = fopen ("conftest.val", "w");
7782   if (! f)
7783     return 1;
7784   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7785     {
7786       long int i = longval ();
7787       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7788         return 1;
7789       fprintf (f, "%ld\n", i);
7790     }
7791   else
7792     {
7793       unsigned long int i = ulongval ();
7794       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7795         return 1;
7796       fprintf (f, "%lu\n", i);
7797     }
7798   return ferror (f) || fclose (f) != 0;
7799
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest$ac_exeext
7805 if { (ac_try="$ac_link"
7806 case "(($ac_try" in
7807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808   *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811   (eval "$ac_link") 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7815   { (case "(($ac_try" in
7816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817   *) ac_try_echo=$ac_try;;
7818 esac
7819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7820   (eval "$ac_try") 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); }; }; then
7824   ac_cv_sizeof_long_long=`cat conftest.val`
7825 else
7826   echo "$as_me: program exited with status $ac_status" >&5
7827 echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ( exit $ac_status )
7831 if test "$ac_cv_type_long_long" = yes; then
7832      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7833 See \`config.log' for more details." >&5
7834 echo "$as_me: error: cannot compute sizeof (long long)
7835 See \`config.log' for more details." >&2;}
7836    { (exit 77); exit 77; }; }
7837    else
7838      ac_cv_sizeof_long_long=0
7839    fi
7840 fi
7841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7842 fi
7843 rm -f conftest.val
7844 fi
7845 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7846 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7847
7848
7849
7850 cat >>confdefs.h <<_ACEOF
7851 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7852 _ACEOF
7853
7854
7855 if test "$ac_cv_sizeof_int" = 2 ; then
7856   { echo "$as_me:$LINENO: checking for int16_t" >&5
7857 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7858 if test "${ac_cv_type_int16_t+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867 $ac_includes_default
7868 typedef int16_t ac__type_new_;
7869 int
7870 main ()
7871 {
7872 if ((ac__type_new_ *) 0)
7873   return 0;
7874 if (sizeof (ac__type_new_))
7875   return 0;
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7882 case "(($ac_try" in
7883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884   *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887   (eval "$ac_compile") 2>conftest.er1
7888   ac_status=$?
7889   grep -v '^ *+' conftest.er1 >conftest.err
7890   rm -f conftest.er1
7891   cat conftest.err >&5
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); } && {
7894          test -z "$ac_c_werror_flag" ||
7895          test ! -s conftest.err
7896        } && test -s conftest.$ac_objext; then
7897   ac_cv_type_int16_t=yes
7898 else
7899   echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7901
7902         ac_cv_type_int16_t=no
7903 fi
7904
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906 fi
7907 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7908 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
7909 if test $ac_cv_type_int16_t = yes; then
7910   :
7911 else
7912   
7913 cat >>confdefs.h <<_ACEOF
7914 @%:@define int16_t int
7915 _ACEOF
7916
7917 fi
7918
7919   { echo "$as_me:$LINENO: checking for uint16_t" >&5
7920 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7921 if test "${ac_cv_type_uint16_t+set}" = set; then
7922   echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924   cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930 $ac_includes_default
7931 typedef uint16_t ac__type_new_;
7932 int
7933 main ()
7934 {
7935 if ((ac__type_new_ *) 0)
7936   return 0;
7937 if (sizeof (ac__type_new_))
7938   return 0;
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947   *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950   (eval "$ac_compile") 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } && {
7957          test -z "$ac_c_werror_flag" ||
7958          test ! -s conftest.err
7959        } && test -s conftest.$ac_objext; then
7960   ac_cv_type_uint16_t=yes
7961 else
7962   echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965         ac_cv_type_uint16_t=no
7966 fi
7967
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7971 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
7972 if test $ac_cv_type_uint16_t = yes; then
7973   :
7974 else
7975   
7976 cat >>confdefs.h <<_ACEOF
7977 @%:@define uint16_t unsigned int
7978 _ACEOF
7979
7980 fi
7981
7982 elif test "$ac_cv_sizeof_short" = 2 ; then
7983   { echo "$as_me:$LINENO: checking for int16_t" >&5
7984 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7985 if test "${ac_cv_type_int16_t+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h.  */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h.  */
7994 $ac_includes_default
7995 typedef int16_t ac__type_new_;
7996 int
7997 main ()
7998 {
7999 if ((ac__type_new_ *) 0)
8000   return 0;
8001 if (sizeof (ac__type_new_))
8002   return 0;
8003   ;
8004   return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext
8008 if { (ac_try="$ac_compile"
8009 case "(($ac_try" in
8010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8011   *) ac_try_echo=$ac_try;;
8012 esac
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014   (eval "$ac_compile") 2>conftest.er1
8015   ac_status=$?
8016   grep -v '^ *+' conftest.er1 >conftest.err
8017   rm -f conftest.er1
8018   cat conftest.err >&5
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); } && {
8021          test -z "$ac_c_werror_flag" ||
8022          test ! -s conftest.err
8023        } && test -s conftest.$ac_objext; then
8024   ac_cv_type_int16_t=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029         ac_cv_type_int16_t=no
8030 fi
8031
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 fi
8034 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8035 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
8036 if test $ac_cv_type_int16_t = yes; then
8037   :
8038 else
8039   
8040 cat >>confdefs.h <<_ACEOF
8041 @%:@define int16_t short
8042 _ACEOF
8043
8044 fi
8045
8046   { echo "$as_me:$LINENO: checking for uint16_t" >&5
8047 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8048 if test "${ac_cv_type_uint16_t+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057 $ac_includes_default
8058 typedef uint16_t ac__type_new_;
8059 int
8060 main ()
8061 {
8062 if ((ac__type_new_ *) 0)
8063   return 0;
8064 if (sizeof (ac__type_new_))
8065   return 0;
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_compile") 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } && {
8084          test -z "$ac_c_werror_flag" ||
8085          test ! -s conftest.err
8086        } && test -s conftest.$ac_objext; then
8087   ac_cv_type_uint16_t=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092         ac_cv_type_uint16_t=no
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 fi
8097 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8098 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8099 if test $ac_cv_type_uint16_t = yes; then
8100   :
8101 else
8102   
8103 cat >>confdefs.h <<_ACEOF
8104 @%:@define uint16_t unsigned short
8105 _ACEOF
8106
8107 fi
8108
8109 else
8110   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
8111 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
8112    { (exit 1); exit 1; }; }
8113 fi
8114 if test "$ac_cv_sizeof_int" = 4 ; then
8115   { echo "$as_me:$LINENO: checking for int32_t" >&5
8116 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8117 if test "${ac_cv_type_int32_t+set}" = set; then
8118   echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120   cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126 $ac_includes_default
8127 typedef int32_t ac__type_new_;
8128 int
8129 main ()
8130 {
8131 if ((ac__type_new_ *) 0)
8132   return 0;
8133 if (sizeof (ac__type_new_))
8134   return 0;
8135   ;
8136   return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8141 case "(($ac_try" in
8142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143   *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146   (eval "$ac_compile") 2>conftest.er1
8147   ac_status=$?
8148   grep -v '^ *+' conftest.er1 >conftest.err
8149   rm -f conftest.er1
8150   cat conftest.err >&5
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); } && {
8153          test -z "$ac_c_werror_flag" ||
8154          test ! -s conftest.err
8155        } && test -s conftest.$ac_objext; then
8156   ac_cv_type_int32_t=yes
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161         ac_cv_type_int32_t=no
8162 fi
8163
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 fi
8166 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8167 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8168 if test $ac_cv_type_int32_t = yes; then
8169   :
8170 else
8171   
8172 cat >>confdefs.h <<_ACEOF
8173 @%:@define int32_t int
8174 _ACEOF
8175
8176 fi
8177
8178   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8179 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8180 if test "${ac_cv_type_uint32_t+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183   cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h.  */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h.  */
8189 $ac_includes_default
8190 typedef uint32_t ac__type_new_;
8191 int
8192 main ()
8193 {
8194 if ((ac__type_new_ *) 0)
8195   return 0;
8196 if (sizeof (ac__type_new_))
8197   return 0;
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_compile") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } && {
8216          test -z "$ac_c_werror_flag" ||
8217          test ! -s conftest.err
8218        } && test -s conftest.$ac_objext; then
8219   ac_cv_type_uint32_t=yes
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224         ac_cv_type_uint32_t=no
8225 fi
8226
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 fi
8229 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8230 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8231 if test $ac_cv_type_uint32_t = yes; then
8232   :
8233 else
8234   
8235 cat >>confdefs.h <<_ACEOF
8236 @%:@define uint32_t unsigned int
8237 _ACEOF
8238
8239 fi
8240
8241 elif test "$ac_cv_sizeof_short" = 4 ; then
8242   { echo "$as_me:$LINENO: checking for int32_t" >&5
8243 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8244 if test "${ac_cv_type_int32_t+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253 $ac_includes_default
8254 typedef int32_t ac__type_new_;
8255 int
8256 main ()
8257 {
8258 if ((ac__type_new_ *) 0)
8259   return 0;
8260 if (sizeof (ac__type_new_))
8261   return 0;
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273   (eval "$ac_compile") 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } && {
8280          test -z "$ac_c_werror_flag" ||
8281          test ! -s conftest.err
8282        } && test -s conftest.$ac_objext; then
8283   ac_cv_type_int32_t=yes
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288         ac_cv_type_int32_t=no
8289 fi
8290
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 fi
8293 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8294 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8295 if test $ac_cv_type_int32_t = yes; then
8296   :
8297 else
8298   
8299 cat >>confdefs.h <<_ACEOF
8300 @%:@define int32_t short
8301 _ACEOF
8302
8303 fi
8304
8305   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8306 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8307 if test "${ac_cv_type_uint32_t+set}" = set; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 $ac_includes_default
8317 typedef uint32_t ac__type_new_;
8318 int
8319 main ()
8320 {
8321 if ((ac__type_new_ *) 0)
8322   return 0;
8323 if (sizeof (ac__type_new_))
8324   return 0;
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8331 case "(($ac_try" in
8332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333   *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336   (eval "$ac_compile") 2>conftest.er1
8337   ac_status=$?
8338   grep -v '^ *+' conftest.er1 >conftest.err
8339   rm -f conftest.er1
8340   cat conftest.err >&5
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); } && {
8343          test -z "$ac_c_werror_flag" ||
8344          test ! -s conftest.err
8345        } && test -s conftest.$ac_objext; then
8346   ac_cv_type_uint32_t=yes
8347 else
8348   echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351         ac_cv_type_uint32_t=no
8352 fi
8353
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355 fi
8356 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8357 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8358 if test $ac_cv_type_uint32_t = yes; then
8359   :
8360 else
8361   
8362 cat >>confdefs.h <<_ACEOF
8363 @%:@define uint32_t unsigned short
8364 _ACEOF
8365
8366 fi
8367
8368 elif test "$ac_cv_sizeof_long" = 4 ; then
8369   { echo "$as_me:$LINENO: checking for int32_t" >&5
8370 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8371 if test "${ac_cv_type_int32_t+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380 $ac_includes_default
8381 typedef int32_t ac__type_new_;
8382 int
8383 main ()
8384 {
8385 if ((ac__type_new_ *) 0)
8386   return 0;
8387 if (sizeof (ac__type_new_))
8388   return 0;
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_compile") 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } && {
8407          test -z "$ac_c_werror_flag" ||
8408          test ! -s conftest.err
8409        } && test -s conftest.$ac_objext; then
8410   ac_cv_type_int32_t=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         ac_cv_type_int32_t=no
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8421 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8422 if test $ac_cv_type_int32_t = yes; then
8423   :
8424 else
8425   
8426 cat >>confdefs.h <<_ACEOF
8427 @%:@define int32_t long
8428 _ACEOF
8429
8430 fi
8431
8432   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8433 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8434 if test "${ac_cv_type_uint32_t+set}" = set; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443 $ac_includes_default
8444 typedef uint32_t ac__type_new_;
8445 int
8446 main ()
8447 {
8448 if ((ac__type_new_ *) 0)
8449   return 0;
8450 if (sizeof (ac__type_new_))
8451   return 0;
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext
8457 if { (ac_try="$ac_compile"
8458 case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_compile") 2>conftest.er1
8464   ac_status=$?
8465   grep -v '^ *+' conftest.er1 >conftest.err
8466   rm -f conftest.er1
8467   cat conftest.err >&5
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } && {
8470          test -z "$ac_c_werror_flag" ||
8471          test ! -s conftest.err
8472        } && test -s conftest.$ac_objext; then
8473   ac_cv_type_uint32_t=yes
8474 else
8475   echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8477
8478         ac_cv_type_uint32_t=no
8479 fi
8480
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 fi
8483 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8484 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8485 if test $ac_cv_type_uint32_t = yes; then
8486   :
8487 else
8488   
8489 cat >>confdefs.h <<_ACEOF
8490 @%:@define uint32_t unsigned long
8491 _ACEOF
8492
8493 fi
8494
8495 else
8496   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8497 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8498    { (exit 1); exit 1; }; }
8499 fi
8500 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8501   { echo "$as_me:$LINENO: checking for int64_t" >&5
8502 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8503 if test "${ac_cv_type_int64_t+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h.  */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h.  */
8512 $ac_includes_default
8513 typedef int64_t ac__type_new_;
8514 int
8515 main ()
8516 {
8517 if ((ac__type_new_ *) 0)
8518   return 0;
8519 if (sizeof (ac__type_new_))
8520   return 0;
8521   ;
8522   return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext
8526 if { (ac_try="$ac_compile"
8527 case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532   (eval "$ac_compile") 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } && {
8539          test -z "$ac_c_werror_flag" ||
8540          test ! -s conftest.err
8541        } && test -s conftest.$ac_objext; then
8542   ac_cv_type_int64_t=yes
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547         ac_cv_type_int64_t=no
8548 fi
8549
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 fi
8552 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8553 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8554
8555   { echo "$as_me:$LINENO: checking for uint64_t" >&5
8556 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8557 if test "${ac_cv_type_uint64_t+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   cat >conftest.$ac_ext <<_ACEOF
8561 /* confdefs.h.  */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h.  */
8566 $ac_includes_default
8567 typedef uint64_t ac__type_new_;
8568 int
8569 main ()
8570 {
8571 if ((ac__type_new_ *) 0)
8572   return 0;
8573 if (sizeof (ac__type_new_))
8574   return 0;
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8581 case "(($ac_try" in
8582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583   *) ac_try_echo=$ac_try;;
8584 esac
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586   (eval "$ac_compile") 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } && {
8593          test -z "$ac_c_werror_flag" ||
8594          test ! -s conftest.err
8595        } && test -s conftest.$ac_objext; then
8596   ac_cv_type_uint64_t=yes
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601         ac_cv_type_uint64_t=no
8602 fi
8603
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8607 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8608
8609 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8610   { echo "$as_me:$LINENO: checking for int64_t" >&5
8611 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8612 if test "${ac_cv_type_int64_t+set}" = set; then
8613   echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615   cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621 $ac_includes_default
8622 typedef int64_t ac__type_new_;
8623 int
8624 main ()
8625 {
8626 if ((ac__type_new_ *) 0)
8627   return 0;
8628 if (sizeof (ac__type_new_))
8629   return 0;
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8636 case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641   (eval "$ac_compile") 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } && {
8648          test -z "$ac_c_werror_flag" ||
8649          test ! -s conftest.err
8650        } && test -s conftest.$ac_objext; then
8651   ac_cv_type_int64_t=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656         ac_cv_type_int64_t=no
8657 fi
8658
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 fi
8661 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8662 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8663 if test $ac_cv_type_int64_t = yes; then
8664   :
8665 else
8666   
8667 cat >>confdefs.h <<_ACEOF
8668 @%:@define int64_t long long
8669 _ACEOF
8670
8671 fi
8672
8673   { echo "$as_me:$LINENO: checking for uint64_t" >&5
8674 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8675 if test "${ac_cv_type_uint64_t+set}" = set; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 $ac_includes_default
8685 typedef uint64_t ac__type_new_;
8686 int
8687 main ()
8688 {
8689 if ((ac__type_new_ *) 0)
8690   return 0;
8691 if (sizeof (ac__type_new_))
8692   return 0;
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8699 case "(($ac_try" in
8700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701   *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704   (eval "$ac_compile") 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } && {
8711          test -z "$ac_c_werror_flag" ||
8712          test ! -s conftest.err
8713        } && test -s conftest.$ac_objext; then
8714   ac_cv_type_uint64_t=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719         ac_cv_type_uint64_t=no
8720 fi
8721
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8725 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8726 if test $ac_cv_type_uint64_t = yes; then
8727   :
8728 else
8729   
8730 cat >>confdefs.h <<_ACEOF
8731 @%:@define uint64_t unsigned long long
8732 _ACEOF
8733
8734 fi
8735
8736 else
8737   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8738 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8739    { (exit 1); exit 1; }; }
8740 fi
8741 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8742 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
8743 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746   cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h.  */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h.  */
8752 #include <sys/types.h>
8753 #include <netinet/in.h>
8754
8755 typedef struct sockaddr_in6 ac__type_new_;
8756 int
8757 main ()
8758 {
8759 if ((ac__type_new_ *) 0)
8760   return 0;
8761 if (sizeof (ac__type_new_))
8762   return 0;
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8769 case "(($ac_try" in
8770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771   *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774   (eval "$ac_compile") 2>conftest.er1
8775   ac_status=$?
8776   grep -v '^ *+' conftest.er1 >conftest.err
8777   rm -f conftest.er1
8778   cat conftest.err >&5
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } && {
8781          test -z "$ac_c_werror_flag" ||
8782          test ! -s conftest.err
8783        } && test -s conftest.$ac_objext; then
8784   ac_cv_type_struct_sockaddr_in6=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789         ac_cv_type_struct_sockaddr_in6=no
8790 fi
8791
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 fi
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8795 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
8796 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8797   unet_have_sockaddr_in6="yes"
8798 else
8799   unet_have_sockaddr_in6="no"
8800 fi
8801
8802
8803 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8804 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8805 if test "${ac_cv_type_socklen_t+set}" = set; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 #include <sys/types.h>
8815 #include<sys/socket.h>
8816
8817 typedef socklen_t ac__type_new_;
8818 int
8819 main ()
8820 {
8821 if ((ac__type_new_ *) 0)
8822   return 0;
8823 if (sizeof (ac__type_new_))
8824   return 0;
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8831 case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836   (eval "$ac_compile") 2>conftest.er1
8837   ac_status=$?
8838   grep -v '^ *+' conftest.er1 >conftest.err
8839   rm -f conftest.er1
8840   cat conftest.err >&5
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } && {
8843          test -z "$ac_c_werror_flag" ||
8844          test ! -s conftest.err
8845        } && test -s conftest.$ac_objext; then
8846   ac_cv_type_socklen_t=yes
8847 else
8848   echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851         ac_cv_type_socklen_t=no
8852 fi
8853
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8857 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8858 if test $ac_cv_type_socklen_t = yes; then
8859   :
8860 else
8861   
8862   { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8863 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8864   if test "${curl_cv_socklen_t_equiv+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   
8868     curl_cv_socklen_t_equiv=
8869     for arg2 in "struct sockaddr" void ; do
8870       for t in int size_t unsigned long "unsigned long" ; do
8871         cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h.  */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h.  */
8877 #include <sys/types.h>
8878 #include <sys/socket.h>
8879 int getpeername (int $arg2 *, $t *);
8880 int
8881 main ()
8882 {
8883 $t len;
8884   getpeername(0, 0, &len);
8885   ;
8886   return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893   *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896   (eval "$ac_compile") 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } && {
8903          test -z "$ac_c_werror_flag" ||
8904          test ! -s conftest.err
8905        } && test -s conftest.$ac_objext; then
8906   curl_cv_socklen_t_equiv="$t"
8907   break
8908 else
8909   echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912         
8913 fi
8914
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916       done
8917     done
8918   
8919 fi
8920
8921   { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8922 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
8923   
8924 cat >>confdefs.h <<_ACEOF
8925 @%:@define socklen_t $curl_cv_socklen_t_equiv
8926 _ACEOF
8927
8928 fi
8929
8930
8931
8932
8933
8934
8935 for ac_func in kqueue setrlimit getrusage times
8936 do
8937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8951 #define $ac_func innocuous_$ac_func
8952
8953 /* System header to define __stub macros and hopefully few prototypes,
8954     which can conflict with char $ac_func (); below.
8955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8956     <limits.h> exists even on freestanding compilers.  */
8957
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8963
8964 #undef $ac_func
8965
8966 /* Override any GCC internal prototype to avoid an error.
8967    Use char because int might match the return type of a GCC
8968    builtin and then its argument prototype would still apply.  */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 char $ac_func ();
8973 /* The GNU C library defines this for functions which it implements
8974     to always fail with ENOSYS.  Some functions are actually named
8975     something starting with __ and the normal name is an alias.  */
8976 #if defined __stub_$ac_func || defined __stub___$ac_func
8977 choke me
8978 #endif
8979
8980 int
8981 main ()
8982 {
8983 return $ac_func ();
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8990 case "(($ac_try" in
8991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992   *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995   (eval "$ac_link") 2>conftest.er1
8996   ac_status=$?
8997   grep -v '^ *+' conftest.er1 >conftest.err
8998   rm -f conftest.er1
8999   cat conftest.err >&5
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } && {
9002          test -z "$ac_c_werror_flag" ||
9003          test ! -s conftest.err
9004        } && test -s conftest$ac_exeext &&
9005        $as_test_x conftest$ac_exeext; then
9006   eval "$as_ac_var=yes"
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011         eval "$as_ac_var=no"
9012 fi
9013
9014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9015       conftest$ac_exeext conftest.$ac_ext
9016 fi
9017 ac_res=`eval echo '${'$as_ac_var'}'`
9018                { echo "$as_me:$LINENO: result: $ac_res" >&5
9019 echo "${ECHO_T}$ac_res" >&6; }
9020 if test `eval echo '${'$as_ac_var'}'` = yes; then
9021   cat >>confdefs.h <<_ACEOF
9022 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9023 _ACEOF
9024  
9025 fi
9026 done
9027
9028
9029 { echo "$as_me:$LINENO: checking for donuts" >&5
9030 echo $ECHO_N "checking for donuts... $ECHO_C" >&6; }
9031 { echo "$as_me:$LINENO: result: yes" >&5
9032 echo "${ECHO_T}yes" >&6; }
9033
9034 for ac_prog in gawk mawk nawk awk
9035 do
9036   # Extract the first word of "$ac_prog", so it can be a program name with args.
9037 set dummy $ac_prog; ac_word=$2
9038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9040 if test "${ac_cv_prog_AWK+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   if test -n "$AWK"; then
9044   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9045 else
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 for as_dir in $PATH
9048 do
9049   IFS=$as_save_IFS
9050   test -z "$as_dir" && as_dir=.
9051   for ac_exec_ext in '' $ac_executable_extensions; do
9052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053     ac_cv_prog_AWK="$ac_prog"
9054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9055     break 2
9056   fi
9057 done
9058 done
9059 IFS=$as_save_IFS
9060
9061 fi
9062 fi
9063 AWK=$ac_cv_prog_AWK
9064 if test -n "$AWK"; then
9065   { echo "$as_me:$LINENO: result: $AWK" >&5
9066 echo "${ECHO_T}$AWK" >&6; }
9067 else
9068   { echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6; }
9070 fi
9071
9072
9073   test -n "$AWK" && break
9074 done
9075
9076 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9077 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9078 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9079 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082   cat >conftest.make <<\_ACEOF
9083 SHELL = /bin/sh
9084 all:
9085         @echo '@@@%%%=$(MAKE)=@@@%%%'
9086 _ACEOF
9087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9088 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9089   *@@@%%%=?*=@@@%%%*)
9090     eval ac_cv_prog_make_${ac_make}_set=yes;;
9091   *)
9092     eval ac_cv_prog_make_${ac_make}_set=no;;
9093 esac
9094 rm -f conftest.make
9095 fi
9096 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9097   { echo "$as_me:$LINENO: result: yes" >&5
9098 echo "${ECHO_T}yes" >&6; }
9099   SET_MAKE=
9100 else
9101   { echo "$as_me:$LINENO: result: no" >&5
9102 echo "${ECHO_T}no" >&6; }
9103   SET_MAKE="MAKE=${MAKE-make}"
9104 fi
9105
9106 # Find a good install program.  We prefer a C program (faster),
9107 # so one script is as good as another.  But avoid the broken or
9108 # incompatible versions:
9109 # SysV /etc/install, /usr/sbin/install
9110 # SunOS /usr/etc/install
9111 # IRIX /sbin/install
9112 # AIX /bin/install
9113 # AmigaOS /C/install, which installs bootblocks on floppy discs
9114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9117 # OS/2's system install, which has a completely different semantic
9118 # ./install, which can be erroneously created by make from ./install.sh.
9119 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9121 if test -z "$INSTALL"; then
9122 if test "${ac_cv_path_install+set}" = set; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 else
9125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9127 do
9128   IFS=$as_save_IFS
9129   test -z "$as_dir" && as_dir=.
9130   # Account for people who put trailing slashes in PATH elements.
9131 case $as_dir/ in
9132   ./ | .// | /cC/* | \
9133   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9134   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9135   /usr/ucb/* ) ;;
9136   *)
9137     # OSF1 and SCO ODT 3.0 have their own names for install.
9138     # Don't use installbsd from OSF since it installs stuff as root
9139     # by default.
9140     for ac_prog in ginstall scoinst install; do
9141       for ac_exec_ext in '' $ac_executable_extensions; do
9142         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9143           if test $ac_prog = install &&
9144             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9145             # AIX install.  It has an incompatible calling convention.
9146             :
9147           elif test $ac_prog = install &&
9148             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9149             # program-specific install script used by HP pwplus--don't use.
9150             :
9151           else
9152             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9153             break 3
9154           fi
9155         fi
9156       done
9157     done
9158     ;;
9159 esac
9160 done
9161 IFS=$as_save_IFS
9162
9163
9164 fi
9165   if test "${ac_cv_path_install+set}" = set; then
9166     INSTALL=$ac_cv_path_install
9167   else
9168     # As a last resort, use the slow shell script.  Don't cache a
9169     # value for INSTALL within a source directory, because that will
9170     # break other packages using the cache if that directory is
9171     # removed, or if the value is a relative name.
9172     INSTALL=$ac_install_sh
9173   fi
9174 fi
9175 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9176 echo "${ECHO_T}$INSTALL" >&6; }
9177
9178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9179 # It thinks the first close brace ends the variable substitution.
9180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9181
9182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9183
9184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9185
9186 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
9187 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
9188 LN_S=$as_ln_s
9189 if test "$LN_S" = "ln -s"; then
9190   { echo "$as_me:$LINENO: result: yes" >&5
9191 echo "${ECHO_T}yes" >&6; }
9192 else
9193   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9194 echo "${ECHO_T}no, using $LN_S" >&6; }
9195 fi
9196
9197 for ac_prog in rm
9198 do
9199   # Extract the first word of "$ac_prog", so it can be a program name with args.
9200 set dummy $ac_prog; ac_word=$2
9201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9203 if test "${ac_cv_path_RMPROG+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   case $RMPROG in
9207   [\\/]* | ?:[\\/]*)
9208   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9209   ;;
9210   *)
9211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9213 do
9214   IFS=$as_save_IFS
9215   test -z "$as_dir" && as_dir=.
9216   for ac_exec_ext in '' $ac_executable_extensions; do
9217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9220     break 2
9221   fi
9222 done
9223 done
9224 IFS=$as_save_IFS
9225
9226   ;;
9227 esac
9228 fi
9229 RMPROG=$ac_cv_path_RMPROG
9230 if test -n "$RMPROG"; then
9231   { echo "$as_me:$LINENO: result: $RMPROG" >&5
9232 echo "${ECHO_T}$RMPROG" >&6; }
9233 else
9234   { echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6; }
9236 fi
9237
9238
9239   test -n "$RMPROG" && break
9240 done
9241 test -n "$RMPROG" || RMPROG="/bin/rm"
9242
9243 for ac_prog in sh
9244 do
9245   # Extract the first word of "$ac_prog", so it can be a program name with args.
9246 set dummy $ac_prog; ac_word=$2
9247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9249 if test "${ac_cv_path_SHPROG+set}" = set; then
9250   echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252   case $SHPROG in
9253   [\\/]* | ?:[\\/]*)
9254   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9255   ;;
9256   *)
9257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9259 do
9260   IFS=$as_save_IFS
9261   test -z "$as_dir" && as_dir=.
9262   for ac_exec_ext in '' $ac_executable_extensions; do
9263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266     break 2
9267   fi
9268 done
9269 done
9270 IFS=$as_save_IFS
9271
9272   ;;
9273 esac
9274 fi
9275 SHPROG=$ac_cv_path_SHPROG
9276 if test -n "$SHPROG"; then
9277   { echo "$as_me:$LINENO: result: $SHPROG" >&5
9278 echo "${ECHO_T}$SHPROG" >&6; }
9279 else
9280   { echo "$as_me:$LINENO: result: no" >&5
9281 echo "${ECHO_T}no" >&6; }
9282 fi
9283
9284
9285   test -n "$SHPROG" && break
9286 done
9287 test -n "$SHPROG" || SHPROG="/bin/sh"
9288
9289
9290 for ac_prog in flex lex
9291 do
9292   # Extract the first word of "$ac_prog", so it can be a program name with args.
9293 set dummy $ac_prog; ac_word=$2
9294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9296 if test "${ac_cv_prog_LEX+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   if test -n "$LEX"; then
9300   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9301 else
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9304 do
9305   IFS=$as_save_IFS
9306   test -z "$as_dir" && as_dir=.
9307   for ac_exec_ext in '' $ac_executable_extensions; do
9308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309     ac_cv_prog_LEX="$ac_prog"
9310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9311     break 2
9312   fi
9313 done
9314 done
9315 IFS=$as_save_IFS
9316
9317 fi
9318 fi
9319 LEX=$ac_cv_prog_LEX
9320 if test -n "$LEX"; then
9321   { echo "$as_me:$LINENO: result: $LEX" >&5
9322 echo "${ECHO_T}$LEX" >&6; }
9323 else
9324   { echo "$as_me:$LINENO: result: no" >&5
9325 echo "${ECHO_T}no" >&6; }
9326 fi
9327
9328
9329   test -n "$LEX" && break
9330 done
9331 test -n "$LEX" || LEX=":"
9332
9333 if test "x$LEX" != "x:"; then
9334   cat >conftest.l <<_ACEOF
9335 %%
9336 a { ECHO; }
9337 b { REJECT; }
9338 c { yymore (); }
9339 d { yyless (1); }
9340 e { yyless (input () != 0); }
9341 f { unput (yytext[0]); }
9342 . { BEGIN INITIAL; }
9343 %%
9344 #ifdef YYTEXT_POINTER
9345 extern char *yytext;
9346 #endif
9347 int
9348 main (void)
9349 {
9350   return ! yylex () + ! yywrap ();
9351 }
9352 _ACEOF
9353 { (ac_try="$LEX conftest.l"
9354 case "(($ac_try" in
9355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356   *) ac_try_echo=$ac_try;;
9357 esac
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359   (eval "$LEX conftest.l") 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }
9363 { echo "$as_me:$LINENO: checking lex output file root" >&5
9364 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9365 if test "${ac_cv_prog_lex_root+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   
9369 if test -f lex.yy.c; then
9370   ac_cv_prog_lex_root=lex.yy
9371 elif test -f lexyy.c; then
9372   ac_cv_prog_lex_root=lexyy
9373 else
9374   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9375 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9376    { (exit 1); exit 1; }; }
9377 fi
9378 fi
9379 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9380 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9381 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9382
9383 if test -z "${LEXLIB+set}"; then
9384   { echo "$as_me:$LINENO: checking lex library" >&5
9385 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9386 if test "${ac_cv_lib_lex+set}" = set; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   
9390     ac_save_LIBS=$LIBS
9391     ac_cv_lib_lex='none needed'
9392     for ac_lib in '' -lfl -ll; do
9393       LIBS="$ac_lib $ac_save_LIBS"
9394       cat >conftest.$ac_ext <<_ACEOF
9395 `cat $LEX_OUTPUT_ROOT.c`
9396 _ACEOF
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (ac_try="$ac_link"
9399 case "(($ac_try" in
9400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401   *) ac_try_echo=$ac_try;;
9402 esac
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404   (eval "$ac_link") 2>conftest.er1
9405   ac_status=$?
9406   grep -v '^ *+' conftest.er1 >conftest.err
9407   rm -f conftest.er1
9408   cat conftest.err >&5
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } && {
9411          test -z "$ac_c_werror_flag" ||
9412          test ! -s conftest.err
9413        } && test -s conftest$ac_exeext &&
9414        $as_test_x conftest$ac_exeext; then
9415   ac_cv_lib_lex=$ac_lib
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420         
9421 fi
9422
9423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424       conftest$ac_exeext conftest.$ac_ext
9425       test "$ac_cv_lib_lex" != 'none needed' && break
9426     done
9427     LIBS=$ac_save_LIBS
9428   
9429 fi
9430 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9431 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9432   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9433 fi
9434
9435
9436 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9437 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9438 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9439   echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441   # POSIX says lex can declare yytext either as a pointer or an array; the
9442 # default is implementation-dependent.  Figure out which it is, since
9443 # not all implementations provide the %pointer and %array declarations.
9444 ac_cv_prog_lex_yytext_pointer=no
9445 ac_save_LIBS=$LIBS
9446 LIBS="$LEXLIB $ac_save_LIBS"
9447 cat >conftest.$ac_ext <<_ACEOF
9448 #define YYTEXT_POINTER 1
9449 `cat $LEX_OUTPUT_ROOT.c`
9450 _ACEOF
9451 rm -f conftest.$ac_objext conftest$ac_exeext
9452 if { (ac_try="$ac_link"
9453 case "(($ac_try" in
9454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455   *) ac_try_echo=$ac_try;;
9456 esac
9457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458   (eval "$ac_link") 2>conftest.er1
9459   ac_status=$?
9460   grep -v '^ *+' conftest.er1 >conftest.err
9461   rm -f conftest.er1
9462   cat conftest.err >&5
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); } && {
9465          test -z "$ac_c_werror_flag" ||
9466          test ! -s conftest.err
9467        } && test -s conftest$ac_exeext &&
9468        $as_test_x conftest$ac_exeext; then
9469   ac_cv_prog_lex_yytext_pointer=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474         
9475 fi
9476
9477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9478       conftest$ac_exeext conftest.$ac_ext
9479 LIBS=$ac_save_LIBS
9480
9481 fi
9482 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9483 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9484 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9485   
9486 cat >>confdefs.h <<\_ACEOF
9487 @%:@define YYTEXT_POINTER 1
9488 _ACEOF
9489
9490 fi
9491 rm -f conftest.l $LEX_OUTPUT_ROOT.c
9492
9493 fi
9494 if test "$LEX" = ":" ; then
9495   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9496 echo "$as_me: error: Cannot find flex." >&2;}
9497    { (exit 1); exit 1; }; }
9498 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9499   :
9500 else
9501   { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9502 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9503    { (exit 1); exit 1; }; }
9504 fi
9505
9506 for ac_prog in 'bison -y' byacc
9507 do
9508   # Extract the first word of "$ac_prog", so it can be a program name with args.
9509 set dummy $ac_prog; ac_word=$2
9510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9512 if test "${ac_cv_prog_YACC+set}" = set; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515   if test -n "$YACC"; then
9516   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9517 else
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9520 do
9521   IFS=$as_save_IFS
9522   test -z "$as_dir" && as_dir=.
9523   for ac_exec_ext in '' $ac_executable_extensions; do
9524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525     ac_cv_prog_YACC="$ac_prog"
9526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527     break 2
9528   fi
9529 done
9530 done
9531 IFS=$as_save_IFS
9532
9533 fi
9534 fi
9535 YACC=$ac_cv_prog_YACC
9536 if test -n "$YACC"; then
9537   { echo "$as_me:$LINENO: result: $YACC" >&5
9538 echo "${ECHO_T}$YACC" >&6; }
9539 else
9540   { echo "$as_me:$LINENO: result: no" >&5
9541 echo "${ECHO_T}no" >&6; }
9542 fi
9543
9544
9545   test -n "$YACC" && break
9546 done
9547 test -n "$YACC" || YACC="yacc"
9548
9549 if test "$YACC" = ":" ; then
9550   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9551 echo "$as_me: error: Cannot find yacc." >&2;}
9552    { (exit 1); exit 1; }; }
9553 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9554   :
9555 else
9556   { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9557 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9558 fi
9559
9560 { echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9561 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6; }
9562 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9563   echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565   if test "$cross_compiling" = yes; then
9566   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9567 See \`config.log' for more details." >&5
9568 echo "$as_me: error: cannot run test program while cross compiling
9569 See \`config.log' for more details." >&2;}
9570    { (exit 1); exit 1; }; }
9571 else
9572   cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578 #include <sys/types.h>
9579 #include <sys/socket.h>
9580 #include <fcntl.h>
9581 #include <sys/ioctl.h>
9582 #include <sys/file.h>
9583 #include <signal.h>
9584 $ac_cv_type_signal alarmed() { exit(1); }
9585 int main(void)
9586 {
9587   char b[12];
9588   struct sockaddr x;
9589   size_t l = sizeof(x);
9590   int f = socket(AF_INET, SOCK_DGRAM, 0);
9591   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9592   {
9593     signal(SIGALRM, alarmed);
9594     alarm(2);
9595     recvfrom(f, b, 12, 0, &x, &l);
9596     alarm(0);
9597     exit(0);
9598   }
9599   exit(1);
9600 }
9601 _ACEOF
9602 rm -f conftest$ac_exeext
9603 if { (ac_try="$ac_link"
9604 case "(($ac_try" in
9605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606   *) ac_try_echo=$ac_try;;
9607 esac
9608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9609   (eval "$ac_link") 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9613   { (case "(($ac_try" in
9614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615   *) ac_try_echo=$ac_try;;
9616 esac
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618   (eval "$ac_try") 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; }; then
9622   unet_cv_sys_nonblocking_posix=yes
9623 else
9624   echo "$as_me: program exited with status $ac_status" >&5
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 ( exit $ac_status )
9629 unet_cv_sys_nonblocking_posix=no
9630 fi
9631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9632 fi
9633
9634
9635 fi
9636 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9637 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6; }
9638 if test $unet_cv_sys_nonblocking_posix = yes; then
9639   
9640 cat >>confdefs.h <<\_ACEOF
9641 @%:@define NBLOCK_POSIX 
9642 _ACEOF
9643
9644 else
9645 { echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9646 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6; }
9647 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9648   echo $ECHO_N "(cached) $ECHO_C" >&6
9649 else
9650   if test "$cross_compiling" = yes; then
9651   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9652 See \`config.log' for more details." >&5
9653 echo "$as_me: error: cannot run test program while cross compiling
9654 See \`config.log' for more details." >&2;}
9655    { (exit 1); exit 1; }; }
9656 else
9657   cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663 #include <sys/types.h>
9664 #include <sys/socket.h>
9665 #include <fcntl.h>
9666 #include <sys/ioctl.h>
9667 #include <sys/file.h>
9668 #include <signal.h>
9669 $ac_cv_type_signal alarmed() { exit(1); }
9670 int main(void)
9671 {
9672   char b[12];
9673   struct sockaddr x;
9674   size_t l = sizeof(x);
9675   int f = socket(AF_INET, SOCK_DGRAM, 0);
9676   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9677   {
9678     signal(SIGALRM, alarmed);
9679     alarm(2);
9680     recvfrom(f, b, 12, 0, &x, &l);
9681     alarm(0);
9682     exit(0);
9683   }
9684   exit(1);
9685 }
9686 _ACEOF
9687 rm -f conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_link") 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9698   { (case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703   (eval "$ac_try") 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; }; then
9707   unet_cv_sys_nonblocking_bsd=yes
9708 else
9709   echo "$as_me: program exited with status $ac_status" >&5
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ( exit $ac_status )
9714 unet_cv_sys_nonblocking_bsd=no
9715 fi
9716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9717 fi
9718
9719
9720 fi
9721 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9722 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6; }
9723 if test $unet_cv_sys_nonblocking_bsd = yes; then
9724   
9725 cat >>confdefs.h <<\_ACEOF
9726 @%:@define NBLOCK_BSD 
9727 _ACEOF
9728
9729 else
9730   
9731 cat >>confdefs.h <<\_ACEOF
9732 @%:@define NBLOCK_SYSV 
9733 _ACEOF
9734
9735 fi
9736 fi
9737 { echo "$as_me:$LINENO: checking for posix signals" >&5
9738 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6; }
9739 if test "${unet_cv_sys_signal_posix+set}" = set; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742   cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h.  */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h.  */
9748 #include <signal.h>
9749 int
9750 main ()
9751 {
9752 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 if { (ac_try="$ac_compile"
9759 case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_compile") 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } && {
9771          test -z "$ac_c_werror_flag" ||
9772          test ! -s conftest.err
9773        } && test -s conftest.$ac_objext; then
9774   unet_cv_sys_signal_posix=yes
9775 else
9776   echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779         unet_cv_sys_signal_posix=no
9780 fi
9781
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 fi
9784 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9785 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6; }
9786 if test $unet_cv_sys_signal_posix = yes; then
9787   
9788 cat >>confdefs.h <<\_ACEOF
9789 @%:@define POSIX_SIGNALS 
9790 _ACEOF
9791
9792 else
9793 { echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9794 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6; }
9795 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   if test "$cross_compiling" = yes; then
9799   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9800 See \`config.log' for more details." >&5
9801 echo "$as_me: error: cannot run test program while cross compiling
9802 See \`config.log' for more details." >&2;}
9803    { (exit 1); exit 1; }; }
9804 else
9805   cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h.  */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h.  */
9811 #include <signal.h>
9812 int calls = 0;
9813 $ac_cv_type_signal handler()
9814 {
9815   if (calls) return;
9816   calls++;
9817   kill(getpid(), SIGTERM);
9818   sleep(1);
9819 }
9820 int main(void)
9821 {
9822   signal(SIGTERM, handler);
9823   kill(getpid(), SIGTERM);
9824   exit (0);
9825 }
9826 _ACEOF
9827 rm -f conftest$ac_exeext
9828 if { (ac_try="$ac_link"
9829 case "(($ac_try" in
9830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831   *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834   (eval "$ac_link") 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9838   { (case "(($ac_try" in
9839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840   *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843   (eval "$ac_try") 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); }; }; then
9847   unet_cv_sys_signal_bsd=yes
9848 else
9849   echo "$as_me: program exited with status $ac_status" >&5
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ( exit $ac_status )
9854 unet_cv_sys_signal_bsd=no
9855 fi
9856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9857 fi
9858
9859
9860 fi
9861 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
9862 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6; }
9863 if test $unet_cv_sys_signal_bsd = yes; then
9864   
9865 cat >>confdefs.h <<\_ACEOF
9866 @%:@define BSD_RELIABLE_SIGNALS 
9867 _ACEOF
9868
9869 else
9870   
9871 cat >>confdefs.h <<\_ACEOF
9872 @%:@define SYSV_UNRELIABLE_SIGNALS 
9873 _ACEOF
9874
9875 fi
9876 fi
9877
9878 { echo "$as_me:$LINENO: checking for OS-dependent information" >&5
9879 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6; }
9880 case "$host" in
9881     *-linux*)
9882         { echo "$as_me:$LINENO: result: Linux ($host) found." >&5
9883 echo "${ECHO_T}Linux ($host) found." >&6; }
9884         unet_poll_syscall=yes
9885         ;;
9886
9887     *-solaris*)
9888         { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9889 echo "${ECHO_T}Solaris ($host) found." >&6; }
9890         if test x"$ac_cv_header_poll_h" = xyes; then
9891             unet_poll_syscall=yes
9892         else
9893             unet_poll_syscall=no
9894         fi
9895         
9896 cat >>confdefs.h <<\_ACEOF
9897 @%:@define IRCU_SOLARIS 1
9898 _ACEOF
9899
9900         ;;
9901
9902     *-sunos*)
9903         { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
9904 echo "${ECHO_T}Solaris ($host) found." >&6; }
9905         unet_poll_syscall=no
9906         ;;
9907
9908     *-openbsd*)
9909         { echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
9910 echo "${ECHO_T}OpenBSD ($host) found." >&6; }
9911         if test x"$ac_cv_header_poll_h" = xyes; then
9912             unet_poll_syscall=yes
9913         else
9914             unet_poll_syscall=no
9915         fi
9916         ;;
9917
9918     *-*bsd*)
9919         { echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
9920 echo "${ECHO_T}Generic BSD ($host) found." >&6; }
9921         if test x"$ac_cv_header_poll_h" = xyes; then
9922             unet_poll_syscall=yes
9923         else
9924             unet_poll_syscall=no
9925         fi
9926         ;;
9927
9928     *-darwin*)
9929         { echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
9930 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6; }
9931         unet_poll_syscall=no
9932         
9933 cat >>confdefs.h <<\_ACEOF
9934 @%:@define _DARWIN_C_SOURCE 1
9935 _ACEOF
9936
9937         ;;
9938
9939     *)
9940         { echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
9941 echo "${ECHO_T}Unknown system type $host found." >&6; }
9942         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
9943 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
9944         unet_poll_syscall=no
9945         ;;
9946 esac
9947
9948 { echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
9949 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6; }
9950 # Check whether --enable-poll was given.
9951 if test "${enable_poll+set}" = set; then
9952   enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
9953 else
9954   if test "${unet_cv_enable_poll+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   unet_cv_enable_poll=$unet_poll_syscall
9958 fi
9959
9960 fi
9961
9962
9963 # Force poll to be disabled if there is no poll.h
9964 if test x"$ac_cv_header_poll_h" != xyes; then
9965     unet_cv_enable_poll=no
9966 fi
9967
9968 { echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
9969 echo "${ECHO_T}$unet_cv_enable_poll" >&6; }
9970
9971 if test x"$unet_cv_enable_poll" = xyes; then
9972     
9973 cat >>confdefs.h <<\_ACEOF
9974 @%:@define USE_POLL 1
9975 _ACEOF
9976
9977     ENGINE_C=engine_poll.c
9978 else
9979     ENGINE_C=engine_select.c
9980 fi
9981
9982
9983 { echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
9984 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6; }
9985 # Check whether --enable-debug was given.
9986 if test "${enable_debug+set}" = set; then
9987   enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
9988 else
9989   if test "${unet_cv_enable_debug+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   unet_cv_enable_debug=no
9993 fi
9994
9995 fi
9996
9997 { echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
9998 echo "${ECHO_T}$unet_cv_enable_debug" >&6; }
9999
10000 if test x"$unet_cv_enable_debug" = xyes; then
10001     
10002 cat >>confdefs.h <<\_ACEOF
10003 @%:@define DEBUGMODE 1
10004 _ACEOF
10005
10006     CFLAGS="$CFLAGS -O0 -g"
10007 fi
10008
10009 { echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10010 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6; }
10011
10012 # Check whether --with-leak-detect was given.
10013 if test "${with_leak_detect+set}" = set; then
10014   withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
10015 else
10016   if test "${unet_cv_with_leak_detect+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   unet_cv_with_leak_detect=no
10020 fi
10021
10022 fi
10023
10024 { echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10025 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6; }
10026
10027 if test x"$unet_cv_with_leak_detect" != xno; then
10028     LIBS="-lgc $LIBS"
10029     CFLAGS="-DMDEBUG $CFLAGS"
10030     if test x"$unet_cv_with_leak_detect" != xyes; then
10031        LIBS="-L$unet_cv_with_leak_detect $LIBS"
10032     fi
10033 fi
10034
10035
10036 # Check whether --with-ipv6 was given.
10037 if test "${with_ipv6+set}" = set; then
10038   withval=$with_ipv6; ac_cv_use_ipv6=$withval
10039 else
10040   ac_cv_use_ipv6=$unet_have_sockaddr_in6
10041 fi
10042
10043 { echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10044 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6; }
10045 if test "${ac_cv_use_ipv6+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048   ac_cv_use_ipv6=no
10049 fi
10050 { echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10051 echo "${ECHO_T}$ac_cv_use_ipv6" >&6; }
10052 if test x"$ac_cv_use_ipv6" != "xno" ; then
10053     
10054 cat >>confdefs.h <<\_ACEOF
10055 @%:@define IPV6 1
10056 _ACEOF
10057
10058 fi
10059
10060 { echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10061 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6; }
10062 # Check whether --enable-asserts was given.
10063 if test "${enable_asserts+set}" = set; then
10064   enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
10065 else
10066   if test "${unet_cv_enable_asserts+set}" = set; then
10067   echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069   unet_cv_enable_asserts=yes
10070 fi
10071
10072 fi
10073
10074 { echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10075 echo "${ECHO_T}$unet_cv_enable_asserts" >&6; }
10076
10077 if test x"$unet_cv_enable_asserts" = xno; then
10078     
10079 cat >>confdefs.h <<\_ACEOF
10080 @%:@define NDEBUG 1
10081 _ACEOF
10082
10083 fi
10084
10085 { echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10086 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6; }
10087 # Check whether --enable-profile was given.
10088 if test "${enable_profile+set}" = set; then
10089   enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
10090 else
10091   if test "${unet_cv_enable_profile+set}" = set; then
10092   echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094   unet_cv_enable_profile=no
10095 fi
10096
10097 fi
10098
10099 { echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10100 echo "${ECHO_T}$unet_cv_enable_profile" >&6; }
10101
10102 if test x"$unet_cv_enable_profile" = xyes; then
10103     CFLAGS="-pg $CFLAGS"
10104     LDFLAGS="-pg $LDFLAGS"
10105 fi
10106
10107 { echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10108 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6; }
10109 # Check whether --enable-pedantic was given.
10110 if test "${enable_pedantic+set}" = set; then
10111   enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
10112 else
10113   if test "${unet_cv_enable_pedantic+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116   unet_cv_enable_pedantic=no
10117 fi
10118
10119 fi
10120
10121 { echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10122 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6; }
10123
10124 if test x"$unet_cv_enable_pedantic" = xyes; then
10125     CFLAGS="-pedantic $CFLAGS"
10126 fi
10127
10128 { echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10129 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6; }
10130 # Check whether --enable-warnings was given.
10131 if test "${enable_warnings+set}" = set; then
10132   enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
10133 else
10134   if test "${unet_cv_enable_warnings+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137   unet_cv_enable_warnings=no
10138 fi
10139
10140 fi
10141
10142 { echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10143 echo "${ECHO_T}$unet_cv_enable_warnings" >&6; }
10144
10145 if test x"$unet_cv_enable_warnings" = xyes; then
10146     CFLAGS="-Wall $CFLAGS"
10147 fi
10148
10149 { echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10150 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6; }
10151 # Check whether --enable-inlines was given.
10152 if test "${enable_inlines+set}" = set; then
10153   enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
10154 else
10155   if test "${unet_cv_enable_inlines+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   unet_cv_enable_inlines=yes
10159 fi
10160
10161 fi
10162
10163 { echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10164 echo "${ECHO_T}$unet_cv_enable_inlines" >&6; }
10165
10166 if test x"$unet_cv_enable_inlines" = xyes; then
10167     
10168 cat >>confdefs.h <<\_ACEOF
10169 @%:@define FORCEINLINE 1
10170 _ACEOF
10171
10172 fi
10173
10174 { echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10175 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6; }
10176 # Check whether --enable-devpoll was given.
10177 if test "${enable_devpoll+set}" = set; then
10178   enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
10179 else
10180   if test "${unet_cv_enable_devpoll+set}" = set; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   unet_cv_enable_devpoll=yes
10184 fi
10185
10186 fi
10187
10188
10189 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10190     unet_cv_enable_devpoll=no
10191 fi
10192
10193 { echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10194 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6; }
10195
10196 if test x"$unet_cv_enable_devpoll" != xno; then
10197     
10198 cat >>confdefs.h <<\_ACEOF
10199 @%:@define USE_DEVPOLL 1
10200 _ACEOF
10201
10202     ENGINE_C="engine_devpoll.c $ENGINE_C"
10203 fi
10204
10205 { echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10206 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6; }
10207 # Check whether --enable-kqueue was given.
10208 if test "${enable_kqueue+set}" = set; then
10209   enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
10210 else
10211   if test "${unet_cv_enable_kqueue+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   unet_cv_enable_kqueue=yes
10215 fi
10216
10217 fi
10218
10219
10220 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10221     unet_cv_enable_kqueue=no
10222 fi
10223
10224 { echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10225 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6; }
10226
10227 if test x"$unet_cv_enable_kqueue" != xno; then
10228     
10229 cat >>confdefs.h <<\_ACEOF
10230 @%:@define USE_KQUEUE 1
10231 _ACEOF
10232
10233     ENGINE_C="engine_kqueue.c $ENGINE_C"
10234 fi
10235
10236 { echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10237 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6; }
10238 # Check whether --enable-epoll was given.
10239 if test "${enable_epoll+set}" = set; then
10240   enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
10241 else
10242   if test "${unet_cv_enable_epoll+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   unet_cv_enable_epoll=yes
10246 fi
10247
10248 fi
10249
10250
10251 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10252     unet_cv_enable_epoll=no
10253 fi
10254
10255 { echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10256 echo "${ECHO_T}$unet_cv_enable_epoll" >&6; }
10257
10258 if test x"$unet_cv_enable_epoll" != xno; then
10259     { echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10260 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6; }
10261     cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267 #include <sys/epoll.h>
10268 int
10269 main ()
10270 {
10271 epoll_create(10);
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280   *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283   (eval "$ac_link") 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } && {
10290          test -z "$ac_c_werror_flag" ||
10291          test ! -s conftest.err
10292        } && test -s conftest$ac_exeext &&
10293        $as_test_x conftest$ac_exeext; then
10294   { echo "$as_me:$LINENO: result: yes" >&5
10295 echo "${ECHO_T}yes" >&6; }
10296 else
10297   echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10299
10300         { echo "$as_me:$LINENO: result: no" >&5
10301 echo "${ECHO_T}no" >&6; }
10302          
10303 cat >>confdefs.h <<\_ACEOF
10304 @%:@define EPOLL_NEED_BODY 1
10305 _ACEOF
10306
10307 fi
10308
10309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310       conftest$ac_exeext conftest.$ac_ext
10311     
10312 cat >>confdefs.h <<\_ACEOF
10313 @%:@define USE_EPOLL 1
10314 _ACEOF
10315
10316     ENGINE_C="engine_epoll.c $ENGINE_C"
10317 fi
10318
10319 { echo "$as_me:$LINENO: checking for va_copy" >&5
10320 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
10321 if test "${unet_cv_c_va_copy+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   cat >conftest.$ac_ext <<_ACEOF
10325 /* confdefs.h.  */
10326 _ACEOF
10327 cat confdefs.h >>conftest.$ac_ext
10328 cat >>conftest.$ac_ext <<_ACEOF
10329 /* end confdefs.h.  */
10330 #include <stdarg.h>
10331 int
10332 main ()
10333 {
10334 va_list ap1, ap2; va_copy(ap1, ap2);
10335   ;
10336   return 0;
10337 }
10338 _ACEOF
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (ac_try="$ac_link"
10341 case "(($ac_try" in
10342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343   *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346   (eval "$ac_link") 2>conftest.er1
10347   ac_status=$?
10348   grep -v '^ *+' conftest.er1 >conftest.err
10349   rm -f conftest.er1
10350   cat conftest.err >&5
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } && {
10353          test -z "$ac_c_werror_flag" ||
10354          test ! -s conftest.err
10355        } && test -s conftest$ac_exeext &&
10356        $as_test_x conftest$ac_exeext; then
10357   unet_cv_c_va_copy="yes"
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362         unet_cv_c_va_copy="no"
10363
10364 fi
10365
10366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367       conftest$ac_exeext conftest.$ac_ext
10368 fi
10369 { echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10370 echo "${ECHO_T}$unet_cv_c_va_copy" >&6; }
10371 if test "$unet_cv_c_va_copy" = "yes" ; then
10372   
10373 cat >>confdefs.h <<\_ACEOF
10374 @%:@define HAVE_VA_COPY 1
10375 _ACEOF
10376
10377 fi
10378
10379 { echo "$as_me:$LINENO: checking for __va_copy" >&5
10380 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
10381 if test "${unet_cv_c___va_copy+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h.  */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h.  */
10390 #include <stdarg.h>
10391 int
10392 main ()
10393 {
10394 va_list ap1, ap2; __va_copy(ap1, ap2);
10395   ;
10396   return 0;
10397 }
10398 _ACEOF
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (ac_try="$ac_link"
10401 case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_link") 2>conftest.er1
10407   ac_status=$?
10408   grep -v '^ *+' conftest.er1 >conftest.err
10409   rm -f conftest.er1
10410   cat conftest.err >&5
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); } && {
10413          test -z "$ac_c_werror_flag" ||
10414          test ! -s conftest.err
10415        } && test -s conftest$ac_exeext &&
10416        $as_test_x conftest$ac_exeext; then
10417   unet_cv_c___va_copy="yes"
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422         unet_cv_c___va_copy="no"
10423
10424 fi
10425
10426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10427       conftest$ac_exeext conftest.$ac_ext
10428 fi
10429 { echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10430 echo "${ECHO_T}$unet_cv_c___va_copy" >&6; }
10431 if test "$unet_cv_c___va_copy" = "yes" ; then
10432   
10433 cat >>confdefs.h <<\_ACEOF
10434 @%:@define HAVE___VA_COPY 1
10435 _ACEOF
10436
10437 fi
10438
10439 { echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10440 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6; }
10441
10442 # Check whether --with-symlink was given.
10443 if test "${with_symlink+set}" = set; then
10444   withval=$with_symlink; unet_cv_with_symlink=$with_symlink
10445 else
10446   if test "${unet_cv_with_symlink+set}" = set; then
10447   echo $ECHO_N "(cached) $ECHO_C" >&6
10448 else
10449   unet_cv_with_symlink="ircd"
10450 fi
10451
10452 fi
10453
10454
10455 if test x"$unet_cv_with_symlink" = xyes; then
10456     unet_cv_with_symlink="ircd"
10457 fi
10458
10459 { echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10460 echo "${ECHO_T}$unet_cv_with_symlink" >&6; }
10461
10462 if test x"$unet_cv_with_symlink" = xno; then
10463     INSTALL_RULE=install-no-symlink
10464     SYMLINK=
10465 else
10466     INSTALL_RULE=install-with-symlink
10467     SYMLINK=$unet_cv_with_symlink
10468 fi
10469
10470
10471
10472 { echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10473 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6; }
10474
10475 # Check whether --with-mode was given.
10476 if test "${with_mode+set}" = set; then
10477   withval=$with_mode; unet_cv_with_mode=$with_mode
10478 else
10479   if test "${unet_cv_with_mode+set}" = set; then
10480   echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482   unet_cv_with_mode=711
10483 fi
10484
10485 fi
10486
10487
10488 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10489     unet_cv_with_mode=711
10490 fi
10491
10492 { echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10493 echo "${ECHO_T}$unet_cv_with_mode" >&6; }
10494
10495 IRCDMODE=$unet_cv_with_mode
10496
10497
10498 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10499 { echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10500 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6; }
10501
10502 # Check whether --with-owner was given.
10503 if test "${with_owner+set}" = set; then
10504   withval=$with_owner; unet_cv_with_owner=$with_owner
10505 else
10506   if test "${unet_cv_with_owner+set}" = set; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   unet_cv_with_owner=$unet_uid
10510 fi
10511
10512 fi
10513
10514
10515 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10516     unet_cv_with_owner=$unet_uid
10517 fi
10518
10519 { echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10520 echo "${ECHO_T}$unet_cv_with_owner" >&6; }
10521
10522 IRCDOWN=$unet_cv_with_owner
10523
10524
10525 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10526 { echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10527 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6; }
10528
10529 # Check whether --with-group was given.
10530 if test "${with_group+set}" = set; then
10531   withval=$with_group; unet_cv_with_group=$with_group
10532 else
10533   if test "${unet_cv_with_group+set}" = set; then
10534   echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536   unet_cv_with_group=$unet_gid
10537 fi
10538
10539 fi
10540
10541
10542 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10543     unet_cv_with_group=$unet_gid
10544 fi
10545
10546 { echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10547 echo "${ECHO_T}$unet_cv_with_group" >&6; }
10548
10549 IRCDGRP=$unet_cv_with_group
10550
10551
10552 unet_domain=
10553 if test -f /etc/resolv.conf; then
10554     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10555     if test x"$unet_domain" = x; then
10556         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10557     fi
10558 fi
10559 { echo "$as_me:$LINENO: checking for site domain name" >&5
10560 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6; }
10561
10562 # Check whether --with-domain was given.
10563 if test "${with_domain+set}" = set; then
10564   withval=$with_domain; unet_cv_with_domain=$with_domain
10565 else
10566   if test "${unet_cv_with_domain+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   unet_cv_with_domain=$unet_domain
10570 fi
10571
10572 fi
10573
10574
10575 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10576     unet_cv_with_domain=$unet_domain
10577 fi
10578 if test x"$unet_cv_with_domain" = xno; then
10579     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10580 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10581    { (exit 1); exit 1; }; }
10582 fi
10583
10584 { echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10585 echo "${ECHO_T}$unet_cv_with_domain" >&6; }
10586
10587
10588 cat >>confdefs.h <<_ACEOF
10589 @%:@define DOMAINNAME "*$unet_cv_with_domain"
10590 _ACEOF
10591
10592
10593 { echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10594 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6; }
10595
10596 # Check whether --with-chroot was given.
10597 if test "${with_chroot+set}" = set; then
10598   withval=$with_chroot; unet_cv_with_chroot=$with_chroot
10599 else
10600   if test "${unet_cv_with_chroot+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   unet_cv_with_chroot=no
10604 fi
10605
10606 fi
10607
10608
10609 if test x"$unet_cv_with_chroot" = xyes; then
10610     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
10611 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
10612    { (exit 1); exit 1; }; }
10613 fi
10614
10615 # Ensure there are no trailing /'s to mess us up
10616 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10617
10618 { echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10619 echo "${ECHO_T}$unet_cv_with_chroot" >&6; }
10620
10621 # Deal with the annoying value "NONE" here
10622 unet_save_prefix=$prefix
10623 if test x"$prefix" = xNONE; then
10624     prefix=$ac_default_prefix
10625 else
10626     prefix=$prefix
10627 fi
10628
10629 unet_save_exec_prefix=$exec_prefix
10630 if test x"$exec_prefix" = xNONE; then
10631     exec_prefix=$prefix
10632 else
10633     exec_prefix=$exec_prefix
10634 fi
10635
10636 # Obtain the actual interesting directories
10637 unet_bindir=`eval echo "$bindir"`
10638 unet_libdir=`eval echo "$libdir"`
10639
10640 # Restore the original settings of $prefix and $exec_prefix
10641 prefix=$unet_save_prefix
10642 exec_prefix=$unet_save_exec_prefix
10643
10644 { echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10645 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6; }
10646 if test x"$unet_cv_with_symlink" = xno; then
10647     unet_spath="$unet_bindir/ircd"
10648 else
10649     unet_spath="$unet_bindir/$unet_cv_with_symlink"
10650 fi
10651 { echo "$as_me:$LINENO: result: $unet_spath" >&5
10652 echo "${ECHO_T}$unet_spath" >&6; }
10653
10654 if test x"$unet_cv_with_chroot" != xno; then
10655     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10656         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10657     else
10658         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10659 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10660     fi
10661 fi
10662
10663
10664 cat >>confdefs.h <<_ACEOF
10665 @%:@define SPATH "$unet_spath"
10666 _ACEOF
10667
10668
10669 { echo "$as_me:$LINENO: checking what the data directory should be" >&5
10670 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6; }
10671
10672 # Check whether --with-dpath was given.
10673 if test "${with_dpath+set}" = set; then
10674   withval=$with_dpath; unet_cv_with_dpath=$with_dpath
10675 else
10676   if test "${unet_cv_with_dpath+set}" = set; then
10677   echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679   unet_cv_with_dpath=$unet_libdir
10680 fi
10681
10682 fi
10683
10684
10685 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10686     unet_cv_with_dpath=$unet_libdir
10687 fi
10688
10689 # Ensure there are no trailing /'s to mess us up
10690 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10691
10692 { echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10693 echo "${ECHO_T}$unet_cv_with_dpath" >&6; }
10694
10695 if test x"$unet_cv_with_chroot" != xno; then
10696     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10697         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10698     else
10699         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10700 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10701    { (exit 1); exit 1; }; }
10702     fi
10703 else
10704     unet_dpath=$unet_cv_with_dpath
10705 fi
10706
10707
10708 cat >>confdefs.h <<_ACEOF
10709 @%:@define DPATH "$unet_dpath"
10710 _ACEOF
10711
10712
10713 DPATH=$unet_cv_with_dpath
10714
10715
10716 { echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10717 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6; }
10718
10719 # Check whether --with-cpath was given.
10720 if test "${with_cpath+set}" = set; then
10721   withval=$with_cpath; unet_cv_with_cpath=$with_cpath
10722 else
10723   if test "${unet_cv_with_cpath+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   unet_cv_with_cpath="ircd.conf"
10727 fi
10728
10729 fi
10730
10731
10732 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10733     unet_cv_with_cpath="ircd.conf"
10734 fi
10735
10736 { echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10737 echo "${ECHO_T}$unet_cv_with_cpath" >&6; }
10738
10739 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10740     # Absolute path; check against chroot stuff
10741     if test x"$unet_cv_with_chroot" != xno; then
10742         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10743             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10744         else
10745             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10746 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10747    { (exit 1); exit 1; }; }
10748         fi
10749     else
10750         unet_cpath=$unet_cv_with_cpath
10751     fi
10752 else
10753     unet_cpath=$unet_cv_with_cpath
10754 fi
10755
10756
10757 cat >>confdefs.h <<_ACEOF
10758 @%:@define CPATH "$unet_cpath"
10759 _ACEOF
10760
10761
10762 { echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10763 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6; }
10764
10765 # Check whether --with-lpath was given.
10766 if test "${with_lpath+set}" = set; then
10767   withval=$with_lpath; unet_cv_with_lpath=$with_lpath
10768 else
10769   if test "${unet_cv_with_lpath+set}" = set; then
10770   echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772   unet_cv_with_lpath="ircd.log"
10773 fi
10774
10775 fi
10776
10777
10778 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10779     unet_cv_with_lpath="ircd.log"
10780 fi
10781
10782 { echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10783 echo "${ECHO_T}$unet_cv_with_lpath" >&6; }
10784
10785 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10786     # Absolute path; check against chroot stuff
10787     if test x"$unet_cv_with_chroot" != xno; then
10788         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10789             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10790         else
10791             { echo "$as_me:$LINENO: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
10792 echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
10793             unet_cv_with_lpath="ircd.log"
10794             unet_lpath="ircd.log"
10795         fi
10796     else
10797         unet_lpath=$unet_cv_with_lpath
10798     fi
10799 else
10800     unet_lpath=$unet_cv_with_lpath
10801 fi
10802
10803
10804 cat >>confdefs.h <<_ACEOF
10805 @%:@define LPATH "$unet_lpath"
10806 _ACEOF
10807
10808
10809 unet_maxcon=`ulimit -Hn`
10810 if test x"$unet_maxcon" = xunlimited; then
10811     unet_maxcon=`ulimit -Sn`
10812 fi
10813 unet_maxcon=`expr $unet_maxcon - 4`
10814 { echo "$as_me:$LINENO: checking max connections" >&5
10815 echo $ECHO_N "checking max connections... $ECHO_C" >&6; }
10816
10817 # Check whether --with-maxcon was given.
10818 if test "${with_maxcon+set}" = set; then
10819   withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
10820 else
10821   if test "${unet_cv_with_maxcon+set}" = set; then
10822   echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824   unet_cv_with_maxcon=$unet_maxcon
10825 fi
10826
10827 fi
10828
10829
10830 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
10831     if test "$unet_maxcon" -lt 32; then
10832       { { echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
10833 echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
10834    { (exit 1); exit 1; }; }
10835     fi
10836     unet_cv_with_maxcon=$unet_maxcon
10837 elif test "$unet_cv_with_maxcon" -lt 32; then
10838     { { echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
10839 echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
10840    { (exit 1); exit 1; }; }
10841 fi
10842
10843 { echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
10844 echo "${ECHO_T}$unet_cv_with_maxcon" >&6; }
10845
10846
10847 cat >>confdefs.h <<_ACEOF
10848 @%:@define MAXCONNECTIONS $unet_cv_with_maxcon
10849 _ACEOF
10850
10851
10852 unet_cv_enable_compat="yes"
10853 { echo "$as_me:$LINENO: checking whether to enable OGN-compat mode" >&5
10854 echo $ECHO_N "checking whether to enable OGN-compat mode... $ECHO_C" >&6; }
10855 # Check whether --enable-compat was given.
10856 if test "${enable_compat+set}" = set; then
10857   enableval=$enable_compat; unet_cv_enable_compat=$enable_compat
10858 fi
10859
10860 { echo "$as_me:$LINENO: result: $unet_cv_enable_compat" >&5
10861 echo "${ECHO_T}$unet_cv_enable_compat" >&6; }
10862
10863 if test $unet_cv_enable_compat = "no" ; then
10864     # do nothing
10865     unet_cv_enable_compat="no"
10866 else
10867     
10868 cat >>confdefs.h <<\_ACEOF
10869 @%:@define OLD_OGN_IRCU_COMPAT 1
10870 _ACEOF
10871
10872 fi
10873
10874 unet_cv_enable_unstable="no"
10875 { echo "$as_me:$LINENO: checking whether to enable unstable features" >&5
10876 echo $ECHO_N "checking whether to enable unstable features... $ECHO_C" >&6; }
10877 # Check whether --enable-unstable was given.
10878 if test "${enable_unstable+set}" = set; then
10879   enableval=$enable_unstable; unet_cv_enable_unstable=$enable_unstable
10880 fi
10881
10882 { echo "$as_me:$LINENO: result: $unet_cv_enable_unstable" >&5
10883 echo "${ECHO_T}$unet_cv_enable_unstable" >&6; }
10884
10885 if test $unet_cv_enable_unstable = "yes" ; then
10886     
10887 cat >>confdefs.h <<\_ACEOF
10888 @%:@define WITH_UNSTABLE_FEAT 1
10889 _ACEOF
10890
10891 fi
10892
10893
10894 unet_cv_enable_gnutls="no"
10895 unet_cv_enable_openssl="yes"
10896
10897 { echo "$as_me:$LINENO: checking for GnuTLS" >&5
10898 echo $ECHO_N "checking for GnuTLS... $ECHO_C" >&6; }
10899 # Check whether --enable-gnutls was given.
10900 if test "${enable_gnutls+set}" = set; then
10901   enableval=$enable_gnutls; unet_cv_enable_gnutls=$enable_gnutls
10902 fi
10903
10904 { echo "$as_me:$LINENO: result: $unet_cv_enable_gnutls" >&5
10905 echo "${ECHO_T}$unet_cv_enable_gnutls" >&6; }
10906
10907 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
10908 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
10909 # Check whether --enable-openssl was given.
10910 if test "${enable_openssl+set}" = set; then
10911   enableval=$enable_openssl; unet_cv_enable_openssl=$enable_openssl
10912 fi
10913
10914 { echo "$as_me:$LINENO: result: $unet_cv_enable_openssl" >&5
10915 echo "${ECHO_T}$unet_cv_enable_openssl" >&6; }
10916
10917 if test x"$unet_cv_enable_gnutls" = xyes; then
10918   unet_cv_enable_gnutls="no";
10919   { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10920 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
10921 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924   ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-lgnutls  $LIBS"
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932
10933 /* Override any GCC internal prototype to avoid an error.
10934    Use char because int might match the return type of a GCC
10935    builtin and then its argument prototype would still apply.  */
10936 #ifdef __cplusplus
10937 extern "C"
10938 #endif
10939 char gnutls_init ();
10940 int
10941 main ()
10942 {
10943 return gnutls_init ();
10944   ;
10945   return 0;
10946 }
10947 _ACEOF
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_link") 2>conftest.er1
10956   ac_status=$?
10957   grep -v '^ *+' conftest.er1 >conftest.err
10958   rm -f conftest.er1
10959   cat conftest.err >&5
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); } && {
10962          test -z "$ac_c_werror_flag" ||
10963          test ! -s conftest.err
10964        } && test -s conftest$ac_exeext &&
10965        $as_test_x conftest$ac_exeext; then
10966   ac_cv_lib_gnutls_gnutls_init=yes
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971         ac_cv_lib_gnutls_gnutls_init=no
10972 fi
10973
10974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10975       conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10977 fi
10978 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10979 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
10980 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10981   
10982     
10983 for ac_header in gnutls/gnutls.h
10984 do
10985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990   echo $ECHO_N "(cached) $ECHO_C" >&6
10991 fi
10992 ac_res=`eval echo '${'$as_ac_Header'}'`
10993                { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10995 else
10996   # Is the header compilable?
10997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10999 cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h.  */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h.  */
11005 $ac_includes_default
11006 @%:@include <$ac_header>
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_compile") 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } && {
11022          test -z "$ac_c_werror_flag" ||
11023          test ! -s conftest.err
11024        } && test -s conftest.$ac_objext; then
11025   ac_header_compiler=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030         ac_header_compiler=no
11031 fi
11032
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11035 echo "${ECHO_T}$ac_header_compiler" >&6; }
11036
11037 # Is the header present?
11038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 @%:@include <$ac_header>
11047 _ACEOF
11048 if { (ac_try="$ac_cpp conftest.$ac_ext"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } >/dev/null && {
11061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11062          test ! -s conftest.err
11063        }; then
11064   ac_header_preproc=yes
11065 else
11066   echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069   ac_header_preproc=no
11070 fi
11071
11072 rm -f conftest.err conftest.$ac_ext
11073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6; }
11075
11076 # So?  What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11078   yes:no: )
11079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083     ac_header_preproc=yes
11084     ;;
11085   no:yes:* )
11086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098     
11099     ;;
11100 esac
11101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   eval "$as_ac_Header=\$ac_header_preproc"
11107 fi
11108 ac_res=`eval echo '${'$as_ac_Header'}'`
11109                { echo "$as_me:$LINENO: result: $ac_res" >&5
11110 echo "${ECHO_T}$ac_res" >&6; }
11111
11112 fi
11113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11114   cat >>confdefs.h <<_ACEOF
11115 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11116 _ACEOF
11117  
11118       unet_cv_enable_gnutls="yes";
11119     
11120 fi
11121
11122 done
11123
11124   
11125 fi
11126
11127 fi
11128
11129 if test x"$unet_cv_enable_openssl" = xyes; then
11130   unet_cv_enable_openssl="no";
11131   { echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
11132 echo $ECHO_N "checking for SSL_read in -lssl... $ECHO_C" >&6; }
11133 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   ac_check_lib_save_LIBS=$LIBS
11137 LIBS="-lssl  $LIBS"
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144
11145 /* Override any GCC internal prototype to avoid an error.
11146    Use char because int might match the return type of a GCC
11147    builtin and then its argument prototype would still apply.  */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 char SSL_read ();
11152 int
11153 main ()
11154 {
11155 return SSL_read ();
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext conftest$ac_exeext
11161 if { (ac_try="$ac_link"
11162 case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167   (eval "$ac_link") 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } && {
11174          test -z "$ac_c_werror_flag" ||
11175          test ! -s conftest.err
11176        } && test -s conftest$ac_exeext &&
11177        $as_test_x conftest$ac_exeext; then
11178   ac_cv_lib_ssl_SSL_read=yes
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183         ac_cv_lib_ssl_SSL_read=no
11184 fi
11185
11186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11187       conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11189 fi
11190 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
11191 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_read" >&6; }
11192 if test $ac_cv_lib_ssl_SSL_read = yes; then
11193   
11194     { echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11195 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6; }
11196 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-lcrypto  $LIBS"
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h.  */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h.  */
11207
11208 /* Override any GCC internal prototype to avoid an error.
11209    Use char because int might match the return type of a GCC
11210    builtin and then its argument prototype would still apply.  */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 char X509_new ();
11215 int
11216 main ()
11217 {
11218 return X509_new ();
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (ac_try="$ac_link"
11225 case "(($ac_try" in
11226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227   *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230   (eval "$ac_link") 2>conftest.er1
11231   ac_status=$?
11232   grep -v '^ *+' conftest.er1 >conftest.err
11233   rm -f conftest.er1
11234   cat conftest.err >&5
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } && {
11237          test -z "$ac_c_werror_flag" ||
11238          test ! -s conftest.err
11239        } && test -s conftest$ac_exeext &&
11240        $as_test_x conftest$ac_exeext; then
11241   ac_cv_lib_crypto_X509_new=yes
11242 else
11243   echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246         ac_cv_lib_crypto_X509_new=no
11247 fi
11248
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250       conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_lib_save_LIBS
11252 fi
11253 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11254 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6; }
11255 if test $ac_cv_lib_crypto_X509_new = yes; then
11256   
11257       
11258
11259 for ac_header in openssl/ssl.h openssl/err.h
11260 do
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 fi
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269                { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11271 else
11272   # Is the header compilable?
11273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 $ac_includes_default
11282 @%:@include <$ac_header>
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_compile") 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } && {
11298          test -z "$ac_c_werror_flag" ||
11299          test ! -s conftest.err
11300        } && test -s conftest.$ac_objext; then
11301   ac_header_compiler=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306         ac_header_compiler=no
11307 fi
11308
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 @%:@include <$ac_header>
11323 _ACEOF
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } >/dev/null && {
11337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11338          test ! -s conftest.err
11339        }; then
11340   ac_header_preproc=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345   ac_header_preproc=no
11346 fi
11347
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351
11352 # So?  What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354   yes:no: )
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359     ac_header_preproc=yes
11360     ;;
11361   no:yes:* )
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374     
11375     ;;
11376 esac
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   eval "$as_ac_Header=\$ac_header_preproc"
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387
11388 fi
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11393  
11394         unet_cv_enable_openssl="yes";
11395       
11396 fi
11397
11398 done
11399
11400     
11401 fi
11402
11403   
11404 fi
11405
11406 fi
11407
11408 if test x"$unet_cv_enable_gnutls" = xyes; then
11409     LIBS="$LIBS -lgnutls"
11410     
11411 cat >>confdefs.h <<\_ACEOF
11412 @%:@define HAVE_GNUTLS 1
11413 _ACEOF
11414
11415 fi
11416
11417 if test x"$unet_cv_enable_openssl" = xyes ; then
11418     LIBS="$LIBS -lssl -lcrypto"
11419     
11420 cat >>confdefs.h <<\_ACEOF
11421 @%:@define HAVE_OPENSSL 1
11422 _ACEOF
11423
11424 fi
11425
11426 ac_config_files="$ac_config_files Makefile ircd/Makefile doc/Makefile"
11427
11428 ac_config_commands="$ac_config_commands default"
11429
11430 cat >confcache <<\_ACEOF
11431 # This file is a shell script that caches the results of configure
11432 # tests run on this system so they can be shared between configure
11433 # scripts and configure runs, see configure's option --config-cache.
11434 # It is not useful on other systems.  If it contains results you don't
11435 # want to keep, you may remove or edit it.
11436 #
11437 # config.status only pays attention to the cache file if you give it
11438 # the --recheck option to rerun configure.
11439 #
11440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11442 # following values.
11443
11444 _ACEOF
11445
11446 # The following way of writing the cache mishandles newlines in values,
11447 # but we know of no workaround that is simple, portable, and efficient.
11448 # So, we kill variables containing newlines.
11449 # Ultrix sh set writes to stderr and can't be redirected directly,
11450 # and sets the high bit in the cache file unless we assign to the vars.
11451 (
11452   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11453     eval ac_val=\$$ac_var
11454     case $ac_val in #(
11455     *${as_nl}*)
11456       case $ac_var in #(
11457       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11458 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11459       esac
11460       case $ac_var in #(
11461       _ | IFS | as_nl) ;; #(
11462       *) $as_unset $ac_var ;;
11463       esac ;;
11464     esac
11465   done
11466
11467   (set) 2>&1 |
11468     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11469     *${as_nl}ac_space=\ *)
11470       # `set' does not quote correctly, so add quotes (double-quote
11471       # substitution turns \\\\ into \\, and sed turns \\ into \).
11472       sed -n \
11473         "s/'/'\\\\''/g;
11474           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11475       ;; #(
11476     *)
11477       # `set' quotes correctly as required by POSIX, so do not add quotes.
11478       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11479       ;;
11480     esac |
11481     sort
11482 ) |
11483   sed '
11484      /^ac_cv_env_/b end
11485      t clear
11486      :clear
11487      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11488      t end
11489      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11490      :end' >>confcache
11491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11492   if test -w "$cache_file"; then
11493     test "x$cache_file" != "x/dev/null" &&
11494       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11495 echo "$as_me: updating cache $cache_file" >&6;}
11496     cat confcache >$cache_file
11497   else
11498     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11499 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11500   fi
11501 fi
11502 rm -f confcache
11503
11504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11505 # Let make expand exec_prefix.
11506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11507
11508 DEFS=-DHAVE_CONFIG_H
11509
11510 ac_libobjs=
11511 ac_ltlibobjs=
11512 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
11513   # 1. Remove the extension, and $U if already installed.
11514   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11515   ac_i=`echo "$ac_i" | sed "$ac_script"`
11516   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11517   #    will be set to the directory where LIBOBJS objects are built.
11518   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11519   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11520 done
11521 LIB@&t@OBJS=$ac_libobjs
11522
11523 LTLIBOBJS=$ac_ltlibobjs
11524
11525
11526
11527 : ${CONFIG_STATUS=./config.status}
11528 ac_clean_files_save=$ac_clean_files
11529 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11530 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11531 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11532 cat >$CONFIG_STATUS <<_ACEOF
11533 #! $SHELL
11534 # Generated by $as_me.
11535 # Run this file to recreate the current configuration.
11536 # Compiler output produced by configure, useful for debugging
11537 # configure, is in config.log if it exists.
11538
11539 debug=false
11540 ac_cs_recheck=false
11541 ac_cs_silent=false
11542 SHELL=\${CONFIG_SHELL-$SHELL}
11543 _ACEOF
11544
11545 cat >>$CONFIG_STATUS <<\_ACEOF
11546 ## --------------------- ##
11547 ## M4sh Initialization.  ##
11548 ## --------------------- ##
11549
11550 # Be more Bourne compatible
11551 DUALCASE=1; export DUALCASE # for MKS sh
11552 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11553   emulate sh
11554   NULLCMD=:
11555   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11556   # is contrary to our usage.  Disable this feature.
11557   alias -g '${1+"$@"}'='"$@"'
11558   setopt NO_GLOB_SUBST
11559 else
11560   case `(set -o) 2>/dev/null` in
11561   *posix*) set -o posix ;;
11562 esac
11563
11564 fi
11565
11566
11567
11568
11569 # PATH needs CR
11570 # Avoid depending upon Character Ranges.
11571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11574 as_cr_digits='0123456789'
11575 as_cr_alnum=$as_cr_Letters$as_cr_digits
11576
11577 # The user is always right.
11578 if test "${PATH_SEPARATOR+set}" != set; then
11579   echo "#! /bin/sh" >conf$$.sh
11580   echo  "exit 0"   >>conf$$.sh
11581   chmod +x conf$$.sh
11582   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11583     PATH_SEPARATOR=';'
11584   else
11585     PATH_SEPARATOR=:
11586   fi
11587   rm -f conf$$.sh
11588 fi
11589
11590 # Support unset when possible.
11591 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11592   as_unset=unset
11593 else
11594   as_unset=false
11595 fi
11596
11597
11598 # IFS
11599 # We need space, tab and new line, in precisely that order.  Quoting is
11600 # there to prevent editors from complaining about space-tab.
11601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11602 # splitting by setting IFS to empty value.)
11603 as_nl='
11604 '
11605 IFS=" ""        $as_nl"
11606
11607 # Find who we are.  Look in the path if we contain no directory separator.
11608 case $0 in
11609   *[\\/]* ) as_myself=$0 ;;
11610   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11612 do
11613   IFS=$as_save_IFS
11614   test -z "$as_dir" && as_dir=.
11615   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11616 done
11617 IFS=$as_save_IFS
11618
11619      ;;
11620 esac
11621 # We did not find ourselves, most probably we were run as `sh COMMAND'
11622 # in which case we are not to be found in the path.
11623 if test "x$as_myself" = x; then
11624   as_myself=$0
11625 fi
11626 if test ! -f "$as_myself"; then
11627   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11628   { (exit 1); exit 1; }
11629 fi
11630
11631 # Work around bugs in pre-3.0 UWIN ksh.
11632 for as_var in ENV MAIL MAILPATH
11633 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11634 done
11635 PS1='$ '
11636 PS2='> '
11637 PS4='+ '
11638
11639 # NLS nuisances.
11640 for as_var in \
11641   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11642   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11643   LC_TELEPHONE LC_TIME
11644 do
11645   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11646     eval $as_var=C; export $as_var
11647   else
11648     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11649   fi
11650 done
11651
11652 # Required to use basename.
11653 if expr a : '\(a\)' >/dev/null 2>&1 &&
11654    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11655   as_expr=expr
11656 else
11657   as_expr=false
11658 fi
11659
11660 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11661   as_basename=basename
11662 else
11663   as_basename=false
11664 fi
11665
11666
11667 # Name of the executable.
11668 as_me=`$as_basename -- "$0" ||
11669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11670          X"$0" : 'X\(//\)$' \| \
11671          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11672 echo X/"$0" |
11673     sed '/^.*\/\([^/][^/]*\)\/*$/{
11674             s//\1/
11675             q
11676           }
11677           /^X\/\(\/\/\)$/{
11678             s//\1/
11679             q
11680           }
11681           /^X\/\(\/\).*/{
11682             s//\1/
11683             q
11684           }
11685           s/.*/./; q'`
11686
11687 # CDPATH.
11688 $as_unset CDPATH
11689
11690
11691
11692   as_lineno_1=$LINENO
11693   as_lineno_2=$LINENO
11694   test "x$as_lineno_1" != "x$as_lineno_2" &&
11695   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11696
11697   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11698   # uniformly replaced by the line number.  The first 'sed' inserts a
11699   # line-number line after each line using $LINENO; the second 'sed'
11700   # does the real work.  The second script uses 'N' to pair each
11701   # line-number line with the line containing $LINENO, and appends
11702   # trailing '-' during substitution so that $LINENO is not a special
11703   # case at line end.
11704   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11705   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11706   # E. McMahon (1931-1989) for sed's syntax.  :-)
11707   sed -n '
11708     p
11709     /[$]LINENO/=
11710   ' <$as_myself |
11711     sed '
11712       s/[$]LINENO.*/&-/
11713       t lineno
11714       b
11715       :lineno
11716       N
11717       :loop
11718       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11719       t loop
11720       s/-\n.*//
11721     ' >$as_me.lineno &&
11722   chmod +x "$as_me.lineno" ||
11723     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11724    { (exit 1); exit 1; }; }
11725
11726   # Don't try to exec as it changes $[0], causing all sort of problems
11727   # (the dirname of $[0] is not the place where we might find the
11728   # original and so on.  Autoconf is especially sensitive to this).
11729   . "./$as_me.lineno"
11730   # Exit status is that of the last command.
11731   exit
11732 }
11733
11734
11735 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11736   as_dirname=dirname
11737 else
11738   as_dirname=false
11739 fi
11740
11741 ECHO_C= ECHO_N= ECHO_T=
11742 case `echo -n x` in
11743 -n*)
11744   case `echo 'x\c'` in
11745   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11746   *)   ECHO_C='\c';;
11747   esac;;
11748 *)
11749   ECHO_N='-n';;
11750 esac
11751
11752 if expr a : '\(a\)' >/dev/null 2>&1 &&
11753    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11754   as_expr=expr
11755 else
11756   as_expr=false
11757 fi
11758
11759 rm -f conf$$ conf$$.exe conf$$.file
11760 if test -d conf$$.dir; then
11761   rm -f conf$$.dir/conf$$.file
11762 else
11763   rm -f conf$$.dir
11764   mkdir conf$$.dir
11765 fi
11766 echo >conf$$.file
11767 if ln -s conf$$.file conf$$ 2>/dev/null; then
11768   as_ln_s='ln -s'
11769   # ... but there are two gotchas:
11770   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11771   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11772   # In both cases, we have to default to `cp -p'.
11773   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11774     as_ln_s='cp -p'
11775 elif ln conf$$.file conf$$ 2>/dev/null; then
11776   as_ln_s=ln
11777 else
11778   as_ln_s='cp -p'
11779 fi
11780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11781 rmdir conf$$.dir 2>/dev/null
11782
11783 if mkdir -p . 2>/dev/null; then
11784   as_mkdir_p=:
11785 else
11786   test -d ./-p && rmdir ./-p
11787   as_mkdir_p=false
11788 fi
11789
11790 if test -x / >/dev/null 2>&1; then
11791   as_test_x='test -x'
11792 else
11793   if ls -dL / >/dev/null 2>&1; then
11794     as_ls_L_option=L
11795   else
11796     as_ls_L_option=
11797   fi
11798   as_test_x='
11799     eval sh -c '\''
11800       if test -d "$1"; then
11801         test -d "$1/.";
11802       else
11803         case $1 in
11804         -*)set "./$1";;
11805         esac;
11806         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11807         ???[sx]*):;;*)false;;esac;fi
11808     '\'' sh
11809   '
11810 fi
11811 as_executable_p=$as_test_x
11812
11813 # Sed expression to map a string onto a valid CPP name.
11814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11815
11816 # Sed expression to map a string onto a valid variable name.
11817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11818
11819
11820 exec 6>&1
11821
11822 # Save the log message, to keep $[0] and so on meaningful, and to
11823 # report actual input values of CONFIG_FILES etc. instead of their
11824 # values after options handling.
11825 ac_log="
11826 This file was extended by $as_me, which was
11827 generated by GNU Autoconf 2.61.  Invocation command line was
11828
11829   CONFIG_FILES    = $CONFIG_FILES
11830   CONFIG_HEADERS  = $CONFIG_HEADERS
11831   CONFIG_LINKS    = $CONFIG_LINKS
11832   CONFIG_COMMANDS = $CONFIG_COMMANDS
11833   $ $0 $@
11834
11835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11836 "
11837
11838 _ACEOF
11839
11840 cat >>$CONFIG_STATUS <<_ACEOF
11841 # Files that config.status was made for.
11842 config_files="$ac_config_files"
11843 config_headers="$ac_config_headers"
11844 config_commands="$ac_config_commands"
11845
11846 _ACEOF
11847
11848 cat >>$CONFIG_STATUS <<\_ACEOF
11849 ac_cs_usage="\
11850 \`$as_me' instantiates files from templates according to the
11851 current configuration.
11852
11853 Usage: $0 [OPTIONS] [FILE]...
11854
11855   -h, --help       print this help, then exit
11856   -V, --version    print version number and configuration settings, then exit
11857   -q, --quiet      do not print progress messages
11858   -d, --debug      don't remove temporary files
11859       --recheck    update $as_me by reconfiguring in the same conditions
11860   --file=FILE[:TEMPLATE]
11861                    instantiate the configuration file FILE
11862   --header=FILE[:TEMPLATE]
11863                    instantiate the configuration header FILE
11864
11865 Configuration files:
11866 $config_files
11867
11868 Configuration headers:
11869 $config_headers
11870
11871 Configuration commands:
11872 $config_commands
11873
11874 Report bugs to <bug-autoconf@gnu.org>."
11875
11876 _ACEOF
11877 cat >>$CONFIG_STATUS <<_ACEOF
11878 ac_cs_version="\\
11879 config.status
11880 configured by $0, generated by GNU Autoconf 2.61,
11881   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11882
11883 Copyright (C) 2006 Free Software Foundation, Inc.
11884 This config.status script is free software; the Free Software Foundation
11885 gives unlimited permission to copy, distribute and modify it."
11886
11887 ac_pwd='$ac_pwd'
11888 srcdir='$srcdir'
11889 INSTALL='$INSTALL'
11890 _ACEOF
11891
11892 cat >>$CONFIG_STATUS <<\_ACEOF
11893 # If no file are specified by the user, then we need to provide default
11894 # value.  By we need to know if files were specified by the user.
11895 ac_need_defaults=:
11896 while test $# != 0
11897 do
11898   case $1 in
11899   --*=*)
11900     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11901     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11902     ac_shift=:
11903     ;;
11904   *)
11905     ac_option=$1
11906     ac_optarg=$2
11907     ac_shift=shift
11908     ;;
11909   esac
11910
11911   case $ac_option in
11912   # Handling of the options.
11913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11914     ac_cs_recheck=: ;;
11915   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11916     echo "$ac_cs_version"; exit ;;
11917   --debug | --debu | --deb | --de | --d | -d )
11918     debug=: ;;
11919   --file | --fil | --fi | --f )
11920     $ac_shift
11921     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11922     ac_need_defaults=false;;
11923   --header | --heade | --head | --hea )
11924     $ac_shift
11925     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11926     ac_need_defaults=false;;
11927   --he | --h)
11928     # Conflict between --help and --header
11929     { echo "$as_me: error: ambiguous option: $1
11930 Try \`$0 --help' for more information." >&2
11931    { (exit 1); exit 1; }; };;
11932   --help | --hel | -h )
11933     echo "$ac_cs_usage"; exit ;;
11934   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11935   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11936     ac_cs_silent=: ;;
11937
11938   # This is an error.
11939   -*) { echo "$as_me: error: unrecognized option: $1
11940 Try \`$0 --help' for more information." >&2
11941    { (exit 1); exit 1; }; } ;;
11942
11943   *) ac_config_targets="$ac_config_targets $1"
11944      ac_need_defaults=false ;;
11945
11946   esac
11947   shift
11948 done
11949
11950 ac_configure_extra_args=
11951
11952 if $ac_cs_silent; then
11953   exec 6>/dev/null
11954   ac_configure_extra_args="$ac_configure_extra_args --silent"
11955 fi
11956
11957 _ACEOF
11958 cat >>$CONFIG_STATUS <<_ACEOF
11959 if \$ac_cs_recheck; then
11960   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11961   CONFIG_SHELL=$SHELL
11962   export CONFIG_SHELL
11963   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11964 fi
11965
11966 _ACEOF
11967 cat >>$CONFIG_STATUS <<\_ACEOF
11968 exec 5>>config.log
11969 {
11970   echo
11971   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
11972 @%:@@%:@ Running $as_me. @%:@@%:@
11973 _ASBOX
11974   echo "$ac_log"
11975 } >&5
11976
11977 _ACEOF
11978 cat >>$CONFIG_STATUS <<_ACEOF
11979 _ACEOF
11980
11981 cat >>$CONFIG_STATUS <<\_ACEOF
11982
11983 # Handling of arguments.
11984 for ac_config_target in $ac_config_targets
11985 do
11986   case $ac_config_target in
11987     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11988     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11989     "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11990     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11991     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11992
11993   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11995    { (exit 1); exit 1; }; };;
11996   esac
11997 done
11998
11999
12000 # If the user did not use the arguments to specify the items to instantiate,
12001 # then the envvar interface is used.  Set only those that are not.
12002 # We use the long form for the default assignment because of an extremely
12003 # bizarre bug on SunOS 4.1.3.
12004 if $ac_need_defaults; then
12005   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12006   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12007   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12008 fi
12009
12010 # Have a temporary directory for convenience.  Make it in the build tree
12011 # simply because there is no reason against having it here, and in addition,
12012 # creating and moving files from /tmp can sometimes cause problems.
12013 # Hook for its removal unless debugging.
12014 # Note that there is a small window in which the directory will not be cleaned:
12015 # after its creation but before its name has been assigned to `$tmp'.
12016 $debug ||
12017 {
12018   tmp=
12019   trap 'exit_status=$?
12020   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12021 ' 0
12022   trap '{ (exit 1); exit 1; }' 1 2 13 15
12023 }
12024 # Create a (secure) tmp directory for tmp files.
12025
12026 {
12027   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12028   test -n "$tmp" && test -d "$tmp"
12029 }  ||
12030 {
12031   tmp=./conf$$-$RANDOM
12032   (umask 077 && mkdir "$tmp")
12033 } ||
12034 {
12035    echo "$me: cannot create a temporary directory in ." >&2
12036    { (exit 1); exit 1; }
12037 }
12038
12039 #
12040 # Set up the sed scripts for CONFIG_FILES section.
12041 #
12042
12043 # No need to generate the scripts if there are no CONFIG_FILES.
12044 # This happens for instance when ./config.status config.h
12045 if test -n "$CONFIG_FILES"; then
12046
12047 _ACEOF
12048
12049
12050
12051 ac_delim='%!_!# '
12052 for ac_last_try in false false false false false :; do
12053   cat >conf$$subs.sed <<_ACEOF
12054 SHELL!$SHELL$ac_delim
12055 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12056 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12057 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12058 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12059 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12060 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12061 exec_prefix!$exec_prefix$ac_delim
12062 prefix!$prefix$ac_delim
12063 program_transform_name!$program_transform_name$ac_delim
12064 bindir!$bindir$ac_delim
12065 sbindir!$sbindir$ac_delim
12066 libexecdir!$libexecdir$ac_delim
12067 datarootdir!$datarootdir$ac_delim
12068 datadir!$datadir$ac_delim
12069 sysconfdir!$sysconfdir$ac_delim
12070 sharedstatedir!$sharedstatedir$ac_delim
12071 localstatedir!$localstatedir$ac_delim
12072 includedir!$includedir$ac_delim
12073 oldincludedir!$oldincludedir$ac_delim
12074 docdir!$docdir$ac_delim
12075 infodir!$infodir$ac_delim
12076 htmldir!$htmldir$ac_delim
12077 dvidir!$dvidir$ac_delim
12078 pdfdir!$pdfdir$ac_delim
12079 psdir!$psdir$ac_delim
12080 libdir!$libdir$ac_delim
12081 localedir!$localedir$ac_delim
12082 mandir!$mandir$ac_delim
12083 DEFS!$DEFS$ac_delim
12084 ECHO_C!$ECHO_C$ac_delim
12085 ECHO_N!$ECHO_N$ac_delim
12086 ECHO_T!$ECHO_T$ac_delim
12087 LIBS!$LIBS$ac_delim
12088 build_alias!$build_alias$ac_delim
12089 host_alias!$host_alias$ac_delim
12090 target_alias!$target_alias$ac_delim
12091 build!$build$ac_delim
12092 build_cpu!$build_cpu$ac_delim
12093 build_vendor!$build_vendor$ac_delim
12094 build_os!$build_os$ac_delim
12095 host!$host$ac_delim
12096 host_cpu!$host_cpu$ac_delim
12097 host_vendor!$host_vendor$ac_delim
12098 host_os!$host_os$ac_delim
12099 CC!$CC$ac_delim
12100 CFLAGS!$CFLAGS$ac_delim
12101 LDFLAGS!$LDFLAGS$ac_delim
12102 CPPFLAGS!$CPPFLAGS$ac_delim
12103 ac_ct_CC!$ac_ct_CC$ac_delim
12104 EXEEXT!$EXEEXT$ac_delim
12105 OBJEXT!$OBJEXT$ac_delim
12106 CPP!$CPP$ac_delim
12107 GREP!$GREP$ac_delim
12108 EGREP!$EGREP$ac_delim
12109 AWK!$AWK$ac_delim
12110 SET_MAKE!$SET_MAKE$ac_delim
12111 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12112 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12113 INSTALL_DATA!$INSTALL_DATA$ac_delim
12114 LN_S!$LN_S$ac_delim
12115 RMPROG!$RMPROG$ac_delim
12116 SHPROG!$SHPROG$ac_delim
12117 LEX!$LEX$ac_delim
12118 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
12119 LEXLIB!$LEXLIB$ac_delim
12120 YACC!$YACC$ac_delim
12121 YFLAGS!$YFLAGS$ac_delim
12122 ENGINE_C!$ENGINE_C$ac_delim
12123 INSTALL_RULE!$INSTALL_RULE$ac_delim
12124 SYMLINK!$SYMLINK$ac_delim
12125 IRCDMODE!$IRCDMODE$ac_delim
12126 IRCDOWN!$IRCDOWN$ac_delim
12127 IRCDGRP!$IRCDGRP$ac_delim
12128 DPATH!$DPATH$ac_delim
12129 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
12130 LTLIBOBJS!$LTLIBOBJS$ac_delim
12131 _ACEOF
12132
12133   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
12134     break
12135   elif $ac_last_try; then
12136     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12137 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12138    { (exit 1); exit 1; }; }
12139   else
12140     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12141   fi
12142 done
12143
12144 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12145 if test -n "$ac_eof"; then
12146   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12147   ac_eof=`expr $ac_eof + 1`
12148 fi
12149
12150 cat >>$CONFIG_STATUS <<_ACEOF
12151 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12153 _ACEOF
12154 sed '
12155 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12156 s/^/s,@/; s/!/@,|#_!!_#|/
12157 :n
12158 t n
12159 s/'"$ac_delim"'$/,g/; t
12160 s/$/\\/; p
12161 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12162 ' >>$CONFIG_STATUS <conf$$subs.sed
12163 rm -f conf$$subs.sed
12164 cat >>$CONFIG_STATUS <<_ACEOF
12165 :end
12166 s/|#_!!_#|//g
12167 CEOF$ac_eof
12168 _ACEOF
12169
12170
12171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12173 # trailing colons and then remove the whole line if VPATH becomes empty
12174 # (actually we leave an empty line to preserve line numbers).
12175 if test "x$srcdir" = x.; then
12176   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12177 s/:*\$(srcdir):*/:/
12178 s/:*\${srcdir}:*/:/
12179 s/:*@srcdir@:*/:/
12180 s/^\([^=]*=[     ]*\):*/\1/
12181 s/:*$//
12182 s/^[^=]*=[       ]*$//
12183 }'
12184 fi
12185
12186 cat >>$CONFIG_STATUS <<\_ACEOF
12187 fi # test -n "$CONFIG_FILES"
12188
12189
12190 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12191 do
12192   case $ac_tag in
12193   :[FHLC]) ac_mode=$ac_tag; continue;;
12194   esac
12195   case $ac_mode$ac_tag in
12196   :[FHL]*:*);;
12197   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12198 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12199    { (exit 1); exit 1; }; };;
12200   :[FH]-) ac_tag=-:-;;
12201   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12202   esac
12203   ac_save_IFS=$IFS
12204   IFS=:
12205   set x $ac_tag
12206   IFS=$ac_save_IFS
12207   shift
12208   ac_file=$1
12209   shift
12210
12211   case $ac_mode in
12212   :L) ac_source=$1;;
12213   :[FH])
12214     ac_file_inputs=
12215     for ac_f
12216     do
12217       case $ac_f in
12218       -) ac_f="$tmp/stdin";;
12219       *) # Look for the file first in the build tree, then in the source tree
12220          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12221          # because $ac_f cannot contain `:'.
12222          test -f "$ac_f" ||
12223            case $ac_f in
12224            [\\/$]*) false;;
12225            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12226            esac ||
12227            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12228 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12229    { (exit 1); exit 1; }; };;
12230       esac
12231       ac_file_inputs="$ac_file_inputs $ac_f"
12232     done
12233
12234     # Let's still pretend it is `configure' which instantiates (i.e., don't
12235     # use $as_me), people would be surprised to read:
12236     #    /* config.h.  Generated by config.status.  */
12237     configure_input="Generated from "`IFS=:
12238           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12239     if test x"$ac_file" != x-; then
12240       configure_input="$ac_file.  $configure_input"
12241       { echo "$as_me:$LINENO: creating $ac_file" >&5
12242 echo "$as_me: creating $ac_file" >&6;}
12243     fi
12244
12245     case $ac_tag in
12246     *:-:* | *:-) cat >"$tmp/stdin";;
12247     esac
12248     ;;
12249   esac
12250
12251   ac_dir=`$as_dirname -- "$ac_file" ||
12252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12253          X"$ac_file" : 'X\(//\)[^/]' \| \
12254          X"$ac_file" : 'X\(//\)$' \| \
12255          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12256 echo X"$ac_file" |
12257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12258             s//\1/
12259             q
12260           }
12261           /^X\(\/\/\)[^/].*/{
12262             s//\1/
12263             q
12264           }
12265           /^X\(\/\/\)$/{
12266             s//\1/
12267             q
12268           }
12269           /^X\(\/\).*/{
12270             s//\1/
12271             q
12272           }
12273           s/.*/./; q'`
12274   { as_dir="$ac_dir"
12275   case $as_dir in #(
12276   -*) as_dir=./$as_dir;;
12277   esac
12278   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12279     as_dirs=
12280     while :; do
12281       case $as_dir in #(
12282       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12283       *) as_qdir=$as_dir;;
12284       esac
12285       as_dirs="'$as_qdir' $as_dirs"
12286       as_dir=`$as_dirname -- "$as_dir" ||
12287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12288          X"$as_dir" : 'X\(//\)[^/]' \| \
12289          X"$as_dir" : 'X\(//\)$' \| \
12290          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12291 echo X"$as_dir" |
12292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12293             s//\1/
12294             q
12295           }
12296           /^X\(\/\/\)[^/].*/{
12297             s//\1/
12298             q
12299           }
12300           /^X\(\/\/\)$/{
12301             s//\1/
12302             q
12303           }
12304           /^X\(\/\).*/{
12305             s//\1/
12306             q
12307           }
12308           s/.*/./; q'`
12309       test -d "$as_dir" && break
12310     done
12311     test -z "$as_dirs" || eval "mkdir $as_dirs"
12312   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12314    { (exit 1); exit 1; }; }; }
12315   ac_builddir=.
12316
12317 case "$ac_dir" in
12318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12319 *)
12320   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12321   # A ".." for each directory in $ac_dir_suffix.
12322   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12323   case $ac_top_builddir_sub in
12324   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12325   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12326   esac ;;
12327 esac
12328 ac_abs_top_builddir=$ac_pwd
12329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12330 # for backward compatibility:
12331 ac_top_builddir=$ac_top_build_prefix
12332
12333 case $srcdir in
12334   .)  # We are building in place.
12335     ac_srcdir=.
12336     ac_top_srcdir=$ac_top_builddir_sub
12337     ac_abs_top_srcdir=$ac_pwd ;;
12338   [\\/]* | ?:[\\/]* )  # Absolute name.
12339     ac_srcdir=$srcdir$ac_dir_suffix;
12340     ac_top_srcdir=$srcdir
12341     ac_abs_top_srcdir=$srcdir ;;
12342   *) # Relative name.
12343     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12344     ac_top_srcdir=$ac_top_build_prefix$srcdir
12345     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12346 esac
12347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12348
12349
12350   case $ac_mode in
12351   :F)
12352   #
12353   # CONFIG_FILE
12354   #
12355
12356   case $INSTALL in
12357   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12358   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12359   esac
12360 _ACEOF
12361
12362 cat >>$CONFIG_STATUS <<\_ACEOF
12363 # If the template does not know about datarootdir, expand it.
12364 # FIXME: This hack should be removed a few years after 2.60.
12365 ac_datarootdir_hack=; ac_datarootdir_seen=
12366
12367 case `sed -n '/datarootdir/ {
12368   p
12369   q
12370 }
12371 /@datadir@/p
12372 /@docdir@/p
12373 /@infodir@/p
12374 /@localedir@/p
12375 /@mandir@/p
12376 ' $ac_file_inputs` in
12377 *datarootdir*) ac_datarootdir_seen=yes;;
12378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12379   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12381 _ACEOF
12382 cat >>$CONFIG_STATUS <<_ACEOF
12383   ac_datarootdir_hack='
12384   s&@datadir@&$datadir&g
12385   s&@docdir@&$docdir&g
12386   s&@infodir@&$infodir&g
12387   s&@localedir@&$localedir&g
12388   s&@mandir@&$mandir&g
12389     s&\\\${datarootdir}&$datarootdir&g' ;;
12390 esac
12391 _ACEOF
12392
12393 # Neutralize VPATH when `$srcdir' = `.'.
12394 # Shell code in configure.ac might set extrasub.
12395 # FIXME: do we really want to maintain this feature?
12396 cat >>$CONFIG_STATUS <<_ACEOF
12397   sed "$ac_vpsub
12398 $extrasub
12399 _ACEOF
12400 cat >>$CONFIG_STATUS <<\_ACEOF
12401 :t
12402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12403 s&@configure_input@&$configure_input&;t t
12404 s&@top_builddir@&$ac_top_builddir_sub&;t t
12405 s&@srcdir@&$ac_srcdir&;t t
12406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12407 s&@top_srcdir@&$ac_top_srcdir&;t t
12408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12409 s&@builddir@&$ac_builddir&;t t
12410 s&@abs_builddir@&$ac_abs_builddir&;t t
12411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12412 s&@INSTALL@&$ac_INSTALL&;t t
12413 $ac_datarootdir_hack
12414 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12415
12416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12417   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12418   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12419   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12420 which seems to be undefined.  Please make sure it is defined." >&5
12421 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12422 which seems to be undefined.  Please make sure it is defined." >&2;}
12423
12424   rm -f "$tmp/stdin"
12425   case $ac_file in
12426   -) cat "$tmp/out"; rm -f "$tmp/out";;
12427   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12428   esac
12429  ;;
12430   :H)
12431   #
12432   # CONFIG_HEADER
12433   #
12434 _ACEOF
12435
12436 # Transform confdefs.h into a sed script `conftest.defines', that
12437 # substitutes the proper values into config.h.in to produce config.h.
12438 rm -f conftest.defines conftest.tail
12439 # First, append a space to every undef/define line, to ease matching.
12440 echo 's/$/ /' >conftest.defines
12441 # Then, protect against being on the right side of a sed subst, or in
12442 # an unquoted here document, in config.status.  If some macros were
12443 # called several times there might be several #defines for the same
12444 # symbol, which is useless.  But do not sort them, since the last
12445 # AC_DEFINE must be honored.
12446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12447 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12448 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12449 # PARAMS is the parameter list in the macro definition--in most cases, it's
12450 # just an empty string.
12451 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12452 ac_dB='\\)[      (].*,\\1define\\2'
12453 ac_dC=' '
12454 ac_dD=' ,'
12455
12456 uniq confdefs.h |
12457   sed -n '
12458         t rset
12459         :rset
12460         s/^[     ]*#[    ]*define[       ][      ]*//
12461         t ok
12462         d
12463         :ok
12464         s/[\\&,]/\\&/g
12465         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12466         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12467   ' >>conftest.defines
12468
12469 # Remove the space that was appended to ease matching.
12470 # Then replace #undef with comments.  This is necessary, for
12471 # example, in the case of _POSIX_SOURCE, which is predefined and required
12472 # on some systems where configure will not decide to define it.
12473 # (The regexp can be short, since the line contains either #define or #undef.)
12474 echo 's/ $//
12475 s,^[     #]*u.*,/* & */,' >>conftest.defines
12476
12477 # Break up conftest.defines:
12478 ac_max_sed_lines=50
12479
12480 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12481 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12482 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12483 # et cetera.
12484 ac_in='$ac_file_inputs'
12485 ac_out='"$tmp/out1"'
12486 ac_nxt='"$tmp/out2"'
12487
12488 while :
12489 do
12490   # Write a here document:
12491     cat >>$CONFIG_STATUS <<_ACEOF
12492     # First, check the format of the line:
12493     cat >"\$tmp/defines.sed" <<\\CEOF
12494 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12495 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12496 b
12497 :def
12498 _ACEOF
12499   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12500   echo 'CEOF
12501     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12502   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12503   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12504   grep . conftest.tail >/dev/null || break
12505   rm -f conftest.defines
12506   mv conftest.tail conftest.defines
12507 done
12508 rm -f conftest.defines conftest.tail
12509
12510 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12511 cat >>$CONFIG_STATUS <<\_ACEOF
12512   if test x"$ac_file" != x-; then
12513     echo "/* $configure_input  */" >"$tmp/config.h"
12514     cat "$ac_result" >>"$tmp/config.h"
12515     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12516       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12517 echo "$as_me: $ac_file is unchanged" >&6;}
12518     else
12519       rm -f $ac_file
12520       mv "$tmp/config.h" $ac_file
12521     fi
12522   else
12523     echo "/* $configure_input  */"
12524     cat "$ac_result"
12525   fi
12526   rm -f "$tmp/out12"
12527  ;;
12528   
12529   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12530 echo "$as_me: executing $ac_file commands" >&6;}
12531  ;;
12532   esac
12533
12534
12535   case $ac_file$ac_mode in
12536     "default":C) echo timestamp > stamp-h ;;
12537
12538   esac
12539 done # for ac_tag
12540
12541
12542 { (exit 0); exit 0; }
12543 _ACEOF
12544 chmod +x $CONFIG_STATUS
12545 ac_clean_files=$ac_clean_files_save
12546
12547
12548 # configure is writing to config.log, and then calls config.status.
12549 # config.status does its own redirection, appending to config.log.
12550 # Unfortunately, on DOS this fails, as config.log is still kept open
12551 # by configure, so config.status won't be able to write to it; its
12552 # output is simply discarded.  So we exec the FD to /dev/null,
12553 # effectively closing config.log, so it can be properly (re)opened and
12554 # appended to by config.status.  When coming back to configure, we
12555 # need to make the FD available again.
12556 if test "$no_create" != yes; then
12557   ac_cs_success=:
12558   ac_config_status_args=
12559   test "$silent" = yes &&
12560     ac_config_status_args="$ac_config_status_args --quiet"
12561   exec 5>/dev/null
12562   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12563   exec 5>>config.log
12564   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12565   # would make configure fail if this is the last instruction.
12566   $ac_cs_success || { (exit 1); exit 1; }
12567 fi
12568
12569
12570 { echo "$as_me:$LINENO: result: 
12571 ircu is now hopefully configured for your system.
12572
12573   Host system:         $host_os
12574   Prefix:              $prefix
12575   Asserts:             $unet_cv_enable_asserts
12576   Warnings:            $unet_cv_enable_warnings
12577   Debug:               $unet_cv_enable_debug
12578   Profile:             $unet_cv_enable_profile
12579   Owner/mode:          $unet_cv_with_owner.$unet_cv_with_group ($unet_cv_with_mode)
12580   Chroot:              $unet_cv_with_chroot
12581   OpenSSL:             $unet_cv_enable_openssl
12582   GnuTLS:              $unet_cv_enable_gnutls
12583   Compatibility mode:  $unet_cv_enable_compat
12584   Unstable features:   $unet_cv_enable_unstable
12585
12586   Domain:              $unet_cv_with_domain
12587   DPath:               $unet_cv_with_dpath
12588   CPath:               $unet_cv_with_cpath
12589   LPath:               $unet_cv_with_lpath
12590   Maximum connections: $unet_cv_with_maxcon
12591
12592   poll() engine:       $unet_cv_enable_poll
12593   kqueue() engine:     $unet_cv_enable_kqueue
12594   /dev/poll engine:    $unet_cv_enable_devpoll
12595   epoll() engine:      $unet_cv_enable_epoll
12596 " >&5
12597 echo "${ECHO_T}
12598 ircu is now hopefully configured for your system.
12599
12600   Host system:         $host_os
12601   Prefix:              $prefix
12602   Asserts:             $unet_cv_enable_asserts
12603   Warnings:            $unet_cv_enable_warnings
12604   Debug:               $unet_cv_enable_debug
12605   Profile:             $unet_cv_enable_profile
12606   Owner/mode:          $unet_cv_with_owner.$unet_cv_with_group ($unet_cv_with_mode)
12607   Chroot:              $unet_cv_with_chroot
12608   OpenSSL:             $unet_cv_enable_openssl
12609   GnuTLS:              $unet_cv_enable_gnutls
12610   Compatibility mode:  $unet_cv_enable_compat
12611   Unstable features:   $unet_cv_enable_unstable
12612
12613   Domain:              $unet_cv_with_domain
12614   DPath:               $unet_cv_with_dpath
12615   CPath:               $unet_cv_with_cpath
12616   LPath:               $unet_cv_with_lpath
12617   Maximum connections: $unet_cv_with_maxcon
12618
12619   poll() engine:       $unet_cv_enable_poll
12620   kqueue() engine:     $unet_cv_enable_kqueue
12621   /dev/poll engine:    $unet_cv_enable_devpoll
12622   epoll() engine:      $unet_cv_enable_epoll
12623 " >&6; }