b594d028224c987b11a536153ee6510e4ba38643
[ircu2.10.12-pk.git] / configure
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 LIBOBJS=
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 LIBOBJS
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
1290 Optional Packages:
1291   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1292   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1293   --with-leak-detect          Turn on the leak detector(requires patched boehm)
1294   --without-ipv6          disable IPv6 support (default is autodetect)
1295   --with-symlink=name     Name to give the symlink; if name is "no," no
1296                           symlink will be created.
1297   --with-mode=mode        Permissions (in octal) to give the binary
1298   --with-owner=owner      Specify owner of the installed binary
1299   --with-group=group      Specify group owner of the installed binary
1300   --with-domain=domain    Domain name to use in local statistics gathering
1301   --with-chroot=dir       Specify that the server will be operated under
1302                           a different root directory given by dir.  See
1303                           doc/readme.chroot for more information.
1304   --with-dpath=dir        Directory for all server data files
1305   --with-cpath=file       Set server configuration file
1306   --with-lpath=file       Set the debugging log file
1307   --with-maxcon=maxcon    Maximum number of connections server will accept
1308
1309 Some influential environment variables:
1310   CC          C compiler command
1311   CFLAGS      C compiler flags
1312   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1313               nonstandard directory <lib dir>
1314   LIBS        libraries to pass to the linker, e.g. -l<library>
1315   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316               you have headers in a nonstandard directory <include dir>
1317   CPP         C preprocessor
1318   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1319               the first program found out of: `bison -y', `byacc', `yacc'.
1320   YFLAGS      The list of arguments that will be passed by default to $YACC.
1321               This script will default YFLAGS to the empty string to avoid a
1322               default value of `-d' given by some make applications.
1323
1324 Use these variables to override the choices made by `configure' or to help
1325 it to find libraries and programs with nonstandard names/locations.
1326
1327 _ACEOF
1328 ac_status=$?
1329 fi
1330
1331 if test "$ac_init_help" = "recursive"; then
1332   # If there are subdirs, report their specific --help.
1333   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1334     test -d "$ac_dir" || continue
1335     ac_builddir=.
1336
1337 case "$ac_dir" in
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339 *)
1340   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1341   # A ".." for each directory in $ac_dir_suffix.
1342   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1343   case $ac_top_builddir_sub in
1344   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346   esac ;;
1347 esac
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1352
1353 case $srcdir in
1354   .)  # We are building in place.
1355     ac_srcdir=.
1356     ac_top_srcdir=$ac_top_builddir_sub
1357     ac_abs_top_srcdir=$ac_pwd ;;
1358   [\\/]* | ?:[\\/]* )  # Absolute name.
1359     ac_srcdir=$srcdir$ac_dir_suffix;
1360     ac_top_srcdir=$srcdir
1361     ac_abs_top_srcdir=$srcdir ;;
1362   *) # Relative name.
1363     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364     ac_top_srcdir=$ac_top_build_prefix$srcdir
1365     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366 esac
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1368
1369     cd "$ac_dir" || { ac_status=$?; continue; }
1370     # Check for guested configure.
1371     if test -f "$ac_srcdir/configure.gnu"; then
1372       echo &&
1373       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374     elif test -f "$ac_srcdir/configure"; then
1375       echo &&
1376       $SHELL "$ac_srcdir/configure" --help=recursive
1377     else
1378       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379     fi || ac_status=$?
1380     cd "$ac_pwd" || { ac_status=$?; break; }
1381   done
1382 fi
1383
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1386   cat <<\_ACEOF
1387 configure
1388 generated by GNU Autoconf 2.61
1389
1390 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1391 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1394 _ACEOF
1395   exit
1396 fi
1397 cat >config.log <<_ACEOF
1398 This file contains any messages produced by compilers while
1399 running configure, to aid debugging if configure makes a mistake.
1400
1401 It was created by $as_me, which was
1402 generated by GNU Autoconf 2.61.  Invocation command line was
1403
1404   $ $0 $@
1405
1406 _ACEOF
1407 exec 5>>config.log
1408 {
1409 cat <<_ASUNAME
1410 ## --------- ##
1411 ## Platform. ##
1412 ## --------- ##
1413
1414 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1415 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1416 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1417 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1418 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1419
1420 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1421 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1422
1423 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1424 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1425 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1426 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1427 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1428 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1429 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1430
1431 _ASUNAME
1432
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1435 do
1436   IFS=$as_save_IFS
1437   test -z "$as_dir" && as_dir=.
1438   echo "PATH: $as_dir"
1439 done
1440 IFS=$as_save_IFS
1441
1442 } >&5
1443
1444 cat >&5 <<_ACEOF
1445
1446
1447 ## ----------- ##
1448 ## Core tests. ##
1449 ## ----------- ##
1450
1451 _ACEOF
1452
1453
1454 # Keep a trace of the command line.
1455 # Strip out --no-create and --no-recursion so they do not pile up.
1456 # Strip out --silent because we don't want to record it for future runs.
1457 # Also quote any args containing shell meta-characters.
1458 # Make two passes to allow for proper duplicate-argument suppression.
1459 ac_configure_args=
1460 ac_configure_args0=
1461 ac_configure_args1=
1462 ac_must_keep_next=false
1463 for ac_pass in 1 2
1464 do
1465   for ac_arg
1466   do
1467     case $ac_arg in
1468     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1469     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1470     | -silent | --silent | --silen | --sile | --sil)
1471       continue ;;
1472     *\'*)
1473       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1474     esac
1475     case $ac_pass in
1476     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1477     2)
1478       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1479       if test $ac_must_keep_next = true; then
1480         ac_must_keep_next=false # Got value, back to normal.
1481       else
1482         case $ac_arg in
1483           *=* | --config-cache | -C | -disable-* | --disable-* \
1484           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1485           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1486           | -with-* | --with-* | -without-* | --without-* | --x)
1487             case "$ac_configure_args0 " in
1488               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1489             esac
1490             ;;
1491           -* ) ac_must_keep_next=true ;;
1492         esac
1493       fi
1494       ac_configure_args="$ac_configure_args '$ac_arg'"
1495       ;;
1496     esac
1497   done
1498 done
1499 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1500 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1501
1502 # When interrupted or exit'd, cleanup temporary files, and complete
1503 # config.log.  We remove comments because anyway the quotes in there
1504 # would cause problems or look ugly.
1505 # WARNING: Use '\'' to represent an apostrophe within the trap.
1506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1507 trap 'exit_status=$?
1508   # Save into config.log some information that might help in debugging.
1509   {
1510     echo
1511
1512     cat <<\_ASBOX
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1516 _ASBOX
1517     echo
1518     # The following way of writing the cache mishandles newlines in values,
1519 (
1520   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1521     eval ac_val=\$$ac_var
1522     case $ac_val in #(
1523     *${as_nl}*)
1524       case $ac_var in #(
1525       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1527       esac
1528       case $ac_var in #(
1529       _ | IFS | as_nl) ;; #(
1530       *) $as_unset $ac_var ;;
1531       esac ;;
1532     esac
1533   done
1534   (set) 2>&1 |
1535     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1536     *${as_nl}ac_space=\ *)
1537       sed -n \
1538         "s/'\''/'\''\\\\'\'''\''/g;
1539           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1540       ;; #(
1541     *)
1542       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1543       ;;
1544     esac |
1545     sort
1546 )
1547     echo
1548
1549     cat <<\_ASBOX
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1553 _ASBOX
1554     echo
1555     for ac_var in $ac_subst_vars
1556     do
1557       eval ac_val=\$$ac_var
1558       case $ac_val in
1559       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1560       esac
1561       echo "$ac_var='\''$ac_val'\''"
1562     done | sort
1563     echo
1564
1565     if test -n "$ac_subst_files"; then
1566       cat <<\_ASBOX
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1570 _ASBOX
1571       echo
1572       for ac_var in $ac_subst_files
1573       do
1574         eval ac_val=\$$ac_var
1575         case $ac_val in
1576         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577         esac
1578         echo "$ac_var='\''$ac_val'\''"
1579       done | sort
1580       echo
1581     fi
1582
1583     if test -s confdefs.h; then
1584       cat <<\_ASBOX
1585 ## ----------- ##
1586 ## confdefs.h. ##
1587 ## ----------- ##
1588 _ASBOX
1589       echo
1590       cat confdefs.h
1591       echo
1592     fi
1593     test "$ac_signal" != 0 &&
1594       echo "$as_me: caught signal $ac_signal"
1595     echo "$as_me: exit $exit_status"
1596   } >&5
1597   rm -f core *.core core.conftest.* &&
1598     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1599     exit $exit_status
1600 ' 0
1601 for ac_signal in 1 2 13 15; do
1602   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1603 done
1604 ac_signal=0
1605
1606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1607 rm -f -r conftest* confdefs.h
1608
1609 # Predefined preprocessor variables.
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_NAME "$PACKAGE_NAME"
1613 _ACEOF
1614
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618 _ACEOF
1619
1620
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1623 _ACEOF
1624
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1628 _ACEOF
1629
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1633 _ACEOF
1634
1635
1636 # Let the site file select an alternate cache file if it wants to.
1637 # Prefer explicitly selected file to automatically selected ones.
1638 if test -n "$CONFIG_SITE"; then
1639   set x "$CONFIG_SITE"
1640 elif test "x$prefix" != xNONE; then
1641   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1642 else
1643   set x "$ac_default_prefix/share/config.site" \
1644         "$ac_default_prefix/etc/config.site"
1645 fi
1646 shift
1647 for ac_site_file
1648 do
1649   if test -r "$ac_site_file"; then
1650     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651 echo "$as_me: loading site script $ac_site_file" >&6;}
1652     sed 's/^/| /' "$ac_site_file" >&5
1653     . "$ac_site_file"
1654   fi
1655 done
1656
1657 if test -r "$cache_file"; then
1658   # Some versions of bash will fail to source /dev/null (special
1659   # files actually), so we avoid doing that.
1660   if test -f "$cache_file"; then
1661     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662 echo "$as_me: loading cache $cache_file" >&6;}
1663     case $cache_file in
1664       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1665       *)                      . "./$cache_file";;
1666     esac
1667   fi
1668 else
1669   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1671   >$cache_file
1672 fi
1673
1674 # Check that the precious variables saved in the cache have kept the same
1675 # value.
1676 ac_cache_corrupted=false
1677 for ac_var in $ac_precious_vars; do
1678   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1679   eval ac_new_set=\$ac_env_${ac_var}_set
1680   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1681   eval ac_new_val=\$ac_env_${ac_var}_value
1682   case $ac_old_set,$ac_new_set in
1683     set,)
1684       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1686       ac_cache_corrupted=: ;;
1687     ,set)
1688       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1689 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1690       ac_cache_corrupted=: ;;
1691     ,);;
1692     *)
1693       if test "x$ac_old_val" != "x$ac_new_val"; then
1694         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1695 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1696         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1697 echo "$as_me:   former value:  $ac_old_val" >&2;}
1698         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1699 echo "$as_me:   current value: $ac_new_val" >&2;}
1700         ac_cache_corrupted=:
1701       fi;;
1702   esac
1703   # Pass precious variables to config.status.
1704   if test "$ac_new_set" = set; then
1705     case $ac_new_val in
1706     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1707     *) ac_arg=$ac_var=$ac_new_val ;;
1708     esac
1709     case " $ac_configure_args " in
1710       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1711       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1712     esac
1713   fi
1714 done
1715 if $ac_cache_corrupted; then
1716   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1717 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1718   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1719 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1720    { (exit 1); exit 1; }; }
1721 fi
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739 ac_ext=c
1740 ac_cpp='$CPP $CPPFLAGS'
1741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744
1745
1746
1747
1748 { echo "$as_me:$LINENO: checking for installation prefix" >&5
1749 echo $ECHO_N "checking for installation prefix... $ECHO_C" >&6; }
1750 if test "${unet_cv_prefix+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   unet_cv_prefix=$HOME
1754 fi
1755
1756 if test x"$prefix" != xNONE; then
1757     unet_cv_prefix=$prefix
1758 fi
1759 { echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1760 echo "${ECHO_T}$unet_cv_prefix" >&6; }
1761 ac_default_prefix=$unet_cv_prefix
1762
1763 ac_config_headers="$ac_config_headers config.h"
1764
1765
1766
1767
1768 ac_aux_dir=
1769 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1770   if test -f "$ac_dir/install-sh"; then
1771     ac_aux_dir=$ac_dir
1772     ac_install_sh="$ac_aux_dir/install-sh -c"
1773     break
1774   elif 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/shtool"; then
1779     ac_aux_dir=$ac_dir
1780     ac_install_sh="$ac_aux_dir/shtool install -c"
1781     break
1782   fi
1783 done
1784 if test -z "$ac_aux_dir"; then
1785   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1786 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1787    { (exit 1); exit 1; }; }
1788 fi
1789
1790 # These three variables are undocumented and unsupported,
1791 # and are intended to be withdrawn in a future Autoconf release.
1792 # They can cause serious problems if a builder's source tree is in a directory
1793 # whose full name contains unusual characters.
1794 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1795 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1796 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1797
1798
1799 # Make sure we can run config.sub.
1800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1801   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1802 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1803    { (exit 1); exit 1; }; }
1804
1805 { echo "$as_me:$LINENO: checking build system type" >&5
1806 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1807 if test "${ac_cv_build+set}" = set; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   ac_build_alias=$build_alias
1811 test "x$ac_build_alias" = x &&
1812   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1813 test "x$ac_build_alias" = x &&
1814   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1815 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1816    { (exit 1); exit 1; }; }
1817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1818   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1819 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1820    { (exit 1); exit 1; }; }
1821
1822 fi
1823 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1824 echo "${ECHO_T}$ac_cv_build" >&6; }
1825 case $ac_cv_build in
1826 *-*-*) ;;
1827 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1828 echo "$as_me: error: invalid value of canonical build" >&2;}
1829    { (exit 1); exit 1; }; };;
1830 esac
1831 build=$ac_cv_build
1832 ac_save_IFS=$IFS; IFS='-'
1833 set x $ac_cv_build
1834 shift
1835 build_cpu=$1
1836 build_vendor=$2
1837 shift; shift
1838 # Remember, the first character of IFS is used to create $*,
1839 # except with old shells:
1840 build_os=$*
1841 IFS=$ac_save_IFS
1842 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1843
1844
1845 { echo "$as_me:$LINENO: checking host system type" >&5
1846 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1847 if test "${ac_cv_host+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   if test "x$host_alias" = x; then
1851   ac_cv_host=$ac_cv_build
1852 else
1853   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1854     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1855 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1856    { (exit 1); exit 1; }; }
1857 fi
1858
1859 fi
1860 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1861 echo "${ECHO_T}$ac_cv_host" >&6; }
1862 case $ac_cv_host in
1863 *-*-*) ;;
1864 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1865 echo "$as_me: error: invalid value of canonical host" >&2;}
1866    { (exit 1); exit 1; }; };;
1867 esac
1868 host=$ac_cv_host
1869 ac_save_IFS=$IFS; IFS='-'
1870 set x $ac_cv_host
1871 shift
1872 host_cpu=$1
1873 host_vendor=$2
1874 shift; shift
1875 # Remember, the first character of IFS is used to create $*,
1876 # except with old shells:
1877 host_os=$*
1878 IFS=$ac_save_IFS
1879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1880
1881
1882
1883 ac_ext=c
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 if test -n "$ac_tool_prefix"; then
1889   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1893 if test "${ac_cv_prog_CC+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$CC"; then
1897   ac_cv_prog_CC="$CC" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1906     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912 IFS=$as_save_IFS
1913
1914 fi
1915 fi
1916 CC=$ac_cv_prog_CC
1917 if test -n "$CC"; then
1918   { echo "$as_me:$LINENO: result: $CC" >&5
1919 echo "${ECHO_T}$CC" >&6; }
1920 else
1921   { echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6; }
1923 fi
1924
1925
1926 fi
1927 if test -z "$ac_cv_prog_CC"; then
1928   ac_ct_CC=$CC
1929   # Extract the first word of "gcc", so it can be a program name with args.
1930 set dummy gcc; ac_word=$2
1931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$ac_ct_CC"; then
1937   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1946     ac_cv_prog_ac_ct_CC="gcc"
1947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948     break 2
1949   fi
1950 done
1951 done
1952 IFS=$as_save_IFS
1953
1954 fi
1955 fi
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6; }
1960 else
1961   { echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6; }
1963 fi
1964
1965   if test "x$ac_ct_CC" = x; then
1966     CC=""
1967   else
1968     case $cross_compiling:$ac_tool_warned in
1969 yes:)
1970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1971 whose name does not start with the host triplet.  If you think this
1972 configuration is useful to you, please write to autoconf@gnu.org." >&5
1973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1974 whose name does not start with the host triplet.  If you think this
1975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1976 ac_tool_warned=yes ;;
1977 esac
1978     CC=$ac_ct_CC
1979   fi
1980 else
1981   CC="$ac_cv_prog_CC"
1982 fi
1983
1984 if test -z "$CC"; then
1985           if test -n "$ac_tool_prefix"; then
1986     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1987 set dummy ${ac_tool_prefix}cc; ac_word=$2
1988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003     ac_cv_prog_CC="${ac_tool_prefix}cc"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006   fi
2007 done
2008 done
2009 IFS=$as_save_IFS
2010
2011 fi
2012 fi
2013 CC=$ac_cv_prog_CC
2014 if test -n "$CC"; then
2015   { echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6; }
2017 else
2018   { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2020 fi
2021
2022
2023   fi
2024 fi
2025 if test -z "$CC"; then
2026   # Extract the first word of "cc", so it can be a program name with args.
2027 set dummy cc; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$CC"; then
2034   ac_cv_prog_CC="$CC" # Let the user override the test.
2035 else
2036   ac_prog_rejected=no
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2045        ac_prog_rejected=yes
2046        continue
2047      fi
2048     ac_cv_prog_CC="cc"
2049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050     break 2
2051   fi
2052 done
2053 done
2054 IFS=$as_save_IFS
2055
2056 if test $ac_prog_rejected = yes; then
2057   # We found a bogon in the path, so make sure we never use it.
2058   set dummy $ac_cv_prog_CC
2059   shift
2060   if test $# != 0; then
2061     # We chose a different compiler from the bogus one.
2062     # However, it has the same basename, so the bogon will be chosen
2063     # first if we set CC to just the basename; use the full file name.
2064     shift
2065     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2066   fi
2067 fi
2068 fi
2069 fi
2070 CC=$ac_cv_prog_CC
2071 if test -n "$CC"; then
2072   { echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6; }
2074 else
2075   { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2077 fi
2078
2079
2080 fi
2081 if test -z "$CC"; then
2082   if test -n "$ac_tool_prefix"; then
2083   for ac_prog in cl.exe
2084   do
2085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2089 if test "${ac_cv_prog_CC+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test -n "$CC"; then
2093   ac_cv_prog_CC="$CC" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100   for ac_exec_ext in '' $ac_executable_extensions; do
2101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2102     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104     break 2
2105   fi
2106 done
2107 done
2108 IFS=$as_save_IFS
2109
2110 fi
2111 fi
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114   { echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6; }
2116 else
2117   { echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6; }
2119 fi
2120
2121
2122     test -n "$CC" && break
2123   done
2124 fi
2125 if test -z "$CC"; then
2126   ac_ct_CC=$CC
2127   for ac_prog in cl.exe
2128 do
2129   # Extract the first word of "$ac_prog", so it can be a program name with args.
2130 set dummy $ac_prog; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$ac_ct_CC"; then
2137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146     ac_cv_prog_ac_ct_CC="$ac_prog"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 fi
2155 fi
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6; }
2160 else
2161   { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165
2166   test -n "$ac_ct_CC" && break
2167 done
2168
2169   if test "x$ac_ct_CC" = x; then
2170     CC=""
2171   else
2172     case $cross_compiling:$ac_tool_warned in
2173 yes:)
2174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet.  If you think this
2176 configuration is useful to you, please write to autoconf@gnu.org." >&5
2177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2178 whose name does not start with the host triplet.  If you think this
2179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2180 ac_tool_warned=yes ;;
2181 esac
2182     CC=$ac_ct_CC
2183   fi
2184 fi
2185
2186 fi
2187
2188
2189 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: no acceptable C compiler found in \$PATH
2192 See \`config.log' for more details." >&2;}
2193    { (exit 1); exit 1; }; }
2194
2195 # Provide some information about the compiler.
2196 echo "$as_me:$LINENO: checking for C compiler version" >&5
2197 ac_compiler=`set X $ac_compile; echo $2`
2198 { (ac_try="$ac_compiler --version >&5"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_compiler --version >&5") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }
2208 { (ac_try="$ac_compiler -v >&5"
2209 case "(($ac_try" in
2210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211   *) ac_try_echo=$ac_try;;
2212 esac
2213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2214   (eval "$ac_compiler -v >&5") 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }
2218 { (ac_try="$ac_compiler -V >&5"
2219 case "(($ac_try" in
2220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221   *) ac_try_echo=$ac_try;;
2222 esac
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224   (eval "$ac_compiler -V >&5") 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }
2228
2229 cat >conftest.$ac_ext <<_ACEOF
2230 /* confdefs.h.  */
2231 _ACEOF
2232 cat confdefs.h >>conftest.$ac_ext
2233 cat >>conftest.$ac_ext <<_ACEOF
2234 /* end confdefs.h.  */
2235
2236 int
2237 main ()
2238 {
2239
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 ac_clean_files_save=$ac_clean_files
2245 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2246 # Try to create an executable without -o first, disregard a.out.
2247 # It will help us diagnose broken compilers, and finding out an intuition
2248 # of exeext.
2249 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2250 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2251 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2252 #
2253 # List of possible output files, starting from the most likely.
2254 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2255 # only as a last resort.  b.out is created by i960 compilers.
2256 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2257 #
2258 # The IRIX 6 linker writes into existing files which may not be
2259 # executable, retaining their permissions.  Remove them first so a
2260 # subsequent execution test works.
2261 ac_rmfiles=
2262 for ac_file in $ac_files
2263 do
2264   case $ac_file in
2265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2266     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2267   esac
2268 done
2269 rm -f $ac_rmfiles
2270
2271 if { (ac_try="$ac_link_default"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_link_default") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; then
2281   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2282 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2283 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2284 # so that the user can short-circuit this test for compilers unknown to
2285 # Autoconf.
2286 for ac_file in $ac_files ''
2287 do
2288   test -f "$ac_file" || continue
2289   case $ac_file in
2290     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2291         ;;
2292     [ab].out )
2293         # We found the default executable, but exeext='' is most
2294         # certainly right.
2295         break;;
2296     *.* )
2297         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2298         then :; else
2299            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300         fi
2301         # We set ac_cv_exeext here because the later test for it is not
2302         # safe: cross compilers may not add the suffix if given an `-o'
2303         # argument, so we may need to know it at that point already.
2304         # Even if this section looks crufty: it has the advantage of
2305         # actually working.
2306         break;;
2307     * )
2308         break;;
2309   esac
2310 done
2311 test "$ac_cv_exeext" = no && ac_cv_exeext=
2312
2313 else
2314   ac_file=''
2315 fi
2316
2317 { echo "$as_me:$LINENO: result: $ac_file" >&5
2318 echo "${ECHO_T}$ac_file" >&6; }
2319 if test -z "$ac_file"; then
2320   echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2324 See \`config.log' for more details." >&5
2325 echo "$as_me: error: C compiler cannot create executables
2326 See \`config.log' for more details." >&2;}
2327    { (exit 77); exit 77; }; }
2328 fi
2329
2330 ac_exeext=$ac_cv_exeext
2331
2332 # Check that the compiler produces executables we can run.  If not, either
2333 # the compiler is broken, or we cross compile.
2334 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2335 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2337 # If not cross compiling, check that we can run a simple program.
2338 if test "$cross_compiling" != yes; then
2339   if { ac_try='./$ac_file'
2340   { (case "(($ac_try" in
2341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342   *) ac_try_echo=$ac_try;;
2343 esac
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345   (eval "$ac_try") 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; }; then
2349     cross_compiling=no
2350   else
2351     if test "$cross_compiling" = maybe; then
2352         cross_compiling=yes
2353     else
2354         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2355 If you meant to cross compile, use \`--host'.
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot run C compiled programs.
2358 If you meant to cross compile, use \`--host'.
2359 See \`config.log' for more details." >&2;}
2360    { (exit 1); exit 1; }; }
2361     fi
2362   fi
2363 fi
2364 { echo "$as_me:$LINENO: result: yes" >&5
2365 echo "${ECHO_T}yes" >&6; }
2366
2367 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2368 ac_clean_files=$ac_clean_files_save
2369 # Check that the compiler produces executables we can run.  If not, either
2370 # the compiler is broken, or we cross compile.
2371 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2372 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2373 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2374 echo "${ECHO_T}$cross_compiling" >&6; }
2375
2376 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2377 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2378 if { (ac_try="$ac_link"
2379 case "(($ac_try" in
2380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381   *) ac_try_echo=$ac_try;;
2382 esac
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384   (eval "$ac_link") 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; then
2388   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2389 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2390 # work properly (i.e., refer to `conftest.exe'), while it won't with
2391 # `rm'.
2392 for ac_file in conftest.exe conftest conftest.*; do
2393   test -f "$ac_file" || continue
2394   case $ac_file in
2395     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2396     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397           break;;
2398     * ) break;;
2399   esac
2400 done
2401 else
2402   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2405 See \`config.log' for more details." >&2;}
2406    { (exit 1); exit 1; }; }
2407 fi
2408
2409 rm -f conftest$ac_cv_exeext
2410 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2411 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2412
2413 rm -f conftest.$ac_ext
2414 EXEEXT=$ac_cv_exeext
2415 ac_exeext=$EXEEXT
2416 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2417 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2418 if test "${ac_cv_objext+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h.  */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h.  */
2427
2428 int
2429 main ()
2430 {
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 rm -f conftest.o conftest.obj
2437 if { (ac_try="$ac_compile"
2438 case "(($ac_try" in
2439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440   *) ac_try_echo=$ac_try;;
2441 esac
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443   (eval "$ac_compile") 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }; then
2447   for ac_file in conftest.o conftest.obj conftest.*; do
2448   test -f "$ac_file" || continue;
2449   case $ac_file in
2450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2451     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2452        break;;
2453   esac
2454 done
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2460 See \`config.log' for more details." >&5
2461 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2462 See \`config.log' for more details." >&2;}
2463    { (exit 1); exit 1; }; }
2464 fi
2465
2466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2467 fi
2468 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2469 echo "${ECHO_T}$ac_cv_objext" >&6; }
2470 OBJEXT=$ac_cv_objext
2471 ac_objext=$OBJEXT
2472 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2473 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h.  */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h.  */
2483
2484 int
2485 main ()
2486 {
2487 #ifndef __GNUC__
2488        choke me
2489 #endif
2490
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (ac_try="$ac_compile"
2497 case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502   (eval "$ac_compile") 2>conftest.er1
2503   ac_status=$?
2504   grep -v '^ *+' conftest.er1 >conftest.err
2505   rm -f conftest.er1
2506   cat conftest.err >&5
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); } && {
2509          test -z "$ac_c_werror_flag" ||
2510          test ! -s conftest.err
2511        } && test -s conftest.$ac_objext; then
2512   ac_compiler_gnu=yes
2513 else
2514   echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2516
2517         ac_compiler_gnu=no
2518 fi
2519
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2522
2523 fi
2524 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2525 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2526 GCC=`test $ac_compiler_gnu = yes && echo yes`
2527 ac_test_CFLAGS=${CFLAGS+set}
2528 ac_save_CFLAGS=$CFLAGS
2529 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2530 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_cc_g+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   ac_save_c_werror_flag=$ac_c_werror_flag
2535    ac_c_werror_flag=yes
2536    ac_cv_prog_cc_g=no
2537    CFLAGS="-g"
2538    cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548
2549   ;
2550   return 0;
2551 }
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (ac_try="$ac_compile"
2555 case "(($ac_try" in
2556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557   *) ac_try_echo=$ac_try;;
2558 esac
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560   (eval "$ac_compile") 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } && {
2567          test -z "$ac_c_werror_flag" ||
2568          test ! -s conftest.err
2569        } && test -s conftest.$ac_objext; then
2570   ac_cv_prog_cc_g=yes
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575         CFLAGS=""
2576       cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_compile") 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } && {
2605          test -z "$ac_c_werror_flag" ||
2606          test ! -s conftest.err
2607        } && test -s conftest.$ac_objext; then
2608   :
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613         ac_c_werror_flag=$ac_save_c_werror_flag
2614          CFLAGS="-g"
2615          cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621
2622 int
2623 main ()
2624 {
2625
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2632 case "(($ac_try" in
2633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634   *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637   (eval "$ac_compile") 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } && {
2644          test -z "$ac_c_werror_flag" ||
2645          test ! -s conftest.err
2646        } && test -s conftest.$ac_objext; then
2647   ac_cv_prog_cc_g=yes
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652
2653 fi
2654
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 fi
2657
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662    ac_c_werror_flag=$ac_save_c_werror_flag
2663 fi
2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667   CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669   if test "$GCC" = yes; then
2670     CFLAGS="-g -O2"
2671   else
2672     CFLAGS="-g"
2673   fi
2674 else
2675   if test "$GCC" = yes; then
2676     CFLAGS="-O2"
2677   else
2678     CFLAGS=
2679   fi
2680 fi
2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   ac_cv_prog_cc_c89=no
2687 ac_save_CC=$CC
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694 #include <stdarg.h>
2695 #include <stdio.h>
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2702      char **p;
2703      int i;
2704 {
2705   return p[i];
2706 }
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2708 {
2709   char *s;
2710   va_list v;
2711   va_start (v,p);
2712   s = g (p, va_arg (v,int));
2713   va_end (v);
2714   return s;
2715 }
2716
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2718    function prototypes and stuff, but not '\xHH' hex character constants.
2719    These don't provoke an error unfortunately, instead are silently treated
2720    as 'x'.  The following induces an error, until -std is added to get
2721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2722    array size at least.  It's necessary to write '\x00'==0 to get something
2723    that's true only with -std.  */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727    inside strings and character constants.  */
2728 #define FOO(x) 'x'
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2730
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735 int argc;
2736 char **argv;
2737 int
2738 main ()
2739 {
2740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2747 do
2748   CC="$ac_save_CC $ac_arg"
2749   rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compile") 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } && {
2763          test -z "$ac_c_werror_flag" ||
2764          test ! -s conftest.err
2765        } && test -s conftest.$ac_objext; then
2766   ac_cv_prog_cc_c89=$ac_arg
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771
2772 fi
2773
2774 rm -f core conftest.err conftest.$ac_objext
2775   test "x$ac_cv_prog_cc_c89" != "xno" && break
2776 done
2777 rm -f conftest.$ac_ext
2778 CC=$ac_save_CC
2779
2780 fi
2781 # AC_CACHE_VAL
2782 case "x$ac_cv_prog_cc_c89" in
2783   x)
2784     { echo "$as_me:$LINENO: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6; } ;;
2786   xno)
2787     { echo "$as_me:$LINENO: result: unsupported" >&5
2788 echo "${ECHO_T}unsupported" >&6; } ;;
2789   *)
2790     CC="$CC $ac_cv_prog_cc_c89"
2791     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2792 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793 esac
2794
2795
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801
2802
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CC"; then
2817   ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846 fi
2847 if test -z "$ac_cv_prog_CC"; then
2848   ac_ct_CC=$CC
2849   # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$ac_ct_CC"; then
2857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_ac_ct_CC="gcc"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2880 else
2881   { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885   if test "x$ac_ct_CC" = x; then
2886     CC=""
2887   else
2888     case $cross_compiling:$ac_tool_warned in
2889 yes:)
2890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2891 whose name does not start with the host triplet.  If you think this
2892 configuration is useful to you, please write to autoconf@gnu.org." >&5
2893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet.  If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2896 ac_tool_warned=yes ;;
2897 esac
2898     CC=$ac_ct_CC
2899   fi
2900 else
2901   CC="$ac_cv_prog_CC"
2902 fi
2903
2904 if test -z "$CC"; then
2905           if test -n "$ac_tool_prefix"; then
2906     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}cc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   if test -n "$CC"; then
2914   ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921   for ac_exec_ext in '' $ac_executable_extensions; do
2922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923     ac_cv_prog_CC="${ac_tool_prefix}cc"
2924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925     break 2
2926   fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935   { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2937 else
2938   { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2940 fi
2941
2942
2943   fi
2944 fi
2945 if test -z "$CC"; then
2946   # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956   ac_prog_rejected=no
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962   for ac_exec_ext in '' $ac_executable_extensions; do
2963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2965        ac_prog_rejected=yes
2966        continue
2967      fi
2968     ac_cv_prog_CC="cc"
2969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 if test $ac_prog_rejected = yes; then
2977   # We found a bogon in the path, so make sure we never use it.
2978   set dummy $ac_cv_prog_CC
2979   shift
2980   if test $# != 0; then
2981     # We chose a different compiler from the bogus one.
2982     # However, it has the same basename, so the bogon will be chosen
2983     # first if we set CC to just the basename; use the full file name.
2984     shift
2985     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2986   fi
2987 fi
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2994 else
2995   { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
2997 fi
2998
2999
3000 fi
3001 if test -z "$CC"; then
3002   if test -n "$ac_tool_prefix"; then
3003   for ac_prog in cl.exe
3004   do
3005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   if test -n "$CC"; then
3013   ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020   for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { echo "$as_me:$LINENO: result: $CC" >&5
3035 echo "${ECHO_T}$CC" >&6; }
3036 else
3037   { echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6; }
3039 fi
3040
3041
3042     test -n "$CC" && break
3043   done
3044 fi
3045 if test -z "$CC"; then
3046   ac_ct_CC=$CC
3047   for ac_prog in cl.exe
3048 do
3049   # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   if test -n "$ac_ct_CC"; then
3057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064   for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_ac_ct_CC="$ac_prog"
3067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3079 echo "${ECHO_T}$ac_ct_CC" >&6; }
3080 else
3081   { echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6; }
3083 fi
3084
3085
3086   test -n "$ac_ct_CC" && break
3087 done
3088
3089   if test "x$ac_ct_CC" = x; then
3090     CC=""
3091   else
3092     case $cross_compiling:$ac_tool_warned in
3093 yes:)
3094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3095 whose name does not start with the host triplet.  If you think this
3096 configuration is useful to you, please write to autoconf@gnu.org." >&5
3097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet.  If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102     CC=$ac_ct_CC
3103   fi
3104 fi
3105
3106 fi
3107
3108
3109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." >&2;}
3113    { (exit 1); exit 1; }; }
3114
3115 # Provide some information about the compiler.
3116 echo "$as_me:$LINENO: checking for C compiler version" >&5
3117 ac_compiler=`set X $ac_compile; echo $2`
3118 { (ac_try="$ac_compiler --version >&5"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compiler --version >&5") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }
3128 { (ac_try="$ac_compiler -v >&5"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compiler -v >&5") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138 { (ac_try="$ac_compiler -V >&5"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compiler -V >&5") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }
3148
3149 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154   cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164 #ifndef __GNUC__
3165        choke me
3166 #endif
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compile") 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } && {
3186          test -z "$ac_c_werror_flag" ||
3187          test ! -s conftest.err
3188        } && test -s conftest.$ac_objext; then
3189   ac_compiler_gnu=yes
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194         ac_compiler_gnu=no
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3199
3200 fi
3201 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3202 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3203 GCC=`test $ac_compiler_gnu = yes && echo yes`
3204 ac_test_CFLAGS=${CFLAGS+set}
3205 ac_save_CFLAGS=$CFLAGS
3206 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_g+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   ac_save_c_werror_flag=$ac_c_werror_flag
3212    ac_c_werror_flag=yes
3213    ac_cv_prog_cc_g=no
3214    CFLAGS="-g"
3215    cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_compile") 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } && {
3244          test -z "$ac_c_werror_flag" ||
3245          test ! -s conftest.err
3246        } && test -s conftest.$ac_objext; then
3247   ac_cv_prog_cc_g=yes
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252         CFLAGS=""
3253       cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_compile") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } && {
3282          test -z "$ac_c_werror_flag" ||
3283          test ! -s conftest.err
3284        } && test -s conftest.$ac_objext; then
3285   :
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290         ac_c_werror_flag=$ac_save_c_werror_flag
3291          CFLAGS="-g"
3292          cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_compile") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && {
3321          test -z "$ac_c_werror_flag" ||
3322          test ! -s conftest.err
3323        } && test -s conftest.$ac_objext; then
3324   ac_cv_prog_cc_g=yes
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 fi
3337
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339    ac_c_werror_flag=$ac_save_c_werror_flag
3340 fi
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3343 if test "$ac_test_CFLAGS" = set; then
3344   CFLAGS=$ac_save_CFLAGS
3345 elif test $ac_cv_prog_cc_g = yes; then
3346   if test "$GCC" = yes; then
3347     CFLAGS="-g -O2"
3348   else
3349     CFLAGS="-g"
3350   fi
3351 else
3352   if test "$GCC" = yes; then
3353     CFLAGS="-O2"
3354   else
3355     CFLAGS=
3356   fi
3357 fi
3358 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_cc_c89+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   ac_cv_prog_cc_c89=no
3364 ac_save_CC=$CC
3365 cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #include <stdarg.h>
3372 #include <stdio.h>
3373 #include <sys/types.h>
3374 #include <sys/stat.h>
3375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3376 struct buf { int x; };
3377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378 static char *e (p, i)
3379      char **p;
3380      int i;
3381 {
3382   return p[i];
3383 }
3384 static char *f (char * (*g) (char **, int), char **p, ...)
3385 {
3386   char *s;
3387   va_list v;
3388   va_start (v,p);
3389   s = g (p, va_arg (v,int));
3390   va_end (v);
3391   return s;
3392 }
3393
3394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3395    function prototypes and stuff, but not '\xHH' hex character constants.
3396    These don't provoke an error unfortunately, instead are silently treated
3397    as 'x'.  The following induces an error, until -std is added to get
3398    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3399    array size at least.  It's necessary to write '\x00'==0 to get something
3400    that's true only with -std.  */
3401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404    inside strings and character constants.  */
3405 #define FOO(x) 'x'
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
3408 int test (int i, double x);
3409 struct s1 {int (*f) (int a);};
3410 struct s2 {int (*f) (double a);};
3411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412 int argc;
3413 char **argv;
3414 int
3415 main ()
3416 {
3417 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424 do
3425   CC="$ac_save_CC $ac_arg"
3426   rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_compile") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } && {
3440          test -z "$ac_c_werror_flag" ||
3441          test ! -s conftest.err
3442        } && test -s conftest.$ac_objext; then
3443   ac_cv_prog_cc_c89=$ac_arg
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448
3449 fi
3450
3451 rm -f core conftest.err conftest.$ac_objext
3452   test "x$ac_cv_prog_cc_c89" != "xno" && break
3453 done
3454 rm -f conftest.$ac_ext
3455 CC=$ac_save_CC
3456
3457 fi
3458 # AC_CACHE_VAL
3459 case "x$ac_cv_prog_cc_c89" in
3460   x)
3461     { echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6; } ;;
3463   xno)
3464     { echo "$as_me:$LINENO: result: unsupported" >&5
3465 echo "${ECHO_T}unsupported" >&6; } ;;
3466   *)
3467     CC="$CC $ac_cv_prog_cc_c89"
3468     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3469 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3470 esac
3471
3472
3473 ac_ext=c
3474 ac_cpp='$CPP $CPPFLAGS'
3475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478
3479
3480 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3481
3482
3483
3484
3485 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
3486 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
3487 if test "${ac_cv_search_crypt+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   ac_func_search_save_LIBS=$LIBS
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497
3498 /* Override any GCC internal prototype to avoid an error.
3499    Use char because int might match the return type of a GCC
3500    builtin and then its argument prototype would still apply.  */
3501 #ifdef __cplusplus
3502 extern "C"
3503 #endif
3504 char crypt ();
3505 int
3506 main ()
3507 {
3508 return crypt ();
3509   ;
3510   return 0;
3511 }
3512 _ACEOF
3513 for ac_lib in '' descrypt crypt; do
3514   if test -z "$ac_lib"; then
3515     ac_res="none required"
3516   else
3517     ac_res=-l$ac_lib
3518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3519   fi
3520   rm -f conftest.$ac_objext conftest$ac_exeext
3521 if { (ac_try="$ac_link"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_link") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } && {
3534          test -z "$ac_c_werror_flag" ||
3535          test ! -s conftest.err
3536        } && test -s conftest$ac_exeext &&
3537        $as_test_x conftest$ac_exeext; then
3538   ac_cv_search_crypt=$ac_res
3539 else
3540   echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543
3544 fi
3545
3546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3547       conftest$ac_exeext
3548   if test "${ac_cv_search_crypt+set}" = set; then
3549   break
3550 fi
3551 done
3552 if test "${ac_cv_search_crypt+set}" = set; then
3553   :
3554 else
3555   ac_cv_search_crypt=no
3556 fi
3557 rm conftest.$ac_ext
3558 LIBS=$ac_func_search_save_LIBS
3559 fi
3560 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3561 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
3562 ac_res=$ac_cv_search_crypt
3563 if test "$ac_res" != no; then
3564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3565
3566 else
3567   { { echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3568 echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3569    { (exit 1); exit 1; }; }
3570 fi
3571
3572
3573
3574    # Most operating systems have gethostbyname() in the default searched
3575    # libraries (i.e. libc):
3576    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
3577 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
3578 if test "${ac_cv_func_gethostbyname+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3589 #define gethostbyname innocuous_gethostbyname
3590
3591 /* System header to define __stub macros and hopefully few prototypes,
3592     which can conflict with char gethostbyname (); below.
3593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3594     <limits.h> exists even on freestanding compilers.  */
3595
3596 #ifdef __STDC__
3597 # include <limits.h>
3598 #else
3599 # include <assert.h>
3600 #endif
3601
3602 #undef gethostbyname
3603
3604 /* Override any GCC internal prototype to avoid an error.
3605    Use char because int might match the return type of a GCC
3606    builtin and then its argument prototype would still apply.  */
3607 #ifdef __cplusplus
3608 extern "C"
3609 #endif
3610 char gethostbyname ();
3611 /* The GNU C library defines this for functions which it implements
3612     to always fail with ENOSYS.  Some functions are actually named
3613     something starting with __ and the normal name is an alias.  */
3614 #if defined __stub_gethostbyname || defined __stub___gethostbyname
3615 choke me
3616 #endif
3617
3618 int
3619 main ()
3620 {
3621 return gethostbyname ();
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext conftest$ac_exeext
3627 if { (ac_try="$ac_link"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633   (eval "$ac_link") 2>conftest.er1
3634   ac_status=$?
3635   grep -v '^ *+' conftest.er1 >conftest.err
3636   rm -f conftest.er1
3637   cat conftest.err >&5
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); } && {
3640          test -z "$ac_c_werror_flag" ||
3641          test ! -s conftest.err
3642        } && test -s conftest$ac_exeext &&
3643        $as_test_x conftest$ac_exeext; then
3644   ac_cv_func_gethostbyname=yes
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649         ac_cv_func_gethostbyname=no
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3653       conftest$ac_exeext conftest.$ac_ext
3654 fi
3655 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3656 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3657 if test $ac_cv_func_gethostbyname = yes; then
3658   :
3659 else
3660   # Some OSes (eg. Solaris) place it in libnsl:
3661
3662 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3663 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
3664 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   ac_check_lib_save_LIBS=$LIBS
3668 LIBS="-lnsl  $LIBS"
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675
3676 /* Override any GCC internal prototype to avoid an error.
3677    Use char because int might match the return type of a GCC
3678    builtin and then its argument prototype would still apply.  */
3679 #ifdef __cplusplus
3680 extern "C"
3681 #endif
3682 char gethostbyname ();
3683 int
3684 main ()
3685 {
3686 return gethostbyname ();
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 rm -f conftest.$ac_objext conftest$ac_exeext
3692 if { (ac_try="$ac_link"
3693 case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_link") 2>conftest.er1
3699   ac_status=$?
3700   grep -v '^ *+' conftest.er1 >conftest.err
3701   rm -f conftest.er1
3702   cat conftest.err >&5
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } && {
3705          test -z "$ac_c_werror_flag" ||
3706          test ! -s conftest.err
3707        } && test -s conftest$ac_exeext &&
3708        $as_test_x conftest$ac_exeext; then
3709   ac_cv_lib_nsl_gethostbyname=yes
3710 else
3711   echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714         ac_cv_lib_nsl_gethostbyname=no
3715 fi
3716
3717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3718       conftest$ac_exeext conftest.$ac_ext
3719 LIBS=$ac_check_lib_save_LIBS
3720 fi
3721 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3722 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
3723 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3724   cat >>confdefs.h <<_ACEOF
3725 #define HAVE_LIBNSL 1
3726 _ACEOF
3727
3728   LIBS="-lnsl $LIBS"
3729
3730 else
3731   # Some strange OSes (SINIX) have it in libsocket:
3732
3733 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3734 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3735 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_check_lib_save_LIBS=$LIBS
3739 LIBS="-lsocket  $LIBS"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h.  */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h.  */
3746
3747 /* Override any GCC internal prototype to avoid an error.
3748    Use char because int might match the return type of a GCC
3749    builtin and then its argument prototype would still apply.  */
3750 #ifdef __cplusplus
3751 extern "C"
3752 #endif
3753 char gethostbyname ();
3754 int
3755 main ()
3756 {
3757 return gethostbyname ();
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 rm -f conftest.$ac_objext conftest$ac_exeext
3763 if { (ac_try="$ac_link"
3764 case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769   (eval "$ac_link") 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } && {
3776          test -z "$ac_c_werror_flag" ||
3777          test ! -s conftest.err
3778        } && test -s conftest$ac_exeext &&
3779        $as_test_x conftest$ac_exeext; then
3780   ac_cv_lib_socket_gethostbyname=yes
3781 else
3782   echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785         ac_cv_lib_socket_gethostbyname=no
3786 fi
3787
3788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3789       conftest$ac_exeext conftest.$ac_ext
3790 LIBS=$ac_check_lib_save_LIBS
3791 fi
3792 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3793 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3794 if test $ac_cv_lib_socket_gethostbyname = yes; then
3795   cat >>confdefs.h <<_ACEOF
3796 #define HAVE_LIBSOCKET 1
3797 _ACEOF
3798
3799   LIBS="-lsocket $LIBS"
3800
3801 else
3802   # Unfortunately libsocket sometimes depends on libnsl.
3803           # AC_CHECK_LIB's API is essentially broken so the following
3804           # ugliness is necessary:
3805           { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3806 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
3807 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   ac_check_lib_save_LIBS=$LIBS
3811 LIBS="-lsocket -lnsl $LIBS"
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818
3819 /* Override any GCC internal prototype to avoid an error.
3820    Use char because int might match the return type of a GCC
3821    builtin and then its argument prototype would still apply.  */
3822 #ifdef __cplusplus
3823 extern "C"
3824 #endif
3825 char gethostbyname ();
3826 int
3827 main ()
3828 {
3829 return gethostbyname ();
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (ac_try="$ac_link"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841   (eval "$ac_link") 2>conftest.er1
3842   ac_status=$?
3843   grep -v '^ *+' conftest.er1 >conftest.err
3844   rm -f conftest.er1
3845   cat conftest.err >&5
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); } && {
3848          test -z "$ac_c_werror_flag" ||
3849          test ! -s conftest.err
3850        } && test -s conftest$ac_exeext &&
3851        $as_test_x conftest$ac_exeext; then
3852   ac_cv_lib_socket_gethostbyname=yes
3853 else
3854   echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857         ac_cv_lib_socket_gethostbyname=no
3858 fi
3859
3860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3861       conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3863 fi
3864 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
3866 if test $ac_cv_lib_socket_gethostbyname = yes; then
3867   LIBS="-lsocket -lnsl $LIBS"
3868 else
3869
3870 { echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3871 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6; }
3872 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   ac_check_lib_save_LIBS=$LIBS
3876 LIBS="-lresolv  $LIBS"
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h.  */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h.  */
3883
3884 /* Override any GCC internal prototype to avoid an error.
3885    Use char because int might match the return type of a GCC
3886    builtin and then its argument prototype would still apply.  */
3887 #ifdef __cplusplus
3888 extern "C"
3889 #endif
3890 char gethostbyname ();
3891 int
3892 main ()
3893 {
3894 return gethostbyname ();
3895   ;
3896   return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.$ac_objext conftest$ac_exeext
3900 if { (ac_try="$ac_link"
3901 case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906   (eval "$ac_link") 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } && {
3913          test -z "$ac_c_werror_flag" ||
3914          test ! -s conftest.err
3915        } && test -s conftest$ac_exeext &&
3916        $as_test_x conftest$ac_exeext; then
3917   ac_cv_lib_resolv_gethostbyname=yes
3918 else
3919   echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3921
3922         ac_cv_lib_resolv_gethostbyname=no
3923 fi
3924
3925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3926       conftest$ac_exeext conftest.$ac_ext
3927 LIBS=$ac_check_lib_save_LIBS
3928 fi
3929 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3930 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6; }
3931 if test $ac_cv_lib_resolv_gethostbyname = yes; then
3932   cat >>confdefs.h <<_ACEOF
3933 #define HAVE_LIBRESOLV 1
3934 _ACEOF
3935
3936   LIBS="-lresolv $LIBS"
3937
3938 fi
3939
3940 fi
3941
3942
3943 fi
3944
3945
3946 fi
3947
3948
3949 fi
3950
3951   { echo "$as_me:$LINENO: checking for socket" >&5
3952 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
3953 if test "${ac_cv_func_socket+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3964 #define socket innocuous_socket
3965
3966 /* System header to define __stub macros and hopefully few prototypes,
3967     which can conflict with char socket (); below.
3968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969     <limits.h> exists even on freestanding compilers.  */
3970
3971 #ifdef __STDC__
3972 # include <limits.h>
3973 #else
3974 # include <assert.h>
3975 #endif
3976
3977 #undef socket
3978
3979 /* Override any GCC internal prototype to avoid an error.
3980    Use char because int might match the return type of a GCC
3981    builtin and then its argument prototype would still apply.  */
3982 #ifdef __cplusplus
3983 extern "C"
3984 #endif
3985 char socket ();
3986 /* The GNU C library defines this for functions which it implements
3987     to always fail with ENOSYS.  Some functions are actually named
3988     something starting with __ and the normal name is an alias.  */
3989 #if defined __stub_socket || defined __stub___socket
3990 choke me
3991 #endif
3992
3993 int
3994 main ()
3995 {
3996 return socket ();
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (ac_try="$ac_link"
4003 case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008   (eval "$ac_link") 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } && {
4015          test -z "$ac_c_werror_flag" ||
4016          test ! -s conftest.err
4017        } && test -s conftest$ac_exeext &&
4018        $as_test_x conftest$ac_exeext; then
4019   ac_cv_func_socket=yes
4020 else
4021   echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024         ac_cv_func_socket=no
4025 fi
4026
4027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4028       conftest$ac_exeext conftest.$ac_ext
4029 fi
4030 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4031 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4032 if test $ac_cv_func_socket = yes; then
4033   :
4034 else
4035
4036 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4037 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4038 if test "${ac_cv_lib_socket_socket+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   ac_check_lib_save_LIBS=$LIBS
4042 LIBS="-lsocket  $LIBS"
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h.  */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h.  */
4049
4050 /* Override any GCC internal prototype to avoid an error.
4051    Use char because int might match the return type of a GCC
4052    builtin and then its argument prototype would still apply.  */
4053 #ifdef __cplusplus
4054 extern "C"
4055 #endif
4056 char socket ();
4057 int
4058 main ()
4059 {
4060 return socket ();
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext conftest$ac_exeext
4066 if { (ac_try="$ac_link"
4067 case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_link") 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } && {
4079          test -z "$ac_c_werror_flag" ||
4080          test ! -s conftest.err
4081        } && test -s conftest$ac_exeext &&
4082        $as_test_x conftest$ac_exeext; then
4083   ac_cv_lib_socket_socket=yes
4084 else
4085   echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088         ac_cv_lib_socket_socket=no
4089 fi
4090
4091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4092       conftest$ac_exeext conftest.$ac_ext
4093 LIBS=$ac_check_lib_save_LIBS
4094 fi
4095 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4096 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4097 if test $ac_cv_lib_socket_socket = yes; then
4098   cat >>confdefs.h <<_ACEOF
4099 #define HAVE_LIBSOCKET 1
4100 _ACEOF
4101
4102   LIBS="-lsocket $LIBS"
4103
4104 else
4105   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4106 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4107 if test "${ac_cv_lib_socket_socket+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   ac_check_lib_save_LIBS=$LIBS
4111 LIBS="-lsocket -lnsl $LIBS"
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h.  */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h.  */
4118
4119 /* Override any GCC internal prototype to avoid an error.
4120    Use char because int might match the return type of a GCC
4121    builtin and then its argument prototype would still apply.  */
4122 #ifdef __cplusplus
4123 extern "C"
4124 #endif
4125 char socket ();
4126 int
4127 main ()
4128 {
4129 return socket ();
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (ac_try="$ac_link"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_link") 2>conftest.er1
4142   ac_status=$?
4143   grep -v '^ *+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } && {
4148          test -z "$ac_c_werror_flag" ||
4149          test ! -s conftest.err
4150        } && test -s conftest$ac_exeext &&
4151        $as_test_x conftest$ac_exeext; then
4152   ac_cv_lib_socket_socket=yes
4153 else
4154   echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157         ac_cv_lib_socket_socket=no
4158 fi
4159
4160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4161       conftest$ac_exeext conftest.$ac_ext
4162 LIBS=$ac_check_lib_save_LIBS
4163 fi
4164 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4165 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4166 if test $ac_cv_lib_socket_socket = yes; then
4167   LIBS="-lsocket -lnsl $LIBS"
4168 fi
4169
4170 fi
4171
4172 fi
4173
4174
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4182 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4185   CPP=
4186 fi
4187 if test -z "$CPP"; then
4188   if test "${ac_cv_prog_CPP+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191       # Double quotes because CPP needs to be expanded
4192     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193     do
4194       ac_preproc_ok=false
4195 for ac_c_preproc_warn_flag in '' yes
4196 do
4197   # Use a header file that comes with gcc, so configuring glibc
4198   # with a fresh cross-compiler works.
4199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200   # <limits.h> exists even on freestanding compilers.
4201   # On the NeXT, cc -E runs the code through the compiler's parser,
4202   # not just through cpp. "Syntax error" is here to catch this case.
4203   cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214                      Syntax error
4215 _ACEOF
4216 if { (ac_try="$ac_cpp conftest.$ac_ext"
4217 case "(($ac_try" in
4218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219   *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4223   ac_status=$?
4224   grep -v '^ *+' conftest.er1 >conftest.err
4225   rm -f conftest.er1
4226   cat conftest.err >&5
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); } >/dev/null && {
4229          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4230          test ! -s conftest.err
4231        }; then
4232   :
4233 else
4234   echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237   # Broken: fails on valid input.
4238 continue
4239 fi
4240
4241 rm -f conftest.err conftest.$ac_ext
4242
4243   # OK, works on sane cases.  Now check whether nonexistent headers
4244   # can be detected and how.
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 #include <ac_nonexistent.h>
4252 _ACEOF
4253 if { (ac_try="$ac_cpp conftest.$ac_ext"
4254 case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4260   ac_status=$?
4261   grep -v '^ *+' conftest.er1 >conftest.err
4262   rm -f conftest.er1
4263   cat conftest.err >&5
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } >/dev/null && {
4266          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4267          test ! -s conftest.err
4268        }; then
4269   # Broken: success on invalid input.
4270 continue
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275   # Passes both tests.
4276 ac_preproc_ok=:
4277 break
4278 fi
4279
4280 rm -f conftest.err conftest.$ac_ext
4281
4282 done
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4286   break
4287 fi
4288
4289     done
4290     ac_cv_prog_CPP=$CPP
4291
4292 fi
4293   CPP=$ac_cv_prog_CPP
4294 else
4295   ac_cv_prog_CPP=$CPP
4296 fi
4297 { echo "$as_me:$LINENO: result: $CPP" >&5
4298 echo "${ECHO_T}$CPP" >&6; }
4299 ac_preproc_ok=false
4300 for ac_c_preproc_warn_flag in '' yes
4301 do
4302   # Use a header file that comes with gcc, so configuring glibc
4303   # with a fresh cross-compiler works.
4304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4305   # <limits.h> exists even on freestanding compilers.
4306   # On the NeXT, cc -E runs the code through the compiler's parser,
4307   # not just through cpp. "Syntax error" is here to catch this case.
4308   cat >conftest.$ac_ext <<_ACEOF
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 #ifdef __STDC__
4315 # include <limits.h>
4316 #else
4317 # include <assert.h>
4318 #endif
4319                      Syntax error
4320 _ACEOF
4321 if { (ac_try="$ac_cpp conftest.$ac_ext"
4322 case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4328   ac_status=$?
4329   grep -v '^ *+' conftest.er1 >conftest.err
4330   rm -f conftest.er1
4331   cat conftest.err >&5
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } >/dev/null && {
4334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4335          test ! -s conftest.err
4336        }; then
4337   :
4338 else
4339   echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342   # Broken: fails on valid input.
4343 continue
4344 fi
4345
4346 rm -f conftest.err conftest.$ac_ext
4347
4348   # OK, works on sane cases.  Now check whether nonexistent headers
4349   # can be detected and how.
4350   cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h.  */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h.  */
4356 #include <ac_nonexistent.h>
4357 _ACEOF
4358 if { (ac_try="$ac_cpp conftest.$ac_ext"
4359 case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } >/dev/null && {
4371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4372          test ! -s conftest.err
4373        }; then
4374   # Broken: success on invalid input.
4375 continue
4376 else
4377   echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380   # Passes both tests.
4381 ac_preproc_ok=:
4382 break
4383 fi
4384
4385 rm -f conftest.err conftest.$ac_ext
4386
4387 done
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.err conftest.$ac_ext
4390 if $ac_preproc_ok; then
4391   :
4392 else
4393   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4394 See \`config.log' for more details." >&5
4395 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4396 See \`config.log' for more details." >&2;}
4397    { (exit 1); exit 1; }; }
4398 fi
4399
4400 ac_ext=c
4401 ac_cpp='$CPP $CPPFLAGS'
4402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
4406
4407 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4408 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4409 if test "${ac_cv_path_GREP+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   # Extract the first word of "grep ggrep" to use in msg output
4413 if test -z "$GREP"; then
4414 set dummy grep ggrep; ac_prog_name=$2
4415 if test "${ac_cv_path_GREP+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   ac_path_GREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425   for ac_prog in grep ggrep; do
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4428     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4429     # Check for GNU ac_path_GREP and select it if it is found.
4430   # Check for GNU $ac_path_GREP
4431 case `"$ac_path_GREP" --version 2>&1` in
4432 *GNU*)
4433   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4434 *)
4435   ac_count=0
4436   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4437   while :
4438   do
4439     cat "conftest.in" "conftest.in" >"conftest.tmp"
4440     mv "conftest.tmp" "conftest.in"
4441     cp "conftest.in" "conftest.nl"
4442     echo 'GREP' >> "conftest.nl"
4443     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445     ac_count=`expr $ac_count + 1`
4446     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4447       # Best one so far, save it but keep looking for a better one
4448       ac_cv_path_GREP="$ac_path_GREP"
4449       ac_path_GREP_max=$ac_count
4450     fi
4451     # 10*(2^10) chars as input seems more than enough
4452     test $ac_count -gt 10 && break
4453   done
4454   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455 esac
4456
4457
4458     $ac_path_GREP_found && break 3
4459   done
4460 done
4461
4462 done
4463 IFS=$as_save_IFS
4464
4465
4466 fi
4467
4468 GREP="$ac_cv_path_GREP"
4469 if test -z "$GREP"; then
4470   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4471 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4472    { (exit 1); exit 1; }; }
4473 fi
4474
4475 else
4476   ac_cv_path_GREP=$GREP
4477 fi
4478
4479
4480 fi
4481 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4482 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4483  GREP="$ac_cv_path_GREP"
4484
4485
4486 { echo "$as_me:$LINENO: checking for egrep" >&5
4487 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_EGREP+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4492    then ac_cv_path_EGREP="$GREP -E"
4493    else
4494      # Extract the first word of "egrep" to use in msg output
4495 if test -z "$EGREP"; then
4496 set dummy egrep; ac_prog_name=$2
4497 if test "${ac_cv_path_EGREP+set}" = set; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   ac_path_EGREP_found=false
4501 # Loop through the user's path and test for each of PROGNAME-LIST
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_prog in egrep; do
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4510     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4511     # Check for GNU ac_path_EGREP and select it if it is found.
4512   # Check for GNU $ac_path_EGREP
4513 case `"$ac_path_EGREP" --version 2>&1` in
4514 *GNU*)
4515   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4516 *)
4517   ac_count=0
4518   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4519   while :
4520   do
4521     cat "conftest.in" "conftest.in" >"conftest.tmp"
4522     mv "conftest.tmp" "conftest.in"
4523     cp "conftest.in" "conftest.nl"
4524     echo 'EGREP' >> "conftest.nl"
4525     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4526     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4527     ac_count=`expr $ac_count + 1`
4528     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4529       # Best one so far, save it but keep looking for a better one
4530       ac_cv_path_EGREP="$ac_path_EGREP"
4531       ac_path_EGREP_max=$ac_count
4532     fi
4533     # 10*(2^10) chars as input seems more than enough
4534     test $ac_count -gt 10 && break
4535   done
4536   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4537 esac
4538
4539
4540     $ac_path_EGREP_found && break 3
4541   done
4542 done
4543
4544 done
4545 IFS=$as_save_IFS
4546
4547
4548 fi
4549
4550 EGREP="$ac_cv_path_EGREP"
4551 if test -z "$EGREP"; then
4552   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4553 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4554    { (exit 1); exit 1; }; }
4555 fi
4556
4557 else
4558   ac_cv_path_EGREP=$EGREP
4559 fi
4560
4561
4562    fi
4563 fi
4564 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4565 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4566  EGREP="$ac_cv_path_EGREP"
4567
4568
4569 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4570 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4571 if test "${ac_cv_header_stdc+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 #include <stdlib.h>
4581 #include <stdarg.h>
4582 #include <string.h>
4583 #include <float.h>
4584
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600   (eval "$ac_compile") 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } && {
4607          test -z "$ac_c_werror_flag" ||
4608          test ! -s conftest.err
4609        } && test -s conftest.$ac_objext; then
4610   ac_cv_header_stdc=yes
4611 else
4612   echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615         ac_cv_header_stdc=no
4616 fi
4617
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619
4620 if test $ac_cv_header_stdc = yes; then
4621   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622   cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h.  */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h.  */
4628 #include <string.h>
4629
4630 _ACEOF
4631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632   $EGREP "memchr" >/dev/null 2>&1; then
4633   :
4634 else
4635   ac_cv_header_stdc=no
4636 fi
4637 rm -f conftest*
4638
4639 fi
4640
4641 if test $ac_cv_header_stdc = yes; then
4642   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4643   cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 #include <stdlib.h>
4650
4651 _ACEOF
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653   $EGREP "free" >/dev/null 2>&1; then
4654   :
4655 else
4656   ac_cv_header_stdc=no
4657 fi
4658 rm -f conftest*
4659
4660 fi
4661
4662 if test $ac_cv_header_stdc = yes; then
4663   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4664   if test "$cross_compiling" = yes; then
4665   :
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 #include <ctype.h>
4674 #include <stdlib.h>
4675 #if ((' ' & 0x0FF) == 0x020)
4676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4678 #else
4679 # define ISLOWER(c) \
4680                    (('a' <= (c) && (c) <= 'i') \
4681                      || ('j' <= (c) && (c) <= 'r') \
4682                      || ('s' <= (c) && (c) <= 'z'))
4683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4684 #endif
4685
4686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4687 int
4688 main ()
4689 {
4690   int i;
4691   for (i = 0; i < 256; i++)
4692     if (XOR (islower (i), ISLOWER (i))
4693         || toupper (i) != TOUPPER (i))
4694       return 2;
4695   return 0;
4696 }
4697 _ACEOF
4698 rm -f conftest$ac_exeext
4699 if { (ac_try="$ac_link"
4700 case "(($ac_try" in
4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702   *) ac_try_echo=$ac_try;;
4703 esac
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705   (eval "$ac_link") 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4709   { (case "(($ac_try" in
4710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711   *) ac_try_echo=$ac_try;;
4712 esac
4713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714   (eval "$ac_try") 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }; }; then
4718   :
4719 else
4720   echo "$as_me: program exited with status $ac_status" >&5
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 ( exit $ac_status )
4725 ac_cv_header_stdc=no
4726 fi
4727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4728 fi
4729
4730
4731 fi
4732 fi
4733 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4734 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4735 if test $ac_cv_header_stdc = yes; then
4736
4737 cat >>confdefs.h <<\_ACEOF
4738 #define STDC_HEADERS 1
4739 _ACEOF
4740
4741 fi
4742
4743 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4754                   inttypes.h stdint.h unistd.h
4755 do
4756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4760   echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762   cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 $ac_includes_default
4769
4770 #include <$ac_header>
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (ac_try="$ac_compile"
4774 case "(($ac_try" in
4775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776   *) ac_try_echo=$ac_try;;
4777 esac
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779   (eval "$ac_compile") 2>conftest.er1
4780   ac_status=$?
4781   grep -v '^ *+' conftest.er1 >conftest.err
4782   rm -f conftest.er1
4783   cat conftest.err >&5
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } && {
4786          test -z "$ac_c_werror_flag" ||
4787          test ! -s conftest.err
4788        } && test -s conftest.$ac_objext; then
4789   eval "$as_ac_Header=yes"
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794         eval "$as_ac_Header=no"
4795 fi
4796
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 ac_res=`eval echo '${'$as_ac_Header'}'`
4800                { echo "$as_me:$LINENO: result: $ac_res" >&5
4801 echo "${ECHO_T}$ac_res" >&6; }
4802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4803   cat >>confdefs.h <<_ACEOF
4804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4805 _ACEOF
4806
4807 fi
4808
4809 done
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822 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
4823 do
4824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4826   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 fi
4831 ac_res=`eval echo '${'$as_ac_Header'}'`
4832                { echo "$as_me:$LINENO: result: $ac_res" >&5
4833 echo "${ECHO_T}$ac_res" >&6; }
4834 else
4835   # Is the header compilable?
4836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844 $ac_includes_default
4845 #include <$ac_header>
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4849 case "(($ac_try" in
4850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851   *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854   (eval "$ac_compile") 2>conftest.er1
4855   ac_status=$?
4856   grep -v '^ *+' conftest.er1 >conftest.err
4857   rm -f conftest.er1
4858   cat conftest.err >&5
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } && {
4861          test -z "$ac_c_werror_flag" ||
4862          test ! -s conftest.err
4863        } && test -s conftest.$ac_objext; then
4864   ac_header_compiler=yes
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869         ac_header_compiler=no
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4874 echo "${ECHO_T}$ac_header_compiler" >&6; }
4875
4876 # Is the header present?
4877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h.  */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h.  */
4885 #include <$ac_header>
4886 _ACEOF
4887 if { (ac_try="$ac_cpp conftest.$ac_ext"
4888 case "(($ac_try" in
4889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890   *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894   ac_status=$?
4895   grep -v '^ *+' conftest.er1 >conftest.err
4896   rm -f conftest.er1
4897   cat conftest.err >&5
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); } >/dev/null && {
4900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901          test ! -s conftest.err
4902        }; then
4903   ac_header_preproc=yes
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908   ac_header_preproc=no
4909 fi
4910
4911 rm -f conftest.err conftest.$ac_ext
4912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4913 echo "${ECHO_T}$ac_header_preproc" >&6; }
4914
4915 # So?  What about this header?
4916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4917   yes:no: )
4918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4922     ac_header_preproc=yes
4923     ;;
4924   no:yes:* )
4925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4937
4938     ;;
4939 esac
4940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   eval "$as_ac_Header=\$ac_header_preproc"
4946 fi
4947 ac_res=`eval echo '${'$as_ac_Header'}'`
4948                { echo "$as_me:$LINENO: result: $ac_res" >&5
4949 echo "${ECHO_T}$ac_res" >&6; }
4950
4951 fi
4952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4953   cat >>confdefs.h <<_ACEOF
4954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4955 _ACEOF
4956
4957 fi
4958
4959 done
4960
4961
4962 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4963 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4964 if test "${ac_cv_c_bigendian+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   # See if sys/param.h defines the BYTE_ORDER macro.
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h.  */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h.  */
4974 #include <sys/types.h>
4975 #include <sys/param.h>
4976
4977 int
4978 main ()
4979 {
4980 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4981         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4982  bogus endian macros
4983 #endif
4984
4985   ;
4986   return 0;
4987 }
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (ac_try="$ac_compile"
4991 case "(($ac_try" in
4992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993   *) ac_try_echo=$ac_try;;
4994 esac
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996   (eval "$ac_compile") 2>conftest.er1
4997   ac_status=$?
4998   grep -v '^ *+' conftest.er1 >conftest.err
4999   rm -f conftest.er1
5000   cat conftest.err >&5
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } && {
5003          test -z "$ac_c_werror_flag" ||
5004          test ! -s conftest.err
5005        } && test -s conftest.$ac_objext; then
5006   # It does; now see whether it defined to BIG_ENDIAN or not.
5007 cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #include <sys/types.h>
5014 #include <sys/param.h>
5015
5016 int
5017 main ()
5018 {
5019 #if BYTE_ORDER != BIG_ENDIAN
5020  not big endian
5021 #endif
5022
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5029 case "(($ac_try" in
5030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031   *) ac_try_echo=$ac_try;;
5032 esac
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034   (eval "$ac_compile") 2>conftest.er1
5035   ac_status=$?
5036   grep -v '^ *+' conftest.er1 >conftest.err
5037   rm -f conftest.er1
5038   cat conftest.err >&5
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } && {
5041          test -z "$ac_c_werror_flag" ||
5042          test ! -s conftest.err
5043        } && test -s conftest.$ac_objext; then
5044   ac_cv_c_bigendian=yes
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049         ac_cv_c_bigendian=no
5050 fi
5051
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057         # It does not; compile a test program.
5058 if test "$cross_compiling" = yes; then
5059   # try to guess the endianness by grepping values into an object file
5060   ac_cv_c_bigendian=unknown
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5068 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5069 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5070 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5071 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5072 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5073 int
5074 main ()
5075 {
5076  _ascii (); _ebcdic ();
5077   ;
5078   return 0;
5079 }
5080 _ACEOF
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5083 case "(($ac_try" in
5084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085   *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088   (eval "$ac_compile") 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } && {
5095          test -z "$ac_c_werror_flag" ||
5096          test ! -s conftest.err
5097        } && test -s conftest.$ac_objext; then
5098   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5099   ac_cv_c_bigendian=yes
5100 fi
5101 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5102   if test "$ac_cv_c_bigendian" = unknown; then
5103     ac_cv_c_bigendian=no
5104   else
5105     # finding both strings is unlikely to happen, but who knows?
5106     ac_cv_c_bigendian=unknown
5107   fi
5108 fi
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113
5114 fi
5115
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 else
5118   cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 $ac_includes_default
5125 int
5126 main ()
5127 {
5128
5129   /* Are we little or big endian?  From Harbison&Steele.  */
5130   union
5131   {
5132     long int l;
5133     char c[sizeof (long int)];
5134   } u;
5135   u.l = 1;
5136   return u.c[sizeof (long int) - 1] == 1;
5137
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest$ac_exeext
5143 if { (ac_try="$ac_link"
5144 case "(($ac_try" in
5145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146   *) ac_try_echo=$ac_try;;
5147 esac
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149   (eval "$ac_link") 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5153   { (case "(($ac_try" in
5154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155   *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158   (eval "$ac_try") 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); }; }; then
5162   ac_cv_c_bigendian=no
5163 else
5164   echo "$as_me: program exited with status $ac_status" >&5
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 ( exit $ac_status )
5169 ac_cv_c_bigendian=yes
5170 fi
5171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5172 fi
5173
5174
5175 fi
5176
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 fi
5179 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5180 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5181 case $ac_cv_c_bigendian in
5182   yes)
5183
5184 cat >>confdefs.h <<\_ACEOF
5185 #define WORDS_BIGENDIAN 1
5186 _ACEOF
5187  ;;
5188   no)
5189      ;;
5190   *)
5191     { { echo "$as_me:$LINENO: error: unknown endianness
5192 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5193 echo "$as_me: error: unknown endianness
5194 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5195    { (exit 1); exit 1; }; } ;;
5196 esac
5197
5198 { echo "$as_me:$LINENO: checking for size_t" >&5
5199 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5200 if test "${ac_cv_type_size_t+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 $ac_includes_default
5210 typedef size_t ac__type_new_;
5211 int
5212 main ()
5213 {
5214 if ((ac__type_new_ *) 0)
5215   return 0;
5216 if (sizeof (ac__type_new_))
5217   return 0;
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5224 case "(($ac_try" in
5225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226   *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229   (eval "$ac_compile") 2>conftest.er1
5230   ac_status=$?
5231   grep -v '^ *+' conftest.er1 >conftest.err
5232   rm -f conftest.er1
5233   cat conftest.err >&5
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } && {
5236          test -z "$ac_c_werror_flag" ||
5237          test ! -s conftest.err
5238        } && test -s conftest.$ac_objext; then
5239   ac_cv_type_size_t=yes
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244         ac_cv_type_size_t=no
5245 fi
5246
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 fi
5249 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5250 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5251 if test $ac_cv_type_size_t = yes; then
5252   :
5253 else
5254
5255 cat >>confdefs.h <<_ACEOF
5256 #define size_t unsigned int
5257 _ACEOF
5258
5259 fi
5260
5261 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5262 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5263 if test "${ac_cv_header_time+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h.  */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h.  */
5272 #include <sys/types.h>
5273 #include <sys/time.h>
5274 #include <time.h>
5275
5276 int
5277 main ()
5278 {
5279 if ((struct tm *) 0)
5280 return 0;
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 rm -f conftest.$ac_objext
5286 if { (ac_try="$ac_compile"
5287 case "(($ac_try" in
5288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289   *) ac_try_echo=$ac_try;;
5290 esac
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292   (eval "$ac_compile") 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } && {
5299          test -z "$ac_c_werror_flag" ||
5300          test ! -s conftest.err
5301        } && test -s conftest.$ac_objext; then
5302   ac_cv_header_time=yes
5303 else
5304   echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307         ac_cv_header_time=no
5308 fi
5309
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 fi
5312 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5313 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5314 if test $ac_cv_header_time = yes; then
5315
5316 cat >>confdefs.h <<\_ACEOF
5317 #define TIME_WITH_SYS_TIME 1
5318 _ACEOF
5319
5320 fi
5321
5322 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5323 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5324 if test "${ac_cv_struct_tm+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 #include <sys/types.h>
5334 #include <time.h>
5335
5336 int
5337 main ()
5338 {
5339 struct tm tm;
5340                                      int *p = &tm.tm_sec;
5341                                      return !p;
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_compile") 2>conftest.er1
5354   ac_status=$?
5355   grep -v '^ *+' conftest.er1 >conftest.err
5356   rm -f conftest.er1
5357   cat conftest.err >&5
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } && {
5360          test -z "$ac_c_werror_flag" ||
5361          test ! -s conftest.err
5362        } && test -s conftest.$ac_objext; then
5363   ac_cv_struct_tm=time.h
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368         ac_cv_struct_tm=sys/time.h
5369 fi
5370
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5374 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5375 if test $ac_cv_struct_tm = sys/time.h; then
5376
5377 cat >>confdefs.h <<\_ACEOF
5378 #define TM_IN_SYS_TIME 1
5379 _ACEOF
5380
5381 fi
5382
5383 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5384 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5385 if test "${ac_cv_type_uid_t+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h.  */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h.  */
5394 #include <sys/types.h>
5395
5396 _ACEOF
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398   $EGREP "uid_t" >/dev/null 2>&1; then
5399   ac_cv_type_uid_t=yes
5400 else
5401   ac_cv_type_uid_t=no
5402 fi
5403 rm -f conftest*
5404
5405 fi
5406 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5407 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5408 if test $ac_cv_type_uid_t = no; then
5409
5410 cat >>confdefs.h <<\_ACEOF
5411 #define uid_t int
5412 _ACEOF
5413
5414
5415 cat >>confdefs.h <<\_ACEOF
5416 #define gid_t int
5417 _ACEOF
5418
5419 fi
5420
5421 { echo "$as_me:$LINENO: checking for short" >&5
5422 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5423 if test "${ac_cv_type_short+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 $ac_includes_default
5433 typedef short ac__type_new_;
5434 int
5435 main ()
5436 {
5437 if ((ac__type_new_ *) 0)
5438   return 0;
5439 if (sizeof (ac__type_new_))
5440   return 0;
5441   ;
5442   return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449   *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452   (eval "$ac_compile") 2>conftest.er1
5453   ac_status=$?
5454   grep -v '^ *+' conftest.er1 >conftest.err
5455   rm -f conftest.er1
5456   cat conftest.err >&5
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); } && {
5459          test -z "$ac_c_werror_flag" ||
5460          test ! -s conftest.err
5461        } && test -s conftest.$ac_objext; then
5462   ac_cv_type_short=yes
5463 else
5464   echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467         ac_cv_type_short=no
5468 fi
5469
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5473 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5474
5475 # The cast to long int works around a bug in the HP C Compiler
5476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5478 # This bug is HP SR number 8606223364.
5479 { echo "$as_me:$LINENO: checking size of short" >&5
5480 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5481 if test "${ac_cv_sizeof_short+set}" = set; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484   if test "$cross_compiling" = yes; then
5485   # Depending upon the size, compute the lo and hi bounds.
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h.  */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h.  */
5492 $ac_includes_default
5493    typedef short ac__type_sizeof_;
5494 int
5495 main ()
5496 {
5497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5498 test_array [0] = 0
5499
5500   ;
5501   return 0;
5502 }
5503 _ACEOF
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5506 case "(($ac_try" in
5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508   *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511   (eval "$ac_compile") 2>conftest.er1
5512   ac_status=$?
5513   grep -v '^ *+' conftest.er1 >conftest.err
5514   rm -f conftest.er1
5515   cat conftest.err >&5
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); } && {
5518          test -z "$ac_c_werror_flag" ||
5519          test ! -s conftest.err
5520        } && test -s conftest.$ac_objext; then
5521   ac_lo=0 ac_mid=0
5522   while :; do
5523     cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529 $ac_includes_default
5530    typedef short ac__type_sizeof_;
5531 int
5532 main ()
5533 {
5534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5535 test_array [0] = 0
5536
5537   ;
5538   return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5543 case "(($ac_try" in
5544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545   *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548   (eval "$ac_compile") 2>conftest.er1
5549   ac_status=$?
5550   grep -v '^ *+' conftest.er1 >conftest.err
5551   rm -f conftest.er1
5552   cat conftest.err >&5
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); } && {
5555          test -z "$ac_c_werror_flag" ||
5556          test ! -s conftest.err
5557        } && test -s conftest.$ac_objext; then
5558   ac_hi=$ac_mid; break
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563         ac_lo=`expr $ac_mid + 1`
5564                         if test $ac_lo -le $ac_mid; then
5565                           ac_lo= ac_hi=
5566                           break
5567                         fi
5568                         ac_mid=`expr 2 '*' $ac_mid + 1`
5569 fi
5570
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572   done
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577         cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h.  */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h.  */
5583 $ac_includes_default
5584    typedef short ac__type_sizeof_;
5585 int
5586 main ()
5587 {
5588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5589 test_array [0] = 0
5590
5591   ;
5592   return 0;
5593 }
5594 _ACEOF
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5597 case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602   (eval "$ac_compile") 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } && {
5609          test -z "$ac_c_werror_flag" ||
5610          test ! -s conftest.err
5611        } && test -s conftest.$ac_objext; then
5612   ac_hi=-1 ac_mid=-1
5613   while :; do
5614     cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 $ac_includes_default
5621    typedef short ac__type_sizeof_;
5622 int
5623 main ()
5624 {
5625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5626 test_array [0] = 0
5627
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (ac_try="$ac_compile"
5634 case "(($ac_try" in
5635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636   *) ac_try_echo=$ac_try;;
5637 esac
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639   (eval "$ac_compile") 2>conftest.er1
5640   ac_status=$?
5641   grep -v '^ *+' conftest.er1 >conftest.err
5642   rm -f conftest.er1
5643   cat conftest.err >&5
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } && {
5646          test -z "$ac_c_werror_flag" ||
5647          test ! -s conftest.err
5648        } && test -s conftest.$ac_objext; then
5649   ac_lo=$ac_mid; break
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654         ac_hi=`expr '(' $ac_mid ')' - 1`
5655                         if test $ac_mid -le $ac_hi; then
5656                           ac_lo= ac_hi=
5657                           break
5658                         fi
5659                         ac_mid=`expr 2 '*' $ac_mid`
5660 fi
5661
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663   done
5664 else
5665   echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5667
5668         ac_lo= ac_hi=
5669 fi
5670
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 # Binary search between lo and hi bounds.
5676 while test "x$ac_lo" != "x$ac_hi"; do
5677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5678   cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h.  */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h.  */
5684 $ac_includes_default
5685    typedef short ac__type_sizeof_;
5686 int
5687 main ()
5688 {
5689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5690 test_array [0] = 0
5691
5692   ;
5693   return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_compile") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } && {
5710          test -z "$ac_c_werror_flag" ||
5711          test ! -s conftest.err
5712        } && test -s conftest.$ac_objext; then
5713   ac_hi=$ac_mid
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718         ac_lo=`expr '(' $ac_mid ')' + 1`
5719 fi
5720
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 done
5723 case $ac_lo in
5724 ?*) ac_cv_sizeof_short=$ac_lo;;
5725 '') if test "$ac_cv_type_short" = yes; then
5726      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5727 See \`config.log' for more details." >&5
5728 echo "$as_me: error: cannot compute sizeof (short)
5729 See \`config.log' for more details." >&2;}
5730    { (exit 77); exit 77; }; }
5731    else
5732      ac_cv_sizeof_short=0
5733    fi ;;
5734 esac
5735 else
5736   cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 $ac_includes_default
5743    typedef short ac__type_sizeof_;
5744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5746 #include <stdio.h>
5747 #include <stdlib.h>
5748 int
5749 main ()
5750 {
5751
5752   FILE *f = fopen ("conftest.val", "w");
5753   if (! f)
5754     return 1;
5755   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5756     {
5757       long int i = longval ();
5758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5759         return 1;
5760       fprintf (f, "%ld\n", i);
5761     }
5762   else
5763     {
5764       unsigned long int i = ulongval ();
5765       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5766         return 1;
5767       fprintf (f, "%lu\n", i);
5768     }
5769   return ferror (f) || fclose (f) != 0;
5770
5771   ;
5772   return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest$ac_exeext
5776 if { (ac_try="$ac_link"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_link") 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5786   { (case "(($ac_try" in
5787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788   *) ac_try_echo=$ac_try;;
5789 esac
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791   (eval "$ac_try") 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); }; }; then
5795   ac_cv_sizeof_short=`cat conftest.val`
5796 else
5797   echo "$as_me: program exited with status $ac_status" >&5
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 ( exit $ac_status )
5802 if test "$ac_cv_type_short" = yes; then
5803      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5804 See \`config.log' for more details." >&5
5805 echo "$as_me: error: cannot compute sizeof (short)
5806 See \`config.log' for more details." >&2;}
5807    { (exit 77); exit 77; }; }
5808    else
5809      ac_cv_sizeof_short=0
5810    fi
5811 fi
5812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 rm -f conftest.val
5815 fi
5816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5817 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5818
5819
5820
5821 cat >>confdefs.h <<_ACEOF
5822 #define SIZEOF_SHORT $ac_cv_sizeof_short
5823 _ACEOF
5824
5825
5826 { echo "$as_me:$LINENO: checking for int" >&5
5827 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5828 if test "${ac_cv_type_int+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837 $ac_includes_default
5838 typedef int ac__type_new_;
5839 int
5840 main ()
5841 {
5842 if ((ac__type_new_ *) 0)
5843   return 0;
5844 if (sizeof (ac__type_new_))
5845   return 0;
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (ac_try="$ac_compile"
5852 case "(($ac_try" in
5853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854   *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857   (eval "$ac_compile") 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } && {
5864          test -z "$ac_c_werror_flag" ||
5865          test ! -s conftest.err
5866        } && test -s conftest.$ac_objext; then
5867   ac_cv_type_int=yes
5868 else
5869   echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5871
5872         ac_cv_type_int=no
5873 fi
5874
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5876 fi
5877 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5878 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5879
5880 # The cast to long int works around a bug in the HP C Compiler
5881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5883 # This bug is HP SR number 8606223364.
5884 { echo "$as_me:$LINENO: checking size of int" >&5
5885 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5886 if test "${ac_cv_sizeof_int+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   if test "$cross_compiling" = yes; then
5890   # Depending upon the size, compute the lo and hi bounds.
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 $ac_includes_default
5898    typedef int ac__type_sizeof_;
5899 int
5900 main ()
5901 {
5902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5903 test_array [0] = 0
5904
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (ac_try="$ac_compile"
5911 case "(($ac_try" in
5912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913   *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916   (eval "$ac_compile") 2>conftest.er1
5917   ac_status=$?
5918   grep -v '^ *+' conftest.er1 >conftest.err
5919   rm -f conftest.er1
5920   cat conftest.err >&5
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } && {
5923          test -z "$ac_c_werror_flag" ||
5924          test ! -s conftest.err
5925        } && test -s conftest.$ac_objext; then
5926   ac_lo=0 ac_mid=0
5927   while :; do
5928     cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 $ac_includes_default
5935    typedef int ac__type_sizeof_;
5936 int
5937 main ()
5938 {
5939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5940 test_array [0] = 0
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_compile") 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } && {
5960          test -z "$ac_c_werror_flag" ||
5961          test ! -s conftest.err
5962        } && test -s conftest.$ac_objext; then
5963   ac_hi=$ac_mid; break
5964 else
5965   echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968         ac_lo=`expr $ac_mid + 1`
5969                         if test $ac_lo -le $ac_mid; then
5970                           ac_lo= ac_hi=
5971                           break
5972                         fi
5973                         ac_mid=`expr 2 '*' $ac_mid + 1`
5974 fi
5975
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977   done
5978 else
5979   echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982         cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988 $ac_includes_default
5989    typedef int ac__type_sizeof_;
5990 int
5991 main ()
5992 {
5993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5994 test_array [0] = 0
5995
5996   ;
5997   return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (ac_try="$ac_compile"
6002 case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_compile") 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } && {
6014          test -z "$ac_c_werror_flag" ||
6015          test ! -s conftest.err
6016        } && test -s conftest.$ac_objext; then
6017   ac_hi=-1 ac_mid=-1
6018   while :; do
6019     cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 $ac_includes_default
6026    typedef int ac__type_sizeof_;
6027 int
6028 main ()
6029 {
6030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6031 test_array [0] = 0
6032
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6039 case "(($ac_try" in
6040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041   *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044   (eval "$ac_compile") 2>conftest.er1
6045   ac_status=$?
6046   grep -v '^ *+' conftest.er1 >conftest.err
6047   rm -f conftest.er1
6048   cat conftest.err >&5
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); } && {
6051          test -z "$ac_c_werror_flag" ||
6052          test ! -s conftest.err
6053        } && test -s conftest.$ac_objext; then
6054   ac_lo=$ac_mid; break
6055 else
6056   echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6058
6059         ac_hi=`expr '(' $ac_mid ')' - 1`
6060                         if test $ac_mid -le $ac_hi; then
6061                           ac_lo= ac_hi=
6062                           break
6063                         fi
6064                         ac_mid=`expr 2 '*' $ac_mid`
6065 fi
6066
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068   done
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073         ac_lo= ac_hi=
6074 fi
6075
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 # Binary search between lo and hi bounds.
6081 while test "x$ac_lo" != "x$ac_hi"; do
6082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6083   cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 $ac_includes_default
6090    typedef int ac__type_sizeof_;
6091 int
6092 main ()
6093 {
6094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6095 test_array [0] = 0
6096
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (ac_try="$ac_compile"
6103 case "(($ac_try" in
6104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105   *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108   (eval "$ac_compile") 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } && {
6115          test -z "$ac_c_werror_flag" ||
6116          test ! -s conftest.err
6117        } && test -s conftest.$ac_objext; then
6118   ac_hi=$ac_mid
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123         ac_lo=`expr '(' $ac_mid ')' + 1`
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 done
6128 case $ac_lo in
6129 ?*) ac_cv_sizeof_int=$ac_lo;;
6130 '') if test "$ac_cv_type_int" = yes; then
6131      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6132 See \`config.log' for more details." >&5
6133 echo "$as_me: error: cannot compute sizeof (int)
6134 See \`config.log' for more details." >&2;}
6135    { (exit 77); exit 77; }; }
6136    else
6137      ac_cv_sizeof_int=0
6138    fi ;;
6139 esac
6140 else
6141   cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 $ac_includes_default
6148    typedef int ac__type_sizeof_;
6149 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6150 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6151 #include <stdio.h>
6152 #include <stdlib.h>
6153 int
6154 main ()
6155 {
6156
6157   FILE *f = fopen ("conftest.val", "w");
6158   if (! f)
6159     return 1;
6160   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6161     {
6162       long int i = longval ();
6163       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6164         return 1;
6165       fprintf (f, "%ld\n", i);
6166     }
6167   else
6168     {
6169       unsigned long int i = ulongval ();
6170       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6171         return 1;
6172       fprintf (f, "%lu\n", i);
6173     }
6174   return ferror (f) || fclose (f) != 0;
6175
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest$ac_exeext
6181 if { (ac_try="$ac_link"
6182 case "(($ac_try" in
6183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184   *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187   (eval "$ac_link") 2>&5
6188   ac_status=$?
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6191   { (case "(($ac_try" in
6192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193   *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196   (eval "$ac_try") 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); }; }; then
6200   ac_cv_sizeof_int=`cat conftest.val`
6201 else
6202   echo "$as_me: program exited with status $ac_status" >&5
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ( exit $ac_status )
6207 if test "$ac_cv_type_int" = yes; then
6208      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6209 See \`config.log' for more details." >&5
6210 echo "$as_me: error: cannot compute sizeof (int)
6211 See \`config.log' for more details." >&2;}
6212    { (exit 77); exit 77; }; }
6213    else
6214      ac_cv_sizeof_int=0
6215    fi
6216 fi
6217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6218 fi
6219 rm -f conftest.val
6220 fi
6221 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6222 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6223
6224
6225
6226 cat >>confdefs.h <<_ACEOF
6227 #define SIZEOF_INT $ac_cv_sizeof_int
6228 _ACEOF
6229
6230
6231 { echo "$as_me:$LINENO: checking for long" >&5
6232 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6233 if test "${ac_cv_type_long+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 $ac_includes_default
6243 typedef long ac__type_new_;
6244 int
6245 main ()
6246 {
6247 if ((ac__type_new_ *) 0)
6248   return 0;
6249 if (sizeof (ac__type_new_))
6250   return 0;
6251   ;
6252   return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6257 case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_compile") 2>conftest.er1
6263   ac_status=$?
6264   grep -v '^ *+' conftest.er1 >conftest.err
6265   rm -f conftest.er1
6266   cat conftest.err >&5
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } && {
6269          test -z "$ac_c_werror_flag" ||
6270          test ! -s conftest.err
6271        } && test -s conftest.$ac_objext; then
6272   ac_cv_type_long=yes
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277         ac_cv_type_long=no
6278 fi
6279
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 fi
6282 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6283 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6284
6285 # The cast to long int works around a bug in the HP C Compiler
6286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6288 # This bug is HP SR number 8606223364.
6289 { echo "$as_me:$LINENO: checking size of long" >&5
6290 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6291 if test "${ac_cv_sizeof_long+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   if test "$cross_compiling" = yes; then
6295   # Depending upon the size, compute the lo and hi bounds.
6296 cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 $ac_includes_default
6303    typedef long ac__type_sizeof_;
6304 int
6305 main ()
6306 {
6307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6308 test_array [0] = 0
6309
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318   *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321   (eval "$ac_compile") 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } && {
6328          test -z "$ac_c_werror_flag" ||
6329          test ! -s conftest.err
6330        } && test -s conftest.$ac_objext; then
6331   ac_lo=0 ac_mid=0
6332   while :; do
6333     cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 $ac_includes_default
6340    typedef long ac__type_sizeof_;
6341 int
6342 main ()
6343 {
6344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6345 test_array [0] = 0
6346
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355   *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358   (eval "$ac_compile") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } && {
6365          test -z "$ac_c_werror_flag" ||
6366          test ! -s conftest.err
6367        } && test -s conftest.$ac_objext; then
6368   ac_hi=$ac_mid; break
6369 else
6370   echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373         ac_lo=`expr $ac_mid + 1`
6374                         if test $ac_lo -le $ac_mid; then
6375                           ac_lo= ac_hi=
6376                           break
6377                         fi
6378                         ac_mid=`expr 2 '*' $ac_mid + 1`
6379 fi
6380
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382   done
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387         cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393 $ac_includes_default
6394    typedef long ac__type_sizeof_;
6395 int
6396 main ()
6397 {
6398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6399 test_array [0] = 0
6400
6401   ;
6402   return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412   (eval "$ac_compile") 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } && {
6419          test -z "$ac_c_werror_flag" ||
6420          test ! -s conftest.err
6421        } && test -s conftest.$ac_objext; then
6422   ac_hi=-1 ac_mid=-1
6423   while :; do
6424     cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h.  */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h.  */
6430 $ac_includes_default
6431    typedef long ac__type_sizeof_;
6432 int
6433 main ()
6434 {
6435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6436 test_array [0] = 0
6437
6438   ;
6439   return 0;
6440 }
6441 _ACEOF
6442 rm -f conftest.$ac_objext
6443 if { (ac_try="$ac_compile"
6444 case "(($ac_try" in
6445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446   *) ac_try_echo=$ac_try;;
6447 esac
6448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449   (eval "$ac_compile") 2>conftest.er1
6450   ac_status=$?
6451   grep -v '^ *+' conftest.er1 >conftest.err
6452   rm -f conftest.er1
6453   cat conftest.err >&5
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } && {
6456          test -z "$ac_c_werror_flag" ||
6457          test ! -s conftest.err
6458        } && test -s conftest.$ac_objext; then
6459   ac_lo=$ac_mid; break
6460 else
6461   echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6463
6464         ac_hi=`expr '(' $ac_mid ')' - 1`
6465                         if test $ac_mid -le $ac_hi; then
6466                           ac_lo= ac_hi=
6467                           break
6468                         fi
6469                         ac_mid=`expr 2 '*' $ac_mid`
6470 fi
6471
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473   done
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478         ac_lo= ac_hi=
6479 fi
6480
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 fi
6483
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 # Binary search between lo and hi bounds.
6486 while test "x$ac_lo" != "x$ac_hi"; do
6487   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6488   cat >conftest.$ac_ext <<_ACEOF
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 $ac_includes_default
6495    typedef long ac__type_sizeof_;
6496 int
6497 main ()
6498 {
6499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6500 test_array [0] = 0
6501
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6508 case "(($ac_try" in
6509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510   *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513   (eval "$ac_compile") 2>conftest.er1
6514   ac_status=$?
6515   grep -v '^ *+' conftest.er1 >conftest.err
6516   rm -f conftest.er1
6517   cat conftest.err >&5
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } && {
6520          test -z "$ac_c_werror_flag" ||
6521          test ! -s conftest.err
6522        } && test -s conftest.$ac_objext; then
6523   ac_hi=$ac_mid
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528         ac_lo=`expr '(' $ac_mid ')' + 1`
6529 fi
6530
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 done
6533 case $ac_lo in
6534 ?*) ac_cv_sizeof_long=$ac_lo;;
6535 '') if test "$ac_cv_type_long" = yes; then
6536      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6537 See \`config.log' for more details." >&5
6538 echo "$as_me: error: cannot compute sizeof (long)
6539 See \`config.log' for more details." >&2;}
6540    { (exit 77); exit 77; }; }
6541    else
6542      ac_cv_sizeof_long=0
6543    fi ;;
6544 esac
6545 else
6546   cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 $ac_includes_default
6553    typedef long ac__type_sizeof_;
6554 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6555 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6556 #include <stdio.h>
6557 #include <stdlib.h>
6558 int
6559 main ()
6560 {
6561
6562   FILE *f = fopen ("conftest.val", "w");
6563   if (! f)
6564     return 1;
6565   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6566     {
6567       long int i = longval ();
6568       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6569         return 1;
6570       fprintf (f, "%ld\n", i);
6571     }
6572   else
6573     {
6574       unsigned long int i = ulongval ();
6575       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6576         return 1;
6577       fprintf (f, "%lu\n", i);
6578     }
6579   return ferror (f) || fclose (f) != 0;
6580
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 rm -f conftest$ac_exeext
6586 if { (ac_try="$ac_link"
6587 case "(($ac_try" in
6588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589   *) ac_try_echo=$ac_try;;
6590 esac
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592   (eval "$ac_link") 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6596   { (case "(($ac_try" in
6597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598   *) ac_try_echo=$ac_try;;
6599 esac
6600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601   (eval "$ac_try") 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; }; then
6605   ac_cv_sizeof_long=`cat conftest.val`
6606 else
6607   echo "$as_me: program exited with status $ac_status" >&5
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ( exit $ac_status )
6612 if test "$ac_cv_type_long" = yes; then
6613      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6614 See \`config.log' for more details." >&5
6615 echo "$as_me: error: cannot compute sizeof (long)
6616 See \`config.log' for more details." >&2;}
6617    { (exit 77); exit 77; }; }
6618    else
6619      ac_cv_sizeof_long=0
6620    fi
6621 fi
6622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6623 fi
6624 rm -f conftest.val
6625 fi
6626 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6627 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6628
6629
6630
6631 cat >>confdefs.h <<_ACEOF
6632 #define SIZEOF_LONG $ac_cv_sizeof_long
6633 _ACEOF
6634
6635
6636 { echo "$as_me:$LINENO: checking for void *" >&5
6637 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6638 if test "${ac_cv_type_void_p+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h.  */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h.  */
6647 $ac_includes_default
6648 typedef void * ac__type_new_;
6649 int
6650 main ()
6651 {
6652 if ((ac__type_new_ *) 0)
6653   return 0;
6654 if (sizeof (ac__type_new_))
6655   return 0;
6656   ;
6657   return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (ac_try="$ac_compile"
6662 case "(($ac_try" in
6663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664   *) ac_try_echo=$ac_try;;
6665 esac
6666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6667   (eval "$ac_compile") 2>conftest.er1
6668   ac_status=$?
6669   grep -v '^ *+' conftest.er1 >conftest.err
6670   rm -f conftest.er1
6671   cat conftest.err >&5
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); } && {
6674          test -z "$ac_c_werror_flag" ||
6675          test ! -s conftest.err
6676        } && test -s conftest.$ac_objext; then
6677   ac_cv_type_void_p=yes
6678 else
6679   echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6681
6682         ac_cv_type_void_p=no
6683 fi
6684
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 fi
6687 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6688 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
6689
6690 # The cast to long int works around a bug in the HP C Compiler
6691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6693 # This bug is HP SR number 8606223364.
6694 { echo "$as_me:$LINENO: checking size of void *" >&5
6695 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
6696 if test "${ac_cv_sizeof_void_p+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   if test "$cross_compiling" = yes; then
6700   # Depending upon the size, compute the lo and hi bounds.
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707 $ac_includes_default
6708    typedef void * ac__type_sizeof_;
6709 int
6710 main ()
6711 {
6712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6713 test_array [0] = 0
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6721 case "(($ac_try" in
6722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723   *) ac_try_echo=$ac_try;;
6724 esac
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726   (eval "$ac_compile") 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } && {
6733          test -z "$ac_c_werror_flag" ||
6734          test ! -s conftest.err
6735        } && test -s conftest.$ac_objext; then
6736   ac_lo=0 ac_mid=0
6737   while :; do
6738     cat >conftest.$ac_ext <<_ACEOF
6739 /* confdefs.h.  */
6740 _ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h.  */
6744 $ac_includes_default
6745    typedef void * ac__type_sizeof_;
6746 int
6747 main ()
6748 {
6749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6750 test_array [0] = 0
6751
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (ac_try="$ac_compile"
6758 case "(($ac_try" in
6759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760   *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763   (eval "$ac_compile") 2>conftest.er1
6764   ac_status=$?
6765   grep -v '^ *+' conftest.er1 >conftest.err
6766   rm -f conftest.er1
6767   cat conftest.err >&5
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); } && {
6770          test -z "$ac_c_werror_flag" ||
6771          test ! -s conftest.err
6772        } && test -s conftest.$ac_objext; then
6773   ac_hi=$ac_mid; break
6774 else
6775   echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778         ac_lo=`expr $ac_mid + 1`
6779                         if test $ac_lo -le $ac_mid; then
6780                           ac_lo= ac_hi=
6781                           break
6782                         fi
6783                         ac_mid=`expr 2 '*' $ac_mid + 1`
6784 fi
6785
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787   done
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792         cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 $ac_includes_default
6799    typedef void * ac__type_sizeof_;
6800 int
6801 main ()
6802 {
6803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6804 test_array [0] = 0
6805
6806   ;
6807   return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (ac_try="$ac_compile"
6812 case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817   (eval "$ac_compile") 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } && {
6824          test -z "$ac_c_werror_flag" ||
6825          test ! -s conftest.err
6826        } && test -s conftest.$ac_objext; then
6827   ac_hi=-1 ac_mid=-1
6828   while :; do
6829     cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h.  */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h.  */
6835 $ac_includes_default
6836    typedef void * ac__type_sizeof_;
6837 int
6838 main ()
6839 {
6840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6841 test_array [0] = 0
6842
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 rm -f conftest.$ac_objext
6848 if { (ac_try="$ac_compile"
6849 case "(($ac_try" in
6850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851   *) ac_try_echo=$ac_try;;
6852 esac
6853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6854   (eval "$ac_compile") 2>conftest.er1
6855   ac_status=$?
6856   grep -v '^ *+' conftest.er1 >conftest.err
6857   rm -f conftest.er1
6858   cat conftest.err >&5
6859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860   (exit $ac_status); } && {
6861          test -z "$ac_c_werror_flag" ||
6862          test ! -s conftest.err
6863        } && test -s conftest.$ac_objext; then
6864   ac_lo=$ac_mid; break
6865 else
6866   echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6868
6869         ac_hi=`expr '(' $ac_mid ')' - 1`
6870                         if test $ac_mid -le $ac_hi; then
6871                           ac_lo= ac_hi=
6872                           break
6873                         fi
6874                         ac_mid=`expr 2 '*' $ac_mid`
6875 fi
6876
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878   done
6879 else
6880   echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883         ac_lo= ac_hi=
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 # Binary search between lo and hi bounds.
6891 while test "x$ac_lo" != "x$ac_hi"; do
6892   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6893   cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h.  */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h.  */
6899 $ac_includes_default
6900    typedef void * ac__type_sizeof_;
6901 int
6902 main ()
6903 {
6904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6905 test_array [0] = 0
6906
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext
6912 if { (ac_try="$ac_compile"
6913 case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918   (eval "$ac_compile") 2>conftest.er1
6919   ac_status=$?
6920   grep -v '^ *+' conftest.er1 >conftest.err
6921   rm -f conftest.er1
6922   cat conftest.err >&5
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); } && {
6925          test -z "$ac_c_werror_flag" ||
6926          test ! -s conftest.err
6927        } && test -s conftest.$ac_objext; then
6928   ac_hi=$ac_mid
6929 else
6930   echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933         ac_lo=`expr '(' $ac_mid ')' + 1`
6934 fi
6935
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 done
6938 case $ac_lo in
6939 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6940 '') if test "$ac_cv_type_void_p" = yes; then
6941      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6942 See \`config.log' for more details." >&5
6943 echo "$as_me: error: cannot compute sizeof (void *)
6944 See \`config.log' for more details." >&2;}
6945    { (exit 77); exit 77; }; }
6946    else
6947      ac_cv_sizeof_void_p=0
6948    fi ;;
6949 esac
6950 else
6951   cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957 $ac_includes_default
6958    typedef void * ac__type_sizeof_;
6959 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6960 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6961 #include <stdio.h>
6962 #include <stdlib.h>
6963 int
6964 main ()
6965 {
6966
6967   FILE *f = fopen ("conftest.val", "w");
6968   if (! f)
6969     return 1;
6970   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6971     {
6972       long int i = longval ();
6973       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6974         return 1;
6975       fprintf (f, "%ld\n", i);
6976     }
6977   else
6978     {
6979       unsigned long int i = ulongval ();
6980       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6981         return 1;
6982       fprintf (f, "%lu\n", i);
6983     }
6984   return ferror (f) || fclose (f) != 0;
6985
6986   ;
6987   return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997   (eval "$ac_link") 2>&5
6998   ac_status=$?
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001   { (case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006   (eval "$ac_try") 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010   ac_cv_sizeof_void_p=`cat conftest.val`
7011 else
7012   echo "$as_me: program exited with status $ac_status" >&5
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 ( exit $ac_status )
7017 if test "$ac_cv_type_void_p" = yes; then
7018      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7019 See \`config.log' for more details." >&5
7020 echo "$as_me: error: cannot compute sizeof (void *)
7021 See \`config.log' for more details." >&2;}
7022    { (exit 77); exit 77; }; }
7023    else
7024      ac_cv_sizeof_void_p=0
7025    fi
7026 fi
7027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7028 fi
7029 rm -f conftest.val
7030 fi
7031 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7032 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7033
7034
7035
7036 cat >>confdefs.h <<_ACEOF
7037 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7038 _ACEOF
7039
7040
7041 { echo "$as_me:$LINENO: checking for int64_t" >&5
7042 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7043 if test "${ac_cv_type_int64_t+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052 $ac_includes_default
7053 typedef int64_t ac__type_new_;
7054 int
7055 main ()
7056 {
7057 if ((ac__type_new_ *) 0)
7058   return 0;
7059 if (sizeof (ac__type_new_))
7060   return 0;
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7067 case "(($ac_try" in
7068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069   *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072   (eval "$ac_compile") 2>conftest.er1
7073   ac_status=$?
7074   grep -v '^ *+' conftest.er1 >conftest.err
7075   rm -f conftest.er1
7076   cat conftest.err >&5
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } && {
7079          test -z "$ac_c_werror_flag" ||
7080          test ! -s conftest.err
7081        } && test -s conftest.$ac_objext; then
7082   ac_cv_type_int64_t=yes
7083 else
7084   echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087         ac_cv_type_int64_t=no
7088 fi
7089
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 fi
7092 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7093 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7094
7095 # The cast to long int works around a bug in the HP C Compiler
7096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7098 # This bug is HP SR number 8606223364.
7099 { echo "$as_me:$LINENO: checking size of int64_t" >&5
7100 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
7101 if test "${ac_cv_sizeof_int64_t+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   if test "$cross_compiling" = yes; then
7105   # Depending upon the size, compute the lo and hi bounds.
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 $ac_includes_default
7113    typedef int64_t ac__type_sizeof_;
7114 int
7115 main ()
7116 {
7117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7118 test_array [0] = 0
7119
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7126 case "(($ac_try" in
7127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128   *) ac_try_echo=$ac_try;;
7129 esac
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131   (eval "$ac_compile") 2>conftest.er1
7132   ac_status=$?
7133   grep -v '^ *+' conftest.er1 >conftest.err
7134   rm -f conftest.er1
7135   cat conftest.err >&5
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } && {
7138          test -z "$ac_c_werror_flag" ||
7139          test ! -s conftest.err
7140        } && test -s conftest.$ac_objext; then
7141   ac_lo=0 ac_mid=0
7142   while :; do
7143     cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 $ac_includes_default
7150    typedef int64_t ac__type_sizeof_;
7151 int
7152 main ()
7153 {
7154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7155 test_array [0] = 0
7156
7157   ;
7158   return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest.$ac_objext
7162 if { (ac_try="$ac_compile"
7163 case "(($ac_try" in
7164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165   *) ac_try_echo=$ac_try;;
7166 esac
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168   (eval "$ac_compile") 2>conftest.er1
7169   ac_status=$?
7170   grep -v '^ *+' conftest.er1 >conftest.err
7171   rm -f conftest.er1
7172   cat conftest.err >&5
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } && {
7175          test -z "$ac_c_werror_flag" ||
7176          test ! -s conftest.err
7177        } && test -s conftest.$ac_objext; then
7178   ac_hi=$ac_mid; break
7179 else
7180   echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183         ac_lo=`expr $ac_mid + 1`
7184                         if test $ac_lo -le $ac_mid; then
7185                           ac_lo= ac_hi=
7186                           break
7187                         fi
7188                         ac_mid=`expr 2 '*' $ac_mid + 1`
7189 fi
7190
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192   done
7193 else
7194   echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197         cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 $ac_includes_default
7204    typedef int64_t ac__type_sizeof_;
7205 int
7206 main ()
7207 {
7208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7209 test_array [0] = 0
7210
7211   ;
7212   return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7217 case "(($ac_try" in
7218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219   *) ac_try_echo=$ac_try;;
7220 esac
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222   (eval "$ac_compile") 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } && {
7229          test -z "$ac_c_werror_flag" ||
7230          test ! -s conftest.err
7231        } && test -s conftest.$ac_objext; then
7232   ac_hi=-1 ac_mid=-1
7233   while :; do
7234     cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h.  */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h.  */
7240 $ac_includes_default
7241    typedef int64_t ac__type_sizeof_;
7242 int
7243 main ()
7244 {
7245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7246 test_array [0] = 0
7247
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256   *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259   (eval "$ac_compile") 2>conftest.er1
7260   ac_status=$?
7261   grep -v '^ *+' conftest.er1 >conftest.err
7262   rm -f conftest.er1
7263   cat conftest.err >&5
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); } && {
7266          test -z "$ac_c_werror_flag" ||
7267          test ! -s conftest.err
7268        } && test -s conftest.$ac_objext; then
7269   ac_lo=$ac_mid; break
7270 else
7271   echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274         ac_hi=`expr '(' $ac_mid ')' - 1`
7275                         if test $ac_mid -le $ac_hi; then
7276                           ac_lo= ac_hi=
7277                           break
7278                         fi
7279                         ac_mid=`expr 2 '*' $ac_mid`
7280 fi
7281
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7283   done
7284 else
7285   echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288         ac_lo= ac_hi=
7289 fi
7290
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 fi
7293
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 # Binary search between lo and hi bounds.
7296 while test "x$ac_lo" != "x$ac_hi"; do
7297   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7298   cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 $ac_includes_default
7305    typedef int64_t ac__type_sizeof_;
7306 int
7307 main ()
7308 {
7309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7310 test_array [0] = 0
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320   *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323   (eval "$ac_compile") 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } && {
7330          test -z "$ac_c_werror_flag" ||
7331          test ! -s conftest.err
7332        } && test -s conftest.$ac_objext; then
7333   ac_hi=$ac_mid
7334 else
7335   echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338         ac_lo=`expr '(' $ac_mid ')' + 1`
7339 fi
7340
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 done
7343 case $ac_lo in
7344 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7345 '') if test "$ac_cv_type_int64_t" = yes; then
7346      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7347 See \`config.log' for more details." >&5
7348 echo "$as_me: error: cannot compute sizeof (int64_t)
7349 See \`config.log' for more details." >&2;}
7350    { (exit 77); exit 77; }; }
7351    else
7352      ac_cv_sizeof_int64_t=0
7353    fi ;;
7354 esac
7355 else
7356   cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h.  */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h.  */
7362 $ac_includes_default
7363    typedef int64_t ac__type_sizeof_;
7364 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7365 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7366 #include <stdio.h>
7367 #include <stdlib.h>
7368 int
7369 main ()
7370 {
7371
7372   FILE *f = fopen ("conftest.val", "w");
7373   if (! f)
7374     return 1;
7375   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7376     {
7377       long int i = longval ();
7378       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7379         return 1;
7380       fprintf (f, "%ld\n", i);
7381     }
7382   else
7383     {
7384       unsigned long int i = ulongval ();
7385       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7386         return 1;
7387       fprintf (f, "%lu\n", i);
7388     }
7389   return ferror (f) || fclose (f) != 0;
7390
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7397 case "(($ac_try" in
7398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399   *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402   (eval "$ac_link") 2>&5
7403   ac_status=$?
7404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7406   { (case "(($ac_try" in
7407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408   *) ac_try_echo=$ac_try;;
7409 esac
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411   (eval "$ac_try") 2>&5
7412   ac_status=$?
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); }; }; then
7415   ac_cv_sizeof_int64_t=`cat conftest.val`
7416 else
7417   echo "$as_me: program exited with status $ac_status" >&5
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421 ( exit $ac_status )
7422 if test "$ac_cv_type_int64_t" = yes; then
7423      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7424 See \`config.log' for more details." >&5
7425 echo "$as_me: error: cannot compute sizeof (int64_t)
7426 See \`config.log' for more details." >&2;}
7427    { (exit 77); exit 77; }; }
7428    else
7429      ac_cv_sizeof_int64_t=0
7430    fi
7431 fi
7432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7433 fi
7434 rm -f conftest.val
7435 fi
7436 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7437 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
7438
7439
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7443 _ACEOF
7444
7445
7446 { echo "$as_me:$LINENO: checking for long long" >&5
7447 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
7448 if test "${ac_cv_type_long_long+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 $ac_includes_default
7458 typedef long long ac__type_new_;
7459 int
7460 main ()
7461 {
7462 if ((ac__type_new_ *) 0)
7463   return 0;
7464 if (sizeof (ac__type_new_))
7465   return 0;
7466   ;
7467   return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7472 case "(($ac_try" in
7473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474   *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477   (eval "$ac_compile") 2>conftest.er1
7478   ac_status=$?
7479   grep -v '^ *+' conftest.er1 >conftest.err
7480   rm -f conftest.er1
7481   cat conftest.err >&5
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } && {
7484          test -z "$ac_c_werror_flag" ||
7485          test ! -s conftest.err
7486        } && test -s conftest.$ac_objext; then
7487   ac_cv_type_long_long=yes
7488 else
7489   echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492         ac_cv_type_long_long=no
7493 fi
7494
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7498 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
7499
7500 # The cast to long int works around a bug in the HP C Compiler
7501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7503 # This bug is HP SR number 8606223364.
7504 { echo "$as_me:$LINENO: checking size of long long" >&5
7505 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
7506 if test "${ac_cv_sizeof_long_long+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   if test "$cross_compiling" = yes; then
7510   # Depending upon the size, compute the lo and hi bounds.
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 $ac_includes_default
7518    typedef long long ac__type_sizeof_;
7519 int
7520 main ()
7521 {
7522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7523 test_array [0] = 0
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533   *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536   (eval "$ac_compile") 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } && {
7543          test -z "$ac_c_werror_flag" ||
7544          test ! -s conftest.err
7545        } && test -s conftest.$ac_objext; then
7546   ac_lo=0 ac_mid=0
7547   while :; do
7548     cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554 $ac_includes_default
7555    typedef long long ac__type_sizeof_;
7556 int
7557 main ()
7558 {
7559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7560 test_array [0] = 0
7561
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7568 case "(($ac_try" in
7569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570   *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573   (eval "$ac_compile") 2>conftest.er1
7574   ac_status=$?
7575   grep -v '^ *+' conftest.er1 >conftest.err
7576   rm -f conftest.er1
7577   cat conftest.err >&5
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } && {
7580          test -z "$ac_c_werror_flag" ||
7581          test ! -s conftest.err
7582        } && test -s conftest.$ac_objext; then
7583   ac_hi=$ac_mid; break
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588         ac_lo=`expr $ac_mid + 1`
7589                         if test $ac_lo -le $ac_mid; then
7590                           ac_lo= ac_hi=
7591                           break
7592                         fi
7593                         ac_mid=`expr 2 '*' $ac_mid + 1`
7594 fi
7595
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597   done
7598 else
7599   echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602         cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608 $ac_includes_default
7609    typedef long long ac__type_sizeof_;
7610 int
7611 main ()
7612 {
7613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7614 test_array [0] = 0
7615
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_compile") 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } && {
7634          test -z "$ac_c_werror_flag" ||
7635          test ! -s conftest.err
7636        } && test -s conftest.$ac_objext; then
7637   ac_hi=-1 ac_mid=-1
7638   while :; do
7639     cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 $ac_includes_default
7646    typedef long long ac__type_sizeof_;
7647 int
7648 main ()
7649 {
7650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7651 test_array [0] = 0
7652
7653   ;
7654   return 0;
7655 }
7656 _ACEOF
7657 rm -f conftest.$ac_objext
7658 if { (ac_try="$ac_compile"
7659 case "(($ac_try" in
7660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661   *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664   (eval "$ac_compile") 2>conftest.er1
7665   ac_status=$?
7666   grep -v '^ *+' conftest.er1 >conftest.err
7667   rm -f conftest.er1
7668   cat conftest.err >&5
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); } && {
7671          test -z "$ac_c_werror_flag" ||
7672          test ! -s conftest.err
7673        } && test -s conftest.$ac_objext; then
7674   ac_lo=$ac_mid; break
7675 else
7676   echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679         ac_hi=`expr '(' $ac_mid ')' - 1`
7680                         if test $ac_mid -le $ac_hi; then
7681                           ac_lo= ac_hi=
7682                           break
7683                         fi
7684                         ac_mid=`expr 2 '*' $ac_mid`
7685 fi
7686
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688   done
7689 else
7690   echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693         ac_lo= ac_hi=
7694 fi
7695
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 fi
7698
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 # Binary search between lo and hi bounds.
7701 while test "x$ac_lo" != "x$ac_hi"; do
7702   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7703   cat >conftest.$ac_ext <<_ACEOF
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709 $ac_includes_default
7710    typedef long long ac__type_sizeof_;
7711 int
7712 main ()
7713 {
7714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7715 test_array [0] = 0
7716
7717   ;
7718   return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7723 case "(($ac_try" in
7724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725   *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728   (eval "$ac_compile") 2>conftest.er1
7729   ac_status=$?
7730   grep -v '^ *+' conftest.er1 >conftest.err
7731   rm -f conftest.er1
7732   cat conftest.err >&5
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); } && {
7735          test -z "$ac_c_werror_flag" ||
7736          test ! -s conftest.err
7737        } && test -s conftest.$ac_objext; then
7738   ac_hi=$ac_mid
7739 else
7740   echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743         ac_lo=`expr '(' $ac_mid ')' + 1`
7744 fi
7745
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 done
7748 case $ac_lo in
7749 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7750 '') if test "$ac_cv_type_long_long" = yes; then
7751      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7752 See \`config.log' for more details." >&5
7753 echo "$as_me: error: cannot compute sizeof (long long)
7754 See \`config.log' for more details." >&2;}
7755    { (exit 77); exit 77; }; }
7756    else
7757      ac_cv_sizeof_long_long=0
7758    fi ;;
7759 esac
7760 else
7761   cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767 $ac_includes_default
7768    typedef long long ac__type_sizeof_;
7769 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7770 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7771 #include <stdio.h>
7772 #include <stdlib.h>
7773 int
7774 main ()
7775 {
7776
7777   FILE *f = fopen ("conftest.val", "w");
7778   if (! f)
7779     return 1;
7780   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7781     {
7782       long int i = longval ();
7783       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7784         return 1;
7785       fprintf (f, "%ld\n", i);
7786     }
7787   else
7788     {
7789       unsigned long int i = ulongval ();
7790       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7791         return 1;
7792       fprintf (f, "%lu\n", i);
7793     }
7794   return ferror (f) || fclose (f) != 0;
7795
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest$ac_exeext
7801 if { (ac_try="$ac_link"
7802 case "(($ac_try" in
7803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804   *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807   (eval "$ac_link") 2>&5
7808   ac_status=$?
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7811   { (case "(($ac_try" in
7812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813   *) ac_try_echo=$ac_try;;
7814 esac
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816   (eval "$ac_try") 2>&5
7817   ac_status=$?
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; }; then
7820   ac_cv_sizeof_long_long=`cat conftest.val`
7821 else
7822   echo "$as_me: program exited with status $ac_status" >&5
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ( exit $ac_status )
7827 if test "$ac_cv_type_long_long" = yes; then
7828      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7829 See \`config.log' for more details." >&5
7830 echo "$as_me: error: cannot compute sizeof (long long)
7831 See \`config.log' for more details." >&2;}
7832    { (exit 77); exit 77; }; }
7833    else
7834      ac_cv_sizeof_long_long=0
7835    fi
7836 fi
7837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7838 fi
7839 rm -f conftest.val
7840 fi
7841 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7842 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
7843
7844
7845
7846 cat >>confdefs.h <<_ACEOF
7847 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7848 _ACEOF
7849
7850
7851 if test "$ac_cv_sizeof_int" = 2 ; then
7852   { echo "$as_me:$LINENO: checking for int16_t" >&5
7853 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7854 if test "${ac_cv_type_int16_t+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h.  */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h.  */
7863 $ac_includes_default
7864 typedef int16_t ac__type_new_;
7865 int
7866 main ()
7867 {
7868 if ((ac__type_new_ *) 0)
7869   return 0;
7870 if (sizeof (ac__type_new_))
7871   return 0;
7872   ;
7873   return 0;
7874 }
7875 _ACEOF
7876 rm -f conftest.$ac_objext
7877 if { (ac_try="$ac_compile"
7878 case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_compile") 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } && {
7890          test -z "$ac_c_werror_flag" ||
7891          test ! -s conftest.err
7892        } && test -s conftest.$ac_objext; then
7893   ac_cv_type_int16_t=yes
7894 else
7895   echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898         ac_cv_type_int16_t=no
7899 fi
7900
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 fi
7903 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7904 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
7905 if test $ac_cv_type_int16_t = yes; then
7906   :
7907 else
7908
7909 cat >>confdefs.h <<_ACEOF
7910 #define int16_t int
7911 _ACEOF
7912
7913 fi
7914
7915   { echo "$as_me:$LINENO: checking for uint16_t" >&5
7916 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7917 if test "${ac_cv_type_uint16_t+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926 $ac_includes_default
7927 typedef uint16_t ac__type_new_;
7928 int
7929 main ()
7930 {
7931 if ((ac__type_new_ *) 0)
7932   return 0;
7933 if (sizeof (ac__type_new_))
7934   return 0;
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7941 case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946   (eval "$ac_compile") 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } && {
7953          test -z "$ac_c_werror_flag" ||
7954          test ! -s conftest.err
7955        } && test -s conftest.$ac_objext; then
7956   ac_cv_type_uint16_t=yes
7957 else
7958   echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961         ac_cv_type_uint16_t=no
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 fi
7966 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7967 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
7968 if test $ac_cv_type_uint16_t = yes; then
7969   :
7970 else
7971
7972 cat >>confdefs.h <<_ACEOF
7973 #define uint16_t unsigned int
7974 _ACEOF
7975
7976 fi
7977
7978 elif test "$ac_cv_sizeof_short" = 2 ; then
7979   { echo "$as_me:$LINENO: checking for int16_t" >&5
7980 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7981 if test "${ac_cv_type_int16_t+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990 $ac_includes_default
7991 typedef int16_t ac__type_new_;
7992 int
7993 main ()
7994 {
7995 if ((ac__type_new_ *) 0)
7996   return 0;
7997 if (sizeof (ac__type_new_))
7998   return 0;
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007   *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010   (eval "$ac_compile") 2>conftest.er1
8011   ac_status=$?
8012   grep -v '^ *+' conftest.er1 >conftest.err
8013   rm -f conftest.er1
8014   cat conftest.err >&5
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); } && {
8017          test -z "$ac_c_werror_flag" ||
8018          test ! -s conftest.err
8019        } && test -s conftest.$ac_objext; then
8020   ac_cv_type_int16_t=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025         ac_cv_type_int16_t=no
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 fi
8030 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8031 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
8032 if test $ac_cv_type_int16_t = yes; then
8033   :
8034 else
8035
8036 cat >>confdefs.h <<_ACEOF
8037 #define int16_t short
8038 _ACEOF
8039
8040 fi
8041
8042   { echo "$as_me:$LINENO: checking for uint16_t" >&5
8043 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8044 if test "${ac_cv_type_uint16_t+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 $ac_includes_default
8054 typedef uint16_t ac__type_new_;
8055 int
8056 main ()
8057 {
8058 if ((ac__type_new_ *) 0)
8059   return 0;
8060 if (sizeof (ac__type_new_))
8061   return 0;
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (ac_try="$ac_compile"
8068 case "(($ac_try" in
8069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070   *) ac_try_echo=$ac_try;;
8071 esac
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073   (eval "$ac_compile") 2>conftest.er1
8074   ac_status=$?
8075   grep -v '^ *+' conftest.er1 >conftest.err
8076   rm -f conftest.er1
8077   cat conftest.err >&5
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } && {
8080          test -z "$ac_c_werror_flag" ||
8081          test ! -s conftest.err
8082        } && test -s conftest.$ac_objext; then
8083   ac_cv_type_uint16_t=yes
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         ac_cv_type_uint16_t=no
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8094 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8095 if test $ac_cv_type_uint16_t = yes; then
8096   :
8097 else
8098
8099 cat >>confdefs.h <<_ACEOF
8100 #define uint16_t unsigned short
8101 _ACEOF
8102
8103 fi
8104
8105 else
8106   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
8107 echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
8108    { (exit 1); exit 1; }; }
8109 fi
8110 if test "$ac_cv_sizeof_int" = 4 ; then
8111   { echo "$as_me:$LINENO: checking for int32_t" >&5
8112 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8113 if test "${ac_cv_type_int32_t+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122 $ac_includes_default
8123 typedef int32_t ac__type_new_;
8124 int
8125 main ()
8126 {
8127 if ((ac__type_new_ *) 0)
8128   return 0;
8129 if (sizeof (ac__type_new_))
8130   return 0;
8131   ;
8132   return 0;
8133 }
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139   *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142   (eval "$ac_compile") 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && {
8149          test -z "$ac_c_werror_flag" ||
8150          test ! -s conftest.err
8151        } && test -s conftest.$ac_objext; then
8152   ac_cv_type_int32_t=yes
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157         ac_cv_type_int32_t=no
8158 fi
8159
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 fi
8162 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8163 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8164 if test $ac_cv_type_int32_t = yes; then
8165   :
8166 else
8167
8168 cat >>confdefs.h <<_ACEOF
8169 #define int32_t int
8170 _ACEOF
8171
8172 fi
8173
8174   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8175 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8176 if test "${ac_cv_type_uint32_t+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185 $ac_includes_default
8186 typedef uint32_t ac__type_new_;
8187 int
8188 main ()
8189 {
8190 if ((ac__type_new_ *) 0)
8191   return 0;
8192 if (sizeof (ac__type_new_))
8193   return 0;
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (ac_try="$ac_compile"
8200 case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_compile") 2>conftest.er1
8206   ac_status=$?
8207   grep -v '^ *+' conftest.er1 >conftest.err
8208   rm -f conftest.er1
8209   cat conftest.err >&5
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } && {
8212          test -z "$ac_c_werror_flag" ||
8213          test ! -s conftest.err
8214        } && test -s conftest.$ac_objext; then
8215   ac_cv_type_uint32_t=yes
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220         ac_cv_type_uint32_t=no
8221 fi
8222
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8226 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8227 if test $ac_cv_type_uint32_t = yes; then
8228   :
8229 else
8230
8231 cat >>confdefs.h <<_ACEOF
8232 #define uint32_t unsigned int
8233 _ACEOF
8234
8235 fi
8236
8237 elif test "$ac_cv_sizeof_short" = 4 ; then
8238   { echo "$as_me:$LINENO: checking for int32_t" >&5
8239 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8240 if test "${ac_cv_type_int32_t+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243   cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h.  */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h.  */
8249 $ac_includes_default
8250 typedef int32_t ac__type_new_;
8251 int
8252 main ()
8253 {
8254 if ((ac__type_new_ *) 0)
8255   return 0;
8256 if (sizeof (ac__type_new_))
8257   return 0;
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } && {
8276          test -z "$ac_c_werror_flag" ||
8277          test ! -s conftest.err
8278        } && test -s conftest.$ac_objext; then
8279   ac_cv_type_int32_t=yes
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         ac_cv_type_int32_t=no
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8290 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8291 if test $ac_cv_type_int32_t = yes; then
8292   :
8293 else
8294
8295 cat >>confdefs.h <<_ACEOF
8296 #define int32_t short
8297 _ACEOF
8298
8299 fi
8300
8301   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8302 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8303 if test "${ac_cv_type_uint32_t+set}" = set; then
8304   echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306   cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312 $ac_includes_default
8313 typedef uint32_t ac__type_new_;
8314 int
8315 main ()
8316 {
8317 if ((ac__type_new_ *) 0)
8318   return 0;
8319 if (sizeof (ac__type_new_))
8320   return 0;
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8327 case "(($ac_try" in
8328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329   *) ac_try_echo=$ac_try;;
8330 esac
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332   (eval "$ac_compile") 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } && {
8339          test -z "$ac_c_werror_flag" ||
8340          test ! -s conftest.err
8341        } && test -s conftest.$ac_objext; then
8342   ac_cv_type_uint32_t=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347         ac_cv_type_uint32_t=no
8348 fi
8349
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8353 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8354 if test $ac_cv_type_uint32_t = yes; then
8355   :
8356 else
8357
8358 cat >>confdefs.h <<_ACEOF
8359 #define uint32_t unsigned short
8360 _ACEOF
8361
8362 fi
8363
8364 elif test "$ac_cv_sizeof_long" = 4 ; then
8365   { echo "$as_me:$LINENO: checking for int32_t" >&5
8366 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8367 if test "${ac_cv_type_int32_t+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376 $ac_includes_default
8377 typedef int32_t ac__type_new_;
8378 int
8379 main ()
8380 {
8381 if ((ac__type_new_ *) 0)
8382   return 0;
8383 if (sizeof (ac__type_new_))
8384   return 0;
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_compile") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } && {
8403          test -z "$ac_c_werror_flag" ||
8404          test ! -s conftest.err
8405        } && test -s conftest.$ac_objext; then
8406   ac_cv_type_int32_t=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411         ac_cv_type_int32_t=no
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 fi
8416 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8417 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8418 if test $ac_cv_type_int32_t = yes; then
8419   :
8420 else
8421
8422 cat >>confdefs.h <<_ACEOF
8423 #define int32_t long
8424 _ACEOF
8425
8426 fi
8427
8428   { echo "$as_me:$LINENO: checking for uint32_t" >&5
8429 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8430 if test "${ac_cv_type_uint32_t+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439 $ac_includes_default
8440 typedef uint32_t ac__type_new_;
8441 int
8442 main ()
8443 {
8444 if ((ac__type_new_ *) 0)
8445   return 0;
8446 if (sizeof (ac__type_new_))
8447   return 0;
8448   ;
8449   return 0;
8450 }
8451 _ACEOF
8452 rm -f conftest.$ac_objext
8453 if { (ac_try="$ac_compile"
8454 case "(($ac_try" in
8455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456   *) ac_try_echo=$ac_try;;
8457 esac
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459   (eval "$ac_compile") 2>conftest.er1
8460   ac_status=$?
8461   grep -v '^ *+' conftest.er1 >conftest.err
8462   rm -f conftest.er1
8463   cat conftest.err >&5
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); } && {
8466          test -z "$ac_c_werror_flag" ||
8467          test ! -s conftest.err
8468        } && test -s conftest.$ac_objext; then
8469   ac_cv_type_uint32_t=yes
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474         ac_cv_type_uint32_t=no
8475 fi
8476
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8480 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8481 if test $ac_cv_type_uint32_t = yes; then
8482   :
8483 else
8484
8485 cat >>confdefs.h <<_ACEOF
8486 #define uint32_t unsigned long
8487 _ACEOF
8488
8489 fi
8490
8491 else
8492   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
8493 echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
8494    { (exit 1); exit 1; }; }
8495 fi
8496 if test "$ac_cv_sizeof_int64_t" = 8 ; then
8497   { echo "$as_me:$LINENO: checking for int64_t" >&5
8498 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8499 if test "${ac_cv_type_int64_t+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508 $ac_includes_default
8509 typedef int64_t ac__type_new_;
8510 int
8511 main ()
8512 {
8513 if ((ac__type_new_ *) 0)
8514   return 0;
8515 if (sizeof (ac__type_new_))
8516   return 0;
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (ac_try="$ac_compile"
8523 case "(($ac_try" in
8524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525   *) ac_try_echo=$ac_try;;
8526 esac
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528   (eval "$ac_compile") 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } && {
8535          test -z "$ac_c_werror_flag" ||
8536          test ! -s conftest.err
8537        } && test -s conftest.$ac_objext; then
8538   ac_cv_type_int64_t=yes
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543         ac_cv_type_int64_t=no
8544 fi
8545
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 fi
8548 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8549 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8550
8551   { echo "$as_me:$LINENO: checking for uint64_t" >&5
8552 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8553 if test "${ac_cv_type_uint64_t+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562 $ac_includes_default
8563 typedef uint64_t ac__type_new_;
8564 int
8565 main ()
8566 {
8567 if ((ac__type_new_ *) 0)
8568   return 0;
8569 if (sizeof (ac__type_new_))
8570   return 0;
8571   ;
8572   return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_compile") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } && {
8589          test -z "$ac_c_werror_flag" ||
8590          test ! -s conftest.err
8591        } && test -s conftest.$ac_objext; then
8592   ac_cv_type_uint64_t=yes
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597         ac_cv_type_uint64_t=no
8598 fi
8599
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 fi
8602 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8603 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8604
8605 elif test "$ac_cv_sizeof_long_long" = 8 ; then
8606   { echo "$as_me:$LINENO: checking for int64_t" >&5
8607 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
8608 if test "${ac_cv_type_int64_t+set}" = set; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617 $ac_includes_default
8618 typedef int64_t ac__type_new_;
8619 int
8620 main ()
8621 {
8622 if ((ac__type_new_ *) 0)
8623   return 0;
8624 if (sizeof (ac__type_new_))
8625   return 0;
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (ac_try="$ac_compile"
8632 case "(($ac_try" in
8633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8634   *) ac_try_echo=$ac_try;;
8635 esac
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637   (eval "$ac_compile") 2>conftest.er1
8638   ac_status=$?
8639   grep -v '^ *+' conftest.er1 >conftest.err
8640   rm -f conftest.er1
8641   cat conftest.err >&5
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); } && {
8644          test -z "$ac_c_werror_flag" ||
8645          test ! -s conftest.err
8646        } && test -s conftest.$ac_objext; then
8647   ac_cv_type_int64_t=yes
8648 else
8649   echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8651
8652         ac_cv_type_int64_t=no
8653 fi
8654
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 fi
8657 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
8658 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
8659 if test $ac_cv_type_int64_t = yes; then
8660   :
8661 else
8662
8663 cat >>confdefs.h <<_ACEOF
8664 #define int64_t long long
8665 _ACEOF
8666
8667 fi
8668
8669   { echo "$as_me:$LINENO: checking for uint64_t" >&5
8670 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
8671 if test "${ac_cv_type_uint64_t+set}" = set; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674   cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h.  */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h.  */
8680 $ac_includes_default
8681 typedef uint64_t ac__type_new_;
8682 int
8683 main ()
8684 {
8685 if ((ac__type_new_ *) 0)
8686   return 0;
8687 if (sizeof (ac__type_new_))
8688   return 0;
8689   ;
8690   return 0;
8691 }
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_compile") 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } && {
8707          test -z "$ac_c_werror_flag" ||
8708          test ! -s conftest.err
8709        } && test -s conftest.$ac_objext; then
8710   ac_cv_type_uint64_t=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715         ac_cv_type_uint64_t=no
8716 fi
8717
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 fi
8720 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8721 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
8722 if test $ac_cv_type_uint64_t = yes; then
8723   :
8724 else
8725
8726 cat >>confdefs.h <<_ACEOF
8727 #define uint64_t unsigned long long
8728 _ACEOF
8729
8730 fi
8731
8732 else
8733   { { echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
8734 echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
8735    { (exit 1); exit 1; }; }
8736 fi
8737 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
8738 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
8739 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748 #include <sys/types.h>
8749 #include <netinet/in.h>
8750
8751 typedef struct sockaddr_in6 ac__type_new_;
8752 int
8753 main ()
8754 {
8755 if ((ac__type_new_ *) 0)
8756   return 0;
8757 if (sizeof (ac__type_new_))
8758   return 0;
8759   ;
8760   return 0;
8761 }
8762 _ACEOF
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8765 case "(($ac_try" in
8766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767   *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770   (eval "$ac_compile") 2>conftest.er1
8771   ac_status=$?
8772   grep -v '^ *+' conftest.er1 >conftest.err
8773   rm -f conftest.er1
8774   cat conftest.err >&5
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } && {
8777          test -z "$ac_c_werror_flag" ||
8778          test ! -s conftest.err
8779        } && test -s conftest.$ac_objext; then
8780   ac_cv_type_struct_sockaddr_in6=yes
8781 else
8782   echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785         ac_cv_type_struct_sockaddr_in6=no
8786 fi
8787
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 fi
8790 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
8791 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
8792 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
8793   unet_have_sockaddr_in6="yes"
8794 else
8795   unet_have_sockaddr_in6="no"
8796 fi
8797
8798
8799 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8800 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8801 if test "${ac_cv_type_socklen_t+set}" = set; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 #include <sys/types.h>
8811 #include<sys/socket.h>
8812
8813 typedef socklen_t ac__type_new_;
8814 int
8815 main ()
8816 {
8817 if ((ac__type_new_ *) 0)
8818   return 0;
8819 if (sizeof (ac__type_new_))
8820   return 0;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8827 case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_compile") 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } && {
8839          test -z "$ac_c_werror_flag" ||
8840          test ! -s conftest.err
8841        } && test -s conftest.$ac_objext; then
8842   ac_cv_type_socklen_t=yes
8843 else
8844   echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847         ac_cv_type_socklen_t=no
8848 fi
8849
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 fi
8852 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8853 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8854 if test $ac_cv_type_socklen_t = yes; then
8855   :
8856 else
8857
8858   { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8859 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8860   if test "${curl_cv_socklen_t_equiv+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863
8864     curl_cv_socklen_t_equiv=
8865     for arg2 in "struct sockaddr" void ; do
8866       for t in int size_t unsigned long "unsigned long" ; do
8867         cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 #include <sys/types.h>
8874 #include <sys/socket.h>
8875 int getpeername (int $arg2 *, $t *);
8876 int
8877 main ()
8878 {
8879 $t len;
8880   getpeername(0, 0, &len);
8881   ;
8882   return 0;
8883 }
8884 _ACEOF
8885 rm -f conftest.$ac_objext
8886 if { (ac_try="$ac_compile"
8887 case "(($ac_try" in
8888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889   *) ac_try_echo=$ac_try;;
8890 esac
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892   (eval "$ac_compile") 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } && {
8899          test -z "$ac_c_werror_flag" ||
8900          test ! -s conftest.err
8901        } && test -s conftest.$ac_objext; then
8902   curl_cv_socklen_t_equiv="$t"
8903   break
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908
8909 fi
8910
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912       done
8913     done
8914
8915 fi
8916
8917   { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
8918 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
8919
8920 cat >>confdefs.h <<_ACEOF
8921 #define socklen_t $curl_cv_socklen_t_equiv
8922 _ACEOF
8923
8924 fi
8925
8926
8927
8928
8929
8930
8931 for ac_func in kqueue setrlimit getrusage times
8932 do
8933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939   cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h.  */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h.  */
8945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8947 #define $ac_func innocuous_$ac_func
8948
8949 /* System header to define __stub macros and hopefully few prototypes,
8950     which can conflict with char $ac_func (); below.
8951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8952     <limits.h> exists even on freestanding compilers.  */
8953
8954 #ifdef __STDC__
8955 # include <limits.h>
8956 #else
8957 # include <assert.h>
8958 #endif
8959
8960 #undef $ac_func
8961
8962 /* Override any GCC internal prototype to avoid an error.
8963    Use char because int might match the return type of a GCC
8964    builtin and then its argument prototype would still apply.  */
8965 #ifdef __cplusplus
8966 extern "C"
8967 #endif
8968 char $ac_func ();
8969 /* The GNU C library defines this for functions which it implements
8970     to always fail with ENOSYS.  Some functions are actually named
8971     something starting with __ and the normal name is an alias.  */
8972 #if defined __stub_$ac_func || defined __stub___$ac_func
8973 choke me
8974 #endif
8975
8976 int
8977 main ()
8978 {
8979 return $ac_func ();
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (ac_try="$ac_link"
8986 case "(($ac_try" in
8987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988   *) ac_try_echo=$ac_try;;
8989 esac
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991   (eval "$ac_link") 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } && {
8998          test -z "$ac_c_werror_flag" ||
8999          test ! -s conftest.err
9000        } && test -s conftest$ac_exeext &&
9001        $as_test_x conftest$ac_exeext; then
9002   eval "$as_ac_var=yes"
9003 else
9004   echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007         eval "$as_ac_var=no"
9008 fi
9009
9010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9011       conftest$ac_exeext conftest.$ac_ext
9012 fi
9013 ac_res=`eval echo '${'$as_ac_var'}'`
9014                { echo "$as_me:$LINENO: result: $ac_res" >&5
9015 echo "${ECHO_T}$ac_res" >&6; }
9016 if test `eval echo '${'$as_ac_var'}'` = yes; then
9017   cat >>confdefs.h <<_ACEOF
9018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9019 _ACEOF
9020
9021 fi
9022 done
9023
9024
9025 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9026 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9027 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036 #include <sys/types.h>
9037 #include <sys/wait.h>
9038 #ifndef WEXITSTATUS
9039 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9040 #endif
9041 #ifndef WIFEXITED
9042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9043 #endif
9044
9045 int
9046 main ()
9047 {
9048   int s;
9049   wait (&s);
9050   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (ac_try="$ac_compile"
9057 case "(($ac_try" in
9058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059   *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062   (eval "$ac_compile") 2>conftest.er1
9063   ac_status=$?
9064   grep -v '^ *+' conftest.er1 >conftest.err
9065   rm -f conftest.er1
9066   cat conftest.err >&5
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } && {
9069          test -z "$ac_c_werror_flag" ||
9070          test ! -s conftest.err
9071        } && test -s conftest.$ac_objext; then
9072   ac_cv_header_sys_wait_h=yes
9073 else
9074   echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077         ac_cv_header_sys_wait_h=no
9078 fi
9079
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 fi
9082 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9083 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9084 if test $ac_cv_header_sys_wait_h = yes; then
9085
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_SYS_WAIT_H 1
9088 _ACEOF
9089
9090 fi
9091
9092 { echo "$as_me:$LINENO: checking for restartable system calls" >&5
9093 echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6; }
9094 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097   if test "$cross_compiling" = yes; then
9098   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9099 See \`config.log' for more details." >&5
9100 echo "$as_me: error: cannot run test program while cross compiling
9101 See \`config.log' for more details." >&2;}
9102    { (exit 1); exit 1; }; }
9103 else
9104   cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110 /* Exit 0 (true) if wait returns something other than -1,
9111    i.e. the pid of the child, which means that wait was restarted
9112    after getting the signal.  */
9113
9114 $ac_includes_default
9115 #include <signal.h>
9116 #ifdef HAVE_SYS_WAIT_H
9117 # include <sys/wait.h>
9118 #endif
9119
9120 /* Some platforms explicitly require an extern "C" signal handler
9121    when using C++. */
9122 #ifdef __cplusplus
9123 extern "C" void ucatch (int dummy) { }
9124 #else
9125 void ucatch (dummy) int dummy; { }
9126 #endif
9127
9128 int
9129 main ()
9130 {
9131   int i = fork (), status;
9132
9133   if (i == 0)
9134     {
9135       sleep (3);
9136       kill (getppid (), SIGINT);
9137       sleep (3);
9138       return 0;
9139     }
9140
9141   signal (SIGINT, ucatch);
9142
9143   status = wait (&i);
9144   if (status == -1)
9145     wait (&i);
9146
9147   return status == -1;
9148 }
9149 _ACEOF
9150 rm -f conftest$ac_exeext
9151 if { (ac_try="$ac_link"
9152 case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157   (eval "$ac_link") 2>&5
9158   ac_status=$?
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9161   { (case "(($ac_try" in
9162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163   *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166   (eval "$ac_try") 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; }; then
9170   ac_cv_sys_restartable_syscalls=yes
9171 else
9172   echo "$as_me: program exited with status $ac_status" >&5
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176 ( exit $ac_status )
9177 ac_cv_sys_restartable_syscalls=no
9178 fi
9179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9180 fi
9181
9182
9183 fi
9184 { echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
9185 echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6; }
9186 if test $ac_cv_sys_restartable_syscalls = yes; then
9187
9188 cat >>confdefs.h <<\_ACEOF
9189 #define HAVE_RESTARTABLE_SYSCALLS 1
9190 _ACEOF
9191
9192 fi
9193
9194
9195 { echo "$as_me:$LINENO: checking for donuts" >&5
9196 echo $ECHO_N "checking for donuts... $ECHO_C" >&6; }
9197 { echo "$as_me:$LINENO: result: yes" >&5
9198 echo "${ECHO_T}yes" >&6; }
9199
9200 for ac_prog in gawk mawk nawk awk
9201 do
9202   # Extract the first word of "$ac_prog", so it can be a program name with args.
9203 set dummy $ac_prog; ac_word=$2
9204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9206 if test "${ac_cv_prog_AWK+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   if test -n "$AWK"; then
9210   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9211 else
9212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 for as_dir in $PATH
9214 do
9215   IFS=$as_save_IFS
9216   test -z "$as_dir" && as_dir=.
9217   for ac_exec_ext in '' $ac_executable_extensions; do
9218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9219     ac_cv_prog_AWK="$ac_prog"
9220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9221     break 2
9222   fi
9223 done
9224 done
9225 IFS=$as_save_IFS
9226
9227 fi
9228 fi
9229 AWK=$ac_cv_prog_AWK
9230 if test -n "$AWK"; then
9231   { echo "$as_me:$LINENO: result: $AWK" >&5
9232 echo "${ECHO_T}$AWK" >&6; }
9233 else
9234   { echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6; }
9236 fi
9237
9238
9239   test -n "$AWK" && break
9240 done
9241
9242 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9243 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9244 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9245 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9246   echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248   cat >conftest.make <<\_ACEOF
9249 SHELL = /bin/sh
9250 all:
9251         @echo '@@@%%%=$(MAKE)=@@@%%%'
9252 _ACEOF
9253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9254 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9255   *@@@%%%=?*=@@@%%%*)
9256     eval ac_cv_prog_make_${ac_make}_set=yes;;
9257   *)
9258     eval ac_cv_prog_make_${ac_make}_set=no;;
9259 esac
9260 rm -f conftest.make
9261 fi
9262 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9263   { echo "$as_me:$LINENO: result: yes" >&5
9264 echo "${ECHO_T}yes" >&6; }
9265   SET_MAKE=
9266 else
9267   { echo "$as_me:$LINENO: result: no" >&5
9268 echo "${ECHO_T}no" >&6; }
9269   SET_MAKE="MAKE=${MAKE-make}"
9270 fi
9271
9272 # Find a good install program.  We prefer a C program (faster),
9273 # so one script is as good as another.  But avoid the broken or
9274 # incompatible versions:
9275 # SysV /etc/install, /usr/sbin/install
9276 # SunOS /usr/etc/install
9277 # IRIX /sbin/install
9278 # AIX /bin/install
9279 # AmigaOS /C/install, which installs bootblocks on floppy discs
9280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9283 # OS/2's system install, which has a completely different semantic
9284 # ./install, which can be erroneously created by make from ./install.sh.
9285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
9287 if test -z "$INSTALL"; then
9288 if test "${ac_cv_path_install+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294   IFS=$as_save_IFS
9295   test -z "$as_dir" && as_dir=.
9296   # Account for people who put trailing slashes in PATH elements.
9297 case $as_dir/ in
9298   ./ | .// | /cC/* | \
9299   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9300   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9301   /usr/ucb/* ) ;;
9302   *)
9303     # OSF1 and SCO ODT 3.0 have their own names for install.
9304     # Don't use installbsd from OSF since it installs stuff as root
9305     # by default.
9306     for ac_prog in ginstall scoinst install; do
9307       for ac_exec_ext in '' $ac_executable_extensions; do
9308         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9309           if test $ac_prog = install &&
9310             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9311             # AIX install.  It has an incompatible calling convention.
9312             :
9313           elif test $ac_prog = install &&
9314             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9315             # program-specific install script used by HP pwplus--don't use.
9316             :
9317           else
9318             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9319             break 3
9320           fi
9321         fi
9322       done
9323     done
9324     ;;
9325 esac
9326 done
9327 IFS=$as_save_IFS
9328
9329
9330 fi
9331   if test "${ac_cv_path_install+set}" = set; then
9332     INSTALL=$ac_cv_path_install
9333   else
9334     # As a last resort, use the slow shell script.  Don't cache a
9335     # value for INSTALL within a source directory, because that will
9336     # break other packages using the cache if that directory is
9337     # removed, or if the value is a relative name.
9338     INSTALL=$ac_install_sh
9339   fi
9340 fi
9341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9342 echo "${ECHO_T}$INSTALL" >&6; }
9343
9344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9345 # It thinks the first close brace ends the variable substitution.
9346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9347
9348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9349
9350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9351
9352 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
9353 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
9354 LN_S=$as_ln_s
9355 if test "$LN_S" = "ln -s"; then
9356   { echo "$as_me:$LINENO: result: yes" >&5
9357 echo "${ECHO_T}yes" >&6; }
9358 else
9359   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9360 echo "${ECHO_T}no, using $LN_S" >&6; }
9361 fi
9362
9363 for ac_prog in rm
9364 do
9365   # Extract the first word of "$ac_prog", so it can be a program name with args.
9366 set dummy $ac_prog; ac_word=$2
9367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9369 if test "${ac_cv_path_RMPROG+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   case $RMPROG in
9373   [\\/]* | ?:[\\/]*)
9374   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
9375   ;;
9376   *)
9377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9379 do
9380   IFS=$as_save_IFS
9381   test -z "$as_dir" && as_dir=.
9382   for ac_exec_ext in '' $ac_executable_extensions; do
9383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
9385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9386     break 2
9387   fi
9388 done
9389 done
9390 IFS=$as_save_IFS
9391
9392   ;;
9393 esac
9394 fi
9395 RMPROG=$ac_cv_path_RMPROG
9396 if test -n "$RMPROG"; then
9397   { echo "$as_me:$LINENO: result: $RMPROG" >&5
9398 echo "${ECHO_T}$RMPROG" >&6; }
9399 else
9400   { echo "$as_me:$LINENO: result: no" >&5
9401 echo "${ECHO_T}no" >&6; }
9402 fi
9403
9404
9405   test -n "$RMPROG" && break
9406 done
9407 test -n "$RMPROG" || RMPROG="/bin/rm"
9408
9409 for ac_prog in sh
9410 do
9411   # Extract the first word of "$ac_prog", so it can be a program name with args.
9412 set dummy $ac_prog; ac_word=$2
9413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9415 if test "${ac_cv_path_SHPROG+set}" = set; then
9416   echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418   case $SHPROG in
9419   [\\/]* | ?:[\\/]*)
9420   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
9421   ;;
9422   *)
9423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9425 do
9426   IFS=$as_save_IFS
9427   test -z "$as_dir" && as_dir=.
9428   for ac_exec_ext in '' $ac_executable_extensions; do
9429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
9431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9432     break 2
9433   fi
9434 done
9435 done
9436 IFS=$as_save_IFS
9437
9438   ;;
9439 esac
9440 fi
9441 SHPROG=$ac_cv_path_SHPROG
9442 if test -n "$SHPROG"; then
9443   { echo "$as_me:$LINENO: result: $SHPROG" >&5
9444 echo "${ECHO_T}$SHPROG" >&6; }
9445 else
9446   { echo "$as_me:$LINENO: result: no" >&5
9447 echo "${ECHO_T}no" >&6; }
9448 fi
9449
9450
9451   test -n "$SHPROG" && break
9452 done
9453 test -n "$SHPROG" || SHPROG="/bin/sh"
9454
9455
9456 for ac_prog in flex lex
9457 do
9458   # Extract the first word of "$ac_prog", so it can be a program name with args.
9459 set dummy $ac_prog; ac_word=$2
9460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9462 if test "${ac_cv_prog_LEX+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   if test -n "$LEX"; then
9466   ac_cv_prog_LEX="$LEX" # Let the user override the test.
9467 else
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9470 do
9471   IFS=$as_save_IFS
9472   test -z "$as_dir" && as_dir=.
9473   for ac_exec_ext in '' $ac_executable_extensions; do
9474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475     ac_cv_prog_LEX="$ac_prog"
9476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9477     break 2
9478   fi
9479 done
9480 done
9481 IFS=$as_save_IFS
9482
9483 fi
9484 fi
9485 LEX=$ac_cv_prog_LEX
9486 if test -n "$LEX"; then
9487   { echo "$as_me:$LINENO: result: $LEX" >&5
9488 echo "${ECHO_T}$LEX" >&6; }
9489 else
9490   { echo "$as_me:$LINENO: result: no" >&5
9491 echo "${ECHO_T}no" >&6; }
9492 fi
9493
9494
9495   test -n "$LEX" && break
9496 done
9497 test -n "$LEX" || LEX=":"
9498
9499 if test "x$LEX" != "x:"; then
9500   cat >conftest.l <<_ACEOF
9501 %%
9502 a { ECHO; }
9503 b { REJECT; }
9504 c { yymore (); }
9505 d { yyless (1); }
9506 e { yyless (input () != 0); }
9507 f { unput (yytext[0]); }
9508 . { BEGIN INITIAL; }
9509 %%
9510 #ifdef YYTEXT_POINTER
9511 extern char *yytext;
9512 #endif
9513 int
9514 main (void)
9515 {
9516   return ! yylex () + ! yywrap ();
9517 }
9518 _ACEOF
9519 { (ac_try="$LEX conftest.l"
9520 case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525   (eval "$LEX conftest.l") 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }
9529 { echo "$as_me:$LINENO: checking lex output file root" >&5
9530 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
9531 if test "${ac_cv_prog_lex_root+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534
9535 if test -f lex.yy.c; then
9536   ac_cv_prog_lex_root=lex.yy
9537 elif test -f lexyy.c; then
9538   ac_cv_prog_lex_root=lexyy
9539 else
9540   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
9541 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
9542    { (exit 1); exit 1; }; }
9543 fi
9544 fi
9545 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
9546 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
9547 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9548
9549 if test -z "${LEXLIB+set}"; then
9550   { echo "$as_me:$LINENO: checking lex library" >&5
9551 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
9552 if test "${ac_cv_lib_lex+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555
9556     ac_save_LIBS=$LIBS
9557     ac_cv_lib_lex='none needed'
9558     for ac_lib in '' -lfl -ll; do
9559       LIBS="$ac_lib $ac_save_LIBS"
9560       cat >conftest.$ac_ext <<_ACEOF
9561 `cat $LEX_OUTPUT_ROOT.c`
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9565 case "(($ac_try" in
9566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567   *) ac_try_echo=$ac_try;;
9568 esac
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570   (eval "$ac_link") 2>conftest.er1
9571   ac_status=$?
9572   grep -v '^ *+' conftest.er1 >conftest.err
9573   rm -f conftest.er1
9574   cat conftest.err >&5
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } && {
9577          test -z "$ac_c_werror_flag" ||
9578          test ! -s conftest.err
9579        } && test -s conftest$ac_exeext &&
9580        $as_test_x conftest$ac_exeext; then
9581   ac_cv_lib_lex=$ac_lib
9582 else
9583   echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586
9587 fi
9588
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590       conftest$ac_exeext conftest.$ac_ext
9591       test "$ac_cv_lib_lex" != 'none needed' && break
9592     done
9593     LIBS=$ac_save_LIBS
9594
9595 fi
9596 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
9597 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
9598   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9599 fi
9600
9601
9602 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
9603 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
9604 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607   # POSIX says lex can declare yytext either as a pointer or an array; the
9608 # default is implementation-dependent.  Figure out which it is, since
9609 # not all implementations provide the %pointer and %array declarations.
9610 ac_cv_prog_lex_yytext_pointer=no
9611 ac_save_LIBS=$LIBS
9612 LIBS="$LEXLIB $ac_save_LIBS"
9613 cat >conftest.$ac_ext <<_ACEOF
9614 #define YYTEXT_POINTER 1
9615 `cat $LEX_OUTPUT_ROOT.c`
9616 _ACEOF
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9619 case "(($ac_try" in
9620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621   *) ac_try_echo=$ac_try;;
9622 esac
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624   (eval "$ac_link") 2>conftest.er1
9625   ac_status=$?
9626   grep -v '^ *+' conftest.er1 >conftest.err
9627   rm -f conftest.er1
9628   cat conftest.err >&5
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } && {
9631          test -z "$ac_c_werror_flag" ||
9632          test ! -s conftest.err
9633        } && test -s conftest$ac_exeext &&
9634        $as_test_x conftest$ac_exeext; then
9635   ac_cv_prog_lex_yytext_pointer=yes
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640
9641 fi
9642
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644       conftest$ac_exeext conftest.$ac_ext
9645 LIBS=$ac_save_LIBS
9646
9647 fi
9648 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9649 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
9650 if test $ac_cv_prog_lex_yytext_pointer = yes; then
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define YYTEXT_POINTER 1
9654 _ACEOF
9655
9656 fi
9657 rm -f conftest.l $LEX_OUTPUT_ROOT.c
9658
9659 fi
9660 if test "$LEX" = ":" ; then
9661   { { echo "$as_me:$LINENO: error: Cannot find flex." >&5
9662 echo "$as_me: error: Cannot find flex." >&2;}
9663    { (exit 1); exit 1; }; }
9664 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
9665   :
9666 else
9667   { { echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
9668 echo "$as_me: error: Cannot use $LEX as flex." >&2;}
9669    { (exit 1); exit 1; }; }
9670 fi
9671
9672 if test -z "$LEXLIB" ; then
9673   { { echo "$as_me:$LINENO: error: Cannot find a library with yywrap() in, but flex was found.
9674   It's possible the compiler you're using ($CC) is incompatible with the
9675   installed library.
9676 See \`config.log' for more details." >&5
9677 echo "$as_me: error: Cannot find a library with yywrap() in, but flex was found.
9678   It's possible the compiler you're using ($CC) is incompatible with the
9679   installed library.
9680 See \`config.log' for more details." >&2;}
9681    { (exit 1); exit 1; }; }
9682 fi
9683
9684 LIBS="$LEXLIB $LIBS"
9685
9686 for ac_prog in 'bison -y' byacc
9687 do
9688   # Extract the first word of "$ac_prog", so it can be a program name with args.
9689 set dummy $ac_prog; ac_word=$2
9690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9692 if test "${ac_cv_prog_YACC+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   if test -n "$YACC"; then
9696   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9697 else
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9700 do
9701   IFS=$as_save_IFS
9702   test -z "$as_dir" && as_dir=.
9703   for ac_exec_ext in '' $ac_executable_extensions; do
9704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9705     ac_cv_prog_YACC="$ac_prog"
9706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707     break 2
9708   fi
9709 done
9710 done
9711 IFS=$as_save_IFS
9712
9713 fi
9714 fi
9715 YACC=$ac_cv_prog_YACC
9716 if test -n "$YACC"; then
9717   { echo "$as_me:$LINENO: result: $YACC" >&5
9718 echo "${ECHO_T}$YACC" >&6; }
9719 else
9720   { echo "$as_me:$LINENO: result: no" >&5
9721 echo "${ECHO_T}no" >&6; }
9722 fi
9723
9724
9725   test -n "$YACC" && break
9726 done
9727 test -n "$YACC" || YACC="yacc"
9728
9729 if test "$YACC" = ":" ; then
9730   { { echo "$as_me:$LINENO: error: Cannot find yacc." >&5
9731 echo "$as_me: error: Cannot find yacc." >&2;}
9732    { (exit 1); exit 1; }; }
9733 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
9734   :
9735 else
9736   { echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
9737 echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
9738 fi
9739
9740 { echo "$as_me:$LINENO: checking for posix non-blocking" >&5
9741 echo $ECHO_N "checking for posix non-blocking... $ECHO_C" >&6; }
9742 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   if test "$cross_compiling" = yes; then
9746   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9747 See \`config.log' for more details." >&5
9748 echo "$as_me: error: cannot run test program while cross compiling
9749 See \`config.log' for more details." >&2;}
9750    { (exit 1); exit 1; }; }
9751 else
9752   cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h.  */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h.  */
9758 #include <sys/types.h>
9759 #include <sys/socket.h>
9760 #include <fcntl.h>
9761 #include <sys/ioctl.h>
9762 #include <sys/file.h>
9763 #include <signal.h>
9764 $ac_cv_type_signal alarmed() { exit(1); }
9765 int main(void)
9766 {
9767   char b[12];
9768   struct sockaddr x;
9769   size_t l = sizeof(x);
9770   int f = socket(AF_INET, SOCK_DGRAM, 0);
9771   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
9772   {
9773     signal(SIGALRM, alarmed);
9774     alarm(2);
9775     recvfrom(f, b, 12, 0, &x, &l);
9776     alarm(0);
9777     exit(0);
9778   }
9779   exit(1);
9780 }
9781 _ACEOF
9782 rm -f conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9784 case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_link") 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9793   { (case "(($ac_try" in
9794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795   *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798   (eval "$ac_try") 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; }; then
9802   unet_cv_sys_nonblocking_posix=yes
9803 else
9804   echo "$as_me: program exited with status $ac_status" >&5
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 ( exit $ac_status )
9809 unet_cv_sys_nonblocking_posix=no
9810 fi
9811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9812 fi
9813
9814
9815 fi
9816 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
9817 echo "${ECHO_T}$unet_cv_sys_nonblocking_posix" >&6; }
9818 if test $unet_cv_sys_nonblocking_posix = yes; then
9819
9820 cat >>confdefs.h <<\_ACEOF
9821 #define NBLOCK_POSIX
9822 _ACEOF
9823
9824 else
9825 { echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
9826 echo $ECHO_N "checking for bsd non-blocking... $ECHO_C" >&6; }
9827 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   if test "$cross_compiling" = yes; then
9831   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9832 See \`config.log' for more details." >&5
9833 echo "$as_me: error: cannot run test program while cross compiling
9834 See \`config.log' for more details." >&2;}
9835    { (exit 1); exit 1; }; }
9836 else
9837   cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h.  */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h.  */
9843 #include <sys/types.h>
9844 #include <sys/socket.h>
9845 #include <fcntl.h>
9846 #include <sys/ioctl.h>
9847 #include <sys/file.h>
9848 #include <signal.h>
9849 $ac_cv_type_signal alarmed() { exit(1); }
9850 int main(void)
9851 {
9852   char b[12];
9853   struct sockaddr x;
9854   size_t l = sizeof(x);
9855   int f = socket(AF_INET, SOCK_DGRAM, 0);
9856   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
9857   {
9858     signal(SIGALRM, alarmed);
9859     alarm(2);
9860     recvfrom(f, b, 12, 0, &x, &l);
9861     alarm(0);
9862     exit(0);
9863   }
9864   exit(1);
9865 }
9866 _ACEOF
9867 rm -f conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9869 case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_link") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; }; then
9887   unet_cv_sys_nonblocking_bsd=yes
9888 else
9889   echo "$as_me: program exited with status $ac_status" >&5
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 ( exit $ac_status )
9894 unet_cv_sys_nonblocking_bsd=no
9895 fi
9896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9897 fi
9898
9899
9900 fi
9901 { echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
9902 echo "${ECHO_T}$unet_cv_sys_nonblocking_bsd" >&6; }
9903 if test $unet_cv_sys_nonblocking_bsd = yes; then
9904
9905 cat >>confdefs.h <<\_ACEOF
9906 #define NBLOCK_BSD
9907 _ACEOF
9908
9909 else
9910
9911 cat >>confdefs.h <<\_ACEOF
9912 #define NBLOCK_SYSV
9913 _ACEOF
9914
9915 fi
9916 fi
9917 { echo "$as_me:$LINENO: checking for posix signals" >&5
9918 echo $ECHO_N "checking for posix signals... $ECHO_C" >&6; }
9919 if test "${unet_cv_sys_signal_posix+set}" = set; then
9920   echo $ECHO_N "(cached) $ECHO_C" >&6
9921 else
9922   cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 #include <signal.h>
9929 int
9930 main ()
9931 {
9932 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_compile") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && {
9951          test -z "$ac_c_werror_flag" ||
9952          test ! -s conftest.err
9953        } && test -s conftest.$ac_objext; then
9954   unet_cv_sys_signal_posix=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959         unet_cv_sys_signal_posix=no
9960 fi
9961
9962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963 fi
9964 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
9965 echo "${ECHO_T}$unet_cv_sys_signal_posix" >&6; }
9966 if test $unet_cv_sys_signal_posix = yes; then
9967
9968 cat >>confdefs.h <<\_ACEOF
9969 #define POSIX_SIGNALS
9970 _ACEOF
9971
9972 else
9973 { echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
9974 echo $ECHO_N "checking for bsd reliable signals... $ECHO_C" >&6; }
9975 if test "${unet_cv_sys_signal_bsd+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   if test "$cross_compiling" = yes; then
9979   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9980 See \`config.log' for more details." >&5
9981 echo "$as_me: error: cannot run test program while cross compiling
9982 See \`config.log' for more details." >&2;}
9983    { (exit 1); exit 1; }; }
9984 else
9985   cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #include <signal.h>
9992 int calls = 0;
9993 $ac_cv_type_signal handler()
9994 {
9995   if (calls) return;
9996   calls++;
9997   kill(getpid(), SIGTERM);
9998   sleep(1);
9999 }
10000 int main(void)
10001 {
10002   signal(SIGTERM, handler);
10003   kill(getpid(), SIGTERM);
10004   exit (0);
10005 }
10006 _ACEOF
10007 rm -f conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011   *) ac_try_echo=$ac_try;;
10012 esac
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014   (eval "$ac_link") 2>&5
10015   ac_status=$?
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10018   { (case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023   (eval "$ac_try") 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; }; then
10027   unet_cv_sys_signal_bsd=yes
10028 else
10029   echo "$as_me: program exited with status $ac_status" >&5
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 ( exit $ac_status )
10034 unet_cv_sys_signal_bsd=no
10035 fi
10036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10037 fi
10038
10039
10040 fi
10041 { echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
10042 echo "${ECHO_T}$unet_cv_sys_signal_bsd" >&6; }
10043 if test $unet_cv_sys_signal_bsd = yes; then
10044
10045 cat >>confdefs.h <<\_ACEOF
10046 #define BSD_RELIABLE_SIGNALS
10047 _ACEOF
10048
10049 else
10050
10051 cat >>confdefs.h <<\_ACEOF
10052 #define SYSV_UNRELIABLE_SIGNALS
10053 _ACEOF
10054
10055 fi
10056 fi
10057
10058 { echo "$as_me:$LINENO: checking for OS-dependent information" >&5
10059 echo $ECHO_N "checking for OS-dependent information... $ECHO_C" >&6; }
10060 case "$host" in
10061     *-linux*)
10062         { echo "$as_me:$LINENO: result: Linux ($host) found." >&5
10063 echo "${ECHO_T}Linux ($host) found." >&6; }
10064         unet_poll_syscall=yes
10065         ;;
10066
10067     *-solaris*)
10068         { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10069 echo "${ECHO_T}Solaris ($host) found." >&6; }
10070         if test x"$ac_cv_header_poll_h" = xyes; then
10071             unet_poll_syscall=yes
10072         else
10073             unet_poll_syscall=no
10074         fi
10075
10076 cat >>confdefs.h <<\_ACEOF
10077 #define IRCU_SOLARIS 1
10078 _ACEOF
10079
10080         ;;
10081
10082     *-sunos*)
10083         { echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10084 echo "${ECHO_T}Solaris ($host) found." >&6; }
10085         unet_poll_syscall=no
10086         ;;
10087
10088     *-openbsd*)
10089         { echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
10090 echo "${ECHO_T}OpenBSD ($host) found." >&6; }
10091         if test x"$ac_cv_header_poll_h" = xyes; then
10092             unet_poll_syscall=yes
10093         else
10094             unet_poll_syscall=no
10095         fi
10096         ;;
10097
10098     *-*bsd*)
10099         { echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
10100 echo "${ECHO_T}Generic BSD ($host) found." >&6; }
10101         if test x"$ac_cv_header_poll_h" = xyes; then
10102             unet_poll_syscall=yes
10103         else
10104             unet_poll_syscall=no
10105         fi
10106         ;;
10107
10108     *-darwin*)
10109         { echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
10110 echo "${ECHO_T}Darwin (Mac OS X) ($host) found." >&6; }
10111         unet_poll_syscall=no
10112         ;;
10113
10114     *)
10115         { echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
10116 echo "${ECHO_T}Unknown system type $host found." >&6; }
10117         { echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
10118 echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
10119         unet_poll_syscall=no
10120         ;;
10121 esac
10122
10123 { echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
10124 echo $ECHO_N "checking whether to enable use of poll()... $ECHO_C" >&6; }
10125 # Check whether --enable-poll was given.
10126 if test "${enable_poll+set}" = set; then
10127   enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
10128 else
10129   if test "${unet_cv_enable_poll+set}" = set; then
10130   echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132   unet_cv_enable_poll=$unet_poll_syscall
10133 fi
10134
10135 fi
10136
10137
10138 # Force poll to be disabled if there is no poll.h
10139 if test x"$ac_cv_header_poll_h" != xyes; then
10140     unet_cv_enable_poll=no
10141 fi
10142
10143 { echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
10144 echo "${ECHO_T}$unet_cv_enable_poll" >&6; }
10145
10146 if test x"$unet_cv_enable_poll" = xyes; then
10147
10148 cat >>confdefs.h <<\_ACEOF
10149 #define USE_POLL 1
10150 _ACEOF
10151
10152     ENGINE_C=engine_poll.c
10153 else
10154     ENGINE_C=engine_select.c
10155 fi
10156
10157
10158 { echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
10159 echo $ECHO_N "checking whether to enable debug mode... $ECHO_C" >&6; }
10160 # Check whether --enable-debug was given.
10161 if test "${enable_debug+set}" = set; then
10162   enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
10163 else
10164   if test "${unet_cv_enable_debug+set}" = set; then
10165   echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167   unet_cv_enable_debug=no
10168 fi
10169
10170 fi
10171
10172 { echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10173 echo "${ECHO_T}$unet_cv_enable_debug" >&6; }
10174
10175 if test x"$unet_cv_enable_debug" = xyes; then
10176
10177 cat >>confdefs.h <<\_ACEOF
10178 #define DEBUGMODE 1
10179 _ACEOF
10180
10181 fi
10182
10183 { echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10184 echo $ECHO_N "checking whether to enable leak detection... $ECHO_C" >&6; }
10185
10186 # Check whether --with-leak-detect was given.
10187 if test "${with_leak_detect+set}" = set; then
10188   withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
10189 else
10190   if test "${unet_cv_with_leak_detect+set}" = set; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193   unet_cv_with_leak_detect=no
10194 fi
10195
10196 fi
10197
10198 { echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10199 echo "${ECHO_T}$unet_cv_enable_leak_detect" >&6; }
10200
10201 if test x"$unet_cv_with_leak_detect" != xno; then
10202     LIBS="-lgc $LIBS"
10203     CFLAGS="-DMDEBUG $CFLAGS"
10204     if test x"$unet_cv_with_leak_detect" != xyes; then
10205        LIBS="-L$unet_cv_with_leak_detect $LIBS"
10206     fi
10207 fi
10208
10209
10210 # Check whether --with-ipv6 was given.
10211 if test "${with_ipv6+set}" = set; then
10212   withval=$with_ipv6; ac_cv_use_ipv6=$withval
10213 else
10214   ac_cv_use_ipv6=$unet_have_sockaddr_in6
10215 fi
10216
10217 { echo "$as_me:$LINENO: checking whether to use IPv6" >&5
10218 echo $ECHO_N "checking whether to use IPv6... $ECHO_C" >&6; }
10219 if test "${ac_cv_use_ipv6+set}" = set; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   ac_cv_use_ipv6=no
10223 fi
10224 { echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
10225 echo "${ECHO_T}$ac_cv_use_ipv6" >&6; }
10226 if test x"$ac_cv_use_ipv6" != "xno" ; then
10227
10228 cat >>confdefs.h <<\_ACEOF
10229 #define IPV6 1
10230 _ACEOF
10231
10232 fi
10233
10234 { echo "$as_me:$LINENO: checking whether to enable asserts" >&5
10235 echo $ECHO_N "checking whether to enable asserts... $ECHO_C" >&6; }
10236 # Check whether --enable-asserts was given.
10237 if test "${enable_asserts+set}" = set; then
10238   enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
10239 else
10240   if test "${unet_cv_enable_asserts+set}" = set; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   unet_cv_enable_asserts=yes
10244 fi
10245
10246 fi
10247
10248 { echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
10249 echo "${ECHO_T}$unet_cv_enable_asserts" >&6; }
10250
10251 if test x"$unet_cv_enable_asserts" = xno; then
10252
10253 cat >>confdefs.h <<\_ACEOF
10254 #define NDEBUG 1
10255 _ACEOF
10256
10257 fi
10258
10259 { echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
10260 echo $ECHO_N "checking whether to enable profiling support (gprof)... $ECHO_C" >&6; }
10261 # Check whether --enable-profile was given.
10262 if test "${enable_profile+set}" = set; then
10263   enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
10264 else
10265   if test "${unet_cv_enable_profile+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   unet_cv_enable_profile=no
10269 fi
10270
10271 fi
10272
10273 { echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
10274 echo "${ECHO_T}$unet_cv_enable_profile" >&6; }
10275
10276 if test x"$unet_cv_enable_profile" = xyes; then
10277     CFLAGS="-pg $CFLAGS"
10278     LDFLAGS="-pg $LDFLAGS"
10279 fi
10280
10281 { echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
10282 echo $ECHO_N "checking whether to enable pedantic compiler warnings... $ECHO_C" >&6; }
10283 # Check whether --enable-pedantic was given.
10284 if test "${enable_pedantic+set}" = set; then
10285   enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
10286 else
10287   if test "${unet_cv_enable_pedantic+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290   unet_cv_enable_pedantic=no
10291 fi
10292
10293 fi
10294
10295 { echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
10296 echo "${ECHO_T}$unet_cv_enable_pedantic" >&6; }
10297
10298 if test x"$unet_cv_enable_pedantic" = xyes; then
10299     CFLAGS="-pedantic $CFLAGS"
10300 fi
10301
10302 { echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
10303 echo $ECHO_N "checking whether to enable compiler warnings... $ECHO_C" >&6; }
10304 # Check whether --enable-warnings was given.
10305 if test "${enable_warnings+set}" = set; then
10306   enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
10307 else
10308   if test "${unet_cv_enable_warnings+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   unet_cv_enable_warnings=no
10312 fi
10313
10314 fi
10315
10316 { echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
10317 echo "${ECHO_T}$unet_cv_enable_warnings" >&6; }
10318
10319 if test x"$unet_cv_enable_warnings" = xyes; then
10320     CFLAGS="-Wall $CFLAGS"
10321 fi
10322
10323 { echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
10324 echo $ECHO_N "checking whether to enable inlining for a few critical functions... $ECHO_C" >&6; }
10325 # Check whether --enable-inlines was given.
10326 if test "${enable_inlines+set}" = set; then
10327   enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
10328 else
10329   if test "${unet_cv_enable_inlines+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   unet_cv_enable_inlines=yes
10333 fi
10334
10335 fi
10336
10337 { echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
10338 echo "${ECHO_T}$unet_cv_enable_inlines" >&6; }
10339
10340 if test x"$unet_cv_enable_inlines" = xyes; then
10341
10342 cat >>confdefs.h <<\_ACEOF
10343 #define FORCEINLINE 1
10344 _ACEOF
10345
10346 fi
10347
10348 { echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
10349 echo $ECHO_N "checking whether to enable the /dev/poll event engine... $ECHO_C" >&6; }
10350 # Check whether --enable-devpoll was given.
10351 if test "${enable_devpoll+set}" = set; then
10352   enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
10353 else
10354   if test "${unet_cv_enable_devpoll+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357   unet_cv_enable_devpoll=yes
10358 fi
10359
10360 fi
10361
10362
10363 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
10364     unet_cv_enable_devpoll=no
10365 fi
10366
10367 { echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
10368 echo "${ECHO_T}$unet_cv_enable_devpoll" >&6; }
10369
10370 if test x"$unet_cv_enable_devpoll" != xno; then
10371
10372 cat >>confdefs.h <<\_ACEOF
10373 #define USE_DEVPOLL 1
10374 _ACEOF
10375
10376     ENGINE_C="engine_devpoll.c $ENGINE_C"
10377 fi
10378
10379 { echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
10380 echo $ECHO_N "checking whether to enable the kqueue event engine... $ECHO_C" >&6; }
10381 # Check whether --enable-kqueue was given.
10382 if test "${enable_kqueue+set}" = set; then
10383   enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
10384 else
10385   if test "${unet_cv_enable_kqueue+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   unet_cv_enable_kqueue=yes
10389 fi
10390
10391 fi
10392
10393
10394 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
10395     unet_cv_enable_kqueue=no
10396 fi
10397
10398 { echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
10399 echo "${ECHO_T}$unet_cv_enable_kqueue" >&6; }
10400
10401 if test x"$unet_cv_enable_kqueue" != xno; then
10402
10403 cat >>confdefs.h <<\_ACEOF
10404 #define USE_KQUEUE 1
10405 _ACEOF
10406
10407     ENGINE_C="engine_kqueue.c $ENGINE_C"
10408 fi
10409
10410 { echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
10411 echo $ECHO_N "checking whether to enable the epoll event engine... $ECHO_C" >&6; }
10412 # Check whether --enable-epoll was given.
10413 if test "${enable_epoll+set}" = set; then
10414   enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
10415 else
10416   if test "${unet_cv_enable_epoll+set}" = set; then
10417   echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419   unet_cv_enable_epoll=yes
10420 fi
10421
10422 fi
10423
10424
10425 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
10426     unet_cv_enable_epoll=no
10427 fi
10428
10429 { echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
10430 echo "${ECHO_T}$unet_cv_enable_epoll" >&6; }
10431
10432 if test x"$unet_cv_enable_epoll" != xno; then
10433     { echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
10434 echo $ECHO_N "checking whether epoll functions are properly defined... $ECHO_C" >&6; }
10435     cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441 #include <sys/epoll.h>
10442 int
10443 main ()
10444 {
10445 epoll_create(10);
10446   ;
10447   return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (ac_try="$ac_link"
10452 case "(($ac_try" in
10453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454   *) ac_try_echo=$ac_try;;
10455 esac
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457   (eval "$ac_link") 2>conftest.er1
10458   ac_status=$?
10459   grep -v '^ *+' conftest.er1 >conftest.err
10460   rm -f conftest.er1
10461   cat conftest.err >&5
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } && {
10464          test -z "$ac_c_werror_flag" ||
10465          test ! -s conftest.err
10466        } && test -s conftest$ac_exeext &&
10467        $as_test_x conftest$ac_exeext; then
10468   { echo "$as_me:$LINENO: result: yes" >&5
10469 echo "${ECHO_T}yes" >&6; }
10470 else
10471   echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474         { echo "$as_me:$LINENO: result: no" >&5
10475 echo "${ECHO_T}no" >&6; }
10476
10477 cat >>confdefs.h <<\_ACEOF
10478 #define EPOLL_NEED_BODY 1
10479 _ACEOF
10480
10481 fi
10482
10483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484       conftest$ac_exeext conftest.$ac_ext
10485
10486 cat >>confdefs.h <<\_ACEOF
10487 #define USE_EPOLL 1
10488 _ACEOF
10489
10490     ENGINE_C="engine_epoll.c $ENGINE_C"
10491 fi
10492
10493 { echo "$as_me:$LINENO: checking for va_copy" >&5
10494 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
10495 if test "${unet_cv_c_va_copy+set}" = set; then
10496   echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498   cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h.  */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h.  */
10504 #include <stdarg.h>
10505 int
10506 main ()
10507 {
10508 va_list ap1, ap2; va_copy(ap1, ap2);
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517   *) ac_try_echo=$ac_try;;
10518 esac
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520   (eval "$ac_link") 2>conftest.er1
10521   ac_status=$?
10522   grep -v '^ *+' conftest.er1 >conftest.err
10523   rm -f conftest.er1
10524   cat conftest.err >&5
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); } && {
10527          test -z "$ac_c_werror_flag" ||
10528          test ! -s conftest.err
10529        } && test -s conftest$ac_exeext &&
10530        $as_test_x conftest$ac_exeext; then
10531   unet_cv_c_va_copy="yes"
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536         unet_cv_c_va_copy="no"
10537
10538 fi
10539
10540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10541       conftest$ac_exeext conftest.$ac_ext
10542 fi
10543 { echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
10544 echo "${ECHO_T}$unet_cv_c_va_copy" >&6; }
10545 if test "$unet_cv_c_va_copy" = "yes" ; then
10546
10547 cat >>confdefs.h <<\_ACEOF
10548 #define HAVE_VA_COPY 1
10549 _ACEOF
10550
10551 fi
10552
10553 { echo "$as_me:$LINENO: checking for __va_copy" >&5
10554 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
10555 if test "${unet_cv_c___va_copy+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h.  */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h.  */
10564 #include <stdarg.h>
10565 int
10566 main ()
10567 {
10568 va_list ap1, ap2; __va_copy(ap1, ap2);
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577   *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580   (eval "$ac_link") 2>conftest.er1
10581   ac_status=$?
10582   grep -v '^ *+' conftest.er1 >conftest.err
10583   rm -f conftest.er1
10584   cat conftest.err >&5
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } && {
10587          test -z "$ac_c_werror_flag" ||
10588          test ! -s conftest.err
10589        } && test -s conftest$ac_exeext &&
10590        $as_test_x conftest$ac_exeext; then
10591   unet_cv_c___va_copy="yes"
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596         unet_cv_c___va_copy="no"
10597
10598 fi
10599
10600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10601       conftest$ac_exeext conftest.$ac_ext
10602 fi
10603 { echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
10604 echo "${ECHO_T}$unet_cv_c___va_copy" >&6; }
10605 if test "$unet_cv_c___va_copy" = "yes" ; then
10606
10607 cat >>confdefs.h <<\_ACEOF
10608 #define HAVE___VA_COPY 1
10609 _ACEOF
10610
10611 fi
10612
10613 { echo "$as_me:$LINENO: checking what name to give the symlink" >&5
10614 echo $ECHO_N "checking what name to give the symlink... $ECHO_C" >&6; }
10615
10616 # Check whether --with-symlink was given.
10617 if test "${with_symlink+set}" = set; then
10618   withval=$with_symlink; unet_cv_with_symlink=$with_symlink
10619 else
10620   if test "${unet_cv_with_symlink+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   unet_cv_with_symlink="ircd"
10624 fi
10625
10626 fi
10627
10628
10629 if test x"$unet_cv_with_symlink" = xyes; then
10630     unet_cv_with_symlink="ircd"
10631 fi
10632
10633 { echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
10634 echo "${ECHO_T}$unet_cv_with_symlink" >&6; }
10635
10636 if test x"$unet_cv_with_symlink" = xno; then
10637     INSTALL_RULE=install-no-symlink
10638     SYMLINK=
10639 else
10640     INSTALL_RULE=install-with-symlink
10641     SYMLINK=$unet_cv_with_symlink
10642 fi
10643
10644
10645
10646 { echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
10647 echo $ECHO_N "checking what permissions to set on the installed binary... $ECHO_C" >&6; }
10648
10649 # Check whether --with-mode was given.
10650 if test "${with_mode+set}" = set; then
10651   withval=$with_mode; unet_cv_with_mode=$with_mode
10652 else
10653   if test "${unet_cv_with_mode+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   unet_cv_with_mode=711
10657 fi
10658
10659 fi
10660
10661
10662 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
10663     unet_cv_with_mode=711
10664 fi
10665
10666 { echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
10667 echo "${ECHO_T}$unet_cv_with_mode" >&6; }
10668
10669 IRCDMODE=$unet_cv_with_mode
10670
10671
10672 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10673 { echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
10674 echo $ECHO_N "checking which user should own the installed binary... $ECHO_C" >&6; }
10675
10676 # Check whether --with-owner was given.
10677 if test "${with_owner+set}" = set; then
10678   withval=$with_owner; unet_cv_with_owner=$with_owner
10679 else
10680   if test "${unet_cv_with_owner+set}" = set; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683   unet_cv_with_owner=$unet_uid
10684 fi
10685
10686 fi
10687
10688
10689 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
10690     unet_cv_with_owner=$unet_uid
10691 fi
10692
10693 { echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
10694 echo "${ECHO_T}$unet_cv_with_owner" >&6; }
10695
10696 IRCDOWN=$unet_cv_with_owner
10697
10698
10699 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
10700 { echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
10701 echo $ECHO_N "checking which group should own the installed binary... $ECHO_C" >&6; }
10702
10703 # Check whether --with-group was given.
10704 if test "${with_group+set}" = set; then
10705   withval=$with_group; unet_cv_with_group=$with_group
10706 else
10707   if test "${unet_cv_with_group+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   unet_cv_with_group=$unet_gid
10711 fi
10712
10713 fi
10714
10715
10716 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
10717     unet_cv_with_group=$unet_gid
10718 fi
10719
10720 { echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
10721 echo "${ECHO_T}$unet_cv_with_group" >&6; }
10722
10723 IRCDGRP=$unet_cv_with_group
10724
10725
10726 unet_domain=
10727 if test -f /etc/resolv.conf; then
10728     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
10729     if test x"$unet_domain" = x; then
10730         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
10731     fi
10732 fi
10733 { echo "$as_me:$LINENO: checking for site domain name" >&5
10734 echo $ECHO_N "checking for site domain name... $ECHO_C" >&6; }
10735
10736 # Check whether --with-domain was given.
10737 if test "${with_domain+set}" = set; then
10738   withval=$with_domain; unet_cv_with_domain=$with_domain
10739 else
10740   if test "${unet_cv_with_domain+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   unet_cv_with_domain=$unet_domain
10744 fi
10745
10746 fi
10747
10748
10749 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
10750     unet_cv_with_domain=$unet_domain
10751 fi
10752 if test x"$unet_cv_with_domain" = xno; then
10753     { { echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
10754 echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
10755    { (exit 1); exit 1; }; }
10756 fi
10757
10758 { echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
10759 echo "${ECHO_T}$unet_cv_with_domain" >&6; }
10760
10761
10762 cat >>confdefs.h <<_ACEOF
10763 #define DOMAINNAME "*$unet_cv_with_domain"
10764 _ACEOF
10765
10766
10767 { echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
10768 echo $ECHO_N "checking if chroot operation is desired... $ECHO_C" >&6; }
10769
10770 # Check whether --with-chroot was given.
10771 if test "${with_chroot+set}" = set; then
10772   withval=$with_chroot; unet_cv_with_chroot=$with_chroot
10773 else
10774   if test "${unet_cv_with_chroot+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   unet_cv_with_chroot=no
10778 fi
10779
10780 fi
10781
10782
10783 if test x"$unet_cv_with_chroot" = xyes; then
10784     { { echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
10785 echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
10786    { (exit 1); exit 1; }; }
10787 fi
10788
10789 # Ensure there are no trailing /'s to mess us up
10790 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
10791
10792 { echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
10793 echo "${ECHO_T}$unet_cv_with_chroot" >&6; }
10794
10795 # Deal with the annoying value "NONE" here
10796 unet_save_prefix=$prefix
10797 if test x"$prefix" = xNONE; then
10798     prefix=$ac_default_prefix
10799 else
10800     prefix=$prefix
10801 fi
10802
10803 unet_save_exec_prefix=$exec_prefix
10804 if test x"$exec_prefix" = xNONE; then
10805     exec_prefix=$prefix
10806 else
10807     exec_prefix=$exec_prefix
10808 fi
10809
10810 # Obtain the actual interesting directories
10811 unet_bindir=`eval echo "$bindir"`
10812 unet_libdir=`eval echo "$libdir"`
10813
10814 # Restore the original settings of $prefix and $exec_prefix
10815 prefix=$unet_save_prefix
10816 exec_prefix=$unet_save_exec_prefix
10817
10818 { echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
10819 echo $ECHO_N "checking where the binary will be for /restart... $ECHO_C" >&6; }
10820 if test x"$unet_cv_with_symlink" = xno; then
10821     unet_spath="$unet_bindir/ircd"
10822 else
10823     unet_spath="$unet_bindir/$unet_cv_with_symlink"
10824 fi
10825 { echo "$as_me:$LINENO: result: $unet_spath" >&5
10826 echo "${ECHO_T}$unet_spath" >&6; }
10827
10828 if test x"$unet_cv_with_chroot" != xno; then
10829     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10830         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
10831     else
10832         { echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
10833 echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
10834     fi
10835 fi
10836
10837
10838 cat >>confdefs.h <<_ACEOF
10839 #define SPATH "$unet_spath"
10840 _ACEOF
10841
10842
10843 { echo "$as_me:$LINENO: checking what the data directory should be" >&5
10844 echo $ECHO_N "checking what the data directory should be... $ECHO_C" >&6; }
10845
10846 # Check whether --with-dpath was given.
10847 if test "${with_dpath+set}" = set; then
10848   withval=$with_dpath; unet_cv_with_dpath=$with_dpath
10849 else
10850   if test "${unet_cv_with_dpath+set}" = set; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   unet_cv_with_dpath=$unet_libdir
10854 fi
10855
10856 fi
10857
10858
10859 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
10860     unet_cv_with_dpath=$unet_libdir
10861 fi
10862
10863 # Ensure there are no trailing /'s to mess us up
10864 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
10865
10866 { echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
10867 echo "${ECHO_T}$unet_cv_with_dpath" >&6; }
10868
10869 if test x"$unet_cv_with_chroot" != xno; then
10870     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10871         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
10872     else
10873         { { echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
10874 echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
10875    { (exit 1); exit 1; }; }
10876     fi
10877 else
10878     unet_dpath=$unet_cv_with_dpath
10879 fi
10880
10881
10882 cat >>confdefs.h <<_ACEOF
10883 #define DPATH "$unet_dpath"
10884 _ACEOF
10885
10886
10887 DPATH=$unet_cv_with_dpath
10888
10889
10890 { echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
10891 echo $ECHO_N "checking where the default configuration file resides... $ECHO_C" >&6; }
10892
10893 # Check whether --with-cpath was given.
10894 if test "${with_cpath+set}" = set; then
10895   withval=$with_cpath; unet_cv_with_cpath=$with_cpath
10896 else
10897   if test "${unet_cv_with_cpath+set}" = set; then
10898   echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900   unet_cv_with_cpath="ircd.conf"
10901 fi
10902
10903 fi
10904
10905
10906 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
10907     unet_cv_with_cpath="ircd.conf"
10908 fi
10909
10910 { echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
10911 echo "${ECHO_T}$unet_cv_with_cpath" >&6; }
10912
10913 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
10914     # Absolute path; check against chroot stuff
10915     if test x"$unet_cv_with_chroot" != xno; then
10916         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10917             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
10918         else
10919             { { echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
10920 echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
10921    { (exit 1); exit 1; }; }
10922         fi
10923     else
10924         unet_cpath=$unet_cv_with_cpath
10925     fi
10926 else
10927     unet_cpath=$unet_cv_with_cpath
10928 fi
10929
10930
10931 cat >>confdefs.h <<_ACEOF
10932 #define CPATH "$unet_cpath"
10933 _ACEOF
10934
10935
10936 { echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
10937 echo $ECHO_N "checking where to put the debugging log if debugging enabled... $ECHO_C" >&6; }
10938
10939 # Check whether --with-lpath was given.
10940 if test "${with_lpath+set}" = set; then
10941   withval=$with_lpath; unet_cv_with_lpath=$with_lpath
10942 else
10943   if test "${unet_cv_with_lpath+set}" = set; then
10944   echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946   unet_cv_with_lpath="ircd.log"
10947 fi
10948
10949 fi
10950
10951
10952 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
10953     unet_cv_with_lpath="ircd.log"
10954 fi
10955
10956 { echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
10957 echo "${ECHO_T}$unet_cv_with_lpath" >&6; }
10958
10959 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
10960     # Absolute path; check against chroot stuff
10961     if test x"$unet_cv_with_chroot" != xno; then
10962         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
10963             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
10964         else
10965             { 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
10966 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;}
10967             unet_cv_with_lpath="ircd.log"
10968             unet_lpath="ircd.log"
10969         fi
10970     else
10971         unet_lpath=$unet_cv_with_lpath
10972     fi
10973 else
10974     unet_lpath=$unet_cv_with_lpath
10975 fi
10976
10977
10978 cat >>confdefs.h <<_ACEOF
10979 #define LPATH "$unet_lpath"
10980 _ACEOF
10981
10982
10983 unet_maxcon=`ulimit -Hn`
10984 if test x"$unet_maxcon" = xunlimited; then
10985     unet_maxcon=`ulimit -Sn`
10986 fi
10987 unet_maxcon=`expr $unet_maxcon - 4`
10988 { echo "$as_me:$LINENO: checking max connections" >&5
10989 echo $ECHO_N "checking max connections... $ECHO_C" >&6; }
10990
10991 # Check whether --with-maxcon was given.
10992 if test "${with_maxcon+set}" = set; then
10993   withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
10994 else
10995   if test "${unet_cv_with_maxcon+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   unet_cv_with_maxcon=$unet_maxcon
10999 fi
11000
11001 fi
11002
11003
11004 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
11005     if test "$unet_maxcon" -lt 32; then
11006       { { echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
11007 echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
11008    { (exit 1); exit 1; }; }
11009     fi
11010     unet_cv_with_maxcon=$unet_maxcon
11011 elif test "$unet_cv_with_maxcon" -lt 32; then
11012     { { echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
11013 echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
11014    { (exit 1); exit 1; }; }
11015 fi
11016
11017 { echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
11018 echo "${ECHO_T}$unet_cv_with_maxcon" >&6; }
11019
11020
11021 cat >>confdefs.h <<_ACEOF
11022 #define MAXCONNECTIONS $unet_cv_with_maxcon
11023 _ACEOF
11024
11025
11026 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
11027
11028 ac_config_commands="$ac_config_commands default"
11029
11030 cat >confcache <<\_ACEOF
11031 # This file is a shell script that caches the results of configure
11032 # tests run on this system so they can be shared between configure
11033 # scripts and configure runs, see configure's option --config-cache.
11034 # It is not useful on other systems.  If it contains results you don't
11035 # want to keep, you may remove or edit it.
11036 #
11037 # config.status only pays attention to the cache file if you give it
11038 # the --recheck option to rerun configure.
11039 #
11040 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11041 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11042 # following values.
11043
11044 _ACEOF
11045
11046 # The following way of writing the cache mishandles newlines in values,
11047 # but we know of no workaround that is simple, portable, and efficient.
11048 # So, we kill variables containing newlines.
11049 # Ultrix sh set writes to stderr and can't be redirected directly,
11050 # and sets the high bit in the cache file unless we assign to the vars.
11051 (
11052   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11053     eval ac_val=\$$ac_var
11054     case $ac_val in #(
11055     *${as_nl}*)
11056       case $ac_var in #(
11057       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11058 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11059       esac
11060       case $ac_var in #(
11061       _ | IFS | as_nl) ;; #(
11062       *) $as_unset $ac_var ;;
11063       esac ;;
11064     esac
11065   done
11066
11067   (set) 2>&1 |
11068     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11069     *${as_nl}ac_space=\ *)
11070       # `set' does not quote correctly, so add quotes (double-quote
11071       # substitution turns \\\\ into \\, and sed turns \\ into \).
11072       sed -n \
11073         "s/'/'\\\\''/g;
11074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11075       ;; #(
11076     *)
11077       # `set' quotes correctly as required by POSIX, so do not add quotes.
11078       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11079       ;;
11080     esac |
11081     sort
11082 ) |
11083   sed '
11084      /^ac_cv_env_/b end
11085      t clear
11086      :clear
11087      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11088      t end
11089      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11090      :end' >>confcache
11091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11092   if test -w "$cache_file"; then
11093     test "x$cache_file" != "x/dev/null" &&
11094       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11095 echo "$as_me: updating cache $cache_file" >&6;}
11096     cat confcache >$cache_file
11097   else
11098     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11099 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11100   fi
11101 fi
11102 rm -f confcache
11103
11104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11105 # Let make expand exec_prefix.
11106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11107
11108 DEFS=-DHAVE_CONFIG_H
11109
11110 ac_libobjs=
11111 ac_ltlibobjs=
11112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11113   # 1. Remove the extension, and $U if already installed.
11114   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11115   ac_i=`echo "$ac_i" | sed "$ac_script"`
11116   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11117   #    will be set to the directory where LIBOBJS objects are built.
11118   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11119   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11120 done
11121 LIBOBJS=$ac_libobjs
11122
11123 LTLIBOBJS=$ac_ltlibobjs
11124
11125
11126
11127 : ${CONFIG_STATUS=./config.status}
11128 ac_clean_files_save=$ac_clean_files
11129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11130 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11131 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11132 cat >$CONFIG_STATUS <<_ACEOF
11133 #! $SHELL
11134 # Generated by $as_me.
11135 # Run this file to recreate the current configuration.
11136 # Compiler output produced by configure, useful for debugging
11137 # configure, is in config.log if it exists.
11138
11139 debug=false
11140 ac_cs_recheck=false
11141 ac_cs_silent=false
11142 SHELL=\${CONFIG_SHELL-$SHELL}
11143 _ACEOF
11144
11145 cat >>$CONFIG_STATUS <<\_ACEOF
11146 ## --------------------- ##
11147 ## M4sh Initialization.  ##
11148 ## --------------------- ##
11149
11150 # Be more Bourne compatible
11151 DUALCASE=1; export DUALCASE # for MKS sh
11152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11153   emulate sh
11154   NULLCMD=:
11155   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11156   # is contrary to our usage.  Disable this feature.
11157   alias -g '${1+"$@"}'='"$@"'
11158   setopt NO_GLOB_SUBST
11159 else
11160   case `(set -o) 2>/dev/null` in
11161   *posix*) set -o posix ;;
11162 esac
11163
11164 fi
11165
11166
11167
11168
11169 # PATH needs CR
11170 # Avoid depending upon Character Ranges.
11171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11174 as_cr_digits='0123456789'
11175 as_cr_alnum=$as_cr_Letters$as_cr_digits
11176
11177 # The user is always right.
11178 if test "${PATH_SEPARATOR+set}" != set; then
11179   echo "#! /bin/sh" >conf$$.sh
11180   echo  "exit 0"   >>conf$$.sh
11181   chmod +x conf$$.sh
11182   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11183     PATH_SEPARATOR=';'
11184   else
11185     PATH_SEPARATOR=:
11186   fi
11187   rm -f conf$$.sh
11188 fi
11189
11190 # Support unset when possible.
11191 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11192   as_unset=unset
11193 else
11194   as_unset=false
11195 fi
11196
11197
11198 # IFS
11199 # We need space, tab and new line, in precisely that order.  Quoting is
11200 # there to prevent editors from complaining about space-tab.
11201 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11202 # splitting by setting IFS to empty value.)
11203 as_nl='
11204 '
11205 IFS=" ""        $as_nl"
11206
11207 # Find who we are.  Look in the path if we contain no directory separator.
11208 case $0 in
11209   *[\\/]* ) as_myself=$0 ;;
11210   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11212 do
11213   IFS=$as_save_IFS
11214   test -z "$as_dir" && as_dir=.
11215   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11216 done
11217 IFS=$as_save_IFS
11218
11219      ;;
11220 esac
11221 # We did not find ourselves, most probably we were run as `sh COMMAND'
11222 # in which case we are not to be found in the path.
11223 if test "x$as_myself" = x; then
11224   as_myself=$0
11225 fi
11226 if test ! -f "$as_myself"; then
11227   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11228   { (exit 1); exit 1; }
11229 fi
11230
11231 # Work around bugs in pre-3.0 UWIN ksh.
11232 for as_var in ENV MAIL MAILPATH
11233 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11234 done
11235 PS1='$ '
11236 PS2='> '
11237 PS4='+ '
11238
11239 # NLS nuisances.
11240 for as_var in \
11241   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11242   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11243   LC_TELEPHONE LC_TIME
11244 do
11245   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11246     eval $as_var=C; export $as_var
11247   else
11248     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11249   fi
11250 done
11251
11252 # Required to use basename.
11253 if expr a : '\(a\)' >/dev/null 2>&1 &&
11254    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11255   as_expr=expr
11256 else
11257   as_expr=false
11258 fi
11259
11260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11261   as_basename=basename
11262 else
11263   as_basename=false
11264 fi
11265
11266
11267 # Name of the executable.
11268 as_me=`$as_basename -- "$0" ||
11269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11270          X"$0" : 'X\(//\)$' \| \
11271          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11272 echo X/"$0" |
11273     sed '/^.*\/\([^/][^/]*\)\/*$/{
11274             s//\1/
11275             q
11276           }
11277           /^X\/\(\/\/\)$/{
11278             s//\1/
11279             q
11280           }
11281           /^X\/\(\/\).*/{
11282             s//\1/
11283             q
11284           }
11285           s/.*/./; q'`
11286
11287 # CDPATH.
11288 $as_unset CDPATH
11289
11290
11291
11292   as_lineno_1=$LINENO
11293   as_lineno_2=$LINENO
11294   test "x$as_lineno_1" != "x$as_lineno_2" &&
11295   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11296
11297   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11298   # uniformly replaced by the line number.  The first 'sed' inserts a
11299   # line-number line after each line using $LINENO; the second 'sed'
11300   # does the real work.  The second script uses 'N' to pair each
11301   # line-number line with the line containing $LINENO, and appends
11302   # trailing '-' during substitution so that $LINENO is not a special
11303   # case at line end.
11304   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11305   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11306   # E. McMahon (1931-1989) for sed's syntax.  :-)
11307   sed -n '
11308     p
11309     /[$]LINENO/=
11310   ' <$as_myself |
11311     sed '
11312       s/[$]LINENO.*/&-/
11313       t lineno
11314       b
11315       :lineno
11316       N
11317       :loop
11318       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11319       t loop
11320       s/-\n.*//
11321     ' >$as_me.lineno &&
11322   chmod +x "$as_me.lineno" ||
11323     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11324    { (exit 1); exit 1; }; }
11325
11326   # Don't try to exec as it changes $[0], causing all sort of problems
11327   # (the dirname of $[0] is not the place where we might find the
11328   # original and so on.  Autoconf is especially sensitive to this).
11329   . "./$as_me.lineno"
11330   # Exit status is that of the last command.
11331   exit
11332 }
11333
11334
11335 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11336   as_dirname=dirname
11337 else
11338   as_dirname=false
11339 fi
11340
11341 ECHO_C= ECHO_N= ECHO_T=
11342 case `echo -n x` in
11343 -n*)
11344   case `echo 'x\c'` in
11345   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11346   *)   ECHO_C='\c';;
11347   esac;;
11348 *)
11349   ECHO_N='-n';;
11350 esac
11351
11352 if expr a : '\(a\)' >/dev/null 2>&1 &&
11353    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11354   as_expr=expr
11355 else
11356   as_expr=false
11357 fi
11358
11359 rm -f conf$$ conf$$.exe conf$$.file
11360 if test -d conf$$.dir; then
11361   rm -f conf$$.dir/conf$$.file
11362 else
11363   rm -f conf$$.dir
11364   mkdir conf$$.dir
11365 fi
11366 echo >conf$$.file
11367 if ln -s conf$$.file conf$$ 2>/dev/null; then
11368   as_ln_s='ln -s'
11369   # ... but there are two gotchas:
11370   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11371   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11372   # In both cases, we have to default to `cp -p'.
11373   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11374     as_ln_s='cp -p'
11375 elif ln conf$$.file conf$$ 2>/dev/null; then
11376   as_ln_s=ln
11377 else
11378   as_ln_s='cp -p'
11379 fi
11380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11381 rmdir conf$$.dir 2>/dev/null
11382
11383 if mkdir -p . 2>/dev/null; then
11384   as_mkdir_p=:
11385 else
11386   test -d ./-p && rmdir ./-p
11387   as_mkdir_p=false
11388 fi
11389
11390 if test -x / >/dev/null 2>&1; then
11391   as_test_x='test -x'
11392 else
11393   if ls -dL / >/dev/null 2>&1; then
11394     as_ls_L_option=L
11395   else
11396     as_ls_L_option=
11397   fi
11398   as_test_x='
11399     eval sh -c '\''
11400       if test -d "$1"; then
11401         test -d "$1/.";
11402       else
11403         case $1 in
11404         -*)set "./$1";;
11405         esac;
11406         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11407         ???[sx]*):;;*)false;;esac;fi
11408     '\'' sh
11409   '
11410 fi
11411 as_executable_p=$as_test_x
11412
11413 # Sed expression to map a string onto a valid CPP name.
11414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11415
11416 # Sed expression to map a string onto a valid variable name.
11417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11418
11419
11420 exec 6>&1
11421
11422 # Save the log message, to keep $[0] and so on meaningful, and to
11423 # report actual input values of CONFIG_FILES etc. instead of their
11424 # values after options handling.
11425 ac_log="
11426 This file was extended by $as_me, which was
11427 generated by GNU Autoconf 2.61.  Invocation command line was
11428
11429   CONFIG_FILES    = $CONFIG_FILES
11430   CONFIG_HEADERS  = $CONFIG_HEADERS
11431   CONFIG_LINKS    = $CONFIG_LINKS
11432   CONFIG_COMMANDS = $CONFIG_COMMANDS
11433   $ $0 $@
11434
11435 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11436 "
11437
11438 _ACEOF
11439
11440 cat >>$CONFIG_STATUS <<_ACEOF
11441 # Files that config.status was made for.
11442 config_files="$ac_config_files"
11443 config_headers="$ac_config_headers"
11444 config_commands="$ac_config_commands"
11445
11446 _ACEOF
11447
11448 cat >>$CONFIG_STATUS <<\_ACEOF
11449 ac_cs_usage="\
11450 \`$as_me' instantiates files from templates according to the
11451 current configuration.
11452
11453 Usage: $0 [OPTIONS] [FILE]...
11454
11455   -h, --help       print this help, then exit
11456   -V, --version    print version number and configuration settings, then exit
11457   -q, --quiet      do not print progress messages
11458   -d, --debug      don't remove temporary files
11459       --recheck    update $as_me by reconfiguring in the same conditions
11460   --file=FILE[:TEMPLATE]
11461                    instantiate the configuration file FILE
11462   --header=FILE[:TEMPLATE]
11463                    instantiate the configuration header FILE
11464
11465 Configuration files:
11466 $config_files
11467
11468 Configuration headers:
11469 $config_headers
11470
11471 Configuration commands:
11472 $config_commands
11473
11474 Report bugs to <bug-autoconf@gnu.org>."
11475
11476 _ACEOF
11477 cat >>$CONFIG_STATUS <<_ACEOF
11478 ac_cs_version="\\
11479 config.status
11480 configured by $0, generated by GNU Autoconf 2.61,
11481   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11482
11483 Copyright (C) 2006 Free Software Foundation, Inc.
11484 This config.status script is free software; the Free Software Foundation
11485 gives unlimited permission to copy, distribute and modify it."
11486
11487 ac_pwd='$ac_pwd'
11488 srcdir='$srcdir'
11489 INSTALL='$INSTALL'
11490 _ACEOF
11491
11492 cat >>$CONFIG_STATUS <<\_ACEOF
11493 # If no file are specified by the user, then we need to provide default
11494 # value.  By we need to know if files were specified by the user.
11495 ac_need_defaults=:
11496 while test $# != 0
11497 do
11498   case $1 in
11499   --*=*)
11500     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11501     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11502     ac_shift=:
11503     ;;
11504   *)
11505     ac_option=$1
11506     ac_optarg=$2
11507     ac_shift=shift
11508     ;;
11509   esac
11510
11511   case $ac_option in
11512   # Handling of the options.
11513   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11514     ac_cs_recheck=: ;;
11515   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11516     echo "$ac_cs_version"; exit ;;
11517   --debug | --debu | --deb | --de | --d | -d )
11518     debug=: ;;
11519   --file | --fil | --fi | --f )
11520     $ac_shift
11521     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11522     ac_need_defaults=false;;
11523   --header | --heade | --head | --hea )
11524     $ac_shift
11525     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11526     ac_need_defaults=false;;
11527   --he | --h)
11528     # Conflict between --help and --header
11529     { echo "$as_me: error: ambiguous option: $1
11530 Try \`$0 --help' for more information." >&2
11531    { (exit 1); exit 1; }; };;
11532   --help | --hel | -h )
11533     echo "$ac_cs_usage"; exit ;;
11534   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11535   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11536     ac_cs_silent=: ;;
11537
11538   # This is an error.
11539   -*) { echo "$as_me: error: unrecognized option: $1
11540 Try \`$0 --help' for more information." >&2
11541    { (exit 1); exit 1; }; } ;;
11542
11543   *) ac_config_targets="$ac_config_targets $1"
11544      ac_need_defaults=false ;;
11545
11546   esac
11547   shift
11548 done
11549
11550 ac_configure_extra_args=
11551
11552 if $ac_cs_silent; then
11553   exec 6>/dev/null
11554   ac_configure_extra_args="$ac_configure_extra_args --silent"
11555 fi
11556
11557 _ACEOF
11558 cat >>$CONFIG_STATUS <<_ACEOF
11559 if \$ac_cs_recheck; then
11560   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11561   CONFIG_SHELL=$SHELL
11562   export CONFIG_SHELL
11563   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11564 fi
11565
11566 _ACEOF
11567 cat >>$CONFIG_STATUS <<\_ACEOF
11568 exec 5>>config.log
11569 {
11570   echo
11571   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11572 ## Running $as_me. ##
11573 _ASBOX
11574   echo "$ac_log"
11575 } >&5
11576
11577 _ACEOF
11578 cat >>$CONFIG_STATUS <<_ACEOF
11579 _ACEOF
11580
11581 cat >>$CONFIG_STATUS <<\_ACEOF
11582
11583 # Handling of arguments.
11584 for ac_config_target in $ac_config_targets
11585 do
11586   case $ac_config_target in
11587     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11588     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11589     "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
11590     "ircd/test/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
11591     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11592     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11593
11594   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11596    { (exit 1); exit 1; }; };;
11597   esac
11598 done
11599
11600
11601 # If the user did not use the arguments to specify the items to instantiate,
11602 # then the envvar interface is used.  Set only those that are not.
11603 # We use the long form for the default assignment because of an extremely
11604 # bizarre bug on SunOS 4.1.3.
11605 if $ac_need_defaults; then
11606   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11607   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11608   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11609 fi
11610
11611 # Have a temporary directory for convenience.  Make it in the build tree
11612 # simply because there is no reason against having it here, and in addition,
11613 # creating and moving files from /tmp can sometimes cause problems.
11614 # Hook for its removal unless debugging.
11615 # Note that there is a small window in which the directory will not be cleaned:
11616 # after its creation but before its name has been assigned to `$tmp'.
11617 $debug ||
11618 {
11619   tmp=
11620   trap 'exit_status=$?
11621   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11622 ' 0
11623   trap '{ (exit 1); exit 1; }' 1 2 13 15
11624 }
11625 # Create a (secure) tmp directory for tmp files.
11626
11627 {
11628   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11629   test -n "$tmp" && test -d "$tmp"
11630 }  ||
11631 {
11632   tmp=./conf$$-$RANDOM
11633   (umask 077 && mkdir "$tmp")
11634 } ||
11635 {
11636    echo "$me: cannot create a temporary directory in ." >&2
11637    { (exit 1); exit 1; }
11638 }
11639
11640 #
11641 # Set up the sed scripts for CONFIG_FILES section.
11642 #
11643
11644 # No need to generate the scripts if there are no CONFIG_FILES.
11645 # This happens for instance when ./config.status config.h
11646 if test -n "$CONFIG_FILES"; then
11647
11648 _ACEOF
11649
11650
11651
11652 ac_delim='%!_!# '
11653 for ac_last_try in false false false false false :; do
11654   cat >conf$$subs.sed <<_ACEOF
11655 SHELL!$SHELL$ac_delim
11656 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11657 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11658 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11659 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11660 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11661 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11662 exec_prefix!$exec_prefix$ac_delim
11663 prefix!$prefix$ac_delim
11664 program_transform_name!$program_transform_name$ac_delim
11665 bindir!$bindir$ac_delim
11666 sbindir!$sbindir$ac_delim
11667 libexecdir!$libexecdir$ac_delim
11668 datarootdir!$datarootdir$ac_delim
11669 datadir!$datadir$ac_delim
11670 sysconfdir!$sysconfdir$ac_delim
11671 sharedstatedir!$sharedstatedir$ac_delim
11672 localstatedir!$localstatedir$ac_delim
11673 includedir!$includedir$ac_delim
11674 oldincludedir!$oldincludedir$ac_delim
11675 docdir!$docdir$ac_delim
11676 infodir!$infodir$ac_delim
11677 htmldir!$htmldir$ac_delim
11678 dvidir!$dvidir$ac_delim
11679 pdfdir!$pdfdir$ac_delim
11680 psdir!$psdir$ac_delim
11681 libdir!$libdir$ac_delim
11682 localedir!$localedir$ac_delim
11683 mandir!$mandir$ac_delim
11684 DEFS!$DEFS$ac_delim
11685 ECHO_C!$ECHO_C$ac_delim
11686 ECHO_N!$ECHO_N$ac_delim
11687 ECHO_T!$ECHO_T$ac_delim
11688 LIBS!$LIBS$ac_delim
11689 build_alias!$build_alias$ac_delim
11690 host_alias!$host_alias$ac_delim
11691 target_alias!$target_alias$ac_delim
11692 build!$build$ac_delim
11693 build_cpu!$build_cpu$ac_delim
11694 build_vendor!$build_vendor$ac_delim
11695 build_os!$build_os$ac_delim
11696 host!$host$ac_delim
11697 host_cpu!$host_cpu$ac_delim
11698 host_vendor!$host_vendor$ac_delim
11699 host_os!$host_os$ac_delim
11700 CC!$CC$ac_delim
11701 CFLAGS!$CFLAGS$ac_delim
11702 LDFLAGS!$LDFLAGS$ac_delim
11703 CPPFLAGS!$CPPFLAGS$ac_delim
11704 ac_ct_CC!$ac_ct_CC$ac_delim
11705 EXEEXT!$EXEEXT$ac_delim
11706 OBJEXT!$OBJEXT$ac_delim
11707 CPP!$CPP$ac_delim
11708 GREP!$GREP$ac_delim
11709 EGREP!$EGREP$ac_delim
11710 AWK!$AWK$ac_delim
11711 SET_MAKE!$SET_MAKE$ac_delim
11712 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11713 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11714 INSTALL_DATA!$INSTALL_DATA$ac_delim
11715 LN_S!$LN_S$ac_delim
11716 RMPROG!$RMPROG$ac_delim
11717 SHPROG!$SHPROG$ac_delim
11718 LEX!$LEX$ac_delim
11719 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
11720 LEXLIB!$LEXLIB$ac_delim
11721 YACC!$YACC$ac_delim
11722 YFLAGS!$YFLAGS$ac_delim
11723 ENGINE_C!$ENGINE_C$ac_delim
11724 INSTALL_RULE!$INSTALL_RULE$ac_delim
11725 SYMLINK!$SYMLINK$ac_delim
11726 IRCDMODE!$IRCDMODE$ac_delim
11727 IRCDOWN!$IRCDOWN$ac_delim
11728 IRCDGRP!$IRCDGRP$ac_delim
11729 DPATH!$DPATH$ac_delim
11730 LIBOBJS!$LIBOBJS$ac_delim
11731 LTLIBOBJS!$LTLIBOBJS$ac_delim
11732 _ACEOF
11733
11734   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
11735     break
11736   elif $ac_last_try; then
11737     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11738 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11739    { (exit 1); exit 1; }; }
11740   else
11741     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11742   fi
11743 done
11744
11745 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11746 if test -n "$ac_eof"; then
11747   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11748   ac_eof=`expr $ac_eof + 1`
11749 fi
11750
11751 cat >>$CONFIG_STATUS <<_ACEOF
11752 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11754 _ACEOF
11755 sed '
11756 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11757 s/^/s,@/; s/!/@,|#_!!_#|/
11758 :n
11759 t n
11760 s/'"$ac_delim"'$/,g/; t
11761 s/$/\\/; p
11762 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11763 ' >>$CONFIG_STATUS <conf$$subs.sed
11764 rm -f conf$$subs.sed
11765 cat >>$CONFIG_STATUS <<_ACEOF
11766 :end
11767 s/|#_!!_#|//g
11768 CEOF$ac_eof
11769 _ACEOF
11770
11771
11772 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11773 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11774 # trailing colons and then remove the whole line if VPATH becomes empty
11775 # (actually we leave an empty line to preserve line numbers).
11776 if test "x$srcdir" = x.; then
11777   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11778 s/:*\$(srcdir):*/:/
11779 s/:*\${srcdir}:*/:/
11780 s/:*@srcdir@:*/:/
11781 s/^\([^=]*=[     ]*\):*/\1/
11782 s/:*$//
11783 s/^[^=]*=[       ]*$//
11784 }'
11785 fi
11786
11787 cat >>$CONFIG_STATUS <<\_ACEOF
11788 fi # test -n "$CONFIG_FILES"
11789
11790
11791 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
11792 do
11793   case $ac_tag in
11794   :[FHLC]) ac_mode=$ac_tag; continue;;
11795   esac
11796   case $ac_mode$ac_tag in
11797   :[FHL]*:*);;
11798   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11799 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11800    { (exit 1); exit 1; }; };;
11801   :[FH]-) ac_tag=-:-;;
11802   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11803   esac
11804   ac_save_IFS=$IFS
11805   IFS=:
11806   set x $ac_tag
11807   IFS=$ac_save_IFS
11808   shift
11809   ac_file=$1
11810   shift
11811
11812   case $ac_mode in
11813   :L) ac_source=$1;;
11814   :[FH])
11815     ac_file_inputs=
11816     for ac_f
11817     do
11818       case $ac_f in
11819       -) ac_f="$tmp/stdin";;
11820       *) # Look for the file first in the build tree, then in the source tree
11821          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11822          # because $ac_f cannot contain `:'.
11823          test -f "$ac_f" ||
11824            case $ac_f in
11825            [\\/$]*) false;;
11826            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11827            esac ||
11828            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11829 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11830    { (exit 1); exit 1; }; };;
11831       esac
11832       ac_file_inputs="$ac_file_inputs $ac_f"
11833     done
11834
11835     # Let's still pretend it is `configure' which instantiates (i.e., don't
11836     # use $as_me), people would be surprised to read:
11837     #    /* config.h.  Generated by config.status.  */
11838     configure_input="Generated from "`IFS=:
11839           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11840     if test x"$ac_file" != x-; then
11841       configure_input="$ac_file.  $configure_input"
11842       { echo "$as_me:$LINENO: creating $ac_file" >&5
11843 echo "$as_me: creating $ac_file" >&6;}
11844     fi
11845
11846     case $ac_tag in
11847     *:-:* | *:-) cat >"$tmp/stdin";;
11848     esac
11849     ;;
11850   esac
11851
11852   ac_dir=`$as_dirname -- "$ac_file" ||
11853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11854          X"$ac_file" : 'X\(//\)[^/]' \| \
11855          X"$ac_file" : 'X\(//\)$' \| \
11856          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11857 echo X"$ac_file" |
11858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11859             s//\1/
11860             q
11861           }
11862           /^X\(\/\/\)[^/].*/{
11863             s//\1/
11864             q
11865           }
11866           /^X\(\/\/\)$/{
11867             s//\1/
11868             q
11869           }
11870           /^X\(\/\).*/{
11871             s//\1/
11872             q
11873           }
11874           s/.*/./; q'`
11875   { as_dir="$ac_dir"
11876   case $as_dir in #(
11877   -*) as_dir=./$as_dir;;
11878   esac
11879   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11880     as_dirs=
11881     while :; do
11882       case $as_dir in #(
11883       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11884       *) as_qdir=$as_dir;;
11885       esac
11886       as_dirs="'$as_qdir' $as_dirs"
11887       as_dir=`$as_dirname -- "$as_dir" ||
11888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11889          X"$as_dir" : 'X\(//\)[^/]' \| \
11890          X"$as_dir" : 'X\(//\)$' \| \
11891          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11892 echo X"$as_dir" |
11893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11894             s//\1/
11895             q
11896           }
11897           /^X\(\/\/\)[^/].*/{
11898             s//\1/
11899             q
11900           }
11901           /^X\(\/\/\)$/{
11902             s//\1/
11903             q
11904           }
11905           /^X\(\/\).*/{
11906             s//\1/
11907             q
11908           }
11909           s/.*/./; q'`
11910       test -d "$as_dir" && break
11911     done
11912     test -z "$as_dirs" || eval "mkdir $as_dirs"
11913   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11914 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11915    { (exit 1); exit 1; }; }; }
11916   ac_builddir=.
11917
11918 case "$ac_dir" in
11919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11920 *)
11921   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11922   # A ".." for each directory in $ac_dir_suffix.
11923   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11924   case $ac_top_builddir_sub in
11925   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11926   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11927   esac ;;
11928 esac
11929 ac_abs_top_builddir=$ac_pwd
11930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11931 # for backward compatibility:
11932 ac_top_builddir=$ac_top_build_prefix
11933
11934 case $srcdir in
11935   .)  # We are building in place.
11936     ac_srcdir=.
11937     ac_top_srcdir=$ac_top_builddir_sub
11938     ac_abs_top_srcdir=$ac_pwd ;;
11939   [\\/]* | ?:[\\/]* )  # Absolute name.
11940     ac_srcdir=$srcdir$ac_dir_suffix;
11941     ac_top_srcdir=$srcdir
11942     ac_abs_top_srcdir=$srcdir ;;
11943   *) # Relative name.
11944     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11945     ac_top_srcdir=$ac_top_build_prefix$srcdir
11946     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11947 esac
11948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11949
11950
11951   case $ac_mode in
11952   :F)
11953   #
11954   # CONFIG_FILE
11955   #
11956
11957   case $INSTALL in
11958   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11959   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11960   esac
11961 _ACEOF
11962
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11964 # If the template does not know about datarootdir, expand it.
11965 # FIXME: This hack should be removed a few years after 2.60.
11966 ac_datarootdir_hack=; ac_datarootdir_seen=
11967
11968 case `sed -n '/datarootdir/ {
11969   p
11970   q
11971 }
11972 /@datadir@/p
11973 /@docdir@/p
11974 /@infodir@/p
11975 /@localedir@/p
11976 /@mandir@/p
11977 ' $ac_file_inputs` in
11978 *datarootdir*) ac_datarootdir_seen=yes;;
11979 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11980   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11981 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11982 _ACEOF
11983 cat >>$CONFIG_STATUS <<_ACEOF
11984   ac_datarootdir_hack='
11985   s&@datadir@&$datadir&g
11986   s&@docdir@&$docdir&g
11987   s&@infodir@&$infodir&g
11988   s&@localedir@&$localedir&g
11989   s&@mandir@&$mandir&g
11990     s&\\\${datarootdir}&$datarootdir&g' ;;
11991 esac
11992 _ACEOF
11993
11994 # Neutralize VPATH when `$srcdir' = `.'.
11995 # Shell code in configure.ac might set extrasub.
11996 # FIXME: do we really want to maintain this feature?
11997 cat >>$CONFIG_STATUS <<_ACEOF
11998   sed "$ac_vpsub
11999 $extrasub
12000 _ACEOF
12001 cat >>$CONFIG_STATUS <<\_ACEOF
12002 :t
12003 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12004 s&@configure_input@&$configure_input&;t t
12005 s&@top_builddir@&$ac_top_builddir_sub&;t t
12006 s&@srcdir@&$ac_srcdir&;t t
12007 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12008 s&@top_srcdir@&$ac_top_srcdir&;t t
12009 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12010 s&@builddir@&$ac_builddir&;t t
12011 s&@abs_builddir@&$ac_abs_builddir&;t t
12012 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12013 s&@INSTALL@&$ac_INSTALL&;t t
12014 $ac_datarootdir_hack
12015 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12016
12017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12018   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12019   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12020   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12021 which seems to be undefined.  Please make sure it is defined." >&5
12022 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12023 which seems to be undefined.  Please make sure it is defined." >&2;}
12024
12025   rm -f "$tmp/stdin"
12026   case $ac_file in
12027   -) cat "$tmp/out"; rm -f "$tmp/out";;
12028   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12029   esac
12030  ;;
12031   :H)
12032   #
12033   # CONFIG_HEADER
12034   #
12035 _ACEOF
12036
12037 # Transform confdefs.h into a sed script `conftest.defines', that
12038 # substitutes the proper values into config.h.in to produce config.h.
12039 rm -f conftest.defines conftest.tail
12040 # First, append a space to every undef/define line, to ease matching.
12041 echo 's/$/ /' >conftest.defines
12042 # Then, protect against being on the right side of a sed subst, or in
12043 # an unquoted here document, in config.status.  If some macros were
12044 # called several times there might be several #defines for the same
12045 # symbol, which is useless.  But do not sort them, since the last
12046 # AC_DEFINE must be honored.
12047 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12048 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12049 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12050 # PARAMS is the parameter list in the macro definition--in most cases, it's
12051 # just an empty string.
12052 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12053 ac_dB='\\)[      (].*,\\1define\\2'
12054 ac_dC=' '
12055 ac_dD=' ,'
12056
12057 uniq confdefs.h |
12058   sed -n '
12059         t rset
12060         :rset
12061         s/^[     ]*#[    ]*define[       ][      ]*//
12062         t ok
12063         d
12064         :ok
12065         s/[\\&,]/\\&/g
12066         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12067         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12068   ' >>conftest.defines
12069
12070 # Remove the space that was appended to ease matching.
12071 # Then replace #undef with comments.  This is necessary, for
12072 # example, in the case of _POSIX_SOURCE, which is predefined and required
12073 # on some systems where configure will not decide to define it.
12074 # (The regexp can be short, since the line contains either #define or #undef.)
12075 echo 's/ $//
12076 s,^[     #]*u.*,/* & */,' >>conftest.defines
12077
12078 # Break up conftest.defines:
12079 ac_max_sed_lines=50
12080
12081 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12082 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12083 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12084 # et cetera.
12085 ac_in='$ac_file_inputs'
12086 ac_out='"$tmp/out1"'
12087 ac_nxt='"$tmp/out2"'
12088
12089 while :
12090 do
12091   # Write a here document:
12092     cat >>$CONFIG_STATUS <<_ACEOF
12093     # First, check the format of the line:
12094     cat >"\$tmp/defines.sed" <<\\CEOF
12095 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12096 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12097 b
12098 :def
12099 _ACEOF
12100   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12101   echo 'CEOF
12102     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12103   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12104   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12105   grep . conftest.tail >/dev/null || break
12106   rm -f conftest.defines
12107   mv conftest.tail conftest.defines
12108 done
12109 rm -f conftest.defines conftest.tail
12110
12111 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12112 cat >>$CONFIG_STATUS <<\_ACEOF
12113   if test x"$ac_file" != x-; then
12114     echo "/* $configure_input  */" >"$tmp/config.h"
12115     cat "$ac_result" >>"$tmp/config.h"
12116     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12117       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12118 echo "$as_me: $ac_file is unchanged" >&6;}
12119     else
12120       rm -f $ac_file
12121       mv "$tmp/config.h" $ac_file
12122     fi
12123   else
12124     echo "/* $configure_input  */"
12125     cat "$ac_result"
12126   fi
12127   rm -f "$tmp/out12"
12128  ;;
12129
12130   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12131 echo "$as_me: executing $ac_file commands" >&6;}
12132  ;;
12133   esac
12134
12135
12136   case $ac_file$ac_mode in
12137     "default":C) echo timestamp > stamp-h ;;
12138
12139   esac
12140 done # for ac_tag
12141
12142
12143 { (exit 0); exit 0; }
12144 _ACEOF
12145 chmod +x $CONFIG_STATUS
12146 ac_clean_files=$ac_clean_files_save
12147
12148
12149 # configure is writing to config.log, and then calls config.status.
12150 # config.status does its own redirection, appending to config.log.
12151 # Unfortunately, on DOS this fails, as config.log is still kept open
12152 # by configure, so config.status won't be able to write to it; its
12153 # output is simply discarded.  So we exec the FD to /dev/null,
12154 # effectively closing config.log, so it can be properly (re)opened and
12155 # appended to by config.status.  When coming back to configure, we
12156 # need to make the FD available again.
12157 if test "$no_create" != yes; then
12158   ac_cs_success=:
12159   ac_config_status_args=
12160   test "$silent" = yes &&
12161     ac_config_status_args="$ac_config_status_args --quiet"
12162   exec 5>/dev/null
12163   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12164   exec 5>>config.log
12165   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12166   # would make configure fail if this is the last instruction.
12167   $ac_cs_success || { (exit 1); exit 1; }
12168 fi
12169
12170
12171 ac_config_commands="$ac_config_commands default-1"
12172